//
// sub_5ED000 from 0x5ed000 to 0x5ed02c (44 bytes)
//
// 1 xrefs:
// > tinyxml2::XMLPrinter::Print @ 0x5eeffe
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall sub_5ED000(int a1, int a2)
{
int v2; // r5
void *v4; // r6
void *v5; // r0
v2 = 2 * a2;
v4 = (void *)operator new[](2 * a2);
memcpy(v4, *(const void **)a1, *(_DWORD *)(a1 + 28));
v5 = *(void **)a1;
if ( *(_DWORD *)a1 != a1 + 4 && v5 )
operator delete[](v5);
*(_DWORD *)a1 = v4;
*(_DWORD *)(a1 + 24) = v2;
}