Back in 2009/2010 there was chatter about a possible military coup in Iran, in case the regime doesn't manage to control the population. This was regarded as a means of last recourse for the corrupt generals, and it meant to sacrifice the mullahs and the islamic flavor of the regime in order to remain in control.