//
// km_mat4_stack_pop from 0xae0b2c to 0xae0b58 (44 bytes)
//
// 2 xrefs:
// > kmGLPopMatrix @ 0xae0d6c
// > ??> @ 0x48858
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall km_mat4_stack_pop(__int64 result)
{
__int64 v1; // x2
int v2; // w1
v1 = *(_QWORD *)(result + 16);
v2 = *(_DWORD *)(result + 4) - 1;
*(_DWORD *)(result + 4) = v2;
*(_QWORD *)(result + 8) = v1 + ((__int64)v2 << 6) - 64;
return result;
}