//
// pugi::xml_attribute::previous_attribute from 0xb51204 to 0xb51270 (108 bytes)
//
// 2 xrefs:
// > pugi::xml_attribute_iterator::operator-- @ 0xb57c54
// > ??> @ 0xbab70
//
// 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_attribute::previous_attribute(pugi::xml_attribute *this)
{
pugi::xml_attribute_struct *attr; // x0
__int64 v2; // x1
pugi::xml_attribute v4; // [xsp+20h] [xbp+20h] BYREF
attr = this->_attr;
if ( attr && (v2 = *((_QWORD *)attr + 3), *(_QWORD *)(v2 + 32)) )
pugi::xml_attribute::xml_attribute(&v4, v2);
else
pugi::xml_attribute::xml_attribute(&v4);
return v4._attr;
}