//
// kmMat4Inverse from 0x5c8370 to 0x5c83b4 (68 bytes)
//
// 1 xrefs:
// > cocos2d::CCDirector::convertToGL @ 0x5c328c
//
// 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
//
int __fastcall kmMat4Inverse(_DWORD *a1, int *a2)
{
int result; // r0
int v4[16]; // [sp+4h] [bp-40h] BYREF
_DWORD v5[16]; // [sp+44h] [bp+0h] BYREF
kmMat4Assign(v4, a2);
kmMat4Identity(v5);
result = gaussj((int)v4, (int)v5);
if ( result )
{
kmMat4Assign(a1, v4);
return (int)a1;
}
return result;
}