//
// sub_5C160 from 0x5c160 to 0x5c1b4 (84 bytes)
//
// 1 xrefs:
// > sub_5C3C4 @ 0x5c3ca
//
// 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_5C160(int a1)
{
int v1; // r5
int v3; // r0
_DWORD *v4; // r0
v1 = 0;
*(_DWORD *)(a1 + 408) = 0;
while ( 1 )
{
v3 = *(_DWORD *)(a1 + 164);
if ( v1 >= *(_DWORD *)(v3 + 72) )
break;
v4 = *(_DWORD **)(*(_DWORD *)(v3 + 76) + 4 * v1);
if ( *v4 == 2 )
{
sub_AB2D2(a1, v1, v4[10] != 0);
}
else if ( !*v4 )
{
sub_AB218(a1, v1, v4[12]);
}
++v1;
}
*(_BYTE *)(a1 + 396) = 1;
*(_DWORD *)(a1 + 392) = 0;
return 0;
}