//
// sub_10061DF80 from 0x10061df80 to 0x10061e050 (208 bytes)
//
// 0 xrefs:
//
// 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 11:10:18 +0000
//
__int64 __fastcall sub_10061DF80(__int64 result)
{
__int64 v1; // x13
__int64 v2; // x8
unsigned int v3; // w9
int v4; // w10
float v5; // s0
float v6; // s1
__int64 v7; // x11
int v8; // w13
float v9; // s3
int v10; // w13
LODWORD(v1) = *(_DWORD *)(result + 984);
if ( (int)v1 >= 1 )
{
v2 = 0;
if ( (_DWORD)v1 == 2 )
v3 = 0;
else
v3 = -1;
if ( (_DWORD)v1 == 4 )
v3 = 1;
if ( (_DWORD)v1 == 5 )
v3 = 2;
if ( (_DWORD)v1 == 6 )
v3 = 3;
if ( (_DWORD)v1 == 8 )
v3 = 4;
v4 = *(_DWORD *)(result + 608);
v5 = *(float *)(result + 560);
v6 = *(float *)(result + 604);
v7 = result + 656;
do
{
if ( (v3 & 0x80000000) != 0 )
v9 = v5 + (float)((float)(-5.0 / (float)(int)v1) * *(float *)(result + 568));
else
v9 = v5 - (float)(flt_100774B60[9 * v3 + 1 + v2] * *(float *)(result + 568));
v10 = (int)(float)(v9 * v6);
*(_DWORD *)(v7 + 4 * v2) = v10;
if ( v4 <= v10 )
{
v8 = v10 - v4;
}
else
{
if ( (v10 & 0x80000000) == 0 )
goto LABEL_16;
v8 = v4 + v10;
}
*(_DWORD *)(v7 + 4 * v2) = v8;
LABEL_16:
++v2;
v1 = *(int *)(result + 984);
}
while ( v2 < v1 );
}
return result;
}