//
// pugi::xml_document::document_element from 0x180080cb0 to 0x180080ce6 (54 bytes)
//
// 1 xrefs:
// > ??> @ 0x1801438a8
//
// 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
//
_QWORD *__fastcall pugi::xml_document::document_element(pugi::xml_document *this, _QWORD *a2)
{
__int64 v2; // rax
v2 = *((_QWORD *)this->_root + 4);
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;
}
}