A friend of mine owns one of the worlds leading software security companies - he was asked my the ministries to open an office in China. He was told only two requirements, open office there with chinese staff and you must have the source code there.
He said no. The damage caused by China hacking is too much.
Can you imagine the scope of the attacks if they had the source code??? It would be horrific.
IBM tried to acquire me he said no, they acquired his biggest competitor and opened an office in china. I would bet they sent the source code there -—