//
// tinyxml2::XMLElement::ParseDeep from 0x18009a800 to 0x18009a8a8 (168 bytes)
//
// 3 xrefs:
// > ??> @ 0x1801049d0
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b6f84
//
// 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::XMLElement::ParseDeep(tinyxml2::XMLElement *this, char *a2, struct tinyxml2::StrPair *a3)
{
char v3; // al
char *i; // rbx
char *v7; // rax
char *result; // rax
v3 = *a2;
for ( i = a2; v3 >= 0; v3 = *++i )
{
if ( !isspace((unsigned __int8)v3) )
break;
}
if ( *i == 47 )
{
*((_DWORD *)this + 22) = 2;
++i;
}
v7 = tinyxml2::StrPair::ParseName((tinyxml2::XMLElement *)((char *)this + 24), i);
if ( *((_QWORD *)this + 4) == *((_QWORD *)this + 5) )
return nullptr;
result = tinyxml2::XMLElement::ParseAttributes(this, v7);
if ( result && *result && !*((_DWORD *)this + 22) )
return tinyxml2::XMLNode::ParseDeep(this, result, a3);
return result;
}