//
// sub_55BA6 from 0x55ba6 to 0x55bfe (88 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_55BA6(int a1, int a2, int a3)
{
float *v3; // r4
int v4; // r5
int v5; // r3
float v6; // s2
if ( a3 < 0 )
return 31;
if ( a2 )
{
v3 = (float *)(a2 + 12);
v4 = 0;
v5 = 31;
while ( ++v4 < a3 )
{
if ( *v3 <= *(v3 - 3) )
return 31;
v6 = v3[1];
if ( v6 >= 0.0 )
{
v3 += 3;
if ( v6 <= 1.0 )
continue;
}
return v5;
}
}
v5 = 0;
*(_DWORD *)(a1 + 112) = a2;
*(_DWORD *)(a1 + 116) = a3;
return v5;
}