//
// sub_6006E8 from 0x6006e8 to 0x600736 (78 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
//
int __fastcall sub_6006E8(unsigned __int8 *a1, int a2, int a3, int a4)
{
int v4; // r5
int v5; // r3
int v6; // t1
_DWORD v8[3]; // [sp+4h] [bp-Ch] BYREF
v8[2] = a4;
v8[0] = 0;
v8[1] = 0;
do
{
do
{
v4 = (int)a1;
v6 = *a1++;
v5 = v6;
}
while ( (a7[v6] & 2) == 0 );
if ( v5 == a2 )
{
*(_BYTE *)sub_6006C8((int)v8, v4) = 0;
return v4 + 1;
}
}
while ( v5 );
return 0;
}