//
// tinyxml2::XMLElement::~XMLElement from 0x18009b240 to 0x18009b2af (111 bytes)
//
// 4 xrefs:
// > sub_18009B920 @ 0x18009b97b
// > sub_18009B920 @ 0x18009b93c
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c0d50
//
// 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:11 +0000
//
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);
}