//
// pugi::xml_document::document_element from 0x180083ca0 to 0x180083cd6 (54 bytes)
//
// 1 xrefs:
// > ??> @ 0x18014cf68
//
// This function is hookable on this platform (idp: pc, 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 11:22:03 +0000
//
_QWORD *__fastcall pugi::xml_document::document_element(__int64 a1, _QWORD *a2)
{
__int64 v2; // rax
v2 = *(_QWORD *)(*(_QWORD *)a1 + 32LL);
if ( v2 )
{
while ( (*(_BYTE *)v2 & 7) != 1 )
{
v2 = *(_QWORD *)(v2 + 48);
if ( !v2 )
goto LABEL_4;
}
*a2 = v2;
return a2;
}
else
{
LABEL_4:
*a2 = 0;
return a2;
}
}