//
// tinyxml2::XMLText::ParseDeep from 0x18009ab60 to 0x18009accd (365 bytes)
//
// 6 xrefs:
// > ??> @ 0x180104780
// > ??> @ 0x18013e944
// > ??> @ 0x18013e954
// > ??> @ 0x18013e96c
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b6f9c
//
// 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 tinyxml2::XMLText::ParseDeep(tinyxml2::XMLText *this, char *a2, struct tinyxml2::StrPair *a3)
{
__int64 v3; // rbp
char v6; // al
char *v7; // rbx
char *result; // rax
__int64 v9; // rcx
__int64 v10; // rax
char v11; // cl
int v12; // r14d
char v13; // al
char *v14; // rdi
__int64 v15; // rax
v3 = 0;
if ( *((_BYTE *)this + 88) )
{
v6 = *a2;
v7 = a2;
if ( !*a2 )
{
LABEL_6:
result = nullptr;
LABEL_7:
v9 = *((_QWORD *)this + 1);
*(_DWORD *)(v9 + 92) = 11;
*(_QWORD *)(v9 + 104) = a2;
*(_QWORD *)(v9 + 112) = 0;
return result;
}
while ( v6 != 93 || strncmp(v7, "]]>", 3u) )
{
v6 = *++v7;
if ( !v6 )
goto LABEL_6;
}
if ( (*((_DWORD *)this + 6) & 0x200) != 0 )
j_j_free_0(*((void **)this + 4));
result = v7 + 3;
*((_QWORD *)this + 4) = a2;
*((_QWORD *)this + 5) = v7;
*((_DWORD *)this + 6) = 258;
if ( v7 == (char *)-3LL )
goto LABEL_7;
}
else
{
v10 = *((_QWORD *)this + 1);
v11 = *(_BYTE *)(v10 + 89);
v12 = (v11 != 0) + 2;
if ( *(_DWORD *)(v10 + 96) == 1 )
v12 = (v11 != 0) + 6;
v13 = *a2;
v14 = a2;
if ( !*a2 )
goto LABEL_18;
while ( v13 != asc_1800EB23C[0] || strncmp(v14, "<", 1u) )
{
v13 = *++v14;
if ( !v13 )
goto LABEL_18;
}
tinyxml2::StrPair::Set((tinyxml2::XMLText *)((char *)this + 24), a2, v14, v12);
if ( v14 == (char *)-1LL )
{
LABEL_18:
v15 = *((_QWORD *)this + 1);
*(_DWORD *)(v15 + 92) = 10;
*(_QWORD *)(v15 + 104) = a2;
*(_QWORD *)(v15 + 112) = 0;
return nullptr;
}
else
{
if ( v14[1] )
return v14;
return (char *)v3;
}
}
return result;
}