Another function consisting almost entirely of inline ASM. Still worth it though, if only to save us from duplicating any declarations in ASM land. Part of P0126, funded by [Anonymous] and Blue Bolt.