//
// sub_6031F0 from 0x6031f0 to 0x603278 (136 bytes)
//
// 1 xrefs:
// > pugi::xml_node::print @ 0x6040b8
//
// 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_6031F0(pugi::xml_node *a1, int a2, char *a3, int a4, int a5, int a6)
{
int v7; // r0
_BYTE v9[10232]; // [sp+8h] [bp-27F8h] BYREF
int v10; // [sp+2808h] [bp+8h]
int v11; // [sp+280Ch] [bp+Ch]
int v12; // [sp+2810h] [bp+10h]
v7 = a5;
v10 = a2;
v11 = 0;
switch ( a5 )
{
case 8:
goto LABEL_8;
case 4:
v7 = 2;
break;
case 7:
LABEL_8:
v7 = 5;
break;
case 0:
v7 = 1;
break;
}
v12 = v7;
sub_602E4C(v9, a1, a3, a4, a6);
return sub_601964((int)v9);
}