//
// tinyxml2::XMLNode::DeleteChildren from 0x180098e50 to 0x180098f1b (203 bytes)
//
// 9 xrefs:
// > tinyxml2::XMLDocument::~XMLDocument @ 0x1800978a3
// > tinyxml2::XMLNode::~XMLNode @ 0x18009797c
// > tinyxml2::XMLDocument::LoadFile @ 0x180099b6a
// > tinyxml2::XMLDocument::LoadFile @ 0x180099c95
// > tinyxml2::XMLDocument::Parse @ 0x18009a28d
// > ??> @ 0x18013e888
// > ??> @ 0x18013e898
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b6d50
//
// 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::XMLNode::DeleteChildren(tinyxml2::XMLNode *this)
{
__int64 *v1; // rbx
__int64 *v3; // rax
__int64 v4; // rcx
__int64 v5; // rcx
__int64 v6; // rax
__int64 v7; // rdi
v1 = *((__int64 **)this + 6);
if ( v1 )
{
do
{
*((_QWORD *)this + 6) = v1[9];
v3 = *((__int64 **)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];
v6 = *v1;
v7 = v1[10];
v1[2] = 0;
(*(void (__fastcall **)(__int64 *, _QWORD))(v6 + 128))(v1, 0);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v7 + 24LL))(v7, v1);
v1 = *((__int64 **)this + 6);
}
while ( v1 );
*((_QWORD *)this + 7) = 0;
*((_QWORD *)this + 6) = 0;
}
else
{
*((_QWORD *)this + 7) = 0;
*((_QWORD *)this + 6) = 0;
}
}