mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-19 12:25:56 +00:00
The ClimbObj pitch hook replaced the pre-indexed load ldr s1, [x22, #0x88]! and wrote the write-back to x22 from the host call. The lifter keeps X19-X29 in locals across a call and does not reload them, so the write-back was lost and the following str s0, [x22] wrote the pitch over the camera object's vtable pointer; the next virtual call crashed (seen climbing a Stone Talus). The mov x22, x19 before the load is now patched to add x22, x19, #0x88, the hook performs a plain ldr s1, [x22], and load hooks no longer support write-back loads at all. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>