//
// sub_606C20 from 0x606c20 to 0x606c82 (98 bytes)
//
// 2 xrefs:
// > sub_607BBC @ 0x607ed2
// > sub_607BBC @ 0x607f04
//
// 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_606C20(
int a1,
pugi::xml_node_struct *a2,
pugi::xml_node_struct *a3,
pugi::xml_node_struct *a4,
pugi::xml_attribute_struct *a5))()
{
void (*result)(); // r0
pugi::xml_node_struct *v9; // r1
pugi::xml_node v10[2]; // [sp+8h] [bp-8h] BYREF
v10[0]._root = a3;
v10[1]._root = a4;
if ( *(_BYTE *)(a1 + 3) == 2 )
sub_606B80(a1, a2, a3, a4, (int)a5);
for ( v10[0] = *(pugi::xml_node *)a4; ; v10[0]._root = pugi::xml_node::parent(v10, v9) )
{
result = pugi::xml_node::operator void (*)(pugi::xml_node***)((void (**)())v10);
if ( !result )
break;
sub_6065F8(a1, a2, (pugi::xml_attribute_struct *)v10, a5);
}
return result;
}