//
// sub_606B80 from 0x606b80 to 0x606c16 (150 bytes)
//
// 7 xrefs:
// > sub_606C20 @ 0x606c46
// > sub_607BBC @ 0x607f84
// > sub_607BBC @ 0x607fe2
// > sub_607BBC @ 0x60822e
// > sub_607BBC @ 0x60828e
// > sub_607BBC @ 0x608768
// > sub_607BBC @ 0x6087a0
//
// 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
//
int __fastcall sub_606B80(
int a1,
pugi::xml_node_struct *a2,
pugi::xml_node_struct *a3,
pugi::xml_node_struct *a4,
int a5)
{
int result; // r0
const char *v10; // r10
pugi::xml_node v11[3]; // [sp+4h] [bp-Ch] BYREF
v11[0]._root = a2;
v11[1]._root = a3;
v11[2]._root = a4;
result = pugi::xml_attribute::operator!(a3);
if ( !result )
{
v10 = (const char *)pugi::xml_attribute::name((pugi::xml_attribute *)a3);
result = sub_600170((int)v10, (int)"xmlns");
if ( !result || v10[5] && v10[5] != 58 )
{
switch ( *(_BYTE *)(a1 + 3) )
{
case 1:
result = sub_6006BA(v10, *(const char **)(a1 + 16));
goto LABEL_8;
case 2:
case 7:
goto LABEL_9;
case 8:
result = sub_600170((int)v10, *(_DWORD *)(a1 + 16));
LABEL_8:
if ( result )
{
LABEL_9:
pugi::xpath_node::xpath_node(v11, (pugi::xml_attribute *)a3, (const pugi::xml_node *)a4);
result = sub_601BA4(a2, (int *)v11, a5);
}
break;
default:
return result;
}
}
}
return result;
}