//
// pugi::xml_attribute::previous_attribute from 0x602518 to 0x60254e (54 bytes)
//
// 1 xrefs:
// > pugi::xml_attribute_iterator::operator-- @ 0x60484a
//
// 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 *a2)
{
int v2; // r1
pugi::xml_attribute v4[2]; // [sp+0h] [bp-8h] BYREF
v4[0]._attr = (pugi::xml_attribute_struct *)this;
v4[1]._attr = a2;
if ( this->_attr && (v2 = *((_DWORD *)this->_attr + 3), *(_DWORD *)(v2 + 16)) )
pugi::xml_attribute::xml_attribute(v4, v2);
else
pugi::xml_attribute::xml_attribute(v4);
return v4[0]._attr;
}