//
// tinyxml2::XMLNode::DeleteChildren from 0x5edc5a to 0x5edc84 (42 bytes)
//
// 5 xrefs:
// > tinyxml2::XMLNode::~XMLNode @ 0x5edc92
// > tinyxml2::XMLDocument::~XMLDocument @ 0x5eddde
// > tinyxml2::XMLDocument::LoadFile @ 0x5ee9ce
// > tinyxml2::XMLDocument::LoadFile @ 0x5eea52
// > tinyxml2::XMLDocument::Parse @ 0x5eea94
//
// 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
//
int __fastcall tinyxml2::XMLNode::DeleteChildren(int this)
{
int v1; // r5
_DWORD *v2; // r4
int v3; // r6
v1 = this;
while ( 1 )
{
v2 = *(_DWORD **)(v1 + 24);
if ( !v2 )
break;
tinyxml2::XMLNode::Unlink(v1, *(tinyxml2::XMLNode **)(v1 + 24));
v3 = v2[10];
(*(void (__fastcall **)(_DWORD *))(*v2 + 64))(v2);
this = (*(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v3 + 16))(v3, v2);
}
*(_DWORD *)(v1 + 28) = 0;
return this;
}