//
// sub_920794 from 0x920794 to 0x920854 (192 bytes)
//
// 1 xrefs:
// > sub_934488 @ 0x934490
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:04:41 +0000
//
int __fastcall sub_920794(int result, int a2, int a3)
{
unsigned int v5; // r2
int *v6; // r5
int i; // r6
float v8; // s15
unsigned int v9; // r2
bool v10; // cf
int v11; // r3
float v12; // s15
*(_QWORD *)a3 = 0;
v5 = 0;
*(_DWORD *)(a3 + 8) = 0;
*(_DWORD *)(a3 + 20) = -1;
*(_DWORD *)(a3 + 12) = 0;
*(_DWORD *)(a3 + 16) = 0;
if ( a2 <= 0 )
goto LABEL_11;
v6 = (int *)result;
for ( i = 0; i != a2; ++i )
{
result = *v6 + v5;
if ( *v6 )
{
v11 = *(_DWORD *)(a3 + 12);
*(_DWORD *)(a3 + 8) = result;
*(_DWORD *)(a3 + 20) = i;
*(_DWORD *)(a3 + 12) = v11 + 1;
result = *v6;
if ( (unsigned int)*v6 <= 0xFF )
{
v8 = flt_C45730[*v6];
}
else
{
result = off_D36348(result);
v8 = *(float *)&result;
}
v9 = *(_DWORD *)(a3 + 16);
*(double *)a3 = *(double *)a3 - v8;
v10 = v9 >= *v6;
v5 = *(_DWORD *)(a3 + 8);
if ( !v10 )
*(_DWORD *)(a3 + 16) = *v6;
}
++v6;
}
if ( v5 > 0xFF )
{
result = off_D36348(v5);
v12 = *(float *)&result;
}
else
{
LABEL_11:
v12 = flt_C45730[v5];
}
*(double *)a3 = *(double *)a3 + v12;
return result;
}