//
// kmVec2Length from 0x1800baa40 to 0x1800baa94 (84 bytes)
//
// 5 xrefs:
// > kmRay2IntersectTriangle @ 0x1800ba715
// > kmRay2IntersectTriangle @ 0x1800ba7a5
// > kmRay2IntersectTriangle @ 0x1800ba834
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b8e50
//
// 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 kmVec2Length(float *a1)
{
float v2; // xmm0_4
float v3; // xmm6_4
v2 = kmSQR(a1[1]);
v3 = v2 + kmSQR(*a1);
if ( v3 < 0.0 )
return sqrtf(v3);
else
return fsqrt(v3);
}