
/* std::money_put<wchar_t, std::ostreambuf_iterator<wchar_t, std::char_traits<wchar_t> >
   >::do_put(std::ostreambuf_iterator<wchar_t, std::char_traits<wchar_t> >, bool, std::ios_base&,
   wchar_t, long double) const */

undefined4
std::money_put<wchar_t,std::ostreambuf_iterator<wchar_t,std::char_traits<wchar_t>>>::do_put
          (undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,byte param_5,
          int param_6,undefined4 param_7,undefined4 param_8,undefined8 param_9)

{
  int iVar1;
  undefined *puVar2;
  ctype *pcVar3;
  int iVar4;
  int iVar5;
  undefined1 *puVar6;
  code *pcVar7;
  undefined1 *puVar8;
  undefined1 auStack_b0 [16];
  undefined4 local_a0 [2];
  undefined8 local_98;
  undefined1 auStack_90 [64];
  int local_48;
  locale alStack_44 [4];
  undefined1 auStack_40 [8];
  uint local_38;
  
  local_38 = (uint)param_5;
  (*(code *)PTR_locale_004c2d24)(alStack_44,param_6 + 0x6c);
                    /* try { // try from 003a0ebc to 003a0f87 has its CatchHandler @ 003a10d4 */
  pcVar3 = use_facet<std::ctype<wchar_t>>(alStack_44);
  puVar8 = auStack_b0;
  puVar6 = auStack_90;
  local_48 = (*(code *)PTR__S_get_c_locale_004c13c0)();
  puVar2 = PTR_UINT_004c12dc;
  local_a0[0] = 0;
  local_98 = param_9;
  iVar4 = (*(code *)PTR___convert_from_v_004c2d28)
                    (&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c);
  if (0x3f < iVar4) {
    iVar1 = -(iVar4 + 8U & 0xfffffff8);
    puVar8 = auStack_b0 + iVar1;
    puVar6 = auStack_90 + iVar1;
    iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)();
    *(undefined8 *)(auStack_90 + iVar1 + -8) = param_9;
    *(undefined4 *)((int)local_a0 + iVar1) = 0;
    local_48 = iVar5;
    iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c);
  }
  (*(code *)PTR_wstring_004c2fc8)(&local_48,iVar4,0,auStack_40);
  if (-1 < *(int *)(local_48 + -4)) {
    (*(code *)PTR__M_leak_hard_004c2fa8)(&local_48);
  }
                    /* try { // try from 003a0fb0 to 003a106f has its CatchHandler @ 003a108c */
  (**(code **)(*(int *)pcVar3 + 0x2c))(pcVar3,puVar6,puVar6 + iVar4,local_48);
  pcVar7 = (code *)PTR__M_insert<false>_004c2fd0;
  if (local_38 != 0) {
    pcVar7 = (code *)PTR__M_insert<true>_004c2fcc;
  }
  *(int **)(puVar8 + 0x18) = &local_48;
  *(undefined4 *)(puVar8 + 0x14) = param_7;
  *(int *)(puVar8 + 0x10) = param_6;
  (*pcVar7)(param_1,param_2,param_3,param_4);
  if ((allocator *)(local_48 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004c133c) {
    std::wstring::_Rep::_M_dispose((allocator *)(local_48 + -0xc));
  }
  (*(code *)PTR__locale_004c22f0)(alStack_44);
  return param_1;
}



undefined4
FUN_003a0e3c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
            byte param_5,int param_6,undefined4 param_7,undefined4 param_8,undefined8 param_9)

{
  int iVar1;
  undefined *puVar2;
  ctype *pcVar3;
  int iVar4;
  int iVar5;
  undefined1 *puVar6;
  code *pcVar7;
  undefined1 *puVar8;
  undefined1 auStack_b0 [16];
  undefined4 local_a0 [2];
  undefined8 local_98;
  undefined1 auStack_90 [64];
  int local_48;
  locale alStack_44 [4];
  undefined1 auStack_40 [8];
  uint local_38;
  
  local_38 = (uint)param_5;
  (*(code *)PTR_locale_004c2d24)(alStack_44,param_6 + 0x6c);
                    /* try { // try from 003a0ebc to 003a0f87 has its CatchHandler @ 003a10d4 */
  pcVar3 = std::use_facet<std::ctype<wchar_t>>(alStack_44);
  puVar8 = auStack_b0;
  puVar6 = auStack_90;
  local_48 = (*(code *)PTR__S_get_c_locale_004c13c0)();
  puVar2 = PTR_UINT_004c12dc;
  local_a0[0] = 0;
  local_98 = param_9;
  iVar4 = (*(code *)PTR___convert_from_v_004c2d28)
                    (&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c);
  if (0x3f < iVar4) {
    iVar1 = -(iVar4 + 8U & 0xfffffff8);
    puVar8 = auStack_b0 + iVar1;
    puVar6 = auStack_90 + iVar1;
    iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)();
    *(undefined8 *)(auStack_90 + iVar1 + -8) = param_9;
    *(undefined4 *)((int)local_a0 + iVar1) = 0;
    local_48 = iVar5;
    iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c);
  }
  (*(code *)PTR_wstring_004c2fc8)(&local_48,iVar4,0,auStack_40);
  if (-1 < *(int *)(local_48 + -4)) {
    (*(code *)PTR__M_leak_hard_004c2fa8)(&local_48);
  }
                    /* try { // try from 003a0fb0 to 003a106f has its CatchHandler @ 003a108c */
  (**(code **)(*(int *)pcVar3 + 0x2c))(pcVar3,puVar6,puVar6 + iVar4,local_48);
  pcVar7 = (code *)PTR__M_insert<false>_004c2fd0;
  if (local_38 != 0) {
    pcVar7 = (code *)PTR__M_insert<true>_004c2fcc;
  }
  *(int **)(puVar8 + 0x18) = &local_48;
  *(undefined4 *)(puVar8 + 0x14) = param_7;
  *(int *)(puVar8 + 0x10) = param_6;
  (*pcVar7)(param_1,param_2,param_3,param_4);
  if ((undefined *)(local_48 + -0xc) != PTR__S_empty_rep_storage_004c133c) {
    FUN_00399fa8((undefined *)(local_48 + -0xc),auStack_40);
  }
  (*(code *)PTR__locale_004c22f0)(alStack_44);
  return param_1;
}


lui gp,0x13
addiu gp,gp,-0x7bfc
addu gp,gp,t9
addiu sp,sp,-0x70
lw t9,-0x651c(gp)
sdc1 f20,0x68(sp)
sw s8,0x60(sp)
or s8,sp,zero
sw s3,0x4c(sp)
addiu s3,s8,0x2c
lbu v0,0x83(s8)
sw s7,0x5c(sp)
or s7,a1,zero
sw s4,0x50(sp)
or s4,a0,zero
sw v0,0x38(s8)
or a0,s3,zero
sw gp,0x20(sp)
sw ra,0x64(sp)
sw s6,0x58(sp)
sw s5,0x54(sp)
sw s2,0x48(sp)
sw s1,0x44(sp)
sw s0,0x40(sp)
sw a2,0x78(s8)
sw a3,0x7c(s8)
lw v0,0x84(s8)
ldc1 f20,0x90(s8)
jalr t9
_addiu a1,v0,0x6c
lw gp,0x20(s8)
lw t9,-0x6300(gp)
bal 0x0039d1fc
_or a0,s3,zero
lw gp,0x20(s8)
addiu sp,sp,-0x40
or s5,v0,zero
lw t9,-0x7e80(gp)
jalr t9
_addiu s1,sp,0x20
lw gp,0x20(s8)
addiu s2,s8,0x28
li a2,0x40
sdc1 f20,0x18(sp)
or a1,s1,zero
sw zero,0x10(sp)
or a0,s2,zero
sw v0,0x28(s8)
lw s6,-0x7f64(gp)
lw t9,-0x6518(gp)
jalr t9
_addiu a3,s6,-0x398c
or s0,v0,zero
slti v0,v0,0x40
bne v0,zero,0x003a0f6c
_lw gp,0x20(s8)
addiu v0,s0,0x8
lw t9,-0x7e80(gp)
addiu s0,s0,0x1
srl v0,v0,0x3
sll v0,v0,0x3
subu sp,sp,v0
jalr t9
_addiu s1,sp,0x20
lw gp,0x20(s8)
addiu a3,s6,-0x398c
sdc1 f20,0x18(sp)
or a2,s0,zero
sw zero,0x10(sp)
or a1,s1,zero
or a0,s2,zero
lw t9,-0x6518(gp)
jalr t9
_sw v0,0x28(s8)
lw gp,0x20(s8)
or s0,v0,zero
addiu s6,s8,0x30
lw t9,-0x6278(gp)
or a2,zero,zero
or a3,s6,zero
or a1,s0,zero
jalr t9
_or a0,s2,zero
lw a3,0x28(s8)
addu s0,s1,s0
lw gp,0x20(s8)
lw v0,-0x4(a3)
bgez v0,0x003a1068
_lw t9,-0x6298(gp)
lw v0,0x0(s5)
or a2,s0,zero
or a1,s1,zero
lw t9,0x2c(v0)
jalr t9
_or a0,s5,zero
lw v0,0x38(s8)
beq v0,zero,0x003a1050
_lw gp,0x20(s8)
lw a2,0x78(s8)
or a1,s7,zero
lw a3,0x7c(s8)
or a0,s4,zero
lw t9,-0x6274(gp)
lw v0,0x88(s8)
sw s2,0x18(sp)
sw v0,0x14(sp)
lw v0,0x84(s8)
jalr t9
_sw v0,0x10(sp)
lw gp,0x20(s8)
lw a0,0x28(s8)
lw v0,-0x7f04(gp)
addiu a0,a0,-0xc
bne a0,v0,0x003a1078
_lw t9,-0x6390(gp)
lw t9,-0x6f50(gp)
jalr t9
_or a0,s3,zero
or sp,s8,zero
or v0,s4,zero
ldc1 f20,0x68(sp)
lw ra,0x64(sp)
lw s8,0x60(sp)
lw s7,0x5c(sp)
lw s6,0x58(sp)
lw s5,0x54(sp)
lw s4,0x50(sp)
lw s3,0x4c(sp)
lw s2,0x48(sp)
lw s1,0x44(sp)
lw s0,0x40(sp)
jr ra
_addiu sp,sp,0x70
lw a2,0x78(s8)
or a1,s7,zero
lw a3,0x7c(s8)
or a0,s4,zero
b 0x003a0fd8
_lw t9,-0x6270(gp)
jalr t9
_or a0,s2,zero
b 0x003a0fa0
_lw a3,0x28(s8)
addiu t9,t9,-0x6058
bal 0x00399fa8
_or a1,s6,zero
b 0x003a1008
_lw gp,0x20(s8)
(translation_unit "undefined4\nFUN_003a0e3c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            byte param_5,int param_6,undefined4 param_7,undefined4 param_8,undefined8 param_9)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  ctype *pcVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  code *pcVar7;\n  undefined1 *puVar8;\n  undefined1 auStack_b0 [16];\n  undefined4 local_a0 [2];\n  undefined8 local_98;\n  undefined1 auStack_90 [64];\n  int local_48;\n  locale alStack_44 [4];\n  undefined1 auStack_40 [8];\n  uint local_38;\n  \n  local_38 = (uint)param_5;\n  (*(code *)PTR_locale_004c2d24)(alStack_44,param_6 + 0x6c);\n                    /* try { // try from 003a0ebc to 003a0f87 has its CatchHandler @ 003a10d4 */\n  pcVar3 = std::use_facet<std::ctype<wchar_t>>(alStack_44);\n  puVar8 = auStack_b0;\n  puVar6 = auStack_90;\n  local_48 = (*(code *)PTR__S_get_c_locale_004c13c0)();\n  puVar2 = PTR_UINT_004c12dc;\n  local_a0[0] = 0;\n  local_98 = param_9;\n  iVar4 = (*(code *)PTR___convert_from_v_004c2d28)\n                    (&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c);\n  if (0x3f < iVar4) {\n    iVar1 = -(iVar4 + 8U & 0xfffffff8);\n    puVar8 = auStack_b0 + iVar1;\n    puVar6 = auStack_90 + iVar1;\n    iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)();\n    *(undefined8 *)(auStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = iVar5;\n    iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c);\n  }\n  (*(code *)PTR_wstring_004c2fc8)(&local_48,iVar4,0,auStack_40);\n  if (-1 < *(int *)(local_48 + -4)) {\n    (*(code *)PTR__M_leak_hard_004c2fa8)(&local_48);\n  }\n                    /* try { // try from 003a0fb0 to 003a106f has its CatchHandler @ 003a108c */\n  (**(code **)(*(int *)pcVar3 + 0x2c))(pcVar3,puVar6,puVar6 + iVar4,local_48);\n  pcVar7 = (code *)PTR__M_insert<false>_004c2fd0;\n  if (local_38 != 0) {\n    pcVar7 = (code *)PTR__M_insert<true>_004c2fcc;\n  }\n  *(int **)(puVar8 + 0x18) = &local_48;\n  *(undefined4 *)(puVar8 + 0x14) = param_7;\n  *(int *)(puVar8 + 0x10) = param_6;\n  (*pcVar7)(param_1,param_2,param_3,param_4);\n  if ((undefined *)(local_48 + -0xc) != PTR__S_empty_rep_storage_004c133c) {\n    FUN_00399fa8((undefined *)(local_48 + -0xc),auStack_40);\n  }\n  (*(code *)PTR__locale_004c22f0)(alStack_44);\n  return param_1;\n}\n\n" (function_definition "undefined4\nFUN_003a0e3c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            byte param_5,int param_6,undefined4 param_7,undefined4 param_8,undefined8 param_9)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  ctype *pcVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  code *pcVar7;\n  undefined1 *puVar8;\n  undefined1 auStack_b0 [16];\n  undefined4 local_a0 [2];\n  undefined8 local_98;\n  undefined1 auStack_90 [64];\n  int local_48;\n  locale alStack_44 [4];\n  undefined1 auStack_40 [8];\n  uint local_38;\n  \n  local_38 = (uint)param_5;\n  (*(code *)PTR_locale_004c2d24)(alStack_44,param_6 + 0x6c);\n                    /* try { // try from 003a0ebc to 003a0f87 has its CatchHandler @ 003a10d4 */\n  pcVar3 = std::use_facet<std::ctype<wchar_t>>(alStack_44);\n  puVar8 = auStack_b0;\n  puVar6 = auStack_90;\n  local_48 = (*(code *)PTR__S_get_c_locale_004c13c0)();\n  puVar2 = PTR_UINT_004c12dc;\n  local_a0[0] = 0;\n  local_98 = param_9;\n  iVar4 = (*(code *)PTR___convert_from_v_004c2d28)\n                    (&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c);\n  if (0x3f < iVar4) {\n    iVar1 = -(iVar4 + 8U & 0xfffffff8);\n    puVar8 = auStack_b0 + iVar1;\n    puVar6 = auStack_90 + iVar1;\n    iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)();\n    *(undefined8 *)(auStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = iVar5;\n    iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c);\n  }\n  (*(code *)PTR_wstring_004c2fc8)(&local_48,iVar4,0,auStack_40);\n  if (-1 < *(int *)(local_48 + -4)) {\n    (*(code *)PTR__M_leak_hard_004c2fa8)(&local_48);\n  }\n                    /* try { // try from 003a0fb0 to 003a106f has its CatchHandler @ 003a108c */\n  (**(code **)(*(int *)pcVar3 + 0x2c))(pcVar3,puVar6,puVar6 + iVar4,local_48);\n  pcVar7 = (code *)PTR__M_insert<false>_004c2fd0;\n  if (local_38 != 0) {\n    pcVar7 = (code *)PTR__M_insert<true>_004c2fcc;\n  }\n  *(int **)(puVar8 + 0x18) = &local_48;\n  *(undefined4 *)(puVar8 + 0x14) = param_7;\n  *(int *)(puVar8 + 0x10) = param_6;\n  (*pcVar7)(param_1,param_2,param_3,param_4);\n  if ((undefined *)(local_48 + -0xc) != PTR__S_empty_rep_storage_004c133c) {\n    FUN_00399fa8((undefined *)(local_48 + -0xc),auStack_40);\n  }\n  (*(code *)PTR__locale_004c22f0)(alStack_44);\n  return param_1;\n}" type_identifier (function_declarator "FUN_003a0e3c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            byte param_5,int param_6,undefined4 param_7,undefined4 param_8,undefined8 param_9)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            byte param_5,int param_6,undefined4 param_7,undefined4 param_8,undefined8 param_9)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "byte param_5" type_identifier identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) , (parameter_declaration "undefined8 param_9" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  ctype *pcVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  code *pcVar7;\n  undefined1 *puVar8;\n  undefined1 auStack_b0 [16];\n  undefined4 local_a0 [2];\n  undefined8 local_98;\n  undefined1 auStack_90 [64];\n  int local_48;\n  locale alStack_44 [4];\n  undefined1 auStack_40 [8];\n  uint local_38;\n  \n  local_38 = (uint)param_5;\n  (*(code *)PTR_locale_004c2d24)(alStack_44,param_6 + 0x6c);\n                    /* try { // try from 003a0ebc to 003a0f87 has its CatchHandler @ 003a10d4 */\n  pcVar3 = std::use_facet<std::ctype<wchar_t>>(alStack_44);\n  puVar8 = auStack_b0;\n  puVar6 = auStack_90;\n  local_48 = (*(code *)PTR__S_get_c_locale_004c13c0)();\n  puVar2 = PTR_UINT_004c12dc;\n  local_a0[0] = 0;\n  local_98 = param_9;\n  iVar4 = (*(code *)PTR___convert_from_v_004c2d28)\n                    (&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c);\n  if (0x3f < iVar4) {\n    iVar1 = -(iVar4 + 8U & 0xfffffff8);\n    puVar8 = auStack_b0 + iVar1;\n    puVar6 = auStack_90 + iVar1;\n    iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)();\n    *(undefined8 *)(auStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = iVar5;\n    iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c);\n  }\n  (*(code *)PTR_wstring_004c2fc8)(&local_48,iVar4,0,auStack_40);\n  if (-1 < *(int *)(local_48 + -4)) {\n    (*(code *)PTR__M_leak_hard_004c2fa8)(&local_48);\n  }\n                    /* try { // try from 003a0fb0 to 003a106f has its CatchHandler @ 003a108c */\n  (**(code **)(*(int *)pcVar3 + 0x2c))(pcVar3,puVar6,puVar6 + iVar4,local_48);\n  pcVar7 = (code *)PTR__M_insert<false>_004c2fd0;\n  if (local_38 != 0) {\n    pcVar7 = (code *)PTR__M_insert<true>_004c2fcc;\n  }\n  *(int **)(puVar8 + 0x18) = &local_48;\n  *(undefined4 *)(puVar8 + 0x14) = param_7;\n  *(int *)(puVar8 + 0x10) = param_6;\n  (*pcVar7)(param_1,param_2,param_3,param_4);\n  if ((undefined *)(local_48 + -0xc) != PTR__S_empty_rep_storage_004c133c) {\n    FUN_00399fa8((undefined *)(local_48 + -0xc),auStack_40);\n  }\n  (*(code *)PTR__locale_004c22f0)(alStack_44);\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "ctype *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "code *pcVar7;" type_identifier (pointer_declarator "*pcVar7" * identifier) ;) (declaration "undefined1 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined1 auStack_b0 [16];" type_identifier (array_declarator "auStack_b0 [16]" identifier [ number_literal ]) ;) (declaration "undefined4 local_a0 [2];" type_identifier (array_declarator "local_a0 [2]" identifier [ number_literal ]) ;) (declaration "undefined8 local_98;" type_identifier identifier ;) (declaration "undefined1 auStack_90 [64];" type_identifier (array_declarator "auStack_90 [64]" identifier [ number_literal ]) ;) (declaration "int local_48;" primitive_type identifier ;) (declaration "locale alStack_44 [4];" type_identifier (array_declarator "alStack_44 [4]" identifier [ number_literal ]) ;) (declaration "undefined1 auStack_40 [8];" type_identifier (array_declarator "auStack_40 [8]" identifier [ number_literal ]) ;) (declaration "uint local_38;" type_identifier identifier ;) (expression_statement "local_38 = (uint)param_5;" (assignment_expression "local_38 = (uint)param_5" identifier = (cast_expression "(uint)param_5" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "(*(code *)PTR_locale_004c2d24)(alStack_44,param_6 + 0x6c);" (call_expression "(*(code *)PTR_locale_004c2d24)(alStack_44,param_6 + 0x6c)" (parenthesized_expression "(*(code *)PTR_locale_004c2d24)" ( (pointer_expression "*(code *)PTR_locale_004c2d24" * (cast_expression "(code *)PTR_locale_004c2d24" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(alStack_44,param_6 + 0x6c)" ( identifier , (binary_expression "param_6 + 0x6c" identifier + number_literal) ))) ;) comment (expression_statement "pcVar3 = std::use_facet<std::ctype<wchar_t>>(alStack_44);" (binary_expression "pcVar3 = std::use_facet<std::ctype<wchar_t>>(alStack_44)" (binary_expression "pcVar3 = std::use_facet<std" (assignment_expression "pcVar3 = std" identifier = identifier) (ERROR "::use_facet" : : identifier) < identifier) (ERROR "::ctype" : : identifier) < (binary_expression "wchar_t>>(alStack_44)" identifier >> (parenthesized_expression "(alStack_44)" ( identifier )))) ;) (expression_statement "puVar8 = auStack_b0;" (assignment_expression "puVar8 = auStack_b0" identifier = identifier) ;) (expression_statement "puVar6 = auStack_90;" (assignment_expression "puVar6 = auStack_90" identifier = identifier) ;) (expression_statement "local_48 = (*(code *)PTR__S_get_c_locale_004c13c0)();" (assignment_expression "local_48 = (*(code *)PTR__S_get_c_locale_004c13c0)()" identifier = (call_expression "(*(code *)PTR__S_get_c_locale_004c13c0)()" (parenthesized_expression "(*(code *)PTR__S_get_c_locale_004c13c0)" ( (pointer_expression "*(code *)PTR__S_get_c_locale_004c13c0" * (cast_expression "(code *)PTR__S_get_c_locale_004c13c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "puVar2 = PTR_UINT_004c12dc;" (assignment_expression "puVar2 = PTR_UINT_004c12dc" identifier = identifier) ;) (expression_statement "local_a0[0] = 0;" (assignment_expression "local_a0[0] = 0" (subscript_expression "local_a0[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_98 = param_9;" (assignment_expression "local_98 = param_9" identifier = identifier) ;) (expression_statement "iVar4 = (*(code *)PTR___convert_from_v_004c2d28)\n                    (&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c);" (assignment_expression "iVar4 = (*(code *)PTR___convert_from_v_004c2d28)\n                    (&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c)" identifier = (call_expression "(*(code *)PTR___convert_from_v_004c2d28)\n                    (&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c)" (parenthesized_expression "(*(code *)PTR___convert_from_v_004c2d28)" ( (pointer_expression "*(code *)PTR___convert_from_v_004c2d28" * (cast_expression "(code *)PTR___convert_from_v_004c2d28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c)" ( (pointer_expression "&local_48" & identifier) , identifier , number_literal , (binary_expression "PTR_UINT_004c12dc + -0x398c" identifier + number_literal) )))) ;) (if_statement "if (0x3f < iVar4) {\n    iVar1 = -(iVar4 + 8U & 0xfffffff8);\n    puVar8 = auStack_b0 + iVar1;\n    puVar6 = auStack_90 + iVar1;\n    iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)();\n    *(undefined8 *)(auStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = iVar5;\n    iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c);\n  }" if (parenthesized_expression "(0x3f < iVar4)" ( (binary_expression "0x3f < iVar4" number_literal < identifier) )) (compound_statement "{\n    iVar1 = -(iVar4 + 8U & 0xfffffff8);\n    puVar8 = auStack_b0 + iVar1;\n    puVar6 = auStack_90 + iVar1;\n    iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)();\n    *(undefined8 *)(auStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = iVar5;\n    iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c);\n  }" { (expression_statement "iVar1 = -(iVar4 + 8U & 0xfffffff8);" (assignment_expression "iVar1 = -(iVar4 + 8U & 0xfffffff8)" identifier = (unary_expression "-(iVar4 + 8U & 0xfffffff8)" - (parenthesized_expression "(iVar4 + 8U & 0xfffffff8)" ( (binary_expression "iVar4 + 8U & 0xfffffff8" (binary_expression "iVar4 + 8U" identifier + number_literal) & number_literal) )))) ;) (expression_statement "puVar8 = auStack_b0 + iVar1;" (assignment_expression "puVar8 = auStack_b0 + iVar1" identifier = (binary_expression "auStack_b0 + iVar1" identifier + identifier)) ;) (expression_statement "puVar6 = auStack_90 + iVar1;" (assignment_expression "puVar6 = auStack_90 + iVar1" identifier = (binary_expression "auStack_90 + iVar1" identifier + identifier)) ;) (expression_statement "iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)();" (assignment_expression "iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)()" identifier = (call_expression "(*(code *)PTR__S_get_c_locale_004c13c0)()" (parenthesized_expression "(*(code *)PTR__S_get_c_locale_004c13c0)" ( (pointer_expression "*(code *)PTR__S_get_c_locale_004c13c0" * (cast_expression "(code *)PTR__S_get_c_locale_004c13c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "*(undefined8 *)(auStack_90 + iVar1 + -8) = param_9;" (assignment_expression "*(undefined8 *)(auStack_90 + iVar1 + -8) = param_9" (pointer_expression "*(undefined8 *)(auStack_90 + iVar1 + -8)" * (cast_expression "(undefined8 *)(auStack_90 + iVar1 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(auStack_90 + iVar1 + -8)" ( (binary_expression "auStack_90 + iVar1 + -8" (binary_expression "auStack_90 + iVar1" identifier + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)local_a0 + iVar1) = 0;" (assignment_expression "*(undefined4 *)((int)local_a0 + iVar1) = 0" (pointer_expression "*(undefined4 *)((int)local_a0 + iVar1)" * (cast_expression "(undefined4 *)((int)local_a0 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_a0 + iVar1)" ( (binary_expression "(int)local_a0 + iVar1" (cast_expression "(int)local_a0" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "local_48 = iVar5;" (assignment_expression "local_48 = iVar5" identifier = identifier) ;) (expression_statement "iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c);" (assignment_expression "iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c)" identifier = (call_expression "(*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c)" (parenthesized_expression "(*(code *)PTR___convert_from_v_004c2d28)" ( (pointer_expression "*(code *)PTR___convert_from_v_004c2d28" * (cast_expression "(code *)PTR___convert_from_v_004c2d28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c)" ( (pointer_expression "&local_48" & identifier) , identifier , (binary_expression "iVar4 + 1" identifier + number_literal) , (binary_expression "puVar2 + -0x398c" identifier + number_literal) )))) ;) })) (expression_statement "(*(code *)PTR_wstring_004c2fc8)(&local_48,iVar4,0,auStack_40);" (call_expression "(*(code *)PTR_wstring_004c2fc8)(&local_48,iVar4,0,auStack_40)" (parenthesized_expression "(*(code *)PTR_wstring_004c2fc8)" ( (pointer_expression "*(code *)PTR_wstring_004c2fc8" * (cast_expression "(code *)PTR_wstring_004c2fc8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_48,iVar4,0,auStack_40)" ( (pointer_expression "&local_48" & identifier) , identifier , number_literal , identifier ))) ;) (if_statement "if (-1 < *(int *)(local_48 + -4)) {\n    (*(code *)PTR__M_leak_hard_004c2fa8)(&local_48);\n  }" if (parenthesized_expression "(-1 < *(int *)(local_48 + -4))" ( (binary_expression "-1 < *(int *)(local_48 + -4)" number_literal < (pointer_expression "*(int *)(local_48 + -4)" * (cast_expression "(int *)(local_48 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + -4)" ( (binary_expression "local_48 + -4" identifier + number_literal) ))))) )) (compound_statement "{\n    (*(code *)PTR__M_leak_hard_004c2fa8)(&local_48);\n  }" { (expression_statement "(*(code *)PTR__M_leak_hard_004c2fa8)(&local_48);" (call_expression "(*(code *)PTR__M_leak_hard_004c2fa8)(&local_48)" (parenthesized_expression "(*(code *)PTR__M_leak_hard_004c2fa8)" ( (pointer_expression "*(code *)PTR__M_leak_hard_004c2fa8" * (cast_expression "(code *)PTR__M_leak_hard_004c2fa8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_48)" ( (pointer_expression "&local_48" & identifier) ))) ;) })) comment (expression_statement "(**(code **)(*(int *)pcVar3 + 0x2c))(pcVar3,puVar6,puVar6 + iVar4,local_48);" (call_expression "(**(code **)(*(int *)pcVar3 + 0x2c))(pcVar3,puVar6,puVar6 + iVar4,local_48)" (parenthesized_expression "(**(code **)(*(int *)pcVar3 + 0x2c))" ( (pointer_expression "**(code **)(*(int *)pcVar3 + 0x2c)" * (pointer_expression "*(code **)(*(int *)pcVar3 + 0x2c)" * (cast_expression "(code **)(*(int *)pcVar3 + 0x2c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)pcVar3 + 0x2c)" ( (binary_expression "*(int *)pcVar3 + 0x2c" (pointer_expression "*(int *)pcVar3" * (cast_expression "(int *)pcVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(pcVar3,puVar6,puVar6 + iVar4,local_48)" ( identifier , identifier , (binary_expression "puVar6 + iVar4" identifier + identifier) , identifier ))) ;) (expression_statement "pcVar7 = (code *)PTR__M_insert<false>_004c2fd0;" (assignment_expression "pcVar7 = (code *)PTR__M_insert<false>_004c2fd0" identifier = (binary_expression "(code *)PTR__M_insert<false>_004c2fd0" (binary_expression "(code *)PTR__M_insert<false" (cast_expression "(code *)PTR__M_insert" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) < false) > identifier)) ;) (if_statement "if (local_38 != 0) {\n    pcVar7 = (code *)PTR__M_insert<true>_004c2fcc;\n  }" if (parenthesized_expression "(local_38 != 0)" ( (binary_expression "local_38 != 0" identifier != number_literal) )) (compound_statement "{\n    pcVar7 = (code *)PTR__M_insert<true>_004c2fcc;\n  }" { (expression_statement "pcVar7 = (code *)PTR__M_insert<true>_004c2fcc;" (assignment_expression "pcVar7 = (code *)PTR__M_insert<true>_004c2fcc" identifier = (binary_expression "(code *)PTR__M_insert<true>_004c2fcc" (binary_expression "(code *)PTR__M_insert<true" (cast_expression "(code *)PTR__M_insert" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) < true) > identifier)) ;) })) (expression_statement "*(int **)(puVar8 + 0x18) = &local_48;" (assignment_expression "*(int **)(puVar8 + 0x18) = &local_48" (pointer_expression "*(int **)(puVar8 + 0x18)" * (cast_expression "(int **)(puVar8 + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x18)" ( (binary_expression "puVar8 + 0x18" identifier + number_literal) )))) = (pointer_expression "&local_48" & identifier)) ;) (expression_statement "*(undefined4 *)(puVar8 + 0x14) = param_7;" (assignment_expression "*(undefined4 *)(puVar8 + 0x14) = param_7" (pointer_expression "*(undefined4 *)(puVar8 + 0x14)" * (cast_expression "(undefined4 *)(puVar8 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 0x14)" ( (binary_expression "puVar8 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(puVar8 + 0x10) = param_6;" (assignment_expression "*(int *)(puVar8 + 0x10) = param_6" (pointer_expression "*(int *)(puVar8 + 0x10)" * (cast_expression "(int *)(puVar8 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 0x10)" ( (binary_expression "puVar8 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "(*pcVar7)(param_1,param_2,param_3,param_4);" (call_expression "(*pcVar7)(param_1,param_2,param_3,param_4)" (parenthesized_expression "(*pcVar7)" ( (pointer_expression "*pcVar7" * identifier) )) (argument_list "(param_1,param_2,param_3,param_4)" ( identifier , identifier , identifier , identifier ))) ;) (if_statement "if ((undefined *)(local_48 + -0xc) != PTR__S_empty_rep_storage_004c133c) {\n    FUN_00399fa8((undefined *)(local_48 + -0xc),auStack_40);\n  }" if (parenthesized_expression "((undefined *)(local_48 + -0xc) != PTR__S_empty_rep_storage_004c133c)" ( (binary_expression "(undefined *)(local_48 + -0xc) != PTR__S_empty_rep_storage_004c133c" (cast_expression "(undefined *)(local_48 + -0xc)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + -0xc)" ( (binary_expression "local_48 + -0xc" identifier + number_literal) ))) != identifier) )) (compound_statement "{\n    FUN_00399fa8((undefined *)(local_48 + -0xc),auStack_40);\n  }" { (expression_statement "FUN_00399fa8((undefined *)(local_48 + -0xc),auStack_40);" (call_expression "FUN_00399fa8((undefined *)(local_48 + -0xc),auStack_40)" identifier (argument_list "((undefined *)(local_48 + -0xc),auStack_40)" ( (cast_expression "(undefined *)(local_48 + -0xc)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + -0xc)" ( (binary_expression "local_48 + -0xc" identifier + number_literal) ))) , identifier ))) ;) })) (expression_statement "(*(code *)PTR__locale_004c22f0)(alStack_44);" (call_expression "(*(code *)PTR__locale_004c22f0)(alStack_44)" (parenthesized_expression "(*(code *)PTR__locale_004c22f0)" ( (pointer_expression "*(code *)PTR__locale_004c22f0" * (cast_expression "(code *)PTR__locale_004c22f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(alStack_44)" ( identifier ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::money_put<wchar_t, std::ostreambuf_iterator<wchar_t, std::char_traits<wchar_t> >\n   >::do_put(std::ostreambuf_iterator<wchar_t, std::char_traits<wchar_t> >, bool, std::ios_base&,\n   wchar_t, long double) const */\n\nundefined4\nstd::money_put<wchar_t,std::ostreambuf_iterator<wchar_t,std::char_traits<wchar_t>>>::do_put\n          (undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,byte param_5,\n          int param_6,undefined4 param_7,undefined4 param_8,undefined8 param_9)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  ctype *pcVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  code *pcVar7;\n  undefined1 *puVar8;\n  undefined1 auStack_b0 [16];\n  undefined4 local_a0 [2];\n  undefined8 local_98;\n  undefined1 auStack_90 [64];\n  int local_48;\n  locale alStack_44 [4];\n  undefined1 auStack_40 [8];\n  uint local_38;\n  \n  local_38 = (uint)param_5;\n  (*(code *)PTR_locale_004c2d24)(alStack_44,param_6 + 0x6c);\n                    /* try { // try from 003a0ebc to 003a0f87 has its CatchHandler @ 003a10d4 */\n  pcVar3 = use_facet<std::ctype<wchar_t>>(alStack_44);\n  puVar8 = auStack_b0;\n  puVar6 = auStack_90;\n  local_48 = (*(code *)PTR__S_get_c_locale_004c13c0)();\n  puVar2 = PTR_UINT_004c12dc;\n  local_a0[0] = 0;\n  local_98 = param_9;\n  iVar4 = (*(code *)PTR___convert_from_v_004c2d28)\n                    (&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c);\n  if (0x3f < iVar4) {\n    iVar1 = -(iVar4 + 8U & 0xfffffff8);\n    puVar8 = auStack_b0 + iVar1;\n    puVar6 = auStack_90 + iVar1;\n    iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)();\n    *(undefined8 *)(auStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = iVar5;\n    iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c);\n  }\n  (*(code *)PTR_wstring_004c2fc8)(&local_48,iVar4,0,auStack_40);\n  if (-1 < *(int *)(local_48 + -4)) {\n    (*(code *)PTR__M_leak_hard_004c2fa8)(&local_48);\n  }\n                    /* try { // try from 003a0fb0 to 003a106f has its CatchHandler @ 003a108c */\n  (**(code **)(*(int *)pcVar3 + 0x2c))(pcVar3,puVar6,puVar6 + iVar4,local_48);\n  pcVar7 = (code *)PTR__M_insert<false>_004c2fd0;\n  if (local_38 != 0) {\n    pcVar7 = (code *)PTR__M_insert<true>_004c2fcc;\n  }\n  *(int **)(puVar8 + 0x18) = &local_48;\n  *(undefined4 *)(puVar8 + 0x14) = param_7;\n  *(int *)(puVar8 + 0x10) = param_6;\n  (*pcVar7)(param_1,param_2,param_3,param_4);\n  if ((allocator *)(local_48 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004c133c) {\n    std::wstring::_Rep::_M_dispose((allocator *)(local_48 + -0xc));\n  }\n  (*(code *)PTR__locale_004c22f0)(alStack_44);\n  return param_1;\n}\n\n" comment (declaration "undefined4\nstd::money_put<wchar_t,std::ostreambuf_iterator<wchar_t,std::char_traits<wchar_t>>>::do_put\n          (undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,byte param_5,\n          int param_6,undefined4 param_7,undefined4 param_8,undefined8 param_9)\n\n{\n  int iVar1;" type_identifier (ERROR "std::money_put<" identifier : : identifier <) identifier , (ERROR "std::ostreambuf_iterator<" identifier : : identifier <) identifier , (ERROR "std::char_traits<wchar_t>>>::do_put\n          (undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,byte param_5,\n          int param_6,undefined4 param_7,undefined4 param_8,undefined8 param_9)\n\n{\n  int" identifier : : identifier < identifier >> > : : (function_declarator "do_put\n          (undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,byte param_5,\n          int param_6,undefined4 param_7,undefined4 param_8,undefined8 param_9)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,byte param_5,\n          int param_6,undefined4 param_7,undefined4 param_8,undefined8 param_9)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "byte param_5" type_identifier identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) , (parameter_declaration "undefined8 param_9" type_identifier identifier) ))) { primitive_type) identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "ctype *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "code *pcVar7;" type_identifier (pointer_declarator "*pcVar7" * identifier) ;) (declaration "undefined1 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined1 auStack_b0 [16];" type_identifier (array_declarator "auStack_b0 [16]" identifier [ number_literal ]) ;) (declaration "undefined4 local_a0 [2];" type_identifier (array_declarator "local_a0 [2]" identifier [ number_literal ]) ;) (declaration "undefined8 local_98;" type_identifier identifier ;) (declaration "undefined1 auStack_90 [64];" type_identifier (array_declarator "auStack_90 [64]" identifier [ number_literal ]) ;) (declaration "int local_48;" primitive_type identifier ;) (declaration "locale alStack_44 [4];" type_identifier (array_declarator "alStack_44 [4]" identifier [ number_literal ]) ;) (declaration "undefined1 auStack_40 [8];" type_identifier (array_declarator "auStack_40 [8]" identifier [ number_literal ]) ;) (declaration "uint local_38;" type_identifier identifier ;) (expression_statement "local_38 = (uint)param_5;" (assignment_expression "local_38 = (uint)param_5" identifier = (cast_expression "(uint)param_5" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "(*(code *)PTR_locale_004c2d24)(alStack_44,param_6 + 0x6c);" (call_expression "(*(code *)PTR_locale_004c2d24)(alStack_44,param_6 + 0x6c)" (parenthesized_expression "(*(code *)PTR_locale_004c2d24)" ( (pointer_expression "*(code *)PTR_locale_004c2d24" * (cast_expression "(code *)PTR_locale_004c2d24" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(alStack_44,param_6 + 0x6c)" ( identifier , (binary_expression "param_6 + 0x6c" identifier + number_literal) ))) ;) comment (expression_statement "pcVar3 = use_facet<std::ctype<wchar_t>>(alStack_44);" (update_expression "pcVar3 = use_facet<std::ctype<wchar_t>>(alStack_44)" (binary_expression "pcVar3 = use_facet<std::ctype<wchar_t>>(alStack_44)" (assignment_expression "pcVar3 = use_facet<std" identifier = (binary_expression "use_facet<std" identifier < identifier)) (ERROR "::ctype" : : identifier) < (binary_expression "wchar_t>>(alStack_44)" identifier >> (parenthesized_expression "(alStack_44)" ( identifier )))) --) ;) (expression_statement "puVar8 = auStack_b0;" (assignment_expression "puVar8 = auStack_b0" identifier = identifier) ;) (expression_statement "puVar6 = auStack_90;" (assignment_expression "puVar6 = auStack_90" identifier = identifier) ;) (expression_statement "local_48 = (*(code *)PTR__S_get_c_locale_004c13c0)();" (assignment_expression "local_48 = (*(code *)PTR__S_get_c_locale_004c13c0)()" identifier = (call_expression "(*(code *)PTR__S_get_c_locale_004c13c0)()" (parenthesized_expression "(*(code *)PTR__S_get_c_locale_004c13c0)" ( (pointer_expression "*(code *)PTR__S_get_c_locale_004c13c0" * (cast_expression "(code *)PTR__S_get_c_locale_004c13c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "puVar2 = PTR_UINT_004c12dc;" (assignment_expression "puVar2 = PTR_UINT_004c12dc" identifier = identifier) ;) (expression_statement "local_a0[0] = 0;" (assignment_expression "local_a0[0] = 0" (subscript_expression "local_a0[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_98 = param_9;" (assignment_expression "local_98 = param_9" identifier = identifier) ;) (expression_statement "iVar4 = (*(code *)PTR___convert_from_v_004c2d28)\n                    (&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c);" (assignment_expression "iVar4 = (*(code *)PTR___convert_from_v_004c2d28)\n                    (&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c)" identifier = (call_expression "(*(code *)PTR___convert_from_v_004c2d28)\n                    (&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c)" (parenthesized_expression "(*(code *)PTR___convert_from_v_004c2d28)" ( (pointer_expression "*(code *)PTR___convert_from_v_004c2d28" * (cast_expression "(code *)PTR___convert_from_v_004c2d28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c)" ( (pointer_expression "&local_48" & identifier) , identifier , number_literal , (binary_expression "PTR_UINT_004c12dc + -0x398c" identifier + number_literal) )))) ;) (if_statement "if (0x3f < iVar4) {\n    iVar1 = -(iVar4 + 8U & 0xfffffff8);\n    puVar8 = auStack_b0 + iVar1;\n    puVar6 = auStack_90 + iVar1;\n    iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)();\n    *(undefined8 *)(auStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = iVar5;\n    iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c);\n  }" if (parenthesized_expression "(0x3f < iVar4)" ( (binary_expression "0x3f < iVar4" number_literal < identifier) )) (compound_statement "{\n    iVar1 = -(iVar4 + 8U & 0xfffffff8);\n    puVar8 = auStack_b0 + iVar1;\n    puVar6 = auStack_90 + iVar1;\n    iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)();\n    *(undefined8 *)(auStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = iVar5;\n    iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c);\n  }" { (expression_statement "iVar1 = -(iVar4 + 8U & 0xfffffff8);" (assignment_expression "iVar1 = -(iVar4 + 8U & 0xfffffff8)" identifier = (unary_expression "-(iVar4 + 8U & 0xfffffff8)" - (parenthesized_expression "(iVar4 + 8U & 0xfffffff8)" ( (binary_expression "iVar4 + 8U & 0xfffffff8" (binary_expression "iVar4 + 8U" identifier + number_literal) & number_literal) )))) ;) (expression_statement "puVar8 = auStack_b0 + iVar1;" (assignment_expression "puVar8 = auStack_b0 + iVar1" identifier = (binary_expression "auStack_b0 + iVar1" identifier + identifier)) ;) (expression_statement "puVar6 = auStack_90 + iVar1;" (assignment_expression "puVar6 = auStack_90 + iVar1" identifier = (binary_expression "auStack_90 + iVar1" identifier + identifier)) ;) (expression_statement "iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)();" (assignment_expression "iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)()" identifier = (call_expression "(*(code *)PTR__S_get_c_locale_004c13c0)()" (parenthesized_expression "(*(code *)PTR__S_get_c_locale_004c13c0)" ( (pointer_expression "*(code *)PTR__S_get_c_locale_004c13c0" * (cast_expression "(code *)PTR__S_get_c_locale_004c13c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "*(undefined8 *)(auStack_90 + iVar1 + -8) = param_9;" (assignment_expression "*(undefined8 *)(auStack_90 + iVar1 + -8) = param_9" (pointer_expression "*(undefined8 *)(auStack_90 + iVar1 + -8)" * (cast_expression "(undefined8 *)(auStack_90 + iVar1 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(auStack_90 + iVar1 + -8)" ( (binary_expression "auStack_90 + iVar1 + -8" (binary_expression "auStack_90 + iVar1" identifier + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)local_a0 + iVar1) = 0;" (assignment_expression "*(undefined4 *)((int)local_a0 + iVar1) = 0" (pointer_expression "*(undefined4 *)((int)local_a0 + iVar1)" * (cast_expression "(undefined4 *)((int)local_a0 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_a0 + iVar1)" ( (binary_expression "(int)local_a0 + iVar1" (cast_expression "(int)local_a0" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "local_48 = iVar5;" (assignment_expression "local_48 = iVar5" identifier = identifier) ;) (expression_statement "iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c);" (assignment_expression "iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c)" identifier = (call_expression "(*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c)" (parenthesized_expression "(*(code *)PTR___convert_from_v_004c2d28)" ( (pointer_expression "*(code *)PTR___convert_from_v_004c2d28" * (cast_expression "(code *)PTR___convert_from_v_004c2d28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c)" ( (pointer_expression "&local_48" & identifier) , identifier , (binary_expression "iVar4 + 1" identifier + number_literal) , (binary_expression "puVar2 + -0x398c" identifier + number_literal) )))) ;) })) (expression_statement "(*(code *)PTR_wstring_004c2fc8)(&local_48,iVar4,0,auStack_40);" (call_expression "(*(code *)PTR_wstring_004c2fc8)(&local_48,iVar4,0,auStack_40)" (parenthesized_expression "(*(code *)PTR_wstring_004c2fc8)" ( (pointer_expression "*(code *)PTR_wstring_004c2fc8" * (cast_expression "(code *)PTR_wstring_004c2fc8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_48,iVar4,0,auStack_40)" ( (pointer_expression "&local_48" & identifier) , identifier , number_literal , identifier ))) ;) (if_statement "if (-1 < *(int *)(local_48 + -4)) {\n    (*(code *)PTR__M_leak_hard_004c2fa8)(&local_48);\n  }" if (parenthesized_expression "(-1 < *(int *)(local_48 + -4))" ( (binary_expression "-1 < *(int *)(local_48 + -4)" number_literal < (pointer_expression "*(int *)(local_48 + -4)" * (cast_expression "(int *)(local_48 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + -4)" ( (binary_expression "local_48 + -4" identifier + number_literal) ))))) )) (compound_statement "{\n    (*(code *)PTR__M_leak_hard_004c2fa8)(&local_48);\n  }" { (expression_statement "(*(code *)PTR__M_leak_hard_004c2fa8)(&local_48);" (call_expression "(*(code *)PTR__M_leak_hard_004c2fa8)(&local_48)" (parenthesized_expression "(*(code *)PTR__M_leak_hard_004c2fa8)" ( (pointer_expression "*(code *)PTR__M_leak_hard_004c2fa8" * (cast_expression "(code *)PTR__M_leak_hard_004c2fa8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_48)" ( (pointer_expression "&local_48" & identifier) ))) ;) })) comment (expression_statement "(**(code **)(*(int *)pcVar3 + 0x2c))(pcVar3,puVar6,puVar6 + iVar4,local_48);" (call_expression "(**(code **)(*(int *)pcVar3 + 0x2c))(pcVar3,puVar6,puVar6 + iVar4,local_48)" (parenthesized_expression "(**(code **)(*(int *)pcVar3 + 0x2c))" ( (pointer_expression "**(code **)(*(int *)pcVar3 + 0x2c)" * (pointer_expression "*(code **)(*(int *)pcVar3 + 0x2c)" * (cast_expression "(code **)(*(int *)pcVar3 + 0x2c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)pcVar3 + 0x2c)" ( (binary_expression "*(int *)pcVar3 + 0x2c" (pointer_expression "*(int *)pcVar3" * (cast_expression "(int *)pcVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(pcVar3,puVar6,puVar6 + iVar4,local_48)" ( identifier , identifier , (binary_expression "puVar6 + iVar4" identifier + identifier) , identifier ))) ;) (expression_statement "pcVar7 = (code *)PTR__M_insert<false>_004c2fd0;" (assignment_expression "pcVar7 = (code *)PTR__M_insert<false>_004c2fd0" identifier = (binary_expression "(code *)PTR__M_insert<false>_004c2fd0" (binary_expression "(code *)PTR__M_insert<false" (cast_expression "(code *)PTR__M_insert" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) < false) > identifier)) ;) (if_statement "if (local_38 != 0) {\n    pcVar7 = (code *)PTR__M_insert<true>_004c2fcc;\n  }" if (parenthesized_expression "(local_38 != 0)" ( (binary_expression "local_38 != 0" identifier != number_literal) )) (compound_statement "{\n    pcVar7 = (code *)PTR__M_insert<true>_004c2fcc;\n  }" { (expression_statement "pcVar7 = (code *)PTR__M_insert<true>_004c2fcc;" (assignment_expression "pcVar7 = (code *)PTR__M_insert<true>_004c2fcc" identifier = (binary_expression "(code *)PTR__M_insert<true>_004c2fcc" (binary_expression "(code *)PTR__M_insert<true" (cast_expression "(code *)PTR__M_insert" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) < true) > identifier)) ;) })) (expression_statement "*(int **)(puVar8 + 0x18) = &local_48;" (assignment_expression "*(int **)(puVar8 + 0x18) = &local_48" (pointer_expression "*(int **)(puVar8 + 0x18)" * (cast_expression "(int **)(puVar8 + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x18)" ( (binary_expression "puVar8 + 0x18" identifier + number_literal) )))) = (pointer_expression "&local_48" & identifier)) ;) (expression_statement "*(undefined4 *)(puVar8 + 0x14) = param_7;" (assignment_expression "*(undefined4 *)(puVar8 + 0x14) = param_7" (pointer_expression "*(undefined4 *)(puVar8 + 0x14)" * (cast_expression "(undefined4 *)(puVar8 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 0x14)" ( (binary_expression "puVar8 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(puVar8 + 0x10) = param_6;" (assignment_expression "*(int *)(puVar8 + 0x10) = param_6" (pointer_expression "*(int *)(puVar8 + 0x10)" * (cast_expression "(int *)(puVar8 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 0x10)" ( (binary_expression "puVar8 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "(*pcVar7)(param_1,param_2,param_3,param_4);" (call_expression "(*pcVar7)(param_1,param_2,param_3,param_4)" (parenthesized_expression "(*pcVar7)" ( (pointer_expression "*pcVar7" * identifier) )) (argument_list "(param_1,param_2,param_3,param_4)" ( identifier , identifier , identifier , identifier ))) ;) (if_statement "if ((allocator *)(local_48 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004c133c) {\n    std::wstring::_Rep::_M_dispose((allocator *)(local_48 + -0xc));\n  }" if (parenthesized_expression "((allocator *)(local_48 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004c133c)" ( (binary_expression "(allocator *)(local_48 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004c133c" (cast_expression "(allocator *)(local_48 + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + -0xc)" ( (binary_expression "local_48 + -0xc" identifier + number_literal) ))) != (cast_expression "(allocator *)PTR__S_empty_rep_storage_004c133c" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    std::wstring::_Rep::_M_dispose((allocator *)(local_48 + -0xc));\n  }" { (labeled_statement "std::wstring::_Rep::_M_dispose((allocator *)(local_48 + -0xc));" statement_identifier : (ERROR ":" :) (labeled_statement "wstring::_Rep::_M_dispose((allocator *)(local_48 + -0xc));" statement_identifier : (ERROR ":" :) (labeled_statement "_Rep::_M_dispose((allocator *)(local_48 + -0xc));" statement_identifier : (ERROR ":" :) (expression_statement "_M_dispose((allocator *)(local_48 + -0xc));" (call_expression "_M_dispose((allocator *)(local_48 + -0xc))" identifier (argument_list "((allocator *)(local_48 + -0xc))" ( (cast_expression "(allocator *)(local_48 + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + -0xc)" ( (binary_expression "local_48 + -0xc" identifier + number_literal) ))) ))) ;)))) })) (expression_statement "(*(code *)PTR__locale_004c22f0)(alStack_44);" (call_expression "(*(code *)PTR__locale_004c22f0)(alStack_44)" (parenthesized_expression "(*(code *)PTR__locale_004c22f0)" ( (pointer_expression "*(code *)PTR__locale_004c22f0" * (cast_expression "(code *)PTR__locale_004c22f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(alStack_44)" ( identifier ))) ;) (return_statement "return param_1;" return identifier ;) (ERROR "}" }))
(translation_unit "undefined4\nFUN_003a0e3c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            byte param_5,int param_6,undefined4 param_7,undefined4 param_8,undefined8 param_9)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  ctype *pcVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  code *pcVar7;\n  undefined1 *puVar8;\n  undefined1 auStack_b0 [16];\n  undefined4 local_a0 [2];\n  undefined8 local_98;\n  undefined1 auStack_90 [64];\n  int local_48;\n  locale alStack_44 [4];\n  undefined1 auStack_40 [8];\n  uint local_38;\n  \n  local_38 = (uint)param_5;\n  (*(code *)PTR_locale_004c2d24)(alStack_44,param_6 + 0x6c);\n                    \n  pcVar3 = std::use_facet<std::ctype<wchar_t>>(alStack_44);\n  puVar8 = auStack_b0;\n  puVar6 = auStack_90;\n  local_48 = (*(code *)PTR__S_get_c_locale_004c13c0)();\n  puVar2 = PTR_UINT_004c12dc;\n  local_a0[0] = 0;\n  local_98 = param_9;\n  iVar4 = (*(code *)PTR___convert_from_v_004c2d28)\n                    (&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c);\n  if (0x3f < iVar4) {\n    iVar1 = -(iVar4 + 8U & 0xfffffff8);\n    puVar8 = auStack_b0 + iVar1;\n    puVar6 = auStack_90 + iVar1;\n    iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)();\n    *(undefined8 *)(auStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = iVar5;\n    iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c);\n  }\n  (*(code *)PTR_wstring_004c2fc8)(&local_48,iVar4,0,auStack_40);\n  if (-1 < *(int *)(local_48 + -4)) {\n    (*(code *)PTR__M_leak_hard_004c2fa8)(&local_48);\n  }\n                    \n  (**(code **)(*(int *)pcVar3 + 0x2c))(pcVar3,puVar6,puVar6 + iVar4,local_48);\n  pcVar7 = (code *)PTR__M_insert<false>_004c2fd0;\n  if (local_38 != 0) {\n    pcVar7 = (code *)PTR__M_insert<true>_004c2fcc;\n  }\n  *(int **)(puVar8 + 0x18) = &local_48;\n  *(undefined4 *)(puVar8 + 0x14) = param_7;\n  *(int *)(puVar8 + 0x10) = param_6;\n  (*pcVar7)(param_1,param_2,param_3,param_4);\n  if ((undefined *)(local_48 + -0xc) != PTR__S_empty_rep_storage_004c133c) {\n    FUN_00399fa8((undefined *)(local_48 + -0xc),auStack_40);\n  }\n  (*(code *)PTR__locale_004c22f0)(alStack_44);\n  return param_1;\n}\n\n" (function_definition "undefined4\nFUN_003a0e3c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            byte param_5,int param_6,undefined4 param_7,undefined4 param_8,undefined8 param_9)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  ctype *pcVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  code *pcVar7;\n  undefined1 *puVar8;\n  undefined1 auStack_b0 [16];\n  undefined4 local_a0 [2];\n  undefined8 local_98;\n  undefined1 auStack_90 [64];\n  int local_48;\n  locale alStack_44 [4];\n  undefined1 auStack_40 [8];\n  uint local_38;\n  \n  local_38 = (uint)param_5;\n  (*(code *)PTR_locale_004c2d24)(alStack_44,param_6 + 0x6c);\n                    \n  pcVar3 = std::use_facet<std::ctype<wchar_t>>(alStack_44);\n  puVar8 = auStack_b0;\n  puVar6 = auStack_90;\n  local_48 = (*(code *)PTR__S_get_c_locale_004c13c0)();\n  puVar2 = PTR_UINT_004c12dc;\n  local_a0[0] = 0;\n  local_98 = param_9;\n  iVar4 = (*(code *)PTR___convert_from_v_004c2d28)\n                    (&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c);\n  if (0x3f < iVar4) {\n    iVar1 = -(iVar4 + 8U & 0xfffffff8);\n    puVar8 = auStack_b0 + iVar1;\n    puVar6 = auStack_90 + iVar1;\n    iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)();\n    *(undefined8 *)(auStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = iVar5;\n    iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c);\n  }\n  (*(code *)PTR_wstring_004c2fc8)(&local_48,iVar4,0,auStack_40);\n  if (-1 < *(int *)(local_48 + -4)) {\n    (*(code *)PTR__M_leak_hard_004c2fa8)(&local_48);\n  }\n                    \n  (**(code **)(*(int *)pcVar3 + 0x2c))(pcVar3,puVar6,puVar6 + iVar4,local_48);\n  pcVar7 = (code *)PTR__M_insert<false>_004c2fd0;\n  if (local_38 != 0) {\n    pcVar7 = (code *)PTR__M_insert<true>_004c2fcc;\n  }\n  *(int **)(puVar8 + 0x18) = &local_48;\n  *(undefined4 *)(puVar8 + 0x14) = param_7;\n  *(int *)(puVar8 + 0x10) = param_6;\n  (*pcVar7)(param_1,param_2,param_3,param_4);\n  if ((undefined *)(local_48 + -0xc) != PTR__S_empty_rep_storage_004c133c) {\n    FUN_00399fa8((undefined *)(local_48 + -0xc),auStack_40);\n  }\n  (*(code *)PTR__locale_004c22f0)(alStack_44);\n  return param_1;\n}" type_identifier (function_declarator "FUN_003a0e3c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            byte param_5,int param_6,undefined4 param_7,undefined4 param_8,undefined8 param_9)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            byte param_5,int param_6,undefined4 param_7,undefined4 param_8,undefined8 param_9)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "byte param_5" type_identifier identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) , (parameter_declaration "undefined8 param_9" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  ctype *pcVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  code *pcVar7;\n  undefined1 *puVar8;\n  undefined1 auStack_b0 [16];\n  undefined4 local_a0 [2];\n  undefined8 local_98;\n  undefined1 auStack_90 [64];\n  int local_48;\n  locale alStack_44 [4];\n  undefined1 auStack_40 [8];\n  uint local_38;\n  \n  local_38 = (uint)param_5;\n  (*(code *)PTR_locale_004c2d24)(alStack_44,param_6 + 0x6c);\n                    \n  pcVar3 = std::use_facet<std::ctype<wchar_t>>(alStack_44);\n  puVar8 = auStack_b0;\n  puVar6 = auStack_90;\n  local_48 = (*(code *)PTR__S_get_c_locale_004c13c0)();\n  puVar2 = PTR_UINT_004c12dc;\n  local_a0[0] = 0;\n  local_98 = param_9;\n  iVar4 = (*(code *)PTR___convert_from_v_004c2d28)\n                    (&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c);\n  if (0x3f < iVar4) {\n    iVar1 = -(iVar4 + 8U & 0xfffffff8);\n    puVar8 = auStack_b0 + iVar1;\n    puVar6 = auStack_90 + iVar1;\n    iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)();\n    *(undefined8 *)(auStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = iVar5;\n    iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c);\n  }\n  (*(code *)PTR_wstring_004c2fc8)(&local_48,iVar4,0,auStack_40);\n  if (-1 < *(int *)(local_48 + -4)) {\n    (*(code *)PTR__M_leak_hard_004c2fa8)(&local_48);\n  }\n                    \n  (**(code **)(*(int *)pcVar3 + 0x2c))(pcVar3,puVar6,puVar6 + iVar4,local_48);\n  pcVar7 = (code *)PTR__M_insert<false>_004c2fd0;\n  if (local_38 != 0) {\n    pcVar7 = (code *)PTR__M_insert<true>_004c2fcc;\n  }\n  *(int **)(puVar8 + 0x18) = &local_48;\n  *(undefined4 *)(puVar8 + 0x14) = param_7;\n  *(int *)(puVar8 + 0x10) = param_6;\n  (*pcVar7)(param_1,param_2,param_3,param_4);\n  if ((undefined *)(local_48 + -0xc) != PTR__S_empty_rep_storage_004c133c) {\n    FUN_00399fa8((undefined *)(local_48 + -0xc),auStack_40);\n  }\n  (*(code *)PTR__locale_004c22f0)(alStack_44);\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "ctype *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "code *pcVar7;" type_identifier (pointer_declarator "*pcVar7" * identifier) ;) (declaration "undefined1 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined1 auStack_b0 [16];" type_identifier (array_declarator "auStack_b0 [16]" identifier [ number_literal ]) ;) (declaration "undefined4 local_a0 [2];" type_identifier (array_declarator "local_a0 [2]" identifier [ number_literal ]) ;) (declaration "undefined8 local_98;" type_identifier identifier ;) (declaration "undefined1 auStack_90 [64];" type_identifier (array_declarator "auStack_90 [64]" identifier [ number_literal ]) ;) (declaration "int local_48;" primitive_type identifier ;) (declaration "locale alStack_44 [4];" type_identifier (array_declarator "alStack_44 [4]" identifier [ number_literal ]) ;) (declaration "undefined1 auStack_40 [8];" type_identifier (array_declarator "auStack_40 [8]" identifier [ number_literal ]) ;) (declaration "uint local_38;" type_identifier identifier ;) (expression_statement "local_38 = (uint)param_5;" (assignment_expression "local_38 = (uint)param_5" identifier = (cast_expression "(uint)param_5" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "(*(code *)PTR_locale_004c2d24)(alStack_44,param_6 + 0x6c);" (call_expression "(*(code *)PTR_locale_004c2d24)(alStack_44,param_6 + 0x6c)" (parenthesized_expression "(*(code *)PTR_locale_004c2d24)" ( (pointer_expression "*(code *)PTR_locale_004c2d24" * (cast_expression "(code *)PTR_locale_004c2d24" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(alStack_44,param_6 + 0x6c)" ( identifier , (binary_expression "param_6 + 0x6c" identifier + number_literal) ))) ;) (expression_statement "pcVar3 = std::use_facet<std::ctype<wchar_t>>(alStack_44);" (binary_expression "pcVar3 = std::use_facet<std::ctype<wchar_t>>(alStack_44)" (binary_expression "pcVar3 = std::use_facet<std" (assignment_expression "pcVar3 = std" identifier = identifier) (ERROR "::use_facet" : : identifier) < identifier) (ERROR "::ctype" : : identifier) < (binary_expression "wchar_t>>(alStack_44)" identifier >> (parenthesized_expression "(alStack_44)" ( identifier )))) ;) (expression_statement "puVar8 = auStack_b0;" (assignment_expression "puVar8 = auStack_b0" identifier = identifier) ;) (expression_statement "puVar6 = auStack_90;" (assignment_expression "puVar6 = auStack_90" identifier = identifier) ;) (expression_statement "local_48 = (*(code *)PTR__S_get_c_locale_004c13c0)();" (assignment_expression "local_48 = (*(code *)PTR__S_get_c_locale_004c13c0)()" identifier = (call_expression "(*(code *)PTR__S_get_c_locale_004c13c0)()" (parenthesized_expression "(*(code *)PTR__S_get_c_locale_004c13c0)" ( (pointer_expression "*(code *)PTR__S_get_c_locale_004c13c0" * (cast_expression "(code *)PTR__S_get_c_locale_004c13c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "puVar2 = PTR_UINT_004c12dc;" (assignment_expression "puVar2 = PTR_UINT_004c12dc" identifier = identifier) ;) (expression_statement "local_a0[0] = 0;" (assignment_expression "local_a0[0] = 0" (subscript_expression "local_a0[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_98 = param_9;" (assignment_expression "local_98 = param_9" identifier = identifier) ;) (expression_statement "iVar4 = (*(code *)PTR___convert_from_v_004c2d28)\n                    (&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c);" (assignment_expression "iVar4 = (*(code *)PTR___convert_from_v_004c2d28)\n                    (&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c)" identifier = (call_expression "(*(code *)PTR___convert_from_v_004c2d28)\n                    (&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c)" (parenthesized_expression "(*(code *)PTR___convert_from_v_004c2d28)" ( (pointer_expression "*(code *)PTR___convert_from_v_004c2d28" * (cast_expression "(code *)PTR___convert_from_v_004c2d28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c)" ( (pointer_expression "&local_48" & identifier) , identifier , number_literal , (binary_expression "PTR_UINT_004c12dc + -0x398c" identifier + number_literal) )))) ;) (if_statement "if (0x3f < iVar4) {\n    iVar1 = -(iVar4 + 8U & 0xfffffff8);\n    puVar8 = auStack_b0 + iVar1;\n    puVar6 = auStack_90 + iVar1;\n    iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)();\n    *(undefined8 *)(auStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = iVar5;\n    iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c);\n  }" if (parenthesized_expression "(0x3f < iVar4)" ( (binary_expression "0x3f < iVar4" number_literal < identifier) )) (compound_statement "{\n    iVar1 = -(iVar4 + 8U & 0xfffffff8);\n    puVar8 = auStack_b0 + iVar1;\n    puVar6 = auStack_90 + iVar1;\n    iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)();\n    *(undefined8 *)(auStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = iVar5;\n    iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c);\n  }" { (expression_statement "iVar1 = -(iVar4 + 8U & 0xfffffff8);" (assignment_expression "iVar1 = -(iVar4 + 8U & 0xfffffff8)" identifier = (unary_expression "-(iVar4 + 8U & 0xfffffff8)" - (parenthesized_expression "(iVar4 + 8U & 0xfffffff8)" ( (binary_expression "iVar4 + 8U & 0xfffffff8" (binary_expression "iVar4 + 8U" identifier + number_literal) & number_literal) )))) ;) (expression_statement "puVar8 = auStack_b0 + iVar1;" (assignment_expression "puVar8 = auStack_b0 + iVar1" identifier = (binary_expression "auStack_b0 + iVar1" identifier + identifier)) ;) (expression_statement "puVar6 = auStack_90 + iVar1;" (assignment_expression "puVar6 = auStack_90 + iVar1" identifier = (binary_expression "auStack_90 + iVar1" identifier + identifier)) ;) (expression_statement "iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)();" (assignment_expression "iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)()" identifier = (call_expression "(*(code *)PTR__S_get_c_locale_004c13c0)()" (parenthesized_expression "(*(code *)PTR__S_get_c_locale_004c13c0)" ( (pointer_expression "*(code *)PTR__S_get_c_locale_004c13c0" * (cast_expression "(code *)PTR__S_get_c_locale_004c13c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "*(undefined8 *)(auStack_90 + iVar1 + -8) = param_9;" (assignment_expression "*(undefined8 *)(auStack_90 + iVar1 + -8) = param_9" (pointer_expression "*(undefined8 *)(auStack_90 + iVar1 + -8)" * (cast_expression "(undefined8 *)(auStack_90 + iVar1 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(auStack_90 + iVar1 + -8)" ( (binary_expression "auStack_90 + iVar1 + -8" (binary_expression "auStack_90 + iVar1" identifier + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)local_a0 + iVar1) = 0;" (assignment_expression "*(undefined4 *)((int)local_a0 + iVar1) = 0" (pointer_expression "*(undefined4 *)((int)local_a0 + iVar1)" * (cast_expression "(undefined4 *)((int)local_a0 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_a0 + iVar1)" ( (binary_expression "(int)local_a0 + iVar1" (cast_expression "(int)local_a0" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "local_48 = iVar5;" (assignment_expression "local_48 = iVar5" identifier = identifier) ;) (expression_statement "iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c);" (assignment_expression "iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c)" identifier = (call_expression "(*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c)" (parenthesized_expression "(*(code *)PTR___convert_from_v_004c2d28)" ( (pointer_expression "*(code *)PTR___convert_from_v_004c2d28" * (cast_expression "(code *)PTR___convert_from_v_004c2d28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c)" ( (pointer_expression "&local_48" & identifier) , identifier , (binary_expression "iVar4 + 1" identifier + number_literal) , (binary_expression "puVar2 + -0x398c" identifier + number_literal) )))) ;) })) (expression_statement "(*(code *)PTR_wstring_004c2fc8)(&local_48,iVar4,0,auStack_40);" (call_expression "(*(code *)PTR_wstring_004c2fc8)(&local_48,iVar4,0,auStack_40)" (parenthesized_expression "(*(code *)PTR_wstring_004c2fc8)" ( (pointer_expression "*(code *)PTR_wstring_004c2fc8" * (cast_expression "(code *)PTR_wstring_004c2fc8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_48,iVar4,0,auStack_40)" ( (pointer_expression "&local_48" & identifier) , identifier , number_literal , identifier ))) ;) (if_statement "if (-1 < *(int *)(local_48 + -4)) {\n    (*(code *)PTR__M_leak_hard_004c2fa8)(&local_48);\n  }" if (parenthesized_expression "(-1 < *(int *)(local_48 + -4))" ( (binary_expression "-1 < *(int *)(local_48 + -4)" number_literal < (pointer_expression "*(int *)(local_48 + -4)" * (cast_expression "(int *)(local_48 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + -4)" ( (binary_expression "local_48 + -4" identifier + number_literal) ))))) )) (compound_statement "{\n    (*(code *)PTR__M_leak_hard_004c2fa8)(&local_48);\n  }" { (expression_statement "(*(code *)PTR__M_leak_hard_004c2fa8)(&local_48);" (call_expression "(*(code *)PTR__M_leak_hard_004c2fa8)(&local_48)" (parenthesized_expression "(*(code *)PTR__M_leak_hard_004c2fa8)" ( (pointer_expression "*(code *)PTR__M_leak_hard_004c2fa8" * (cast_expression "(code *)PTR__M_leak_hard_004c2fa8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_48)" ( (pointer_expression "&local_48" & identifier) ))) ;) })) (expression_statement "(**(code **)(*(int *)pcVar3 + 0x2c))(pcVar3,puVar6,puVar6 + iVar4,local_48);" (call_expression "(**(code **)(*(int *)pcVar3 + 0x2c))(pcVar3,puVar6,puVar6 + iVar4,local_48)" (parenthesized_expression "(**(code **)(*(int *)pcVar3 + 0x2c))" ( (pointer_expression "**(code **)(*(int *)pcVar3 + 0x2c)" * (pointer_expression "*(code **)(*(int *)pcVar3 + 0x2c)" * (cast_expression "(code **)(*(int *)pcVar3 + 0x2c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)pcVar3 + 0x2c)" ( (binary_expression "*(int *)pcVar3 + 0x2c" (pointer_expression "*(int *)pcVar3" * (cast_expression "(int *)pcVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(pcVar3,puVar6,puVar6 + iVar4,local_48)" ( identifier , identifier , (binary_expression "puVar6 + iVar4" identifier + identifier) , identifier ))) ;) (expression_statement "pcVar7 = (code *)PTR__M_insert<false>_004c2fd0;" (assignment_expression "pcVar7 = (code *)PTR__M_insert<false>_004c2fd0" identifier = (binary_expression "(code *)PTR__M_insert<false>_004c2fd0" (binary_expression "(code *)PTR__M_insert<false" (cast_expression "(code *)PTR__M_insert" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) < false) > identifier)) ;) (if_statement "if (local_38 != 0) {\n    pcVar7 = (code *)PTR__M_insert<true>_004c2fcc;\n  }" if (parenthesized_expression "(local_38 != 0)" ( (binary_expression "local_38 != 0" identifier != number_literal) )) (compound_statement "{\n    pcVar7 = (code *)PTR__M_insert<true>_004c2fcc;\n  }" { (expression_statement "pcVar7 = (code *)PTR__M_insert<true>_004c2fcc;" (assignment_expression "pcVar7 = (code *)PTR__M_insert<true>_004c2fcc" identifier = (binary_expression "(code *)PTR__M_insert<true>_004c2fcc" (binary_expression "(code *)PTR__M_insert<true" (cast_expression "(code *)PTR__M_insert" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) < true) > identifier)) ;) })) (expression_statement "*(int **)(puVar8 + 0x18) = &local_48;" (assignment_expression "*(int **)(puVar8 + 0x18) = &local_48" (pointer_expression "*(int **)(puVar8 + 0x18)" * (cast_expression "(int **)(puVar8 + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x18)" ( (binary_expression "puVar8 + 0x18" identifier + number_literal) )))) = (pointer_expression "&local_48" & identifier)) ;) (expression_statement "*(undefined4 *)(puVar8 + 0x14) = param_7;" (assignment_expression "*(undefined4 *)(puVar8 + 0x14) = param_7" (pointer_expression "*(undefined4 *)(puVar8 + 0x14)" * (cast_expression "(undefined4 *)(puVar8 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 0x14)" ( (binary_expression "puVar8 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(puVar8 + 0x10) = param_6;" (assignment_expression "*(int *)(puVar8 + 0x10) = param_6" (pointer_expression "*(int *)(puVar8 + 0x10)" * (cast_expression "(int *)(puVar8 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 0x10)" ( (binary_expression "puVar8 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "(*pcVar7)(param_1,param_2,param_3,param_4);" (call_expression "(*pcVar7)(param_1,param_2,param_3,param_4)" (parenthesized_expression "(*pcVar7)" ( (pointer_expression "*pcVar7" * identifier) )) (argument_list "(param_1,param_2,param_3,param_4)" ( identifier , identifier , identifier , identifier ))) ;) (if_statement "if ((undefined *)(local_48 + -0xc) != PTR__S_empty_rep_storage_004c133c) {\n    FUN_00399fa8((undefined *)(local_48 + -0xc),auStack_40);\n  }" if (parenthesized_expression "((undefined *)(local_48 + -0xc) != PTR__S_empty_rep_storage_004c133c)" ( (binary_expression "(undefined *)(local_48 + -0xc) != PTR__S_empty_rep_storage_004c133c" (cast_expression "(undefined *)(local_48 + -0xc)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + -0xc)" ( (binary_expression "local_48 + -0xc" identifier + number_literal) ))) != identifier) )) (compound_statement "{\n    FUN_00399fa8((undefined *)(local_48 + -0xc),auStack_40);\n  }" { (expression_statement "FUN_00399fa8((undefined *)(local_48 + -0xc),auStack_40);" (call_expression "FUN_00399fa8((undefined *)(local_48 + -0xc),auStack_40)" identifier (argument_list "((undefined *)(local_48 + -0xc),auStack_40)" ( (cast_expression "(undefined *)(local_48 + -0xc)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + -0xc)" ( (binary_expression "local_48 + -0xc" identifier + number_literal) ))) , identifier ))) ;) })) (expression_statement "(*(code *)PTR__locale_004c22f0)(alStack_44);" (call_expression "(*(code *)PTR__locale_004c22f0)(alStack_44)" (parenthesized_expression "(*(code *)PTR__locale_004c22f0)" ( (pointer_expression "*(code *)PTR__locale_004c22f0" * (cast_expression "(code *)PTR__locale_004c22f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(alStack_44)" ( identifier ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (binary_expression (binary_expression (assignment_expression IDENT = IDENT) (ERROR : : IDENT) < IDENT) (ERROR : : IDENT) < (binary_expression IDENT >> (parenthesized_expression ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression & IDENT) , IDENT , LIT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (unary_expression - (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) & LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression & IDENT) , IDENT , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) )))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression & IDENT) , IDENT , LIT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression & IDENT) ))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) )) (argument_list ( IDENT , IDENT , (binary_expression IDENT + IDENT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) < BOOL) > IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) < BOOL) > IDENT)) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) , IDENT ))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4\nFUN_003a0e3c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            byte param_5,int param_6,undefined4 param_7,undefined4 param_8,undefined8 param_9)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  ctype *pcVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  code *pcVar7;\n  undefined1 *puVar8;\n  undefined1 auStack_b0 [16];\n  undefined4 local_a0 [2];\n  undefined8 local_98;\n  undefined1 auStack_90 [64];\n  int local_48;\n  locale alStack_44 [4];\n  undefined1 auStack_40 [8];\n  uint local_38;\n  \n  local_38 = (uint)param_5;\n  (*(code *)PTR_locale_004c2d24)(alStack_44,param_6 + 0x6c);\n                    \n  pcVar3 = std::use_facet<std::ctype<wchar_t>>(alStack_44);\n  puVar8 = auStack_b0;\n  puVar6 = auStack_90;\n  local_48 = (*(code *)PTR__S_get_c_locale_004c13c0)();\n  puVar2 = PTR_UINT_004c12dc;\n  local_a0[0] = 0;\n  local_98 = param_9;\n  iVar4 = (*(code *)PTR___convert_from_v_004c2d28)\n                    (&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c);\n  if (0x3f < iVar4) {\n    iVar1 = -(iVar4 + 8U & 0xfffffff8);\n    puVar8 = auStack_b0 + iVar1;\n    puVar6 = auStack_90 + iVar1;\n    iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)();\n    *(undefined8 *)(auStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = iVar5;\n    iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c);\n  }\n  (*(code *)PTR_wstring_004c2fc8)(&local_48,iVar4,0,auStack_40);\n  if (-1 < *(int *)(local_48 + -4)) {\n    (*(code *)PTR__M_leak_hard_004c2fa8)(&local_48);\n  }\n                    \n  (**(code **)(*(int *)pcVar3 + 0x2c))(pcVar3,puVar6,puVar6 + iVar4,local_48);\n  pcVar7 = (code *)PTR__M_insert<false>_004c2fd0;\n  if (local_38 != 0) {\n    pcVar7 = (code *)PTR__M_insert<true>_004c2fcc;\n  }\n  *(int **)(puVar8 + 0x18) = &local_48;\n  *(undefined4 *)(puVar8 + 0x14) = param_7;\n  *(int *)(puVar8 + 0x10) = param_6;\n  (*pcVar7)(param_1,param_2,param_3,param_4);\n  if ((undefined *)(local_48 + -0xc) != PTR__S_empty_rep_storage_004c133c) {\n    FUN_00399fa8((undefined *)(local_48 + -0xc),auStack_40);\n  }\n  (*(code *)PTR__locale_004c22f0)(alStack_44);\n  return param_1;\n}" (type_identifier "undefined4") (function_declarator "FUN_003a0e3c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            byte param_5,int param_6,undefined4 param_7,undefined4 param_8,undefined8 param_9)" (identifier "FUN_003a0e3c") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            byte param_5,int param_6,undefined4 param_7,undefined4 param_8,undefined8 param_9)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "byte param_5" (type_identifier "byte") (identifier "param_5")) (, ",") (parameter_declaration "int param_6" (primitive_type "int") (identifier "param_6")) (, ",") (parameter_declaration "undefined4 param_7" (type_identifier "undefined4") (identifier "param_7")) (, ",") (parameter_declaration "undefined4 param_8" (type_identifier "undefined4") (identifier "param_8")) (, ",") (parameter_declaration "undefined8 param_9" (type_identifier "undefined8") (identifier "param_9")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  ctype *pcVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  code *pcVar7;\n  undefined1 *puVar8;\n  undefined1 auStack_b0 [16];\n  undefined4 local_a0 [2];\n  undefined8 local_98;\n  undefined1 auStack_90 [64];\n  int local_48;\n  locale alStack_44 [4];\n  undefined1 auStack_40 [8];\n  uint local_38;\n  \n  local_38 = (uint)param_5;\n  (*(code *)PTR_locale_004c2d24)(alStack_44,param_6 + 0x6c);\n                    \n  pcVar3 = std::use_facet<std::ctype<wchar_t>>(alStack_44);\n  puVar8 = auStack_b0;\n  puVar6 = auStack_90;\n  local_48 = (*(code *)PTR__S_get_c_locale_004c13c0)();\n  puVar2 = PTR_UINT_004c12dc;\n  local_a0[0] = 0;\n  local_98 = param_9;\n  iVar4 = (*(code *)PTR___convert_from_v_004c2d28)\n                    (&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c);\n  if (0x3f < iVar4) {\n    iVar1 = -(iVar4 + 8U & 0xfffffff8);\n    puVar8 = auStack_b0 + iVar1;\n    puVar6 = auStack_90 + iVar1;\n    iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)();\n    *(undefined8 *)(auStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = iVar5;\n    iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c);\n  }\n  (*(code *)PTR_wstring_004c2fc8)(&local_48,iVar4,0,auStack_40);\n  if (-1 < *(int *)(local_48 + -4)) {\n    (*(code *)PTR__M_leak_hard_004c2fa8)(&local_48);\n  }\n                    \n  (**(code **)(*(int *)pcVar3 + 0x2c))(pcVar3,puVar6,puVar6 + iVar4,local_48);\n  pcVar7 = (code *)PTR__M_insert<false>_004c2fd0;\n  if (local_38 != 0) {\n    pcVar7 = (code *)PTR__M_insert<true>_004c2fcc;\n  }\n  *(int **)(puVar8 + 0x18) = &local_48;\n  *(undefined4 *)(puVar8 + 0x14) = param_7;\n  *(int *)(puVar8 + 0x10) = param_6;\n  (*pcVar7)(param_1,param_2,param_3,param_4);\n  if ((undefined *)(local_48 + -0xc) != PTR__S_empty_rep_storage_004c133c) {\n    FUN_00399fa8((undefined *)(local_48 + -0xc),auStack_40);\n  }\n  (*(code *)PTR__locale_004c22f0)(alStack_44);\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "ctype *pcVar3;" (type_identifier "ctype") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined1 *puVar6;" (type_identifier "undefined1") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "code *pcVar7;" (type_identifier "code") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "undefined1 *puVar8;" (type_identifier "undefined1") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "undefined1 auStack_b0 [16];" (type_identifier "undefined1") (array_declarator "auStack_b0 [16]" (identifier "auStack_b0") ([ "[") (number_literal "16") (] "]")) (; ";")) (declaration "undefined4 local_a0 [2];" (type_identifier "undefined4") (array_declarator "local_a0 [2]" (identifier "local_a0") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "undefined8 local_98;" (type_identifier "undefined8") (identifier "local_98") (; ";")) (declaration "undefined1 auStack_90 [64];" (type_identifier "undefined1") (array_declarator "auStack_90 [64]" (identifier "auStack_90") ([ "[") (number_literal "64") (] "]")) (; ";")) (declaration "int local_48;" (primitive_type "int") (identifier "local_48") (; ";")) (declaration "locale alStack_44 [4];" (type_identifier "locale") (array_declarator "alStack_44 [4]" (identifier "alStack_44") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined1 auStack_40 [8];" (type_identifier "undefined1") (array_declarator "auStack_40 [8]" (identifier "auStack_40") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "uint local_38;" (type_identifier "uint") (identifier "local_38") (; ";")) (expression_statement "local_38 = (uint)param_5;" (assignment_expression "local_38 = (uint)param_5" (identifier "local_38") (= "=") (cast_expression "(uint)param_5" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "param_5"))) (; ";")) (expression_statement "(*(code *)PTR_locale_004c2d24)(alStack_44,param_6 + 0x6c);" (call_expression "(*(code *)PTR_locale_004c2d24)(alStack_44,param_6 + 0x6c)" (parenthesized_expression "(*(code *)PTR_locale_004c2d24)" (( "(") (pointer_expression "*(code *)PTR_locale_004c2d24" (* "*") (cast_expression "(code *)PTR_locale_004c2d24" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_locale_004c2d24"))) () ")")) (argument_list "(alStack_44,param_6 + 0x6c)" (( "(") (identifier "alStack_44") (, ",") (binary_expression "param_6 + 0x6c" (identifier "param_6") (+ "+") (number_literal "0x6c")) () ")"))) (; ";")) (expression_statement "pcVar3 = std::use_facet<std::ctype<wchar_t>>(alStack_44);" (binary_expression "pcVar3 = std::use_facet<std::ctype<wchar_t>>(alStack_44)" (binary_expression "pcVar3 = std::use_facet<std" (assignment_expression "pcVar3 = std" (identifier "pcVar3") (= "=") (identifier "std")) (ERROR "::use_facet" (: ":") (: ":") (identifier "use_facet")) (< "<") (identifier "std")) (ERROR "::ctype" (: ":") (: ":") (identifier "ctype")) (< "<") (binary_expression "wchar_t>>(alStack_44)" (identifier "wchar_t") (>> ">>") (parenthesized_expression "(alStack_44)" (( "(") (identifier "alStack_44") () ")")))) (; ";")) (expression_statement "puVar8 = auStack_b0;" (assignment_expression "puVar8 = auStack_b0" (identifier "puVar8") (= "=") (identifier "auStack_b0")) (; ";")) (expression_statement "puVar6 = auStack_90;" (assignment_expression "puVar6 = auStack_90" (identifier "puVar6") (= "=") (identifier "auStack_90")) (; ";")) (expression_statement "local_48 = (*(code *)PTR__S_get_c_locale_004c13c0)();" (assignment_expression "local_48 = (*(code *)PTR__S_get_c_locale_004c13c0)()" (identifier "local_48") (= "=") (call_expression "(*(code *)PTR__S_get_c_locale_004c13c0)()" (parenthesized_expression "(*(code *)PTR__S_get_c_locale_004c13c0)" (( "(") (pointer_expression "*(code *)PTR__S_get_c_locale_004c13c0" (* "*") (cast_expression "(code *)PTR__S_get_c_locale_004c13c0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__S_get_c_locale_004c13c0"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar2 = PTR_UINT_004c12dc;" (assignment_expression "puVar2 = PTR_UINT_004c12dc" (identifier "puVar2") (= "=") (identifier "PTR_UINT_004c12dc")) (; ";")) (expression_statement "local_a0[0] = 0;" (assignment_expression "local_a0[0] = 0" (subscript_expression "local_a0[0]" (identifier "local_a0") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_98 = param_9;" (assignment_expression "local_98 = param_9" (identifier "local_98") (= "=") (identifier "param_9")) (; ";")) (expression_statement "iVar4 = (*(code *)PTR___convert_from_v_004c2d28)\n                    (&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c);" (assignment_expression "iVar4 = (*(code *)PTR___convert_from_v_004c2d28)\n                    (&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR___convert_from_v_004c2d28)\n                    (&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c)" (parenthesized_expression "(*(code *)PTR___convert_from_v_004c2d28)" (( "(") (pointer_expression "*(code *)PTR___convert_from_v_004c2d28" (* "*") (cast_expression "(code *)PTR___convert_from_v_004c2d28" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___convert_from_v_004c2d28"))) () ")")) (argument_list "(&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c)" (( "(") (pointer_expression "&local_48" (& "&") (identifier "local_48")) (, ",") (identifier "puVar6") (, ",") (number_literal "0x40") (, ",") (binary_expression "PTR_UINT_004c12dc + -0x398c" (identifier "PTR_UINT_004c12dc") (+ "+") (number_literal "-0x398c")) () ")")))) (; ";")) (if_statement "if (0x3f < iVar4) {\n    iVar1 = -(iVar4 + 8U & 0xfffffff8);\n    puVar8 = auStack_b0 + iVar1;\n    puVar6 = auStack_90 + iVar1;\n    iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)();\n    *(undefined8 *)(auStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = iVar5;\n    iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c);\n  }" (if "if") (parenthesized_expression "(0x3f < iVar4)" (( "(") (binary_expression "0x3f < iVar4" (number_literal "0x3f") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n    iVar1 = -(iVar4 + 8U & 0xfffffff8);\n    puVar8 = auStack_b0 + iVar1;\n    puVar6 = auStack_90 + iVar1;\n    iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)();\n    *(undefined8 *)(auStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = iVar5;\n    iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c);\n  }" ({ "{") (expression_statement "iVar1 = -(iVar4 + 8U & 0xfffffff8);" (assignment_expression "iVar1 = -(iVar4 + 8U & 0xfffffff8)" (identifier "iVar1") (= "=") (unary_expression "-(iVar4 + 8U & 0xfffffff8)" (- "-") (parenthesized_expression "(iVar4 + 8U & 0xfffffff8)" (( "(") (binary_expression "iVar4 + 8U & 0xfffffff8" (binary_expression "iVar4 + 8U" (identifier "iVar4") (+ "+") (number_literal "8U")) (& "&") (number_literal "0xfffffff8")) () ")")))) (; ";")) (expression_statement "puVar8 = auStack_b0 + iVar1;" (assignment_expression "puVar8 = auStack_b0 + iVar1" (identifier "puVar8") (= "=") (binary_expression "auStack_b0 + iVar1" (identifier "auStack_b0") (+ "+") (identifier "iVar1"))) (; ";")) (expression_statement "puVar6 = auStack_90 + iVar1;" (assignment_expression "puVar6 = auStack_90 + iVar1" (identifier "puVar6") (= "=") (binary_expression "auStack_90 + iVar1" (identifier "auStack_90") (+ "+") (identifier "iVar1"))) (; ";")) (expression_statement "iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)();" (assignment_expression "iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)()" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR__S_get_c_locale_004c13c0)()" (parenthesized_expression "(*(code *)PTR__S_get_c_locale_004c13c0)" (( "(") (pointer_expression "*(code *)PTR__S_get_c_locale_004c13c0" (* "*") (cast_expression "(code *)PTR__S_get_c_locale_004c13c0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__S_get_c_locale_004c13c0"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined8 *)(auStack_90 + iVar1 + -8) = param_9;" (assignment_expression "*(undefined8 *)(auStack_90 + iVar1 + -8) = param_9" (pointer_expression "*(undefined8 *)(auStack_90 + iVar1 + -8)" (* "*") (cast_expression "(undefined8 *)(auStack_90 + iVar1 + -8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(auStack_90 + iVar1 + -8)" (( "(") (binary_expression "auStack_90 + iVar1 + -8" (binary_expression "auStack_90 + iVar1" (identifier "auStack_90") (+ "+") (identifier "iVar1")) (+ "+") (number_literal "-8")) () ")")))) (= "=") (identifier "param_9")) (; ";")) (expression_statement "*(undefined4 *)((int)local_a0 + iVar1) = 0;" (assignment_expression "*(undefined4 *)((int)local_a0 + iVar1) = 0" (pointer_expression "*(undefined4 *)((int)local_a0 + iVar1)" (* "*") (cast_expression "(undefined4 *)((int)local_a0 + iVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_a0 + iVar1)" (( "(") (binary_expression "(int)local_a0 + iVar1" (cast_expression "(int)local_a0" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_a0")) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_48 = iVar5;" (assignment_expression "local_48 = iVar5" (identifier "local_48") (= "=") (identifier "iVar5")) (; ";")) (expression_statement "iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c);" (assignment_expression "iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c)" (parenthesized_expression "(*(code *)PTR___convert_from_v_004c2d28)" (( "(") (pointer_expression "*(code *)PTR___convert_from_v_004c2d28" (* "*") (cast_expression "(code *)PTR___convert_from_v_004c2d28" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___convert_from_v_004c2d28"))) () ")")) (argument_list "(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c)" (( "(") (pointer_expression "&local_48" (& "&") (identifier "local_48")) (, ",") (identifier "puVar6") (, ",") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1")) (, ",") (binary_expression "puVar2 + -0x398c" (identifier "puVar2") (+ "+") (number_literal "-0x398c")) () ")")))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_wstring_004c2fc8)(&local_48,iVar4,0,auStack_40);" (call_expression "(*(code *)PTR_wstring_004c2fc8)(&local_48,iVar4,0,auStack_40)" (parenthesized_expression "(*(code *)PTR_wstring_004c2fc8)" (( "(") (pointer_expression "*(code *)PTR_wstring_004c2fc8" (* "*") (cast_expression "(code *)PTR_wstring_004c2fc8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_wstring_004c2fc8"))) () ")")) (argument_list "(&local_48,iVar4,0,auStack_40)" (( "(") (pointer_expression "&local_48" (& "&") (identifier "local_48")) (, ",") (identifier "iVar4") (, ",") (number_literal "0") (, ",") (identifier "auStack_40") () ")"))) (; ";")) (if_statement "if (-1 < *(int *)(local_48 + -4)) {\n    (*(code *)PTR__M_leak_hard_004c2fa8)(&local_48);\n  }" (if "if") (parenthesized_expression "(-1 < *(int *)(local_48 + -4))" (( "(") (binary_expression "-1 < *(int *)(local_48 + -4)" (number_literal "-1") (< "<") (pointer_expression "*(int *)(local_48 + -4)" (* "*") (cast_expression "(int *)(local_48 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_48 + -4)" (( "(") (binary_expression "local_48 + -4" (identifier "local_48") (+ "+") (number_literal "-4")) () ")"))))) () ")")) (compound_statement "{\n    (*(code *)PTR__M_leak_hard_004c2fa8)(&local_48);\n  }" ({ "{") (expression_statement "(*(code *)PTR__M_leak_hard_004c2fa8)(&local_48);" (call_expression "(*(code *)PTR__M_leak_hard_004c2fa8)(&local_48)" (parenthesized_expression "(*(code *)PTR__M_leak_hard_004c2fa8)" (( "(") (pointer_expression "*(code *)PTR__M_leak_hard_004c2fa8" (* "*") (cast_expression "(code *)PTR__M_leak_hard_004c2fa8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__M_leak_hard_004c2fa8"))) () ")")) (argument_list "(&local_48)" (( "(") (pointer_expression "&local_48" (& "&") (identifier "local_48")) () ")"))) (; ";")) (} "}"))) (expression_statement "(**(code **)(*(int *)pcVar3 + 0x2c))(pcVar3,puVar6,puVar6 + iVar4,local_48);" (call_expression "(**(code **)(*(int *)pcVar3 + 0x2c))(pcVar3,puVar6,puVar6 + iVar4,local_48)" (parenthesized_expression "(**(code **)(*(int *)pcVar3 + 0x2c))" (( "(") (pointer_expression "**(code **)(*(int *)pcVar3 + 0x2c)" (* "*") (pointer_expression "*(code **)(*(int *)pcVar3 + 0x2c)" (* "*") (cast_expression "(code **)(*(int *)pcVar3 + 0x2c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)pcVar3 + 0x2c)" (( "(") (binary_expression "*(int *)pcVar3 + 0x2c" (pointer_expression "*(int *)pcVar3" (* "*") (cast_expression "(int *)pcVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "pcVar3"))) (+ "+") (number_literal "0x2c")) () ")"))))) () ")")) (argument_list "(pcVar3,puVar6,puVar6 + iVar4,local_48)" (( "(") (identifier "pcVar3") (, ",") (identifier "puVar6") (, ",") (binary_expression "puVar6 + iVar4" (identifier "puVar6") (+ "+") (identifier "iVar4")) (, ",") (identifier "local_48") () ")"))) (; ";")) (expression_statement "pcVar7 = (code *)PTR__M_insert<false>_004c2fd0;" (assignment_expression "pcVar7 = (code *)PTR__M_insert<false>_004c2fd0" (identifier "pcVar7") (= "=") (binary_expression "(code *)PTR__M_insert<false>_004c2fd0" (binary_expression "(code *)PTR__M_insert<false" (cast_expression "(code *)PTR__M_insert" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__M_insert")) (< "<") (false "false")) (> ">") (identifier "_004c2fd0"))) (; ";")) (if_statement "if (local_38 != 0) {\n    pcVar7 = (code *)PTR__M_insert<true>_004c2fcc;\n  }" (if "if") (parenthesized_expression "(local_38 != 0)" (( "(") (binary_expression "local_38 != 0" (identifier "local_38") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    pcVar7 = (code *)PTR__M_insert<true>_004c2fcc;\n  }" ({ "{") (expression_statement "pcVar7 = (code *)PTR__M_insert<true>_004c2fcc;" (assignment_expression "pcVar7 = (code *)PTR__M_insert<true>_004c2fcc" (identifier "pcVar7") (= "=") (binary_expression "(code *)PTR__M_insert<true>_004c2fcc" (binary_expression "(code *)PTR__M_insert<true" (cast_expression "(code *)PTR__M_insert" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__M_insert")) (< "<") (true "true")) (> ">") (identifier "_004c2fcc"))) (; ";")) (} "}"))) (expression_statement "*(int **)(puVar8 + 0x18) = &local_48;" (assignment_expression "*(int **)(puVar8 + 0x18) = &local_48" (pointer_expression "*(int **)(puVar8 + 0x18)" (* "*") (cast_expression "(int **)(puVar8 + 0x18)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 0x18)" (( "(") (binary_expression "puVar8 + 0x18" (identifier "puVar8") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (pointer_expression "&local_48" (& "&") (identifier "local_48"))) (; ";")) (expression_statement "*(undefined4 *)(puVar8 + 0x14) = param_7;" (assignment_expression "*(undefined4 *)(puVar8 + 0x14) = param_7" (pointer_expression "*(undefined4 *)(puVar8 + 0x14)" (* "*") (cast_expression "(undefined4 *)(puVar8 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + 0x14)" (( "(") (binary_expression "puVar8 + 0x14" (identifier "puVar8") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "param_7")) (; ";")) (expression_statement "*(int *)(puVar8 + 0x10) = param_6;" (assignment_expression "*(int *)(puVar8 + 0x10) = param_6" (pointer_expression "*(int *)(puVar8 + 0x10)" (* "*") (cast_expression "(int *)(puVar8 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + 0x10)" (( "(") (binary_expression "puVar8 + 0x10" (identifier "puVar8") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "param_6")) (; ";")) (expression_statement "(*pcVar7)(param_1,param_2,param_3,param_4);" (call_expression "(*pcVar7)(param_1,param_2,param_3,param_4)" (parenthesized_expression "(*pcVar7)" (( "(") (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7")) () ")")) (argument_list "(param_1,param_2,param_3,param_4)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (if_statement "if ((undefined *)(local_48 + -0xc) != PTR__S_empty_rep_storage_004c133c) {\n    FUN_00399fa8((undefined *)(local_48 + -0xc),auStack_40);\n  }" (if "if") (parenthesized_expression "((undefined *)(local_48 + -0xc) != PTR__S_empty_rep_storage_004c133c)" (( "(") (binary_expression "(undefined *)(local_48 + -0xc) != PTR__S_empty_rep_storage_004c133c" (cast_expression "(undefined *)(local_48 + -0xc)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_48 + -0xc)" (( "(") (binary_expression "local_48 + -0xc" (identifier "local_48") (+ "+") (number_literal "-0xc")) () ")"))) (!= "!=") (identifier "PTR__S_empty_rep_storage_004c133c")) () ")")) (compound_statement "{\n    FUN_00399fa8((undefined *)(local_48 + -0xc),auStack_40);\n  }" ({ "{") (expression_statement "FUN_00399fa8((undefined *)(local_48 + -0xc),auStack_40);" (call_expression "FUN_00399fa8((undefined *)(local_48 + -0xc),auStack_40)" (identifier "FUN_00399fa8") (argument_list "((undefined *)(local_48 + -0xc),auStack_40)" (( "(") (cast_expression "(undefined *)(local_48 + -0xc)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_48 + -0xc)" (( "(") (binary_expression "local_48 + -0xc" (identifier "local_48") (+ "+") (number_literal "-0xc")) () ")"))) (, ",") (identifier "auStack_40") () ")"))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR__locale_004c22f0)(alStack_44);" (call_expression "(*(code *)PTR__locale_004c22f0)(alStack_44)" (parenthesized_expression "(*(code *)PTR__locale_004c22f0)" (( "(") (pointer_expression "*(code *)PTR__locale_004c22f0" (* "*") (cast_expression "(code *)PTR__locale_004c22f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__locale_004c22f0"))) () ")")) (argument_list "(alStack_44)" (( "(") (identifier "alStack_44") () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* std::money_put<wchar_t, std::ostreambuf_iterator<wchar_t, std::char_traits<wchar_t> >
   >::do_put(std::ostreambuf_iterator<wchar_t, std::char_traits<wchar_t> >, bool, std::ios_base&,
   wchar_t, long double) const */

type_1
var_3::money_put<var_4,var_3::ostreambuf_iterator<var_4,var_3::char_traits<var_4>>>::do_put
          (type_1 param_1,type_1 param_2,type_1 param_3,type_1 param_4,byte param_5,
          int var_1,type_1 param_7,type_1 param_8,type_6 param_9)

{
  int var_8;
  type_2 *var_10;
  type_3 *pcVar3;
  int var_6;
  int iVar5;
  type_4 *var_12;
  type_5 *pcVar7;
  type_4 *var_16;
  type_4 var_7 [16];
  type_1 local_a0 [2];
  type_6 local_98;
  type_4 var_9 [64];
  int var_11;
  type_7 alStack_44 [4];
  type_4 auStack_40 [8];
  type_8 var_14;
  
  var_14 = (type_8)param_5;
  (*(type_5 *)PTR_locale_004c2d24)(alStack_44,var_1 + 0x6c);
                    /* try { // try from 003a0ebc to 003a0f87 has its CatchHandler @ 003a10d4 */
  pcVar3 = var_2<var_3::type_3<var_4>>(alStack_44);
  var_16 = var_7;
  var_12 = var_9;
  var_11 = (*(type_5 *)PTR__S_get_c_locale_004c13c0)();
  var_10 = var_5;
  local_a0[0] = 0;
  local_98 = param_9;
  var_6 = (*(type_5 *)PTR___convert_from_v_004c2d28)
                    (&var_11,var_12,0x40,var_5 + -0x398c);
  if (0x3f < var_6) {
    var_8 = -(var_6 + 8U & 0xfffffff8);
    var_16 = var_7 + var_8;
    var_12 = var_9 + var_8;
    iVar5 = (*(type_5 *)PTR__S_get_c_locale_004c13c0)();
    *(type_6 *)(var_9 + var_8 + -8) = param_9;
    *(type_1 *)((int)local_a0 + var_8) = 0;
    var_11 = iVar5;
    var_6 = (*(type_5 *)PTR___convert_from_v_004c2d28)(&var_11,var_12,var_6 + 1,var_10 + -0x398c);
  }
  (*(type_5 *)PTR_wstring_004c2fc8)(&var_11,var_6,0,auStack_40);
  if (-1 < *(int *)(var_11 + -4)) {
    (*(type_5 *)PTR__M_leak_hard_004c2fa8)(&var_11);
  }
                    /* try { // try from 003a0fb0 to 003a106f has its CatchHandler @ 003a108c */
  (**(type_5 **)(*(int *)pcVar3 + 0x2c))(pcVar3,var_12,var_12 + var_6,var_11);
  pcVar7 = (type_5 *)PTR__M_insert<false>var_13;
  if (var_14 != 0) {
    pcVar7 = (type_5 *)PTR__M_insert<true>var_15;
  }
  *(int **)(var_16 + 0x18) = &var_11;
  *(type_1 *)(var_16 + 0x14) = param_7;
  *(int *)(var_16 + 0x10) = var_1;
  (*pcVar7)(param_1,param_2,param_3,param_4);
  if ((type_9 *)(var_11 + -0xc) != (type_9 *)PTR__S_empty_rep_storage_004c133c) {
    std::wstring::_Rep::var_17((type_9 *)(var_11 + -0xc));
  }
  (*(type_5 *)PTR__locale_004c22f0)(alStack_44);
  return param_1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (binary_expression left: (binary_expression left: (assignment_expression left: (identifier) right: (identifier)) (ERROR (identifier)) right: (identifier)) (ERROR (identifier)) right: (binary_expression left: (identifier) right: (parenthesized_expression (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (number_literal) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (identifier))))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier) (binary_expression left: (identifier) right: (identifier)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)) right: (false)) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)) right: (true)) right: (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (identifier) (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (identifier)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (return_statement (identifier)))))

undefined4
MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
            byte param_5,int param_6,undefined4 param_7,undefined4 param_8,undefined8 param_9)

{
  int iVar1;
  undefined *puVar2;
  ctype *pcVar3;
  int iVar4;
  int iVar5;
  undefined1 *puVar6;
  code *pcVar7;
  undefined1 *puVar8;
  undefined1 auStack_b0 [16];
  undefined4 local_a0 [2];
  undefined8 local_98;
  undefined1 auStack_90 [64];
  int local_48;
  locale alStack_44 [4];
  undefined1 auStack_40 [8];
  uint local_38;
  
  local_38 = (uint)param_5;
  (*(code *)PTR_locale_004c2d24)(alStack_44,param_6 + 0x6c);
                    /* try { // try from 003a0ebc to 003a0f87 has its CatchHandler @ 003a10d4 */
  pcVar3 = std::use_facet<std::ctype<wchar_t>>(alStack_44);
  puVar8 = auStack_b0;
  puVar6 = auStack_90;
  local_48 = (*(code *)PTR__S_get_c_locale_004c13c0)();
  puVar2 = PTR_UINT_004c12dc;
  local_a0[0] = 0;
  local_98 = param_9;
  iVar4 = (*(code *)PTR___convert_from_v_004c2d28)
                    (&local_48,puVar6,0x40,PTR_UINT_004c12dc + -0x398c);
  if (0x3f < iVar4) {
    iVar1 = -(iVar4 + 8U & 0xfffffff8);
    puVar8 = auStack_b0 + iVar1;
    puVar6 = auStack_90 + iVar1;
    iVar5 = (*(code *)PTR__S_get_c_locale_004c13c0)();
    *(undefined8 *)(auStack_90 + iVar1 + -8) = param_9;
    *(undefined4 *)((int)local_a0 + iVar1) = 0;
    local_48 = iVar5;
    iVar4 = (*(code *)PTR___convert_from_v_004c2d28)(&local_48,puVar6,iVar4 + 1,puVar2 + -0x398c);
  }
  (*(code *)PTR_wstring_004c2fc8)(&local_48,iVar4,0,auStack_40);
  if (-1 < *(int *)(local_48 + -4)) {
    (*(code *)PTR__M_leak_hard_004c2fa8)(&local_48);
  }
                    /* try { // try from 003a0fb0 to 003a106f has its CatchHandler @ 003a108c */
  (**(code **)(*(int *)pcVar3 + 0x2c))(pcVar3,puVar6,puVar6 + iVar4,local_48);
  pcVar7 = (code *)PTR__M_insert<false>_004c2fd0;
  if (local_38 != 0) {
    pcVar7 = (code *)PTR__M_insert<true>_004c2fcc;
  }
  *(int **)(puVar8 + 0x18) = &local_48;
  *(undefined4 *)(puVar8 + 0x14) = param_7;
  *(int *)(puVar8 + 0x10) = param_6;
  (*pcVar7)(param_1,param_2,param_3,param_4);
  if ((undefined *)(local_48 + -0xc) != PTR__S_empty_rep_storage_004c133c) {
    FUN_00399fa8((undefined *)(local_48 + -0xc),auStack_40);
  }
  (*(code *)PTR__locale_004c22f0)(alStack_44);
  return param_1;
}

