//
// sub_10047DE54 from 0x10047de54 to 0x10047de84 (48 bytes)
//
// 1 xrefs:
// > kmGLPopMatrix @ 0x1001f139c
//
// 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 11:05:44 +0000
//
__int64 __fastcall sub_10047DE54(__int64 result, __int64 a2)
{
__int64 v2; // x8
v2 = *(int *)(result + 4);
if ( !(_DWORD)v2 )
sub_100755BA8(result, a2);
*(_DWORD *)(result + 4) = v2 - 1;
*(_QWORD *)(result + 8) = *(_QWORD *)(result + 16) + (v2 << 6) - 128;
return result;
}