//
// kmVec3Normalize from 0xd52de8 to 0xd52e44 (92 bytes)
//
// 15 xrefs:
// > kmMat4RotationAxisAngle @ 0xd50b40
// > kmMat4GetUpVec3 @ 0xd51038
// > kmMat4GetRightVec3 @ 0xd5107c
// > kmMat4GetForwardVec3 @ 0xd510c0
// > kmMat4LookAt @ 0xd512d0
// > kmMat4LookAt @ 0xd512ec
// > kmMat4LookAt @ 0xd51308
// > kmMat4LookAt @ 0xd51324
// > kmPlaneFromPoints @ 0xd5183c
// > kmPlaneNormalize @ 0xd51944
// > kmQuaternionToAxisAngle @ 0xd51ef4
// > kmQuaternionRotationBetweenVec3 @ 0xd5235c
// > kmQuaternionRotationBetweenVec3 @ 0xd52368
// > kmQuaternionRotationBetweenVec3 @ 0xd5249c
// > ??> @ 0xd6108
//
// This function is hookable on this platform (idp: arm, 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 13:07:41 +0000
//
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;
}