//
// sub_993C70 from 0x993c70 to 0x993cba (74 bytes)
//
// 4 xrefs:
// > sub_994BB8 @ 0x994ee2
// > sub_994BB8 @ 0x994f08
// > sub_994BB8 @ 0x994f6e
// > sub_994BB8 @ 0x994fba
//
// 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 12:06:37 +0000
//
int __fastcall sub_993C70(int a1, int a2)
{
int v2; // r3
int v3; // r2
int v4; // r1
unsigned int v5; // r1
_DWORD *i; // r0
v2 = *(_DWORD *)(a1 + 16);
v3 = a2 >> 5;
if ( a2 >> 5 <= v2 )
{
if ( a2 >> 5 < v2 && (v4 = a2 & 0x1F) != 0 )
{
v2 = v3;
if ( *(_DWORD *)(a1 + 4 * v3 + 20) >> v4 << v4 != *(_DWORD *)(a1 + 4 * v3 + 20) )
return 1;
}
else
{
v2 = v3;
}
}
v5 = a1 + 20;
for ( i = (_DWORD *)(a1 + 4 * v2 + 16); (unsigned int)(i + 1) > v5; --i )
{
if ( *i )
return 1;
}
return 0;
}