What a difference two months can make. In May, Taiwan Semiconductor Manufacturing Co. (TSMC), the world’s largest chipmaker, lost the business of Huawei Technologies—its biggest Chinese customer and the source of 13% of its revenue—as a casualty of geopolitical jockeying between superpowers. But TSMC shareholders took the loss in stride. And by late July, after a stumble by rival Intel, TSMC’s stock had risen almost 50% since May, making it one of the world’s 10 most valuable companies.