//
// tinyxml2::XMLNode::DeleteChildren from 0x7f8ca8 to 0x7f8cd2 (42 bytes)
//
// 5 xrefs:
// > tinyxml2::XMLNode::~XMLNode @ 0x7f8ce2
// > tinyxml2::XMLDocument::~XMLDocument @ 0x7f8e2e
// > tinyxml2::XMLDocument::LoadFile @ 0x7f9a26
// > tinyxml2::XMLDocument::LoadFile @ 0x7f9aaa
// > tinyxml2::XMLDocument::Parse @ 0x7f9aec
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:12 +0000
//
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;
}