//
// pugi::xml_node::attribute from 0x602a08 to 0x602a52 (74 bytes)
//
// 3 xrefs:
// > DS_Dictionary::checkCompatibility @ 0x5fc788
// > pugi::xml_node::remove_attribute @ 0x603c52
// > sub_608878 @ 0x608e0c
//
// 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::attribute(pugi::xml_node *this, pugi::xml_attribute_struct *a2)
{
int i; // r5
const char *v4; // r1
pugi::xml_attribute v6[2]; // [sp+0h] [bp-8h] BYREF
v6[0]._attr = (pugi::xml_attribute_struct *)this;
v6[1]._attr = a2;
if ( this->_root )
{
for ( i = *((_DWORD *)this->_root + 7); i; i = *(_DWORD *)(i + 16) )
{
v4 = *(const char **)(i + 4);
if ( v4 && sub_6006BA((const char *)a2, v4) )
{
pugi::xml_attribute::xml_attribute(v6, i);
return v6[0]._attr;
}
}
}
pugi::xml_attribute::xml_attribute(v6);
return v6[0]._attr;
}