//
// sub_B5C680 from 0xb5c680 to 0xb5c77c (252 bytes)
//
// 2 xrefs:
// > sub_B5C77C @ 0xb5c8a0
// > sub_B5D78C @ 0xb5dc04
//
// 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
//
__int64 __fastcall sub_B5C680(pugi::xpath_node *a1, pugi::xpath_node *a2)
{
unsigned int v4; // w1
void (*v6)(); // x0
pugi::xml_node_struct *v7; // [xsp+30h] [xbp+30h] BYREF
pugi::xml_node_struct *v8; // [xsp+38h] [xbp+38h] BYREF
__int64 v9; // [xsp+40h] [xbp+40h] BYREF
v9 = pugi::xpath_node::attribute(a1);
if ( pugi::xml_attribute::operator void (*)(pugi::xml_attribute***)(&v9) )
{
v9 = pugi::xpath_node::attribute(a2);
if ( pugi::xml_attribute::operator void (*)(pugi::xml_attribute***)(&v9) )
{
v8 = (pugi::xml_node_struct *)pugi::xpath_node::attribute(a1);
v7 = (pugi::xml_node_struct *)pugi::xpath_node::attribute(a2);
return pugi::xml_attribute::operator<(&v8, &v7);
}
else
{
return 1;
}
}
else
{
v9 = pugi::xpath_node::attribute(a2);
v6 = pugi::xml_attribute::operator void (*)(pugi::xml_attribute***)(&v9);
v4 = 0;
if ( !v6 )
{
v8 = pugi::xpath_node::node(a1);
v7 = pugi::xpath_node::node(a2);
return pugi::xml_node::operator<(&v8, &v7);
}
}
return v4;
}