//
// pugi::xml_node::attribute from 0xb51ba8 to 0xb51c44 (156 bytes)
//
// 4 xrefs:
// > DS_Dictionary::checkCompatibility @ 0xb41b6c
// > pugi::xml_node::remove_attribute @ 0xb558d0
// > sub_B604E0 @ 0xb60648
// > ??> @ 0x68d18
//
// 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, const char *a2)
{
pugi::xml_node_struct *root; // x0
__int64 v4; // x19
const char *v5; // x1
pugi::xml_attribute v7; // [xsp+30h] [xbp+30h] BYREF
root = this->_root;
if ( root && (v4 = *((_QWORD *)root + 7)) != 0 )
{
while ( 1 )
{
v5 = *(const char **)(v4 + 8);
if ( v5 )
{
if ( !strcmp(a2, v5) )
break;
}
v4 = *(_QWORD *)(v4 + 32);
if ( !v4 )
goto LABEL_8;
}
pugi::xml_attribute::xml_attribute(&v7, v4);
return v7._attr;
}
else
{
LABEL_8:
pugi::xml_attribute::xml_attribute(&v7);
return v7._attr;
}
}