//
// sub_6007DC from 0x6007dc to 0x600834 (88 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
//
int __fastcall sub_6007DC(unsigned __int8 *a1, int a2, int a3, int a4)
{
int v4; // r4
int v5; // r5
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] & 1) == 0 );
if ( v5 == 60 )
{
*(_BYTE *)sub_6006C8((int)v8, v4) = 0;
return v4 + 1;
}
}
while ( v5 );
*(_BYTE *)sub_6006C8((int)v8, v4) = 0;
return v4;
}