//
// sub_6010F8 from 0x6010f8 to 0x60116a (114 bytes)
//
// 1 xrefs:
// > sub_6049F4 @ 0x6054a2
//
// 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 __int8 *__fastcall sub_6010F8(unsigned __int8 *a1, int a2, int a3, int a4)
{
int v5; // r5
_DWORD v7[3]; // [sp+4h] [bp-Ch] BYREF
v7[2] = a4;
v7[0] = 0;
v7[1] = 0;
while ( 1 )
{
while ( 1 )
{
v5 = *a1;
if ( (a7[v5] & 1) == 0 )
goto LABEL_3;
if ( v5 == 60 )
{
*(_BYTE *)sub_6006C8((int)v7, (int)a1) = 0;
return a1 + 1;
}
if ( v5 != 38 )
break;
a1 = sub_600D80(a1, v7);
}
if ( !*a1 )
break;
LABEL_3:
++a1;
}
*(_BYTE *)sub_6006C8((int)v7, (int)a1) = 0;
return a1;
}