//
// sub_5FFFA6 from 0x5fffa6 to 0x5fffea (68 bytes)
//
// 2 xrefs:
// > sub_5FFFA6 @ 0x5fffc2
// > sub_5FFFEA @ 0x600010
//
// 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_5FFFA6(int a1, unsigned __int8 *a2)
{
int result; // r0
LABEL_1:
++a2;
while ( 1 )
{
result = *a2;
if ( !*a2 )
break;
if ( result != 60 )
{
if ( result == 93 && a2[1] == 93 && a2[2] == 62 )
return (int)(a2 + 3);
goto LABEL_1;
}
if ( a2[1] != 33 || a2[2] != 91 )
goto LABEL_1;
result = sub_5FFFA6(a1);
a2 = (unsigned __int8 *)result;
if ( !result )
return result;
}
*(_DWORD *)(a1 + 8) = a2;
*(_DWORD *)(a1 + 12) = 9;
return result;
}