//
// pugi::xml_document::xml_document from 0x180082260 to 0x1800822e3 (131 bytes)
//
// 2 xrefs:
// > DS_Dictionary::DS_Dictionary @ 0x180016d2e
// > ??> @ 0x18014cf68
//
// This function is hookable on this platform (idp: pc, 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 11:22:02 +0000
//
pugi::xml_document *__fastcall pugi::xml_document::xml_document(pugi::xml_document *this)
{
_QWORD *v2; // rdx
bool v3; // zf
__int64 v4; // rcx
pugi::xml_document *result; // rax
*((_QWORD *)this + 1) = 0;
v2 = (_QWORD *)(((unsigned __int64)this + 47) & 0xFFFFFFFFFFFFFFE0uLL);
if ( v2 )
{
*v2 = 0;
*(_QWORD *)((((unsigned __int64)this + 47) & 0xFFFFFFFFFFFFFFE0uLL) + 8) = 0;
*(_QWORD *)((((unsigned __int64)this + 47) & 0xFFFFFFFFFFFFFFE0uLL) + 0x10) = 0;
*(_QWORD *)((((unsigned __int64)this + 47) & 0xFFFFFFFFFFFFFFE0uLL) + 0x18) = 0;
*(_QWORD *)((((unsigned __int64)this + 47) & 0xFFFFFFFFFFFFFFE0uLL) + 0x28) = 0;
}
else
{
v2 = nullptr;
}
v2[4] = 0x8000;
v2[6] = v2;
v2[7] = 0;
v2[8] = 0;
v2[9] = 0;
v2[10] = 0;
v2[12] = 0;
v2[13] = 0;
v2[14] = v2;
v2[15] = 0x8000;
v2[16] = 0;
v2[17] = 0;
*(_QWORD *)this = v2 + 6;
v2[11] = v2 + 6;
v3 = *(_QWORD *)this == 0;
v4 = *(_QWORD *)this + 64LL;
result = this;
if ( v3 )
v4 = 0;
*v2 = v4;
return result;
}