//
// kmMat4Inverse from 0xd507cc to 0xd5085c (144 bytes)
//
// 2 xrefs:
// > cocos2d::CCDirector::convertToGL @ 0xd49348
// > ??> @ 0x9ee18
//
// 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:40 +0000
//
_QWORD *__fastcall kmMat4Inverse(_QWORD *a1, _QWORD *a2)
{
_QWORD v4[8]; // [xsp+48h] [xbp+48h] BYREF
_BYTE v5[64]; // [xsp+88h] [xbp+88h] BYREF
kmMat4Assign(v4, a2);
kmMat4Identity((__int64)v5);
if ( !(unsigned int)gaussj((__int64)v4, (__int64)v5) )
return nullptr;
kmMat4Assign(a1, v4);
return a1;
}