The ongoing chaos over the disputed reelection of hard-line President Mahmoud Ahmadinejad calls into question who calls the shots in Tehran , and what any deal over the program with the Islamic Republic would look like .