//
// pugi::xml_document::create from 0xdcdbe0 to 0xdcdc60 (128 bytes)
//
// 3 xrefs:
// > pugi::xml_document::xml_document @ 0xdcdc84
// > pugi::xml_document::reset @ 0xdcdd48
// > ??> @ 0x67798
//
// 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:57 +0000
//
// write access to const memory has been detected, the output may be wrong!
__int64 __fastcall pugi::xml_document::create(pugi::xml_document *this)
{
_QWORD *v1; // x1
__int64 v2; // x2
__int64 result; // x0
v1 = (_QWORD *)(((unsigned __int64)this + 47) & 0xFFFFFFFFFFFFFFE0LL);
if ( v1 )
{
*v1 = 0;
*(_QWORD *)&byte_8[((unsigned __int64)this + 47) & 0xFFFFFFFFFFFFFFE0LL] = 0;
*(_QWORD *)((char *)&word_10 + (((unsigned __int64)this + 47) & 0xFFFFFFFFFFFFFFE0LL)) = 0;
*(void (__fastcall __noreturn **)())((char *)&off_18 + (((unsigned __int64)this + 47) & 0xFFFFFFFFFFFFFFE0LL)) = nullptr;
*(__int64 *)((char *)&qword_28 + (((unsigned __int64)this + 47) & 0xFFFFFFFFFFFFFFE0LL)) = 0;
*(__int64 *)((char *)&qword_20 + (((unsigned __int64)this + 47) & 0xFFFFFFFFFFFFFFE0LL)) = 0x8000;
*(_QWORD *)((char *)&dword_30 + (((unsigned __int64)this + 47) & 0xFFFFFFFFFFFFFFE0LL)) = ((unsigned __int64)this
+ 47)
& 0xFFFFFFFFFFFFFFE0LL;
*(_QWORD *)((char *)&word_38 + (((unsigned __int64)this + 47) & 0xFFFFFFFFFFFFFFE0LL)) = 0;
*(_QWORD *)((char *)&dword_40 + (((unsigned __int64)this + 47) & 0xFFFFFFFFFFFFFFE0LL)) = 0;
*(__int64 *)((char *)&qword_48 + (((unsigned __int64)this + 47) & 0xFFFFFFFFFFFFFFE0LL)) = 0;
*(int **)((char *)off_50 + (((unsigned __int64)this + 47) & 0xFFFFFFFFFFFFFFE0LL)) = nullptr;
*(__int64 *)((char *)&qword_60 + (((unsigned __int64)this + 47) & 0xFFFFFFFFFFFFFFE0LL)) = 0;
*(__int64 *)((char *)&qword_68 + (((unsigned __int64)this + 47) & 0xFFFFFFFFFFFFFFE0LL)) = 0;
*(__int64 *)((char *)&qword_70 + (((unsigned __int64)this + 47) & 0xFFFFFFFFFFFFFFE0LL)) = ((unsigned __int64)this
+ 47)
& 0xFFFFFFFFFFFFFFE0LL;
*(_QWORD *)((char *)&dword_78 + (((unsigned __int64)this + 47) & 0xFFFFFFFFFFFFFFE0LL)) = 0x8000;
*(__int64 *)((char *)&qword_80 + (((unsigned __int64)this + 47) & 0xFFFFFFFFFFFFFFE0LL)) = 0;
*(__int64 (__fastcall ***)())((char *)off_88 + (((unsigned __int64)this + 47) & 0xFFFFFFFFFFFFFFE0LL)) = nullptr;
*(_QWORD *)this = v1 + 6;
*(__int64 *)((char *)&qword_58 + (((unsigned __int64)this + 47) & 0xFFFFFFFFFFFFFFE0LL)) = (((unsigned __int64)this
+ 47)
& 0xFFFFFFFFFFFFFFE0LL)
+ 48;
v2 = *(_QWORD *)this;
result = *(_QWORD *)this + 64LL;
if ( !v2 )
result = 0;
*v1 = result;
}
else
{
qword_20 = 0;
__break(0x3E8u);
return pugi::xml_document::xml_document(this);
}
return result;
}