InterposeKit
InterposeKit copied to clipboard
restore floating point registers from stack in reverse order
We should restore registers preserved in stack in reverse order. Otherwise, it leads to shuffled values in those registers after trampoline.
The simplest way to reproduce is to swizzle any method from UIKit that accepts CGFloat or plain struct like CGRect. It's relevant only to arm64. Btw, regular registers get restored correctly.