//
// pugi::xml_document::create from 0xb59f90 to 0xb5a000 (112 bytes)
//
// 3 xrefs:
// > pugi::xml_document::xml_document @ 0xb5a024
// > pugi::xml_document::reset @ 0xb5a0e8
// > ??> @ 0x49518
//
// 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)
{
_QWORD *v1; // x1
v1 = (_QWORD *)((unsigned __int64)&this->_memory[31] & 0xFFFFFFFFFFFFFFE0LL);
if ( v1 )
{
*(_QWORD *)&byte_8[(unsigned __int64)&this->_memory[31] & 0xFFFFFFFFFFFFFFE0LL] = 0;
*(_QWORD *)((char *)&word_10 + ((unsigned __int64)&this->_memory[31] & 0xFFFFFFFFFFFFFFE0LL)) = 0;
*(__int64 (__fastcall **)())((char *)&off_18 + ((unsigned __int64)&this->_memory[31] & 0xFFFFFFFFFFFFFFE0LL)) = nullptr;
*(__int64 *)((char *)&qword_28 + ((unsigned __int64)&this->_memory[31] & 0xFFFFFFFFFFFFFFE0LL)) = 0;
*(__int64 *)((char *)&qword_20 + ((unsigned __int64)&this->_memory[31] & 0xFFFFFFFFFFFFFFE0LL)) = 0x8000;
*(_QWORD *)((char *)&dword_30 + ((unsigned __int64)&this->_memory[31] & 0xFFFFFFFFFFFFFFE0LL)) = (unsigned __int64)&this->_memory[31] & 0xFFFFFFFFFFFFFFE0LL;
*(_QWORD *)((char *)&word_38 + ((unsigned __int64)&this->_memory[31] & 0xFFFFFFFFFFFFFFE0LL)) = 0;
*(_QWORD *)((char *)&dword_40 + ((unsigned __int64)&this->_memory[31] & 0xFFFFFFFFFFFFFFE0LL)) = 0;
*(__int64 *)((char *)&qword_48 + ((unsigned __int64)&this->_memory[31] & 0xFFFFFFFFFFFFFFE0LL)) = 0;
*(int **)((char *)off_50 + ((unsigned __int64)&this->_memory[31] & 0xFFFFFFFFFFFFFFE0LL)) = nullptr;
*(__int64 *)((char *)&qword_60 + ((unsigned __int64)&this->_memory[31] & 0xFFFFFFFFFFFFFFE0LL)) = 0;
*(__int64 *)((char *)&qword_68 + ((unsigned __int64)&this->_memory[31] & 0xFFFFFFFFFFFFFFE0LL)) = 0;
*(__int64 *)((char *)&qword_70 + ((unsigned __int64)&this->_memory[31] & 0xFFFFFFFFFFFFFFE0LL)) = (unsigned __int64)&this->_memory[31] & 0xFFFFFFFFFFFFFFE0LL;
*(_QWORD *)((char *)&dword_78 + ((unsigned __int64)&this->_memory[31] & 0xFFFFFFFFFFFFFFE0LL)) = 0x8000;
*(__int64 *)((char *)&qword_80 + ((unsigned __int64)&this->_memory[31] & 0xFFFFFFFFFFFFFFE0LL)) = 0;
*(__int64 (__fastcall ***)())((char *)off_88 + ((unsigned __int64)&this->_memory[31] & 0xFFFFFFFFFFFFFFE0LL)) = nullptr;
this->_root = (pugi::xml_node_struct *)(v1 + 6);
*(__int64 *)((char *)&qword_58 + ((unsigned __int64)&this->_memory[31] & 0xFFFFFFFFFFFFFFE0LL)) = ((unsigned __int64)&this->_memory[31] & 0xFFFFFFFFFFFFFFE0LL) + 48;
*v1 = v1 + 14;
}
else
{
qword_20 = 0;
__break(0x3E8u);
return (pugi::xml_document *)pugi::xml_document::xml_document(this);
}
return this;
}