//
// sub_710A54 from 0x710a54 to 0x710b86 (306 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall sub_710A54(int a1, int a2)
{
unsigned int v2; // r10
int v3; // r5
unsigned int v5; // r11
double v6; // d8
int i; // r4
unsigned int v8; // r7
float v9; // s15
float v10; // s15
unsigned int v11; // r0
unsigned int v12; // t1
unsigned int v13; // r0
float v14; // s18
float v15; // s15
float v16; // s15
v2 = 0;
v3 = a1 - 4;
v5 = 0;
v6 = 0.0;
for ( i = 0; i != 256; ++i )
{
v12 = *(_DWORD *)(v3 + 4);
v3 += 4;
v11 = v12;
if ( v12 )
{
v5 += v11;
v8 = v11 + *(_DWORD *)(a2 + 4 * i);
if ( v11 > 0xFF )
v9 = COERCE_FLOAT(((int (*)(void))off_AD50C0)());
else
v9 = flt_A03198[v11];
v2 += v8;
v6 = v6 - v9;
if ( v8 > 0xFF )
v10 = COERCE_FLOAT(off_AD50C0(v8));
else
v10 = flt_A03198[v8];
goto LABEL_6;
}
v13 = *(_DWORD *)(a2 + 4 * i);
if ( v13 )
{
v2 += v13;
if ( v13 > 0xFF )
v10 = COERCE_FLOAT(((int (*)(void))off_AD50C0)());
else
v10 = flt_A03198[v13];
LABEL_6:
v6 = v6 - v10;
continue;
}
}
if ( v5 > 0xFF )
v14 = COERCE_FLOAT(off_AD50C0(v5));
else
v14 = flt_A03198[v5];
if ( v2 > 0xFF )
v15 = COERCE_FLOAT(off_AD50C0(v2));
else
v15 = flt_A03198[v2];
v16 = (float)(v14 + v15) + v6;
return LODWORD(v16);
}