//
// pugi::xml_node::last_attribute from 0x602d9c to 0x602dd2 (54 bytes)
//
// 1 xrefs:
// > pugi::xml_attribute_iterator::operator-- @ 0x604852
//
// 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_attribute_struct *__fastcall pugi::xml_node::last_attribute(
pugi::xml_node *this,
pugi::xml_attribute_struct *a2)
{
int v2; // r3
pugi::xml_attribute v4[2]; // [sp+0h] [bp-8h] BYREF
v4[0]._attr = (pugi::xml_attribute_struct *)this;
v4[1]._attr = a2;
if ( this->_root && (v2 = *((_DWORD *)this->_root + 7)) != 0 )
pugi::xml_attribute::xml_attribute(v4, *(_DWORD *)(v2 + 12));
else
pugi::xml_attribute::xml_attribute(v4);
return v4[0]._attr;
}