TSMC have foundries in USA and can build foundries in China (or build one in Taiwan without USA tech, to supply Huawei). In this 'war' I think the company is selling the 'rifles', in a good position to profit from it. I don't see any other high-tech foundry capable of supplying Huawei. The large USA tech companies like AMD, Apple and Nvidia also needs TSMC.
#1 de 2