//
// kmVec3InverseTransform from 0x5ca0f6 to 0x5ca170 (122 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
//
float *__fastcall kmVec3InverseTransform(float *result, float *a2, float *a3)
{
float v3; // s11
float v4; // s15
float v5; // s12
float v6; // s13
float v7; // s14
float v8; // s15
float v9; // s11
v3 = *a2 - a3[12];
v4 = a2[1] - a3[13];
v5 = a2[2] - a3[14];
v6 = (float)((float)(v4 * a3[5]) + (float)(v3 * a3[4])) + (float)(v5 * a3[6]);
v7 = (float)((float)(v4 * a3[9]) + (float)(v3 * a3[8])) + (float)(v5 * a3[10]);
v8 = (float)(v4 * a3[1]) + (float)(v3 * *a3);
v9 = a3[2];
result[1] = v6;
result[2] = v7;
*result = v8 + (float)(v5 * v9);
return result;
}