//
// pugi::xml_node::append_attribute from 0xb54380 to 0xb54434 (180 bytes)
//
// 6 xrefs:
// > DS_Dictionary::saveRootSubDictToString @ 0xb42670
// > DS_Dictionary::DS_Dictionary @ 0xb47a38
// > pugi::xml_node::append_copy @ 0xb548b4
// > sub_B54BF0 @ 0xb54cd8
// > sub_B54BF0 @ 0xb54db4
// > ??> @ 0x68838
//
// 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::append_attribute(pugi::xml_node *this, char *a2)
{
_QWORD *v5; // x0
pugi::xml_attribute v6; // [xsp+30h] [xbp+30h] BYREF
if ( (unsigned int)pugi::xml_node::type(this) == 2 || (unsigned int)pugi::xml_node::type(this) == 7 )
{
v5 = sub_B4BCE4((__int64 *)this->_root + 7, *(__int64 **)(*(_QWORD *)this->_root & 0xFFFFFFFFFFFFFFE0LL));
pugi::xml_attribute::xml_attribute(&v6, (__int64)v5);
pugi::xml_attribute::set_name(&v6, a2);
return v6._attr;
}
else
{
pugi::xml_attribute::xml_attribute(&v6);
return v6._attr;
}
}