//
// tinyxml2::XMLNode::Unlink from 0x1800a0f20 to 0x1800a0f6d (77 bytes)
//
// 1 xrefs:
// > ??> @ 0x18014cf68
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 11:22:13 +0000
//
void __fastcall tinyxml2::XMLNode::Unlink(tinyxml2::XMLNode *this, struct tinyxml2::XMLNode *a2)
{
struct tinyxml2::XMLNode *v2; // rax
struct tinyxml2::XMLNode *v3; // rax
__int64 v4; // rcx
__int64 v5; // rcx
v2 = *((struct tinyxml2::XMLNode **)this + 6);
if ( a2 == v2 )
*((_QWORD *)this + 6) = *((_QWORD *)v2 + 9);
v3 = *((struct tinyxml2::XMLNode **)this + 7);
if ( a2 == v3 )
*((_QWORD *)this + 7) = *((_QWORD *)v3 + 8);
v4 = *((_QWORD *)a2 + 8);
if ( v4 )
*(_QWORD *)(v4 + 72) = *((_QWORD *)a2 + 9);
v5 = *((_QWORD *)a2 + 9);
if ( v5 )
*(_QWORD *)(v5 + 64) = *((_QWORD *)a2 + 8);
*((_QWORD *)a2 + 2) = 0;
}