//
// tinyxml2::XMLNode::InsertFirstChild from 0x7f8ec4 to 0x7f8ef0 (44 bytes)
//
// 0 xrefs:
//
// 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
//
tinyxml2::XMLNode *__fastcall tinyxml2::XMLNode::InsertFirstChild(tinyxml2::XMLNode *this, tinyxml2::XMLNode *a2)
{
int v3; // r3
v3 = *((_DWORD *)this + 6);
if ( v3 )
{
*(_DWORD *)(v3 + 32) = a2;
*((_DWORD *)a2 + 9) = *((_DWORD *)this + 6);
*((_DWORD *)this + 6) = a2;
*((_DWORD *)a2 + 8) = 0;
}
else
{
*((_DWORD *)this + 7) = a2;
*((_DWORD *)this + 6) = a2;
*((_DWORD *)a2 + 8) = 0;
*((_DWORD *)a2 + 9) = 0;
}
*((_DWORD *)a2 + 2) = this;
(*(void (__fastcall **)(_DWORD))(**((_DWORD **)a2 + 10) + 20))(*((_DWORD *)a2 + 10));
return a2;
}