OY! It gives me a headache to see how messed up this country is.
Things are never as bad as they seem on the surface. Or good. Iran has a lot of powerful villains, and determined heroes. Much is based on who does what at the right time, if they have internal and external support, and more hidden variables than you could shake a stick at.
Look at the occupation of Iraq. At times, the US battles Sunnis, subsets of Shiites, Baathists, Gangsters and Smugglers, Iranian Quds Force, al-Qaeda from at least half a dozen countries, and possibly others.
Iran is facing much the same, but with its own variables, and without an all-powerful US military to keep the various factions in carrot and stick check.
Even if the Mullahs lose their nerve and bolt the country, to live off all the loot they have stolen for years, it will likely just leave a power vacuum that who knows who will try to fill. There are still lots of ex-patriot factions out there as well, who will want back in to the game.
We can but hope for the best, which means a peaceful, democratic Iran.