//
// tinyxml2::XMLNode::Unlink from 0x18009d290 to 0x18009d2dd (77 bytes)
//
// 1 xrefs:
// > ??> @ 0x1801438a8
//
// 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
//
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;
}