//
// kmQuaternionLength from 0x1800bd220 to 0x1800bd267 (71 bytes)
//
// 1 xrefs:
// > ??> @ 0x18014cf68
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 11:22:24 +0000
//
float __fastcall kmQuaternionLength(float *a1)
{
float v1; // xmm3_4
v1 = (float)((float)((float)(a1[1] * a1[1]) + (float)(*a1 * *a1)) + (float)(a1[2] * a1[2])) + (float)(a1[3] * a1[3]);
if ( v1 < 0.0 )
return sqrtf(v1);
else
return fsqrt(v1);
}