//
// sub_100573AFC from 0x100573afc to 0x100573b64 (104 bytes)
//
// 2 xrefs:
// > sub_10054E5E4 @ 0x10054e624
// > sub_10054E6A0 @ 0x10054e8f4
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:08:19 +0000
//
bool __fastcall sub_100573AFC(__int64 a1, unsigned __int8 *a2)
{
unsigned __int64 v3; // x12
unsigned __int8 *v4; // x10
bool v5; // w11
int v6; // w13
if ( *(_BYTE *)(a1 + 720) )
return 0;
v3 = 0;
v4 = (unsigned __int8 *)(a1 + 725);
v5 = 1;
do
{
if ( *(v4 - 1) == *a2 )
{
v6 = *v4;
if ( v6 == 255 || v6 == a2[1] )
break;
}
v5 = v3 < 0x1F;
v4 += 16;
++v3;
}
while ( v3 != 32 );
return v5;
}