//
// xml_string_writer::write from 0x81aa98 to 0x81aaf0 (88 bytes)
//
// 0 xrefs:
//
// 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
//
void __fastcall xml_string_writer::write(xml_string_writer *this, const void *a2, size_t a3)
{
_DWORD *v3; // r5
char *v4; // r1
size_t v5; // r2
int v6; // [sp+0h] [bp-14h] BYREF
size_t v7; // [sp+4h] [bp-10h]
void *v8; // [sp+8h] [bp-Ch]
v3 = (_DWORD *)((char *)this + 4);
v6 = 0;
v7 = 0;
v8 = nullptr;
std::string::__init(&v6, a2, a3);
if ( (v6 & 1) != 0 )
{
v4 = (char *)v8;
v5 = v7;
}
else
{
v5 = (int)(unsigned __int8)v6 >> 1;
v4 = (char *)&v6 + 1;
}
std::string::append(v3, v4, v5);
if ( (v6 & 1) != 0 )
operator delete(v8);
}