//
// sub_5B060 from 0x5b060 to 0x5b0b6 (86 bytes)
//
// 1 xrefs:
// > sub_B3A3C @ 0xb3b1c
//
// 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_5B060(_DWORD *a1)
{
int v2; // r6
int i; // r4
int v4; // r0
int v5; // r5
_DWORD v7[2]; // [sp+4h] [bp-1Ch] BYREF
char v8; // [sp+Ch] [bp-14h]
v7[0] = a1;
v7[1] = 17;
v2 = 0;
v8 = 0;
sub_44998((int)v7);
for ( i = 40; ; i += 44 )
{
if ( v2 >= a1[286] )
{
v5 = 0;
goto LABEL_8;
}
if ( *(_DWORD *)(a1[289] + i) )
{
v4 = sub_B2D88(a1[278]);
if ( v4 )
break;
}
++v2;
}
v5 = v4;
LABEL_8:
sub_448CC((int)v7);
return v5;
}