//
// pugi::xml_node::append_child from 0x812d48 to 0x812da4 (92 bytes)
//
// 22 xrefs:
// > DS_Dictionary::setBoolForKey @ 0x80b524
// > DS_Dictionary::setStringForKey @ 0x80b660
// > DS_Dictionary::setStringForKey @ 0x80b690
// > DS_Dictionary::setStringArrayForKey @ 0x80b7b6
// > DS_Dictionary::setStringArrayForKey @ 0x80b81e
// > DS_Dictionary::setSubDictForKey @ 0x80d2fa
// > DS_Dictionary::setFloatForKey @ 0x80db4c
// > DS_Dictionary::setFloatForKey @ 0x80db7e
// > DS_Dictionary::setIntegerForKey @ 0x80de00
// > DS_Dictionary::setIntegerForKey @ 0x80de32
// > DS_Dictionary::setVec2ForKey @ 0x80ece8
// > DS_Dictionary::setVec2ForKey @ 0x80ed1c
// > DS_Dictionary::setRectForKey @ 0x80ef44
// > DS_Dictionary::setRectForKey @ 0x80ef78
// > DS_Dictionary::setVec2ArrayForKey @ 0x80f0d6
// > DS_Dictionary::setVec2ArrayForKey @ 0x80f1fc
// > DS_Dictionary::setRectArrayForKey @ 0x80f368
// > DS_Dictionary::setRectArrayForKey @ 0x80f4b6
// > sub_812DAC @ 0x812e52
// > pugi::xml_node::append_child @ 0x8130e0
// > pugi::xml_node::append_copy @ 0x8131ca
// > pugi::xml_text::_data_new @ 0x81389e
//
// 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:39 +0000
//
int __fastcall pugi::xml_node::append_child(pugi::xml_node *a1, unsigned int a2, int a3)
{
_DWORD *v5; // r0
char *v6; // r0
_DWORD v8[3]; // [sp+0h] [bp-Ch] BYREF
v8[0] = a1;
v8[1] = a2;
v8[2] = a3;
v5 = pugi::xml_node::type(a1);
if ( sub_810A7C((_BOOL4)v5, a2) )
{
v6 = sub_811914(*(_DWORD *)a1, *(int **)(**(_DWORD **)a1 & 0xFFFFFFE0), a2);
pugi::xml_node::xml_node(v8, (int)v6);
if ( a2 == 7 )
pugi::xml_node::set_name((pugi::xml_node *)v8, "xml");
}
else
{
pugi::xml_node::xml_node(v8);
}
return v8[0];
}