//
// sub_600FD4 from 0x600fd4 to 0x60103c (104 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
//
unsigned __int8 *__fastcall sub_600FD4(unsigned __int8 *a1, unsigned __int8 *a2, int a3, int a4)
{
unsigned __int8 *result; // r0
_DWORD v7[3]; // [sp+4h] [bp-Ch] BYREF
v7[2] = a4;
v7[0] = 0;
v7[1] = 0;
while ( 1 )
{
result = (unsigned __int8 *)*a1;
if ( (a7[(_DWORD)result] & 2) == 0 )
goto LABEL_3;
if ( result == a2 )
break;
if ( result == (_BYTE *)&dword_24 + 2 )
{
a1 = sub_600D80(a1, v7);
}
else
{
if ( !*a1 )
return result;
LABEL_3:
++a1;
}
}
*(_BYTE *)sub_6006C8((int)v7, (int)a1) = 0;
return a1 + 1;
}