//
// tinyxml2::XMLNode::DeleteChildren from 0xb24514 to 0xb24584 (112 bytes)
//
// 6 xrefs:
// > tinyxml2::XMLNode::~XMLNode @ 0xb245a4
// > tinyxml2::XMLDocument::~XMLDocument @ 0xb2479c
// > tinyxml2::XMLDocument::LoadFile @ 0xb27588
// > tinyxml2::XMLDocument::LoadFile @ 0xb276b4
// > tinyxml2::XMLDocument::Parse @ 0xb27744
// > ??> @ 0x74838
//
// 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
//
tinyxml2::XMLNode **__fastcall tinyxml2::XMLNode::DeleteChildren(tinyxml2::XMLNode **this)
{
tinyxml2::XMLNode *v1; // x19
tinyxml2::XMLNode *i; // x21
__int64 v3; // x20
v1 = *(this + 6);
for ( i = (tinyxml2::XMLNode *)this; v1; v1 = *((tinyxml2::XMLNode **)i + 6) )
{
tinyxml2::XMLNode::Unlink(i, v1);
v3 = *((_QWORD *)v1 + 10);
(*(void (__fastcall **)(tinyxml2::XMLNode *))(*(_QWORD *)v1 + 128LL))(v1);
this = (tinyxml2::XMLNode **)(*(__int64 (__fastcall **)(__int64, tinyxml2::XMLNode *))(*(_QWORD *)v3 + 32LL))(
v3,
v1);
}
*((_QWORD *)i + 7) = 0;
*((_QWORD *)i + 6) = 0;
return this;
}