//
// sub_80FAC0 from 0x80fac0 to 0x80fb00 (64 bytes)
//
// 3 xrefs:
// > sub_80FAC0 @ 0x80fadc
// > sub_80FAC0 @ 0x80fae6
// > sub_819400 @ 0x8197d2
//
// 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:01:36 +0000
//
int __fastcall sub_80FAC0(unsigned __int8 *a1)
{
unsigned int v2; // r3
bool v3; // cc
int result; // r0
int i; // r4
v2 = *a1;
if ( v2 == 23 )
return 0;
if ( v2 > 0x17 )
v3 = v2 - 57 > 1;
else
v3 = v2 - 16 > 5;
if ( !v3 )
return 1;
if ( !*((_DWORD *)a1 + 1) || (result = ((int (*)(void))sub_80FAC0)()) != 0 )
{
for ( i = *((_DWORD *)a1 + 2); i; i = *(_DWORD *)(i + 12) )
{
result = sub_80FAC0(i);
if ( !result )
return result;
}
return 1;
}
return result;
}