//
// sub_600498 from 0x600498 to 0x6004d8 (64 bytes)
//
// 3 xrefs:
// > sub_600498 @ 0x6004b4
// > sub_600498 @ 0x6004be
// > sub_60A278 @ 0x60a64a
//
// 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_600498(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_600498)()) != 0 )
{
for ( i = *((_DWORD *)a1 + 2); i; i = *(_DWORD *)(i + 12) )
{
result = sub_600498(i);
if ( !result )
return result;
}
return 1;
}
return result;
}