They won't do anything that drastic. As I already said in a previous post, Iran is already locked in the anti-western camp.
With Russia having to trade all sorts of stuff to Iran to get Iranian drones, Iran will now be more aligned with Russia than China.
But does that matter though? Russia itself is becoming more dependent on China by each day they are at war with Ukraine. So in the end, the consequences are not that serious.
From Iran -> China, now its Iran -> Russia -> China. Big deal... more or less the same thing on strategic matters
What you laid are simply the Cold hard truth of the geopolitical realites of Iran. A reality that most of them simply can't comprehend, don't want to or unwilling to comprehend and accept. Believing into their own greatness if only the Ayatolllah is gone or from the religious nutcase side, more religious.
When the people and it's country has been cut down metaphorically by the tides of history they simply cling to their idealized, romanticized past, and since Persians have a storied great history that's what most of them cling to and that evokes pride a commodity trait that are of no use in the current geopolitical environment.
The leaders have made strategic blunders after strategic blunder. If they were more than willing to swallow their pride in dealing with their geopolitical issues ( not sending drones to the Ukraine conflict thereby forcing the Europeans to scuttle the JCPOA which strengthened the American hand furthermore) the Iranians could have some wigglen room with respect to their economic situation.
But no, the country acted like they are the top dog and didn't even consider the severe consequences the recent action it made when deciding to side full throttle with the Russian special operations/invasion of Ukraine.
I find these folks to be rather emotionally driven, revisionist, and not acting pragmatically which what they freaking need to do. Emotions is what got them to their situation and it's the same element that's going to keep them from realizing their potential. They're not Chinese who are used to eating bitterness as a fact of life. Deal with the world and circumstances that you're face with and not daydream about the world that's long been forgotten and is simply a relic of their historic past.