//
// pugi::xml_node::append_attribute from 0x8129a4 to 0x812a04 (96 bytes)
//
// 5 xrefs:
// > DS_Dictionary::saveRootSubDictToString @ 0x80acbc
// > DS_Dictionary::DS_Dictionary @ 0x80cbac
// > pugi::xml_node::append_copy @ 0x812c12
// > sub_812DAC @ 0x812e0c
// > sub_812DAC @ 0x812eb8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:01:38 +0000
//
int *__fastcall pugi::xml_node::append_attribute(pugi::xml_node *this, char *a2, int *a3)
{
int v5; // r2
char *v6; // r0
int *v8[3]; // [sp+0h] [bp-Ch] BYREF
v8[0] = (int *)this;
v8[1] = (int *)a2;
v8[2] = a3;
if ( pugi::xml_node::type(this) == (int *)((char *)&dword_0 + 2) || pugi::xml_node::type(this) == (_DWORD *)&byte_7 )
{
v6 = sub_8111E0((char **)(*(_DWORD *)this + 28), *(int **)(**(_DWORD **)this & 0xFFFFFFE0), v5);
pugi::xml_attribute::xml_attribute(v8, (int)v6);
pugi::xml_attribute::set_name(v8, a2);
}
else
{
pugi::xml_attribute::xml_attribute(v8);
}
return v8[0];
}