//
// pugi::xml_document::xml_document from 0x18007f310 to 0x18007f393 (131 bytes)
//
// 2 xrefs:
// > DS_Dictionary::DS_Dictionary @ 0x1800171de
// > ??> @ 0x1801438a8
//
// 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
//
pugi::xml_document *__fastcall pugi::xml_document::xml_document(pugi::xml_document *this)
{
_QWORD *v2; // rdx
bool v3; // zf
char *v4; // rcx
pugi::xml_document *result; // rax
this->_buffer = nullptr;
v2 = (_QWORD *)((unsigned __int64)&this->_memory[31] & 0xFFFFFFFFFFFFFFE0uLL);
if ( v2 )
{
*v2 = 0;
*(_QWORD *)(((unsigned __int64)&this->_memory[31] & 0xFFFFFFFFFFFFFFE0uLL) + 8) = 0;
*(_QWORD *)(((unsigned __int64)&this->_memory[31] & 0xFFFFFFFFFFFFFFE0uLL) + 0x10) = 0;
*(_QWORD *)(((unsigned __int64)&this->_memory[31] & 0xFFFFFFFFFFFFFFE0uLL) + 0x18) = 0;
*(_QWORD *)(((unsigned __int64)&this->_memory[31] & 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;
this->_root = (pugi::xml_node_struct *)(v2 + 6);
v2[11] = v2 + 6;
v3 = this->_root == nullptr;
v4 = (char *)this->_root + 64;
result = this;
if ( v3 )
v4 = nullptr;
*v2 = v4;
return result;
}