Let's say the Shah has much worse cancer. He goes to America for treatment in January 1978 and he dies in July 1978. His policies proceed as OTL until his death (so Khomeini is still in exile when the Shah dies, etc).
What happens now? Do the mullahs still take power? Or is there a leftist government? A compromise regime?