//
// sub_601F00 from 0x601f00 to 0x601f6e (110 bytes)
//
// 2 xrefs:
// > sub_602E4C @ 0x603040
// > sub_602E4C @ 0x6030e4
//
// 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_601F00(int a1, unsigned __int8 *a2)
{
unsigned __int8 *v4; // r3
int v5; // r2
unsigned __int8 *v6; // r4
int result; // r0
while ( 1 )
{
sub_6019D6(a1, 60, 33, 91, 67, 68);
sub_601A16(a1, 65, 84, 65, 91);
v4 = a2;
while ( 1 )
{
v5 = *v4;
v6 = v4++;
if ( !v5 )
break;
if ( v5 == 93 && *v4 == 93 && v4[1] == 62 )
{
v6 += 2;
break;
}
}
sub_601D70(a1, a2, v6 - a2);
result = sub_60197A(a1, 93, 93, 62);
if ( !*v6 )
return result;
a2 = v6;
}
}