//
// tinyxml2::XMLNode::InsertAfterChild from 0xd95610 to 0xd95694 (132 bytes)
//
// 1 xrefs:
// > ??> @ 0x6c898
//
// This function is hookable on this platform (idp: arm, 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 13:08:21 +0000
//
tinyxml2::XMLNode *__fastcall tinyxml2::XMLNode::InsertAfterChild(
tinyxml2::XMLNode *this,
tinyxml2::XMLNode *a2,
tinyxml2::XMLNode *a3)
{
tinyxml2::XMLNode *v3; // x3
v3 = *((tinyxml2::XMLNode **)a2 + 2);
if ( v3 != this )
return nullptr;
if ( !*((_QWORD *)a2 + 9) )
return tinyxml2::XMLNode::InsertEndChild(this, a3);
*((_QWORD *)a3 + 8) = a2;
*((_QWORD *)a3 + 9) = *((_QWORD *)a2 + 9);
*(_QWORD *)(*((_QWORD *)a2 + 9) + 64LL) = a3;
*((_QWORD *)a2 + 9) = a3;
*((_QWORD *)a3 + 2) = v3;
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)a3 + 10) + 40LL))(*((_QWORD *)a3 + 10));
return a3;
}