//
// sub_602C7C from 0x602c7c to 0x602d14 (152 bytes)
//
// 2 xrefs:
// > sub_602E4C @ 0x602f0c
// > sub_602E4C @ 0x60314e
//
// 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_602C7C(void *a1, pugi::xml_node *this, char a3))()
{
void (*result)(); // r0
char *v6; // r1
char *v7; // r1
pugi::xml_attribute_struct *v8; // r1
pugi::xml_attribute v9[2]; // [sp+0h] [bp-8h] BYREF
v9[1]._attr = (pugi::xml_attribute_struct *)this;
for ( v9[0]._attr = pugi::xml_node::first_attribute(this, (pugi::xml_attribute_struct *)this);
;
v9[0]._attr = pugi::xml_attribute::next_attribute(v9, v8) )
{
result = pugi::xml_attribute::operator void (*)(pugi::xml_attribute***)((void (**)())v9);
if ( !result )
break;
sub_601A50((int)a1, 32);
if ( *(_BYTE *)pugi::xml_attribute::name(v9) )
v6 = (char *)pugi::xml_attribute::name(v9);
else
v6 = ":anonymous";
sub_601F6E((int)a1, v6);
sub_6019AE((int)a1, 61, 34);
v7 = (char *)pugi::xml_attribute::value(v9);
if ( (a3 & 0x10) != 0 )
sub_601F6E((int)a1, v7);
else
sub_601E04(a1, (unsigned __int8 *)v7, 2u);
sub_601A50((int)a1, 34);
}
return result;
}