//
// sub_602D1C from 0x602d1c to 0x602d92 (118 bytes)
//
// 2 xrefs:
// > sub_60730C @ 0x607382
// > sub_60730C @ 0x6073dc
//
// 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
//
pugi::xml_attribute_struct *__fastcall sub_602D1C(pugi::xml_node *a1, pugi::xml_attribute_struct *a2, int a3)
{
_BYTE *v3; // r6
pugi::xml_attribute_struct *v4; // r1
pugi::xml_attribute v8; // [sp+8h] [bp-Ch] BYREF
if ( a1->_root )
{
for ( v8._attr = pugi::xml_node::first_attribute(a1, a2);
pugi::xml_attribute::operator void (*)(pugi::xml_attribute***)((void (**)())&v8);
v8._attr = pugi::xml_attribute::next_attribute(&v8, v4) )
{
v3 = pugi::xml_attribute::name(&v8);
if ( sub_600170((int)v3, (int)"xmlns") )
{
v4 = a2;
if ( a2 )
{
if ( v3[5] == 58 && sub_5FFF2A((int)(v3 + 6), (int)a2, a3) )
return v8._attr;
}
else if ( !v3[5] )
{
return v8._attr;
}
}
}
}
pugi::xml_attribute::xml_attribute(&v8);
return v8._attr;
}