//
// sub_1005C5240 from 0x1005c5240 to 0x1005c52b8 (120 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:09:24 +0000
//
__int64 __fastcall sub_1005C5240(__int64 a1, int a2, unsigned int a3)
{
unsigned int v3; // w9
float v5; // s0
bool v6; // cf
unsigned int v7; // w9
if ( a2 )
{
v3 = *(_DWORD *)(a1 + 2076);
if ( !v3 )
return 11;
}
else
{
v5 = *(float *)(a1 + 2068);
if ( v5 <= -80.0 )
v3 = *(_DWORD *)(a1 + 2076);
else
v3 = (unsigned int)(float)((float)((float)((float)(v5 + 100.0) * *(float *)(a1 + 2024)) * 0.000016667)
* (float)*(int *)(a1 + 2072));
}
v6 = v3 >= a3;
v7 = v3 - a3;
if ( !v6 )
v7 = 0;
*(_DWORD *)(a1 + 2076) = v7;
return 0;
}