//
// tinyxml2::XMLNode::DeleteChildren from 0x18009caa0 to 0x18009cb70 (208 bytes)
//
// 9 xrefs:
// > tinyxml2::XMLDocument::~XMLDocument @ 0x18009b1f3
// > tinyxml2::XMLNode::~XMLNode @ 0x18009b2cc
// > tinyxml2::XMLDocument::LoadFile @ 0x18009d7ca
// > tinyxml2::XMLDocument::LoadFile @ 0x18009d8f5
// > tinyxml2::XMLDocument::Parse @ 0x18009dedd
// > ??> @ 0x180147b04
// > ??> @ 0x180147b14
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c0fa8
//
// 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:12 +0000
//
void __fastcall tinyxml2::XMLNode::DeleteChildren(tinyxml2::XMLNode *this)
{
_QWORD *v1; // rbx
_QWORD *v3; // rax
__int64 v4; // rcx
__int64 v5; // rcx
__int64 v6; // rdi
v1 = *((_QWORD **)this + 6);
if ( v1 )
{
do
{
*((_QWORD *)this + 6) = v1[9];
v3 = *((_QWORD **)this + 7);
if ( v1 == v3 )
*((_QWORD *)this + 7) = v3[8];
v4 = v1[8];
if ( v4 )
*(_QWORD *)(v4 + 72) = v1[9];
v5 = v1[9];
if ( v5 )
*(_QWORD *)(v5 + 64) = v1[8];
v1[2] = 0;
v6 = v1[10];
(*(void (__fastcall **)(_QWORD *, _QWORD))(*v1 + 128LL))(v1, 0);
(*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v6 + 24LL))(v6, v1);
v1 = *((_QWORD **)this + 6);
}
while ( v1 );
*((_QWORD *)this + 7) = 0;
*((_QWORD *)this + 6) = 0;
}
else
{
*((_QWORD *)this + 7) = 0;
*((_QWORD *)this + 6) = 0;
}
}