//
// km_mat4_stack_pop from 0x7d1b48 to 0x7d1b5e (22 bytes)
//
// 1 xrefs:
// > kmGLPopMatrix @ 0x7d1caa
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:00:35 +0000
//
_DWORD *__fastcall km_mat4_stack_pop(_DWORD *result)
{
int v1; // r2
int v2; // r3
v1 = result[3];
v2 = result[1] - 1;
result[1] = v2;
result[2] = v1 + ((v2 + 0x3FFFFFF) << 6);
return result;
}