//
// km_mat4_stack_pop from 0xd53794 to 0xd537c0 (44 bytes)
//
// 2 xrefs:
// > kmGLPopMatrix @ 0xd539d4
// > ??> @ 0x668c8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:07:42 +0000
//
__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;
}