Arenas hold the code generated for hooks: trampolines and relocated
instructions. Placing code in an arena must never change the protection
of code that may already be running.
Patch writers overwrite live code in the hooked function. They must never
leave the target’s pages non-executable, as other threads may be running
code on them.
The original function of the hook currently running, which its trampoline
passes in r10, with a checksum of it in r11. Returns None when not
called from a hook.