//
// sub_53810 from 0x53810 to 0x538c0 (176 bytes)
//
// 1 xrefs:
// > sub_62010 @ 0x62088
//
// 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:44 +0000
//
int __fastcall sub_53810(int a1, _DWORD *a2)
{
int v3; // r0
int result; // r0
v3 = *(_DWORD *)(a1 + 4);
if ( !v3 )
return 0;
result = sub_A750C(v3, 1, 1);
if ( !result )
{
result = sub_AB218(*(_DWORD *)(a1 + 4), 0, *a2);
if ( !result )
{
result = sub_AB218(*(_DWORD *)(a1 + 4), 1, a2[1]);
if ( !result )
{
result = sub_AB218(*(_DWORD *)(a1 + 4), 2, a2[2]);
if ( !result )
{
result = sub_AB218(*(_DWORD *)(a1 + 4), 3, a2[3]);
if ( !result )
{
result = sub_AB218(*(_DWORD *)(a1 + 4), 4, a2[4]);
if ( !result )
{
result = sub_AB218(*(_DWORD *)(a1 + 4), 5, a2[5]);
if ( !result )
{
result = sub_AB218(*(_DWORD *)(a1 + 4), 6, a2[6]);
if ( !result )
{
result = sub_AB218(*(_DWORD *)(a1 + 4), 7, a2[7]);
if ( !result )
{
result = sub_AB218(*(_DWORD *)(a1 + 4), 8, a2[8]);
if ( !result )
{
result = sub_AB218(*(_DWORD *)(a1 + 4), 9, a2[9]);
if ( !result )
{
result = sub_AB218(*(_DWORD *)(a1 + 4), 10, a2[10]);
if ( !result )
{
result = sub_AB218(*(_DWORD *)(a1 + 4), 11, a2[11]);
if ( !result )
return 0;
}
}
}
}
}
}
}
}
}
}
}
}
return result;
}