//
// kmMat4Inverse from 0x7cf680 to 0x7cf6c4 (68 bytes)
//
// 1 xrefs:
// > cocos2d::CCDirector::convertToGL @ 0x7ca530
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:34 +0000
//
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;
}