Japan led in automation in the 90s before the rise of China put a stop to those investments paying off. Now China is making those same investments at a time when the tech is much better. America could solve its manufacturing problem in the future just by importing China automation tech.
It is theoretical, I also doubt China would help the USA develop like that directly and lose its advantage. We would have to trade something really valuable in return (like modern semiconductor or jet turbine tech).