//
// sub_55BA6 from 0x55ba6 to 0x55bfe (88 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_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;
}