//
// pugi::xml_node::last_child from 0xb52528 to 0xb52594 (108 bytes)
//
// 7 xrefs:
// > sub_B52594 @ 0xb52c14
// > pugi::xml_node_iterator::operator-- @ 0xb579d0
// > pugi::xml_named_node_iterator::operator-- @ 0xb57f18
// > sub_B5BB90 @ 0xb5bc38
// > sub_B5BB90 @ 0xb5bc50
// > sub_B5BB90 @ 0xb5bc5c
// > ??> @ 0x8ed70
//
// 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 *root; // x0
__int64 v2; // x0
pugi::xml_node v4; // [xsp+20h] [xbp+20h] BYREF
root = this->_root;
if ( root && (v2 = *((_QWORD *)root + 4)) != 0 )
pugi::xml_node::xml_node(&v4, *(_QWORD *)(v2 + 40));
else
pugi::xml_node::xml_node(&v4);
return v4._root;
}