//
// pugi::xml_document::save_string from 0x81a9d4 to 0x81aa40 (108 bytes)
//
// 1 xrefs:
// > DS_Dictionary::saveRootSubDictToString @ 0x80acde
//
// 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:45 +0000
//
int *__fastcall pugi::xml_document::save_string(int *a1, pugi::xml_node *this, char *a3, int a4, int a5)
{
char v6; // r3
size_t v7; // r1
int v8; // r2
_UNKNOWN **v10; // [sp+Ch] [bp+0h] BYREF
int v11; // [sp+10h] [bp+4h]
size_t v12; // [sp+14h] [bp+8h]
const void *v13; // [sp+18h] [bp+Ch]
v11 = 0;
v12 = 0;
v13 = nullptr;
v10 = &off_D12EC8;
pugi::xml_document::save(this, (int)&v10, a3, a4, a5);
v6 = v11;
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
if ( (v6 & 1) != 0 )
{
std::string::__init(a1, v13, v12);
}
else
{
v7 = v12;
v8 = (int)v13;
*a1 = v11;
a1[1] = v7;
a1[2] = v8;
}
xml_string_writer::~xml_string_writer((void **)&v10);
return a1;
}