//
// pugi::xml_node::last_child from 0x602e10 to 0x602e46 (54 bytes)
//
// 5 xrefs:
// > sub_602E4C @ 0x602faa
// > pugi::xml_node_iterator::operator-- @ 0x604748
// > pugi::xml_named_node_iterator::operator-- @ 0x6049a4
// > sub_606A28 @ 0x606a8a
// > sub_606A28 @ 0x606a9c
//
// 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
//
pugi::xml_node_struct *__fastcall pugi::xml_node::last_child(pugi::xml_node *this, pugi::xml_node_struct *a2)
{
int v2; // r3
pugi::xml_node v4[2]; // [sp+0h] [bp-8h] BYREF
v4[0]._root = (pugi::xml_node_struct *)this;
v4[1]._root = a2;
if ( this->_root && (v2 = *((_DWORD *)this->_root + 4)) != 0 )
pugi::xml_node::xml_node(v4, *(_DWORD *)(v2 + 20));
else
pugi::xml_node::xml_node(v4);
return v4[0]._root;
}