The US government failed to twist their arms. Very unlikely that China has a lot of power over them. Given how many people they employ in China, they might have actually power over China.
Conversely, they depend heavily on Chinese manufacturing -- for something like 70% of their production and also rely on Chinese markets for a significant portion of their profits. When Xi comes to Tim Cook with the options: "lose 70% of your manufacturing and 50% of your sales or let us install this app" it's not really an easy choice.