// // kmQuaternionInverse from 0x5c9370 to 0x5c93e0 (112 bytes) // // 0 xrefs: // // 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 kmQuaternionInverse(int a1, float *a2) { float v4; // s16 float *v5; // r0 _BYTE v7[16]; // [sp+4h] [bp-14h] BYREF v4 = kmQuaternionLength(a2); if ( fabsf(v4) <= 0.015625 ) { v5 = (float *)kmQuaternionConjugate((int)v7, (int)a2); kmQuaternionScale((float *)a1, v5, 1.0 / v4); } else { *(_DWORD *)a1 = 0; *(_DWORD *)(a1 + 4) = 0; *(_DWORD *)(a1 + 8) = 0; *(_DWORD *)(a1 + 12) = 0; } return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source