//
// pugi::xml_node::append_child from 0xdc88bc to 0xdc8994 (216 bytes)
//
// 23 xrefs:
// > DS_Dictionary::setBoolForKey @ 0xdb6bc8
// > DS_Dictionary::setStringForKey @ 0xdb6cf0
// > DS_Dictionary::setStringForKey @ 0xdb6d30
// > DS_Dictionary::setStringArrayForKey @ 0xdb6eac
// > DS_Dictionary::setStringArrayForKey @ 0xdb6f40
// > DS_Dictionary::setSubDictForKey @ 0xdbb1e4
// > DS_Dictionary::setFloatForKey @ 0xdbc010
// > DS_Dictionary::setFloatForKey @ 0xdbc054
// > DS_Dictionary::setIntegerForKey @ 0xdbc3b4
// > DS_Dictionary::setIntegerForKey @ 0xdbc3f8
// > DS_Dictionary::setVec2ForKey @ 0xdbce30
// > DS_Dictionary::setVec2ForKey @ 0xdbce74
// > DS_Dictionary::setRectForKey @ 0xdbd1f0
// > DS_Dictionary::setRectForKey @ 0xdbd234
// > DS_Dictionary::setVec2ArrayForKey @ 0xdbd470
// > DS_Dictionary::setVec2ArrayForKey @ 0xdbd6cc
// > DS_Dictionary::setRectArrayForKey @ 0xdbd8a8
// > DS_Dictionary::setRectArrayForKey @ 0xdbdb5c
// > sub_DC8994 @ 0xdc8b00
// > pugi::xml_node::append_child @ 0xdc908c
// > pugi::xml_node::append_copy @ 0xdc9224
// > pugi::xml_text::_data_new @ 0xdcaaa4
// > ??> @ 0x69a30
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:08:53 +0000
//
__int64 __fastcall pugi::xml_node::append_child(pugi::xml_node *a1, unsigned int a2)
{
int v4; // w0
_QWORD *v5; // x0
__int64 v7; // [xsp+30h] [xbp+30h] BYREF
v4 = pugi::xml_node::type(a1);
if ( (unsigned int)(v4 - 1) <= 1 && a2 > 1 && (v4 == 1 || a2 - 7 > 1) )
{
v5 = sub_DBF434(*(_QWORD *)a1, *(__int64 **)(**(_QWORD **)a1 & 0xFFFFFFFFFFFFFFE0LL), a2);
pugi::xml_node::xml_node(&v7, (__int64)v5);
if ( a2 == 7 )
pugi::xml_node::set_name((pugi::xml_node *)&v7, "xml");
return v7;
}
else
{
pugi::xml_node::xml_node(&v7);
return v7;
}
}