//
// sub_7F8048 from 0x7f8048 to 0x7f8074 (44 bytes)
//
// 1 xrefs:
// > tinyxml2::XMLPrinter::Print @ 0x7fa056
//
// 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:11 +0000
//
void __fastcall sub_7F8048(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;
}