//
// pugi::xml_node::append_attribute from 0x6032dc to 0x60333c (96 bytes)
//
// 5 xrefs:
// > DS_Dictionary::saveRootSubDictToString @ 0x5fc9f8
// > DS_Dictionary::DS_Dictionary @ 0x5febb2
// > pugi::xml_node::append_copy @ 0x60353a
// > sub_6036D4 @ 0x603734
// > sub_6036D4 @ 0x6037e0
//
// 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,
pugi::xml_attribute_struct *a2,
pugi::xml_attribute_struct *a3)
{
unsigned int v5; // r2
_DWORD *v6; // r0
pugi::xml_attribute v8[3]; // [sp+0h] [bp-Ch] BYREF
v8[0]._attr = (pugi::xml_attribute_struct *)this;
v8[1]._attr = a2;
v8[2]._attr = a3;
if ( pugi::xml_node::type(this) == (pugi::xml_node_struct *)((char *)&dword_0 + 2)
|| pugi::xml_node::type(this) == (pugi::xml_node_struct *)&byte_7 )
{
v6 = sub_601C38((int *)this->_root + 7, *(unsigned int **)(*(_DWORD *)this->_root & 0xFFFFFFE0), v5);
pugi::xml_attribute::xml_attribute(v8, (int)v6);
pugi::xml_attribute::set_name(v8, (char *)a2);
}
else
{
pugi::xml_attribute::xml_attribute(v8);
}
return v8[0]._attr;
}