Rewrite the stack handling to use indirect return calls.