//
// tinyxml2::XMLNode::InsertAfterChild from 0x5ede9c to 0x5eded0 (52 bytes)
//
// 0 xrefs:
//
// 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
//
tinyxml2::XMLNode *__fastcall tinyxml2::XMLNode::InsertAfterChild(
tinyxml2::XMLNode *this,
tinyxml2::XMLNode *a2,
tinyxml2::XMLNode *a3)
{
tinyxml2::XMLNode *v3; // r3
int v5; // r2
int v7; // r0
int v8; // r2
v3 = *((tinyxml2::XMLNode **)a2 + 2);
if ( v3 != this )
return nullptr;
v5 = *((_DWORD *)a2 + 9);
if ( !v5 )
return tinyxml2::XMLNode::InsertEndChild(this, a3);
*((_DWORD *)a3 + 9) = v5;
v7 = *((_DWORD *)a3 + 10);
v8 = *((_DWORD *)a2 + 9);
*((_DWORD *)a3 + 8) = a2;
*(_DWORD *)(v8 + 32) = a3;
*((_DWORD *)a2 + 9) = a3;
*((_DWORD *)a3 + 2) = v3;
(*(void (__fastcall **)(int))(*(_DWORD *)v7 + 20))(v7);
return a3;
}