//
// sub_1005FEAC8 from 0x1005feac8 to 0x1005feb38 (112 bytes)
//
// 0 xrefs:
//
// 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:09:56 +0000
//
__int64 __fastcall sub_1005FEAC8(_BYTE *a1, int a2)
{
_BYTE *v2; // x19
_BYTE *v3; // x20
unsigned int v4; // w0
__int64 result; // x0
v2 = a1;
if ( a2 == -1 )
{
while ( *v2 )
{
result = sub_1005FEB38(v2);
v2 += (unsigned int)result;
if ( !(_DWORD)result )
return result;
}
return 1;
}
else
{
v3 = &a1[a2];
while ( v2 < v3 )
{
v4 = sub_1005FEB38(v2);
v2 += v4;
if ( !v4 )
return 0;
}
return v2 == v3;
}
}