Actually, the high-paying jobs Apple has to offer are largely located in the US. It's the low-paying jobs that are outsourced. How much of Samsung's R&D happens in the US?
Yea, sometimes it actually helps to think about topics like this for more than just 5 seconds.
Actually, all the tech companies have R&D centers in india, where they do a lot of the advanced research. Microsoft and AMD have HUGE R&D presence in india. Apple is just starting to build their india R&D center in Hyderabad. Google's biggest office outside mountain view is in India.
And its not just tech, car companies also: http://www.motoroids.com/news/ford-...in-rd-centre-new-mid-size-saloon-in-pipeline/
If and when trump restricts H1-B visas, all these companies will just start hiring more people in India. They already have big offices there, so it will be easy to do. The thing about writing code, is you can do it anywhere, unless trump plans to impose an import fee on every line of code written outside the country, it will be impossible to stop the stem of R&D talent fleeing. Thanks to Trumps misguided policies.