//
// sub_1003AF5B8 from 0x1003af5b8 to 0x1003af690 (216 bytes)
//
// 2 xrefs:
// > sub_1003AF408 @ 0x1003af484
// > sub_1003AF5B8 @ 0x1003af64c
//
// 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
//
__int64 __fastcall sub_1003AF5B8(__int64 a1, _BYTE *a2)
{
char *v2; // x8
char i; // w9
__int64 result; // x0
if ( *a2 != 60 || (v2 = a2 + 1, a2[1] != 33) || a2[2] != 91 )
sub_10062F7FC();
for ( i = 33; i == 60; i = *v2 )
{
if ( v2[1] != 33 || v2[2] != 91 )
goto LABEL_16;
result = sub_1003AF5B8(a1);
v2 = (char *)result;
if ( !result )
return result;
LABEL_17:
;
}
if ( i != 93 )
{
if ( !i )
{
*(_QWORD *)(a1 + 16) = v2;
*(_DWORD *)(a1 + 24) = 9;
return 0;
}
goto LABEL_16;
}
if ( v2[1] != 93 || v2[2] != 62 )
{
LABEL_16:
++v2;
goto LABEL_17;
}
return (__int64)(v2 + 3);
}