//
// tinyxml2::XMLNode::InsertAfterChild from 0x7f8ef0 to 0x7f8f26 (54 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::InsertAfterChild(
tinyxml2::XMLNode *this,
tinyxml2::XMLNode *a2,
tinyxml2::XMLNode *a3)
{
tinyxml2::XMLNode *v4; // r3
int v6; // r0
v4 = *((tinyxml2::XMLNode **)a2 + 2);
if ( v4 != this )
return nullptr;
if ( !*((_DWORD *)a2 + 9) )
return tinyxml2::XMLNode::InsertEndChild(this, a3);
*((_DWORD *)a3 + 8) = a2;
*((_DWORD *)a3 + 9) = *((_DWORD *)a2 + 9);
*(_DWORD *)(*((_DWORD *)a2 + 9) + 32) = a3;
*((_DWORD *)a2 + 9) = a3;
v6 = *((_DWORD *)a3 + 10);
*((_DWORD *)a3 + 2) = v4;
(*(void (__fastcall **)(int))(*(_DWORD *)v6 + 20))(v6);
return a3;
}