//
// pugi::xml_document::document_element from 0x606508 to 0x60654a (66 bytes)
//
// 0 xrefs:
//
// 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
//
void __fastcall __spoils pugi::xml_document::document_element(
pugi::xml_document *this,
pugi::xml_node_struct *a2)
{
_DWORD *i; // r1
pugi::xml_node v3[2]; // [sp+0h] [bp-8h] BYREF
v3[1]._root = a2;
for ( i = *((_DWORD **)this->_root + 4); i; i = (_DWORD *)i[6] )
{
if ( (*i & 7) == 1 )
{
pugi::xml_node::xml_node(v3, (int)i);
return;
}
}
pugi::xml_node::xml_node(v3);
}