China rushes to swap Western tech with domestic options as U