//
// pugi::xml_document::document_element from 0xdce7c8 to 0xdce84c (132 bytes)
//
// 1 xrefs:
// > ??> @ 0xe92f0
//
// 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
//
__int64 __fastcall pugi::xml_document::document_element(pugi::xml_document *this)
{
_QWORD *v1; // x1
__int64 v3; // [xsp+20h] [xbp+20h] BYREF
v1 = *(_QWORD **)(*(_QWORD *)this + 32LL);
if ( v1 )
{
while ( (*v1 & 7LL) != 1 )
{
v1 = (_QWORD *)v1[6];
if ( !v1 )
goto LABEL_6;
}
pugi::xml_node::xml_node(&v3, (__int64)v1);
return v3;
}
else
{
LABEL_6:
pugi::xml_node::xml_node(&v3);
return v3;
}
}