//
// sub_6009C0 from 0x6009c0 to 0x600a3e (126 bytes)
//
// 1 xrefs:
// > sub_6049F4 @ 0x605192
//
// 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
//
char *__fastcall sub_6009C0(_BYTE *a1, char *a2)
{
_BYTE *v3; // r1
char *result; // r0
_BYTE *v5; // [sp+4h] [bp-14h] BYREF
_DWORD v6[2]; // [sp+Ch] [bp-Ch] BYREF
v5 = a1;
v6[0] = 0;
v6[1] = 0;
while ( 1 )
{
v3 = v5;
result = (char *)(unsigned __int8)*v5;
if ( (a7[(_DWORD)result] & 2) == 0 )
goto LABEL_3;
if ( result == a2 )
break;
if ( result == &byte_9[4] )
{
++v5;
*v3 = 10;
if ( *v5 == 10 )
sub_60083C(v6, &v5, 1);
}
else
{
if ( !*v5 )
return result;
LABEL_3:
++v5;
}
}
*(_BYTE *)sub_6006C8((int)v6, (int)v5) = 0;
return v5 + 1;
}