Hello,
Could you share the code you referring to with me? I will test it here, as it is very unlikely that epilogue is skipped.
Your code wont restore previous core registers values in such case.
Do you see the same if you place breakpoint directly on first instruction i epilogue? Is it just skipped?
Best regards,
Peter