//
// pugi::xml_document::create from 0x605a04 to 0x605a4a (70 bytes)
//
// 2 xrefs:
// > pugi::xml_document::xml_document @ 0x605a58
// > pugi::xml_document::reset @ 0x605ad2
//
// 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
//
// write access to const memory has been detected, the output may be wrong!
pugi::xml_document *__fastcall pugi::xml_document::create(pugi::xml_document *this)
{
_DWORD *v1; // r3
v1 = (_DWORD *)((unsigned int)&this->_memory[31] & 0xFFFFFFE0);
if ( !v1 )
{
*(_DWORD *)&word_10 = 0;
__und(0xFFu);
}
*(_DWORD *)&byte_4[(unsigned int)&this->_memory[31] & 0xFFFFFFE0] = 0;
*(_DWORD *)&byte_8[(unsigned int)&this->_memory[31] & 0xFFFFFFE0] = 0;
*(_DWORD *)&byte_9[((unsigned int)&this->_memory[31] & 0xFFFFFFE0) + 3] = 0;
*(int *)((char *)&dword_14 + ((unsigned int)&this->_memory[31] & 0xFFFFFFE0)) = 0;
*(int *)((char *)&dword_1C + ((unsigned int)&this->_memory[31] & 0xFFFFFFE0)) = 0;
*(int *)((char *)&dword_20 + ((unsigned int)&this->_memory[31] & 0xFFFFFFE0)) = 0;
*(int *)((char *)&dword_24 + ((unsigned int)&this->_memory[31] & 0xFFFFFFE0)) = 0;
*(_DWORD *)((char *)&word_28 + ((unsigned int)&this->_memory[31] & 0xFFFFFFE0)) = 0;
*(_DWORD *)((char *)&word_30 + ((unsigned int)&this->_memory[31] & 0xFFFFFFE0)) = 0;
*(int *)((char *)&dword_34 + ((unsigned int)&this->_memory[31] & 0xFFFFFFE0)) = 0;
*(int *)((char *)&dword_40 + ((unsigned int)&this->_memory[31] & 0xFFFFFFE0)) = 0;
*(int *)((char *)&dword_44 + ((unsigned int)&this->_memory[31] & 0xFFFFFFE0)) = 0;
*(_DWORD *)((char *)&word_10 + ((unsigned int)&this->_memory[31] & 0xFFFFFFE0)) = 0x8000;
*(int *)((char *)&dword_18 + ((unsigned int)&this->_memory[31] & 0xFFFFFFE0)) = (unsigned int)&this->_memory[31]
& 0xFFFFFFE0;
*(int *)((char *)&dword_38 + ((unsigned int)&this->_memory[31] & 0xFFFFFFE0)) = (unsigned int)&this->_memory[31]
& 0xFFFFFFE0;
*(int **)((char *)off_3C + ((unsigned int)&this->_memory[31] & 0xFFFFFFE0)) = (_DWORD *)(&stru_7FFC + 4);
this->_root = (pugi::xml_node_struct *)(v1 + 6);
*(_DWORD *)((char *)&word_2C + ((unsigned int)&this->_memory[31] & 0xFFFFFFE0)) = ((unsigned int)&this->_memory[31]
& 0xFFFFFFE0)
+ 24;
*v1 = v1 + 14;
return this;
}