The machinations are this: Iran and Turkey are in competition for the premier influence in the middle east or vis-a-vis the Caliphate.
It’s no mere coincidence that Turkey made up with Israel.
While the Saudi and Gulf States are losing influence and power economically and militarily.