//
// tinyxml2::XMLText::ParseDeep from 0xb27350 to 0xb27420 (208 bytes)
//
// 2 xrefs:
// > ??> @ 0x564c0
// > ??> @ 0x1219588
//
// 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, tinyxml2::StrPair *a3)
{
__int64 v5; // x3
tinyxml2::StrPair *v6; // x0
int v7; // w4
int v8; // w3
char *v9; // x0
char *v10; // x19
if ( *((_BYTE *)this + 88) )
{
v10 = tinyxml2::StrPair::ParseText((tinyxml2::XMLText *)((char *)this + 24), a2, "]]>", 2);
if ( !v10 )
tinyxml2::XMLDocument::SetError(*((_QWORD *)this + 1), 11, (__int64)a2, 0);
}
else
{
v5 = *((_QWORD *)this + 1);
v6 = (tinyxml2::XMLText *)((char *)this + 24);
v7 = *(_DWORD *)(v5 + 96);
if ( *(_BYTE *)(v5 + 89) )
v8 = 3;
else
v8 = 2;
if ( v7 == 1 )
v8 |= 4u;
v9 = tinyxml2::StrPair::ParseText(v6, a2, "<", v8);
if ( v9 )
{
v10 = v9 - 1;
if ( !*v9 )
return nullptr;
}
else
{
v10 = nullptr;
tinyxml2::XMLDocument::SetError(*((_QWORD *)this + 1), 10, (__int64)a2, 0);
}
}
return v10;
}