//
// sub_606EF8 from 0x606ef8 to 0x606f48 (80 bytes)
//
// 4 xrefs:
// > sub_609260 @ 0x6092da
// > sub_609260 @ 0x609318
// > sub_609260 @ 0x60933a
// > sub_609260 @ 0x609368
//
// 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
//
void *__fastcall sub_606EF8(
pugi::xpath_node *a1,
int a2,
pugi::xml_attribute_struct *a3,
pugi::xml_attribute_struct *a4)
{
pugi::xml_node_struct *v5; // r1
pugi::xml_node_struct *v6; // r2
void (*v8)(); // [sp+4h] [bp-Ch] BYREF
pugi::xml_attribute v9[2]; // [sp+8h] [bp-8h] BYREF
v9[0]._attr = a3;
v9[1]._attr = a4;
v8 = (void (*)())pugi::xpath_node::attribute(a1);
if ( pugi::xml_attribute::operator void (*)(pugi::xml_attribute***)(&v8) )
{
v9[0]._attr = (pugi::xml_attribute_struct *)pugi::xpath_node::attribute(a1);
return pugi::xml_attribute::name(v9);
}
else
{
v9[0]._attr = pugi::xpath_node::node((void (**)())a1, v5, v6);
return pugi::xml_node::name((pugi::xml_node *)v9);
}
}