//
// tinyxml2::XMLText::ParseDeep from 0x18009e800 to 0x18009e96d (365 bytes)
//
// 6 xrefs:
// > ??> @ 0x18010ae00
// > ??> @ 0x180147bac
// > ??> @ 0x180147bbc
// > ??> @ 0x180147bd0
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c1224
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:22:12 +0000
//
char *__fastcall tinyxml2::XMLText::ParseDeep(tinyxml2::XMLText *this, char *a2, struct tinyxml2::StrPair *a3)
{
char v5; // al
char *v6; // rbx
char *result; // rax
__int64 v8; // rcx
void **v9; // rdi
__int64 v10; // rax
__int64 v11; // rsi
char v12; // cl
int v13; // r14d
char v14; // al
char *v15; // rdi
__int64 v16; // rax
if ( *((_BYTE *)this + 88) )
{
v5 = *a2;
v6 = a2;
if ( !*a2 )
{
LABEL_6:
result = nullptr;
LABEL_7:
v8 = *((_QWORD *)this + 1);
*(_DWORD *)(v8 + 92) = 11;
*(_QWORD *)(v8 + 104) = a2;
*(_QWORD *)(v8 + 112) = 0;
return result;
}
while ( v5 != 93 || strncmp(v6, "]]>", 3u) )
{
v5 = *++v6;
if ( !v5 )
goto LABEL_6;
}
v9 = (void **)((char *)this + 32);
if ( (*((_DWORD *)this + 6) & 0x200) != 0 )
j_j_free_0(*v9);
*v9 = a2;
result = v6 + 3;
*((_QWORD *)this + 5) = v6;
*((_DWORD *)this + 6) = 258;
if ( v6 == (char *)-3LL )
goto LABEL_7;
}
else
{
v10 = *((_QWORD *)this + 1);
v11 = 0;
v12 = *(_BYTE *)(v10 + 89);
v13 = (v12 != 0) + 2;
if ( *(_DWORD *)(v10 + 96) == 1 )
v13 = (v12 != 0) + 6;
v14 = *a2;
v15 = a2;
if ( !*a2 )
goto LABEL_18;
while ( v14 != asc_1800F12DC[0] || strncmp(v15, "<", 1u) )
{
v14 = *++v15;
if ( !v14 )
goto LABEL_18;
}
tinyxml2::StrPair::Set((tinyxml2::XMLText *)((char *)this + 24), a2, v15, v13);
if ( v15 == (char *)-1LL )
{
LABEL_18:
v16 = *((_QWORD *)this + 1);
*(_DWORD *)(v16 + 92) = 10;
*(_QWORD *)(v16 + 104) = a2;
*(_QWORD *)(v16 + 112) = 0;
return nullptr;
}
else
{
if ( v15[1] )
return v15;
return (char *)v11;
}
}
return result;
}