//
// sub_5C160 from 0x5c160 to 0x5c1b4 (84 bytes)
//
// 1 xrefs:
// > sub_5C3C4 @ 0x5c3ca
//
// 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:49 +0000
//
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;
}