//
// kmVec2Length from 0x1800be5a0 to 0x1800be5ff (95 bytes)
//
// 5 xrefs:
// > kmRay2IntersectTriangle @ 0x1800be275
// > kmRay2IntersectTriangle @ 0x1800be305
// > kmRay2IntersectTriangle @ 0x1800be394
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c3120
//
// 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 kmVec2Length(float *a1)
{
float v1; // xmm6_4
float v2; // xmm0_4
float v3; // xmm7_4
v1 = *a1;
v2 = kmSQR(a1[1]);
v3 = v2 + kmSQR(v1);
if ( v3 < 0.0 )
return sqrtf(v3);
else
return fsqrt(v3);
}