//
// pugi::xml_document::document_element from 0x815660 to 0x8156a2 (66 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:41 +0000
//
void __fastcall __spoils pugi::xml_document::document_element(pugi::xml_document *this, int a2)
{
_DWORD *i; // r1
_DWORD v3[2]; // [sp+0h] [bp-8h] BYREF
v3[1] = a2;
for ( i = *(_DWORD **)(*(_DWORD *)this + 16); i; i = (_DWORD *)i[6] )
{
if ( (*i & 7) == 1 )
{
pugi::xml_node::xml_node(v3, (int)i);
return;
}
}
pugi::xml_node::xml_node(v3);
}