They did not. USA simply lost interest and threw Afghanistan away like a boring toy.
China currently is pushed back evrywhere. It watchs russia destroy itself. In Europe China is pushed out. Companies leave China ect.
We might remove Xi. Who knows.
What did they lose? All their gains from the past 20 years - gone in a matter of months This entire event has by far wasted the most amount of money of any previous conflict