It's a little - known fact that the US government was not interested in the Wright Brothers airplane. So they took their new invention to France, Germany, and Britain. The US Army was suddenly very interested in the Wright Flyer. And the rest is history.
Sarah, "wanting to support your country" and "avoiding supporting others" is not entriely the same. First and above all - emotionally.
There are techinical differences (it is not a "zero sum game" anyway, you contribute in humanity progress one way, or you are hindering it the other) but I think, 'views', 'mindest' and 'emotions' matter.
Helping you friends - is one thing, and a very good one. A culture treating you as a bad person when you help strange people is a rather dirty stuff.
"After many years he agreed to sell the potent, and now his microchip works in every phone."
Potent is a Latin word that comes from the Latin verb potere which means "to be able to do something". You can use it in words such as omnipotent, potential, etc.
Patent is a legal right granted to the inventor of a device or a pioneering idea or something that can "potentially" have monetary or financial value.
And the topic of your discussion is something that frequently happens in Iran. I think people with great ideas should live or work in places that appreciate them and provide them with the things they require for success. Maryam Mirzakhani would have never won a Fields medal had she chosen to stay in Iran.