//
// sub_10064AA50 from 0x10064aa50 to 0x10064ab0a (186 bytes)
//
// 2 xrefs:
// > sub_10064A860 @ 0x10064a916
// > sub_10064AA50 @ 0x10064aad2
//
// 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
//
char *__fastcall sub_10064AA50(__int64 a1, _BYTE *a2, __int64 a3)
{
char *v3; // rax
char v4; // cl
__int64 v5; // r14
if ( *a2 != 60 || a2[1] != 33 || a2[2] != 91 )
sub_1007CE400();
v3 = a2 + 1;
v4 = 33;
v5 = 0;
LABEL_7:
while ( v4 == 93 )
{
if ( v3[1] == 93 && v3[2] == 62 )
return v3 + 3;
LABEL_6:
while ( 1 )
{
v4 = *++v3;
if ( *v3 != 60 )
break;
while ( v3[1] == 33 && v3[2] == 91 )
{
v3 = (char *)sub_10064AA50(a1, v3, a3);
if ( !v3 )
return (char *)v5;
v4 = *v3;
if ( *v3 != 60 )
goto LABEL_7;
}
}
}
if ( v4 )
goto LABEL_6;
*(_QWORD *)(a1 + 16) = v3;
*(_DWORD *)(a1 + 24) = 9;
return nullptr;
}