//
// pugi::xml_document::document_element from 0xb5b324 to 0xb5b3a8 (132 bytes)
//
// 1 xrefs:
// > ??> @ 0xb2470
//
// 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
//
pugi::xml_node_struct *__fastcall pugi::xml_document::document_element(pugi::xml_document *this)
{
_QWORD *v1; // x1
pugi::xml_node v3; // [xsp+20h] [xbp+20h] BYREF
v1 = *((_QWORD **)this->_root + 4);
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._root;
}
else
{
LABEL_6:
pugi::xml_node::xml_node(&v3);
return v3._root;
}
}