//
// kmVec3Normalize from 0xae0180 to 0xae01dc (92 bytes)
//
// 15 xrefs:
// > kmMat4RotationAxisAngle @ 0xadded8
// > kmMat4GetUpVec3 @ 0xade3d0
// > kmMat4GetRightVec3 @ 0xade414
// > kmMat4GetForwardVec3 @ 0xade458
// > kmMat4LookAt @ 0xade668
// > kmMat4LookAt @ 0xade684
// > kmMat4LookAt @ 0xade6a0
// > kmMat4LookAt @ 0xade6bc
// > kmPlaneFromPoints @ 0xadebd4
// > kmPlaneNormalize @ 0xadecdc
// > kmQuaternionToAxisAngle @ 0xadf28c
// > kmQuaternionRotationBetweenVec3 @ 0xadf6f4
// > kmQuaternionRotationBetweenVec3 @ 0xadf700
// > kmQuaternionRotationBetweenVec3 @ 0xadf834
// > ??> @ 0xa2d50
//
// 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 kmVec3Normalize(float *a1, float *a2)
{
float v3; // s0
float v4; // s0
float v5; // s3
float v6; // s2
float result; // s0
kmVec3Length(a2);
v4 = 1.0 / v3;
v5 = v4 * a2[1];
v6 = v4 * a2[2];
result = *a2 * v4;
a1[1] = v5;
a1[2] = v6;
*a1 = result;
return result;
}