//
// sub_55EE4 from 0x55ee4 to 0x55f58 (116 bytes)
//
// 0 xrefs:
//
// 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 11:40:46 +0000
//
int __fastcall sub_55EE4(int a1, _DWORD *a2, int a3)
{
unsigned int v3; // r5
unsigned __int64 v5; // r0
float v6; // s0
bool v7; // zf
unsigned int v8; // r1
int v9; // r0
if ( !a2 )
return 31;
if ( a3 == 1 )
{
v6 = *(float *)(a1 + 80);
v7 = v6 == 0.0;
if ( v6 != 0.0 )
{
v3 = *(_DWORD *)(a1 + 44);
v7 = v3 == -1;
}
if ( !v7 )
{
v5 = 1000 * (unsigned __int64)v3 / (unsigned __int64)v6;
goto LABEL_16;
}
goto LABEL_15;
}
if ( a3 != 4 )
{
if ( a3 == 2 )
{
LODWORD(v5) = *(_DWORD *)(a1 + 44);
LABEL_16:
*a2 = v5;
return 0;
}
v9 = *(_DWORD *)(a1 + 72);
if ( v9 )
return sub_B0830(v9, a2);
return 31;
}
v8 = *(_DWORD *)(a1 + 44);
if ( v8 == -1 )
{
LABEL_15:
LODWORD(v5) = -1;
goto LABEL_16;
}
sub_54322(a1, v8, a2);
return 0;
}