//
// sub_D933E4 from 0xd933e4 to 0xd93458 (116 bytes)
//
// 2 xrefs:
// > tinyxml2::XMLDocument::Identify @ 0xd969e0
// > tinyxml2::XMLDocument::Identify @ 0xd969f4
//
// 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:20 +0000
//
void __fastcall sub_D933E4(__int64 a1, int a2)
{
int v2; // w20
unsigned __int64 v4; // x0
void *v5; // x21
void *v6; // x0
v2 = 2 * a2;
v4 = 16LL * a2;
if ( (unsigned __int64)(2 * a2) > 0xFE0000000000000LL )
v4 = -1;
v5 = (void *)operator new[](v4);
memcpy(v5, *(const void **)a1, 8LL * *(int *)(a1 + 92));
v6 = *(void **)a1;
if ( *(_QWORD *)a1 != a1 + 8 && v6 )
operator delete[](v6);
*(_QWORD *)a1 = v5;
*(_DWORD *)(a1 + 88) = v2;
}