//
// kmMat4Inverse from 0xaddb64 to 0xaddbf4 (144 bytes)
//
// 2 xrefs:
// > cocos2d::CCDirector::convertToGL @ 0xad6708
// > ??> @ 0x769e0
//
// 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
//
_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;
}