//
// sub_8128B8 from 0x8128b8 to 0x812940 (136 bytes)
//
// 1 xrefs:
// > pugi::xml_node::print @ 0x813730
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:01:38 +0000
//
int __fastcall sub_8128B8(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_812514(v9, a1, a3, a4, a6);
return sub_810F28((int)v9);
}