//
// sub_1003AEC80 from 0x1003aec80 to 0x1003aece4 (100 bytes)
//
// 1 xrefs:
// > ??> @ 0x10080e080
//
// 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
//
unsigned __int64 __fastcall sub_1003AEC80(unsigned __int8 *a1)
{
unsigned __int64 v1; // x1
int v2; // w9
int v3; // t1
unsigned __int64 v4; // x19
char *v6[2]; // [xsp+0h] [xbp-20h] BYREF
v6[0] = nullptr;
v6[1] = nullptr;
while ( 1 )
{
do
{
v1 = (unsigned __int64)a1;
v3 = *a1++;
v2 = v3;
}
while ( (byte_100645E7D[v3] & 1) == 0 );
if ( v2 == 60 )
break;
if ( !v2 )
{
v4 = v1;
goto LABEL_7;
}
}
v4 = v1 + 1;
LABEL_7:
*(_BYTE *)sub_1003AE928(v6, v1) = 0;
return v4;
}