//
// tinyxml2::XMLNode::InsertFirstChild from 0xd955ac to 0xd95610 (100 bytes)
//
// 1 xrefs:
// > ??> @ 0x78448
//
// 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::InsertFirstChild(tinyxml2::XMLNode *this, tinyxml2::XMLNode *a2)
{
__int64 v2; // x2
__int64 v3; // x2
v2 = *((_QWORD *)this + 6);
if ( v2 )
{
*(_QWORD *)(v2 + 64) = a2;
*((_QWORD *)a2 + 9) = *((_QWORD *)this + 6);
*((_QWORD *)this + 6) = a2;
*((_QWORD *)a2 + 8) = 0;
}
else
{
*((_QWORD *)this + 7) = a2;
*((_QWORD *)this + 6) = a2;
*((_QWORD *)a2 + 8) = 0;
*((_QWORD *)a2 + 9) = 0;
}
v3 = *((_QWORD *)a2 + 10);
*((_QWORD *)a2 + 2) = this;
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 40LL))(v3);
return a2;
}