//
// pugi::xml_named_node_iterator::operator-- from 0x81400e to 0x814040 (50 bytes)
//
// 1 xrefs:
// > pugi::xml_named_node_iterator::operator-- @ 0x81404e
//
// 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:40 +0000
//
int *__fastcall pugi::xml_named_node_iterator::operator--(int *a1, int a2)
{
int *v2; // r4
const char *v3; // r1
const char *v4; // r0
const char *v5; // r5
v2 = a1;
if ( *a1 )
{
v3 = (const char *)a1[2];
LABEL_5:
*v2 = pugi::xml_node::previous_sibling((pugi::xml_node *)a1, v3);
return v2;
}
*a1 = pugi::xml_node::last_child((pugi::xml_node *)(a1 + 1), a2);
v4 = (const char *)pugi::xml_node::name((pugi::xml_node *)v2);
v5 = (const char *)v2[2];
if ( !sub_80FCB4(v4, v5) )
{
a1 = v2;
v3 = v5;
goto LABEL_5;
}
return v2;
}