//
// sub_64A8C from 0x64a8c to 0x64ad8 (76 bytes)
//
// 2 xrefs:
// > sub_64824 @ 0x6485e
// > sub_648B0 @ 0x64950
//
// 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 sub_64A8C(float *result)
{
float v1; // s2
float v2; // s4
float v3; // s0
float v4; // s6
float v5; // s0
v1 = *result;
v2 = result[1];
v3 = result[2];
v4 = sqrtf((float)((float)(v1 * v1) + (float)(v2 * v2)) + (float)(v3 * v3));
if ( v4 <= 0.0 )
{
v5 = 0.0;
*result = 0.0;
result[1] = 0.0;
}
else
{
v5 = v3 / v4;
*result = v1 / v4;
result[1] = v2 / v4;
}
result[2] = v5;
return result;
}