If China does invade Taiwan, than I don't think so that the US will come to its help considering how US left Kabul and Kyiev. US is not a trustworthy ally and never comes in times of need as seen in history. Taiwan will Most Probably have to defend itself from the Brunt of the Chinese Military.