//
// sub_606FE0 from 0x606fe0 to 0x607024 (68 bytes)
//
// 4 xrefs:
// > sub_6076AC @ 0x607706
// > sub_6076AC @ 0x60771e
// > sub_6076AC @ 0x60772a
// > sub_6076AC @ 0x607736
//
// 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_606FE0(int *a1, int *a2, int *a3, void (*a4)())
{
int v7; // r2
void (*v8)(); // r3
int v9; // r2
void (*v10)(); // r3
int result; // r0
if ( sub_606F4C((pugi::xpath_node *)a2, (pugi::xpath_node *)a1, (int)a3, a4) )
sub_600614(a2, a1);
if ( sub_606F4C((pugi::xpath_node *)a3, (pugi::xpath_node *)a2, v7, v8) )
sub_600614(a3, a2);
result = sub_606F4C((pugi::xpath_node *)a2, (pugi::xpath_node *)a1, v9, v10);
if ( result )
return sub_600614(a2, a1);
return result;
}