//
// sub_7B358 from 0x7b358 to 0x7b3a4 (76 bytes)
//
// 2 xrefs:
// > sub_7B0C4 @ 0x7b118
// > sub_7B170 @ 0x7b21c
//
// 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 12:14:05 +0000
//
float *__fastcall sub_7B358(float *result)
{
float v1; // s0
float v2; // s1
float v3; // s2
float v4; // s3
float v5; // s3
float v6; // 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 )
{
*(_QWORD *)result = 0;
v6 = 0.0;
}
else
{
v5 = 1.0 / v4;
*result = v1 * v5;
result[1] = v2 * v5;
v6 = v3 * v5;
}
result[2] = v6;
return result;
}