//
// tinyxml2::XMLElement::~XMLElement from 0x1800978f0 to 0x18009795f (111 bytes)
//
// 4 xrefs:
// > sub_180097FD0 @ 0x18009802b
// > sub_180097FD0 @ 0x180097fec
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b6ab0
//
// 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
//
void __fastcall tinyxml2::XMLElement::~XMLElement(tinyxml2::XMLElement *this)
{
__int64 v2; // rcx
__int64 v3; // rdi
__int64 v4; // rbx
*(_QWORD *)this = &tinyxml2::XMLElement::`vftable';
v2 = *((_QWORD *)this + 12);
if ( v2 )
{
do
{
v3 = *(_QWORD *)(v2 + 56);
v4 = *(_QWORD *)(v2 + 64);
(**(void (__fastcall ***)(__int64, _QWORD))v2)(v2, 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 24LL))(v4, *((_QWORD *)this + 12));
*((_QWORD *)this + 12) = v3;
v2 = v3;
}
while ( v3 );
}
tinyxml2::XMLNode::~XMLNode(this);
}