//
// sub_816080 from 0x816080 to 0x816110 (144 bytes)
//
// 7 xrefs:
// > sub_816114 @ 0x816120
// > sub_816114 @ 0x816132
// > sub_816114 @ 0x816144
// > sub_8167E0 @ 0x8168b8
// > sub_8167E0 @ 0x8168ea
// > sub_8167E0 @ 0x816914
// > sub_8167E0 @ 0x816942
//
// 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:42 +0000
//
int __fastcall sub_816080(pugi::xpath_node *a1, pugi::xpath_node *a2, int a3, void (*a4)())
{
int v7; // r1
int v8; // r2
int v9; // r1
int v10; // r2
void (*v11)(); // [sp+0h] [bp-10h] BYREF
void (*v12)(); // [sp+4h] [bp-Ch] BYREF
void (*v13[2])(); // [sp+8h] [bp-8h] BYREF
v11 = (void (*)())a1;
v12 = (void (*)())a2;
v13[1] = a4;
v13[0] = (void (*)())pugi::xpath_node::attribute(a1);
if ( pugi::xml_attribute::operator void (*)(pugi::xml_attribute***)(v13) )
{
v13[0] = (void (*)())pugi::xpath_node::attribute(a2);
if ( pugi::xml_attribute::operator void (*)(pugi::xml_attribute***)(v13) )
{
v12 = (void (*)())pugi::xpath_node::attribute(a1);
v11 = (void (*)())pugi::xpath_node::attribute(a2);
return pugi::xml_attribute::operator<(&v12, &v11);
}
else
{
return 1;
}
}
else
{
v13[0] = (void (*)())pugi::xpath_node::attribute(a2);
if ( pugi::xml_attribute::operator void (*)(pugi::xml_attribute***)(v13) )
{
return 0;
}
else
{
v12 = pugi::xpath_node::node((void (**)())a1, v7, v8);
v11 = pugi::xpath_node::node((void (**)())a2, v9, v10);
return pugi::xml_node::operator<(&v12, &v11);
}
}
}