//
// tinyxml2::XMLNode::Unlink from 0x7f8c7e to 0x7f8ca8 (42 bytes)
//
// 2 xrefs:
// > tinyxml2::XMLNode::DeleteChildren @ 0x7f8cb4
// > tinyxml2::XMLNode::~XMLNode @ 0x7f8cec
//
// 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::Unlink(int this, tinyxml2::XMLNode *a2)
{
int v2; // r3
int v3; // r3
if ( a2 == *(tinyxml2::XMLNode **)(this + 24) )
*(_DWORD *)(this + 24) = *((_DWORD *)a2 + 9);
if ( a2 == *(tinyxml2::XMLNode **)(this + 28) )
*(_DWORD *)(this + 28) = *((_DWORD *)a2 + 8);
v2 = *((_DWORD *)a2 + 8);
if ( v2 )
*(_DWORD *)(v2 + 36) = *((_DWORD *)a2 + 9);
v3 = *((_DWORD *)a2 + 9);
if ( v3 )
*(_DWORD *)(v3 + 32) = *((_DWORD *)a2 + 8);
*((_DWORD *)a2 + 2) = 0;
return this;
}