//
// sub_739D8 from 0x739d8 to 0x73a5c (132 bytes)
//
// 3 xrefs:
// > sub_75360 @ 0x75418
// > sub_75360 @ 0x754a4
// > sub_75568 @ 0x757e4
//
// 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:01 +0000
//
__int64 __fastcall sub_739D8(__int64 result, int a2, float *a3, int a4, float *a5, float a6)
{
__int64 v6; // x10
float v7; // s1
float *v8; // x12
float v9; // s2
__int64 v10; // x10
float v11; // s1
float v12; // s2
v6 = 0;
v7 = 0.0;
v8 = a3;
while ( v6 < (int)result )
{
v9 = *v8;
++v6;
v8 += a2;
v7 = v7 + (float)(v9 * v9);
}
if ( v7 != 0.0 )
{
v10 = 0;
v11 = 1.0 / sqrtf(v7);
while ( v10 < (int)result )
{
v12 = *a3;
++v10;
a3 += a2;
*a5 = *a5 + (float)((float)(v12 * a6) * v11);
a5 += a4;
}
}
return result;
}