//
// tinyxml2::XMLDeclaration::ParseDeep from 0x18009a750 to 0x18009a7ff (175 bytes)
//
// 3 xrefs:
// > ??> @ 0x1801048a0
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b6f78
//
// 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::XMLDeclaration::ParseDeep(
tinyxml2::XMLDeclaration *this,
char *a2,
struct tinyxml2::StrPair *a3)
{
char v3; // al
const char *v6; // rbx
const char *v7; // rbx
__int64 v8; // rax
v3 = *a2;
v6 = a2;
if ( !*a2 )
{
LABEL_5:
v7 = nullptr;
LABEL_6:
v8 = *((_QWORD *)this + 1);
*(_DWORD *)(v8 + 92) = 13;
*(_QWORD *)(v8 + 104) = a2;
*(_QWORD *)(v8 + 112) = 0;
return (char *)v7;
}
while ( v3 != 63 || strncmp(v6, "?>", 2u) )
{
v3 = *++v6;
if ( !v3 )
goto LABEL_5;
}
if ( (*((_DWORD *)this + 6) & 0x200) != 0 )
j_j_free_0(*((void **)this + 4));
*((_QWORD *)this + 5) = v6;
*((_QWORD *)this + 4) = a2;
*((_DWORD *)this + 6) = 258;
v7 = v6 + 2;
if ( !v7 )
goto LABEL_6;
return (char *)v7;
}