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

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

{
  int iVar1;
  undefined *puVar2;
  ctype *this;
  int iVar3;
  __locale_struct *p_Var4;
  char *pcVar5;
  code *pcVar6;
  undefined1 *puVar7;
  undefined1 auStack_b0 [16];
  undefined4 local_a0 [2];
  undefined8 local_98;
  char acStack_90 [64];
  __locale_struct *local_48;
  locale alStack_44 [4];
  undefined1 auStack_40 [8];
  uint local_38;
  int local_34;
  
  local_38 = (uint)param_5;
  local_34 = (int)param_7;
  locale::locale(alStack_44,(locale *)(param_6 + 0x6c));
                    /* try { // try from 002d3e8c to 002d3f57 has its CatchHandler @ 002d40a4 */
  this = use_facet<std::ctype<char>>(alStack_44);
  puVar7 = auStack_b0;
  pcVar5 = acStack_90;
  local_48 = (__locale_struct *)locale::facet::_S_get_c_locale();
  puVar2 = PTR_s__0043226c;
  local_a0[0] = 0;
  local_98 = param_9;
  iVar3 = __convert_from_v(&local_48,pcVar5,0x40,PTR_s__0043226c + 0x7450);
  if (0x3f < iVar3) {
    iVar1 = -(iVar3 + 8U & 0xfffffff8);
    puVar7 = auStack_b0 + iVar1;
    pcVar5 = acStack_90 + iVar1;
    p_Var4 = (__locale_struct *)locale::facet::_S_get_c_locale();
    *(undefined8 *)(acStack_90 + iVar1 + -8) = param_9;
    *(undefined4 *)((int)local_a0 + iVar1) = 0;
    local_48 = p_Var4;
    iVar3 = __convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450);
  }
  (*(code *)PTR_string_004338b8)(&local_48,iVar3,0,auStack_40);
  if (-1 < (int)local_48[-1].__names[0xc]) {
    (*(code *)PTR__M_leak_hard_0043388c)(&local_48);
  }
                    /* try { // try from 002d3f7c to 002d403b has its CatchHandler @ 002d405c */
  ctype<char>::widen((ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48);
  iVar3 = local_34;
  pcVar6 = (code *)PTR__M_insert<false>_004338c0;
  if (local_38 != 0) {
    pcVar6 = (code *)PTR__M_insert<true>_004338bc;
  }
  *(__locale_struct ***)(puVar7 + 0x18) = &local_48;
  *(int *)(puVar7 + 0x14) = iVar3;
  *(int *)(puVar7 + 0x10) = param_6;
  (*pcVar6)(param_1,param_2,param_3,param_4);
  if ((allocator *)(local_48[-1].__names + 10) != (allocator *)PTR__S_empty_rep_storage_004322d0) {
    std::string::_Rep::_M_dispose((allocator *)(local_48[-1].__names + 10));
  }
  locale::~locale(alStack_44);
  return param_1;
}



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

{
  int iVar1;
  undefined *puVar2;
  ctype *this;
  int iVar3;
  __locale_struct *p_Var4;
  char *pcVar5;
  code *pcVar6;
  undefined1 *puVar7;
  undefined1 auStack_b0 [16];
  undefined4 local_a0 [2];
  undefined8 local_98;
  char acStack_90 [64];
  __locale_struct *local_48;
  locale alStack_44 [4];
  undefined1 auStack_40 [8];
  uint local_38;
  int local_34;
  
  local_38 = (uint)param_5;
  local_34 = (int)param_7;
  std::locale::locale(alStack_44,(locale *)(param_6 + 0x6c));
                    /* try { // try from 002d3e8c to 002d3f57 has its CatchHandler @ 002d40a4 */
  this = std::use_facet<std::ctype<char>>(alStack_44);
  puVar7 = auStack_b0;
  pcVar5 = acStack_90;
  local_48 = (__locale_struct *)std::locale::facet::_S_get_c_locale();
  puVar2 = PTR_DAT_0043226c;
  local_a0[0] = 0;
  local_98 = param_9;
  iVar3 = std::__convert_from_v(&local_48,pcVar5,0x40,PTR_DAT_0043226c + 0x7450);
  if (0x3f < iVar3) {
    iVar1 = -(iVar3 + 8U & 0xfffffff8);
    puVar7 = auStack_b0 + iVar1;
    pcVar5 = acStack_90 + iVar1;
    p_Var4 = (__locale_struct *)std::locale::facet::_S_get_c_locale();
    *(undefined8 *)(acStack_90 + iVar1 + -8) = param_9;
    *(undefined4 *)((int)local_a0 + iVar1) = 0;
    local_48 = p_Var4;
    iVar3 = std::__convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450);
  }
  (*(code *)PTR_string_004338b8)(&local_48,iVar3,0,auStack_40);
  if (-1 < (int)local_48[-1].__names[0xc]) {
    (*(code *)PTR__M_leak_hard_0043388c)(&local_48);
  }
                    /* try { // try from 002d3f7c to 002d403b has its CatchHandler @ 002d405c */
  std::ctype<char>::widen((ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48);
  iVar3 = local_34;
  pcVar6 = (code *)PTR__M_insert<false>_004338c0;
  if (local_38 != 0) {
    pcVar6 = (code *)PTR__M_insert<true>_004338bc;
  }
  *(__locale_struct ***)(puVar7 + 0x18) = &local_48;
  *(int *)(puVar7 + 0x14) = iVar3;
  *(int *)(puVar7 + 0x10) = param_6;
  (*pcVar6)(param_1,param_2,param_3,param_4);
  if (local_48[-1].__names + 10 != (char **)PTR__S_empty_rep_storage_004322d0) {
    FUN_002ccd40(local_48[-1].__names + 10,auStack_40);
  }
  std::locale::~locale(alStack_44);
  return param_1;
}


lui gp,0x16
addiu gp,gp,0x63cc
addu gp,gp,t9
addiu sp,sp,-0x70
lw t9,-0x6920(gp)
sdc1 f20,0x68(sp)
sw s8,0x60(sp)
or s8,sp,zero
sw s6,0x58(sp)
or s6,a1,zero
lbu v0,0x83(s8)
sw s3,0x4c(sp)
addiu s3,s8,0x2c
sw s4,0x50(sp)
or s4,a0,zero
sw v0,0x38(s8)
or a0,s3,zero
lw v0,0x84(s8)
sw gp,0x20(sp)
sw ra,0x64(sp)
addiu a1,v0,0x6c
sw s7,0x5c(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)
lb v0,0x8b(s8)
ldc1 f20,0x90(s8)
bal 0x002b882c
_sw v0,0x3c(s8)
lw gp,0x20(s8)
lw t9,-0x69c0(gp)
bal 0x002d01bc
_or a0,s3,zero
lw gp,0x20(s8)
addiu sp,sp,-0x40
or s7,v0,zero
lw t9,-0x7e7c(gp)
bal 0x002b8ed4
_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 s5,-0x7f64(gp)
lw t9,-0x691c(gp)
bal 0x002cd3b4
_addiu a3,s5,0x7450
or s0,v0,zero
slti v0,v0,0x40
bne v0,zero,0x002d3f3c
_lw gp,0x20(s8)
addiu v0,s0,0x8
lw t9,-0x7e7c(gp)
addiu s0,s0,0x1
srl v0,v0,0x3
sll v0,v0,0x3
subu sp,sp,v0
bal 0x002b8ed4
_addiu s1,sp,0x20
lw gp,0x20(s8)
addiu a3,s5,0x7450
sdc1 f20,0x18(sp)
or a2,s0,zero
sw zero,0x10(sp)
or a1,s1,zero
or a0,s2,zero
lw t9,-0x691c(gp)
bal 0x002cd3b4
_sw v0,0x28(s8)
lw gp,0x20(s8)
or s0,v0,zero
addiu s5,s8,0x30
lw t9,-0x6918(gp)
or a2,zero,zero
or a3,s5,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,0x002d4034
_lw t9,-0x6944(gp)
lw t9,-0x69a0(gp)
or a2,s0,zero
or a1,s1,zero
bal 0x002cd444
_or a0,s7,zero
lw v0,0x38(s8)
beq v0,zero,0x002d401c
_lw gp,0x20(s8)
lw a2,0x78(s8)
or a1,s6,zero
lw a3,0x7c(s8)
or a0,s4,zero
lw t9,-0x6914(gp)
lw v0,0x3c(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,-0x7f00(gp)
addiu a0,a0,-0xc
bne a0,v0,0x002d4048
_lw t9,-0x6a64(gp)
lw t9,-0x714c(gp)
bal 0x002b92fc
_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,s6,zero
lw a3,0x7c(s8)
or a0,s4,zero
b 0x002d3fa4
_lw t9,-0x6910(gp)
jalr t9
_or a0,s2,zero
lw gp,0x20(s8)
b 0x002d3f70
_lw a3,0x28(s8)
addiu t9,t9,-0x32c0
bal 0x002ccd40
_or a1,s5,zero
b 0x002d3fd4
_lw gp,0x20(s8)
(translation_unit "undefined4\nFUN_002d3e04(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            byte param_5,int param_6,char param_7,undefined4 param_8,undefined8 param_9)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  ctype *this;\n  int iVar3;\n  __locale_struct *p_Var4;\n  char *pcVar5;\n  code *pcVar6;\n  undefined1 *puVar7;\n  undefined1 auStack_b0 [16];\n  undefined4 local_a0 [2];\n  undefined8 local_98;\n  char acStack_90 [64];\n  __locale_struct *local_48;\n  locale alStack_44 [4];\n  undefined1 auStack_40 [8];\n  uint local_38;\n  int local_34;\n  \n  local_38 = (uint)param_5;\n  local_34 = (int)param_7;\n  std::locale::locale(alStack_44,(locale *)(param_6 + 0x6c));\n                    /* try { // try from 002d3e8c to 002d3f57 has its CatchHandler @ 002d40a4 */\n  this = std::use_facet<std::ctype<char>>(alStack_44);\n  puVar7 = auStack_b0;\n  pcVar5 = acStack_90;\n  local_48 = (__locale_struct *)std::locale::facet::_S_get_c_locale();\n  puVar2 = PTR_DAT_0043226c;\n  local_a0[0] = 0;\n  local_98 = param_9;\n  iVar3 = std::__convert_from_v(&local_48,pcVar5,0x40,PTR_DAT_0043226c + 0x7450);\n  if (0x3f < iVar3) {\n    iVar1 = -(iVar3 + 8U & 0xfffffff8);\n    puVar7 = auStack_b0 + iVar1;\n    pcVar5 = acStack_90 + iVar1;\n    p_Var4 = (__locale_struct *)std::locale::facet::_S_get_c_locale();\n    *(undefined8 *)(acStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = p_Var4;\n    iVar3 = std::__convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450);\n  }\n  (*(code *)PTR_string_004338b8)(&local_48,iVar3,0,auStack_40);\n  if (-1 < (int)local_48[-1].__names[0xc]) {\n    (*(code *)PTR__M_leak_hard_0043388c)(&local_48);\n  }\n                    /* try { // try from 002d3f7c to 002d403b has its CatchHandler @ 002d405c */\n  std::ctype<char>::widen((ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48);\n  iVar3 = local_34;\n  pcVar6 = (code *)PTR__M_insert<false>_004338c0;\n  if (local_38 != 0) {\n    pcVar6 = (code *)PTR__M_insert<true>_004338bc;\n  }\n  *(__locale_struct ***)(puVar7 + 0x18) = &local_48;\n  *(int *)(puVar7 + 0x14) = iVar3;\n  *(int *)(puVar7 + 0x10) = param_6;\n  (*pcVar6)(param_1,param_2,param_3,param_4);\n  if (local_48[-1].__names + 10 != (char **)PTR__S_empty_rep_storage_004322d0) {\n    FUN_002ccd40(local_48[-1].__names + 10,auStack_40);\n  }\n  std::locale::~locale(alStack_44);\n  return param_1;\n}\n\n" (function_definition "undefined4\nFUN_002d3e04(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            byte param_5,int param_6,char param_7,undefined4 param_8,undefined8 param_9)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  ctype *this;\n  int iVar3;\n  __locale_struct *p_Var4;\n  char *pcVar5;\n  code *pcVar6;\n  undefined1 *puVar7;\n  undefined1 auStack_b0 [16];\n  undefined4 local_a0 [2];\n  undefined8 local_98;\n  char acStack_90 [64];\n  __locale_struct *local_48;\n  locale alStack_44 [4];\n  undefined1 auStack_40 [8];\n  uint local_38;\n  int local_34;\n  \n  local_38 = (uint)param_5;\n  local_34 = (int)param_7;\n  std::locale::locale(alStack_44,(locale *)(param_6 + 0x6c));\n                    /* try { // try from 002d3e8c to 002d3f57 has its CatchHandler @ 002d40a4 */\n  this = std::use_facet<std::ctype<char>>(alStack_44);\n  puVar7 = auStack_b0;\n  pcVar5 = acStack_90;\n  local_48 = (__locale_struct *)std::locale::facet::_S_get_c_locale();\n  puVar2 = PTR_DAT_0043226c;\n  local_a0[0] = 0;\n  local_98 = param_9;\n  iVar3 = std::__convert_from_v(&local_48,pcVar5,0x40,PTR_DAT_0043226c + 0x7450);\n  if (0x3f < iVar3) {\n    iVar1 = -(iVar3 + 8U & 0xfffffff8);\n    puVar7 = auStack_b0 + iVar1;\n    pcVar5 = acStack_90 + iVar1;\n    p_Var4 = (__locale_struct *)std::locale::facet::_S_get_c_locale();\n    *(undefined8 *)(acStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = p_Var4;\n    iVar3 = std::__convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450);\n  }\n  (*(code *)PTR_string_004338b8)(&local_48,iVar3,0,auStack_40);\n  if (-1 < (int)local_48[-1].__names[0xc]) {\n    (*(code *)PTR__M_leak_hard_0043388c)(&local_48);\n  }\n                    /* try { // try from 002d3f7c to 002d403b has its CatchHandler @ 002d405c */\n  std::ctype<char>::widen((ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48);\n  iVar3 = local_34;\n  pcVar6 = (code *)PTR__M_insert<false>_004338c0;\n  if (local_38 != 0) {\n    pcVar6 = (code *)PTR__M_insert<true>_004338bc;\n  }\n  *(__locale_struct ***)(puVar7 + 0x18) = &local_48;\n  *(int *)(puVar7 + 0x14) = iVar3;\n  *(int *)(puVar7 + 0x10) = param_6;\n  (*pcVar6)(param_1,param_2,param_3,param_4);\n  if (local_48[-1].__names + 10 != (char **)PTR__S_empty_rep_storage_004322d0) {\n    FUN_002ccd40(local_48[-1].__names + 10,auStack_40);\n  }\n  std::locale::~locale(alStack_44);\n  return param_1;\n}" type_identifier (function_declarator "FUN_002d3e04(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            byte param_5,int param_6,char 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,char 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 "char param_7" primitive_type 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 *this;\n  int iVar3;\n  __locale_struct *p_Var4;\n  char *pcVar5;\n  code *pcVar6;\n  undefined1 *puVar7;\n  undefined1 auStack_b0 [16];\n  undefined4 local_a0 [2];\n  undefined8 local_98;\n  char acStack_90 [64];\n  __locale_struct *local_48;\n  locale alStack_44 [4];\n  undefined1 auStack_40 [8];\n  uint local_38;\n  int local_34;\n  \n  local_38 = (uint)param_5;\n  local_34 = (int)param_7;\n  std::locale::locale(alStack_44,(locale *)(param_6 + 0x6c));\n                    /* try { // try from 002d3e8c to 002d3f57 has its CatchHandler @ 002d40a4 */\n  this = std::use_facet<std::ctype<char>>(alStack_44);\n  puVar7 = auStack_b0;\n  pcVar5 = acStack_90;\n  local_48 = (__locale_struct *)std::locale::facet::_S_get_c_locale();\n  puVar2 = PTR_DAT_0043226c;\n  local_a0[0] = 0;\n  local_98 = param_9;\n  iVar3 = std::__convert_from_v(&local_48,pcVar5,0x40,PTR_DAT_0043226c + 0x7450);\n  if (0x3f < iVar3) {\n    iVar1 = -(iVar3 + 8U & 0xfffffff8);\n    puVar7 = auStack_b0 + iVar1;\n    pcVar5 = acStack_90 + iVar1;\n    p_Var4 = (__locale_struct *)std::locale::facet::_S_get_c_locale();\n    *(undefined8 *)(acStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = p_Var4;\n    iVar3 = std::__convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450);\n  }\n  (*(code *)PTR_string_004338b8)(&local_48,iVar3,0,auStack_40);\n  if (-1 < (int)local_48[-1].__names[0xc]) {\n    (*(code *)PTR__M_leak_hard_0043388c)(&local_48);\n  }\n                    /* try { // try from 002d3f7c to 002d403b has its CatchHandler @ 002d405c */\n  std::ctype<char>::widen((ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48);\n  iVar3 = local_34;\n  pcVar6 = (code *)PTR__M_insert<false>_004338c0;\n  if (local_38 != 0) {\n    pcVar6 = (code *)PTR__M_insert<true>_004338bc;\n  }\n  *(__locale_struct ***)(puVar7 + 0x18) = &local_48;\n  *(int *)(puVar7 + 0x14) = iVar3;\n  *(int *)(puVar7 + 0x10) = param_6;\n  (*pcVar6)(param_1,param_2,param_3,param_4);\n  if (local_48[-1].__names + 10 != (char **)PTR__S_empty_rep_storage_004322d0) {\n    FUN_002ccd40(local_48[-1].__names + 10,auStack_40);\n  }\n  std::locale::~locale(alStack_44);\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "ctype *this;" type_identifier (pointer_declarator "*this" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "__locale_struct *p_Var4;" type_identifier (pointer_declarator "*p_Var4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined1 *puVar7;" type_identifier (pointer_declarator "*puVar7" * 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 "char acStack_90 [64];" primitive_type (array_declarator "acStack_90 [64]" identifier [ number_literal ]) ;) (declaration "__locale_struct *local_48;" type_identifier (pointer_declarator "*local_48" * 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 ;) (declaration "int local_34;" primitive_type 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 "local_34 = (int)param_7;" (assignment_expression "local_34 = (int)param_7" identifier = (cast_expression "(int)param_7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (labeled_statement "std::locale::locale(alStack_44,(locale *)(param_6 + 0x6c));" statement_identifier : (ERROR ":" :) (labeled_statement "locale::locale(alStack_44,(locale *)(param_6 + 0x6c));" statement_identifier : (ERROR ":" :) (expression_statement "locale(alStack_44,(locale *)(param_6 + 0x6c));" (call_expression "locale(alStack_44,(locale *)(param_6 + 0x6c))" identifier (argument_list "(alStack_44,(locale *)(param_6 + 0x6c))" ( identifier , (cast_expression "(locale *)(param_6 + 0x6c)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0x6c)" ( (binary_expression "param_6 + 0x6c" identifier + number_literal) ))) ))) ;))) comment (expression_statement "this = std::use_facet<std::ctype<char>>(alStack_44);" (binary_expression "this = std::use_facet<std::ctype<char>>(alStack_44)" (binary_expression "this = std::use_facet<std" (assignment_expression "this = std" identifier = identifier) (ERROR "::use_facet" : : identifier) < identifier) (ERROR "::ctype" : : identifier) < (binary_expression "char>>(alStack_44)" identifier >> (parenthesized_expression "(alStack_44)" ( identifier )))) ;) (expression_statement "puVar7 = auStack_b0;" (assignment_expression "puVar7 = auStack_b0" identifier = identifier) ;) (expression_statement "pcVar5 = acStack_90;" (assignment_expression "pcVar5 = acStack_90" identifier = identifier) ;) (ERROR "local_48 = (__locale_struct *)std::" (assignment_expression "local_48 = (__locale_struct *)std" identifier = (cast_expression "(__locale_struct *)std" ( (type_descriptor "__locale_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) : :) (labeled_statement "locale::facet::_S_get_c_locale();" statement_identifier : (ERROR ":" :) (labeled_statement "facet::_S_get_c_locale();" statement_identifier : (ERROR ":" :) (expression_statement "_S_get_c_locale();" (call_expression "_S_get_c_locale()" identifier (argument_list "()" ( ))) ;))) (expression_statement "puVar2 = PTR_DAT_0043226c;" (assignment_expression "puVar2 = PTR_DAT_0043226c" 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) ;) (ERROR "iVar3 = std::" (assignment_expression "iVar3 = std" identifier = identifier) : :) (expression_statement "__convert_from_v(&local_48,pcVar5,0x40,PTR_DAT_0043226c + 0x7450);" (call_expression "__convert_from_v(&local_48,pcVar5,0x40,PTR_DAT_0043226c + 0x7450)" identifier (argument_list "(&local_48,pcVar5,0x40,PTR_DAT_0043226c + 0x7450)" ( (pointer_expression "&local_48" & identifier) , identifier , number_literal , (binary_expression "PTR_DAT_0043226c + 0x7450" identifier + number_literal) ))) ;) (if_statement "if (0x3f < iVar3) {\n    iVar1 = -(iVar3 + 8U & 0xfffffff8);\n    puVar7 = auStack_b0 + iVar1;\n    pcVar5 = acStack_90 + iVar1;\n    p_Var4 = (__locale_struct *)std::locale::facet::_S_get_c_locale();\n    *(undefined8 *)(acStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = p_Var4;\n    iVar3 = std::__convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450);\n  }" if (parenthesized_expression "(0x3f < iVar3)" ( (binary_expression "0x3f < iVar3" number_literal < identifier) )) (compound_statement "{\n    iVar1 = -(iVar3 + 8U & 0xfffffff8);\n    puVar7 = auStack_b0 + iVar1;\n    pcVar5 = acStack_90 + iVar1;\n    p_Var4 = (__locale_struct *)std::locale::facet::_S_get_c_locale();\n    *(undefined8 *)(acStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = p_Var4;\n    iVar3 = std::__convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450);\n  }" { (expression_statement "iVar1 = -(iVar3 + 8U & 0xfffffff8);" (assignment_expression "iVar1 = -(iVar3 + 8U & 0xfffffff8)" identifier = (unary_expression "-(iVar3 + 8U & 0xfffffff8)" - (parenthesized_expression "(iVar3 + 8U & 0xfffffff8)" ( (binary_expression "iVar3 + 8U & 0xfffffff8" (binary_expression "iVar3 + 8U" identifier + number_literal) & number_literal) )))) ;) (expression_statement "puVar7 = auStack_b0 + iVar1;" (assignment_expression "puVar7 = auStack_b0 + iVar1" identifier = (binary_expression "auStack_b0 + iVar1" identifier + identifier)) ;) (expression_statement "pcVar5 = acStack_90 + iVar1;" (assignment_expression "pcVar5 = acStack_90 + iVar1" identifier = (binary_expression "acStack_90 + iVar1" identifier + identifier)) ;) (ERROR "p_Var4 = (__locale_struct *)std::" (assignment_expression "p_Var4 = (__locale_struct *)std" identifier = (cast_expression "(__locale_struct *)std" ( (type_descriptor "__locale_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) : :) (labeled_statement "locale::facet::_S_get_c_locale();" statement_identifier : (ERROR ":" :) (labeled_statement "facet::_S_get_c_locale();" statement_identifier : (ERROR ":" :) (expression_statement "_S_get_c_locale();" (call_expression "_S_get_c_locale()" identifier (argument_list "()" ( ))) ;))) (expression_statement "*(undefined8 *)(acStack_90 + iVar1 + -8) = param_9;" (assignment_expression "*(undefined8 *)(acStack_90 + iVar1 + -8) = param_9" (pointer_expression "*(undefined8 *)(acStack_90 + iVar1 + -8)" * (cast_expression "(undefined8 *)(acStack_90 + iVar1 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(acStack_90 + iVar1 + -8)" ( (binary_expression "acStack_90 + iVar1 + -8" (binary_expression "acStack_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 = p_Var4;" (assignment_expression "local_48 = p_Var4" identifier = identifier) ;) (ERROR "iVar3 = std::" (assignment_expression "iVar3 = std" identifier = identifier) : :) (expression_statement "__convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450);" (call_expression "__convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450)" identifier (argument_list "(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450)" ( (pointer_expression "&local_48" & identifier) , identifier , (binary_expression "iVar3 + 1" identifier + number_literal) , (binary_expression "puVar2 + 0x7450" identifier + number_literal) ))) ;) })) (expression_statement "(*(code *)PTR_string_004338b8)(&local_48,iVar3,0,auStack_40);" (call_expression "(*(code *)PTR_string_004338b8)(&local_48,iVar3,0,auStack_40)" (parenthesized_expression "(*(code *)PTR_string_004338b8)" ( (pointer_expression "*(code *)PTR_string_004338b8" * (cast_expression "(code *)PTR_string_004338b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_48,iVar3,0,auStack_40)" ( (pointer_expression "&local_48" & identifier) , identifier , number_literal , identifier ))) ;) (if_statement "if (-1 < (int)local_48[-1].__names[0xc]) {\n    (*(code *)PTR__M_leak_hard_0043388c)(&local_48);\n  }" if (parenthesized_expression "(-1 < (int)local_48[-1].__names[0xc])" ( (binary_expression "-1 < (int)local_48[-1].__names[0xc]" number_literal < (cast_expression "(int)local_48[-1].__names[0xc]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "local_48[-1].__names[0xc]" (field_expression "local_48[-1].__names" (subscript_expression "local_48[-1]" identifier [ number_literal ]) . field_identifier) [ number_literal ]))) )) (compound_statement "{\n    (*(code *)PTR__M_leak_hard_0043388c)(&local_48);\n  }" { (expression_statement "(*(code *)PTR__M_leak_hard_0043388c)(&local_48);" (call_expression "(*(code *)PTR__M_leak_hard_0043388c)(&local_48)" (parenthesized_expression "(*(code *)PTR__M_leak_hard_0043388c)" ( (pointer_expression "*(code *)PTR__M_leak_hard_0043388c" * (cast_expression "(code *)PTR__M_leak_hard_0043388c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_48)" ( (pointer_expression "&local_48" & identifier) ))) ;) })) comment (labeled_statement "std::ctype<char>::widen((ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48);" statement_identifier (ERROR "::ctype<char>:" : : (binary_expression "ctype<char" identifier < identifier) > :) : (expression_statement "widen((ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48);" (call_expression "widen((ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48)" identifier (argument_list "((ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48)" ( (parenthesized_expression "(ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48)" ( (comma_expression "ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48" (binary_expression "ctype<char> *)this" (binary_expression "ctype<char" identifier < identifier) > (pointer_expression "*)this" * (ERROR ")" )) identifier)) , (comma_expression "pcVar5,pcVar5 + iVar3,(char *)local_48" identifier , (comma_expression "pcVar5 + iVar3,(char *)local_48" (binary_expression "pcVar5 + iVar3" identifier + identifier) , (cast_expression "(char *)local_48" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)))) )) ))) ;)) (expression_statement "iVar3 = local_34;" (assignment_expression "iVar3 = local_34" identifier = identifier) ;) (expression_statement "pcVar6 = (code *)PTR__M_insert<false>_004338c0;" (assignment_expression "pcVar6 = (code *)PTR__M_insert<false>_004338c0" identifier = (binary_expression "(code *)PTR__M_insert<false>_004338c0" (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    pcVar6 = (code *)PTR__M_insert<true>_004338bc;\n  }" if (parenthesized_expression "(local_38 != 0)" ( (binary_expression "local_38 != 0" identifier != number_literal) )) (compound_statement "{\n    pcVar6 = (code *)PTR__M_insert<true>_004338bc;\n  }" { (expression_statement "pcVar6 = (code *)PTR__M_insert<true>_004338bc;" (assignment_expression "pcVar6 = (code *)PTR__M_insert<true>_004338bc" identifier = (binary_expression "(code *)PTR__M_insert<true>_004338bc" (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 "*(__locale_struct ***)(puVar7 + 0x18) = &local_48;" (assignment_expression "*(__locale_struct ***)(puVar7 + 0x18) = &local_48" (pointer_expression "*(__locale_struct ***)(puVar7 + 0x18)" * (cast_expression "(__locale_struct ***)(puVar7 + 0x18)" ( (type_descriptor "__locale_struct ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(puVar7 + 0x18)" ( (binary_expression "puVar7 + 0x18" identifier + number_literal) )))) = (pointer_expression "&local_48" & identifier)) ;) (expression_statement "*(int *)(puVar7 + 0x14) = iVar3;" (assignment_expression "*(int *)(puVar7 + 0x14) = iVar3" (pointer_expression "*(int *)(puVar7 + 0x14)" * (cast_expression "(int *)(puVar7 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x14)" ( (binary_expression "puVar7 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(puVar7 + 0x10) = param_6;" (assignment_expression "*(int *)(puVar7 + 0x10) = param_6" (pointer_expression "*(int *)(puVar7 + 0x10)" * (cast_expression "(int *)(puVar7 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x10)" ( (binary_expression "puVar7 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "(*pcVar6)(param_1,param_2,param_3,param_4);" (call_expression "(*pcVar6)(param_1,param_2,param_3,param_4)" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "(param_1,param_2,param_3,param_4)" ( identifier , identifier , identifier , identifier ))) ;) (if_statement "if (local_48[-1].__names + 10 != (char **)PTR__S_empty_rep_storage_004322d0) {\n    FUN_002ccd40(local_48[-1].__names + 10,auStack_40);\n  }" if (parenthesized_expression "(local_48[-1].__names + 10 != (char **)PTR__S_empty_rep_storage_004322d0)" ( (binary_expression "local_48[-1].__names + 10 != (char **)PTR__S_empty_rep_storage_004322d0" (binary_expression "local_48[-1].__names + 10" (field_expression "local_48[-1].__names" (subscript_expression "local_48[-1]" identifier [ number_literal ]) . field_identifier) + number_literal) != (cast_expression "(char **)PTR__S_empty_rep_storage_004322d0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) )) (compound_statement "{\n    FUN_002ccd40(local_48[-1].__names + 10,auStack_40);\n  }" { (expression_statement "FUN_002ccd40(local_48[-1].__names + 10,auStack_40);" (call_expression "FUN_002ccd40(local_48[-1].__names + 10,auStack_40)" identifier (argument_list "(local_48[-1].__names + 10,auStack_40)" ( (binary_expression "local_48[-1].__names + 10" (field_expression "local_48[-1].__names" (subscript_expression "local_48[-1]" identifier [ number_literal ]) . field_identifier) + number_literal) , identifier ))) ;) })) (labeled_statement "std::locale::~locale(alStack_44);" statement_identifier : (ERROR ":" :) (labeled_statement "locale::~locale(alStack_44);" statement_identifier : (ERROR ":" :) (expression_statement "~locale(alStack_44);" (unary_expression "~locale(alStack_44)" ~ (call_expression "locale(alStack_44)" identifier (argument_list "(alStack_44)" ( identifier )))) ;))) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::money_put<char, std::ostreambuf_iterator<char, std::char_traits<char> >\n   >::do_put(std::ostreambuf_iterator<char, std::char_traits<char> >, bool, std::ios_base&, char,\n   long double) const */\n\nundefined4\nstd::money_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::do_put\n          (undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,byte param_5,\n          int param_6,char param_7,undefined4 param_8,undefined8 param_9)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  ctype *this;\n  int iVar3;\n  __locale_struct *p_Var4;\n  char *pcVar5;\n  code *pcVar6;\n  undefined1 *puVar7;\n  undefined1 auStack_b0 [16];\n  undefined4 local_a0 [2];\n  undefined8 local_98;\n  char acStack_90 [64];\n  __locale_struct *local_48;\n  locale alStack_44 [4];\n  undefined1 auStack_40 [8];\n  uint local_38;\n  int local_34;\n  \n  local_38 = (uint)param_5;\n  local_34 = (int)param_7;\n  locale::locale(alStack_44,(locale *)(param_6 + 0x6c));\n                    /* try { // try from 002d3e8c to 002d3f57 has its CatchHandler @ 002d40a4 */\n  this = use_facet<std::ctype<char>>(alStack_44);\n  puVar7 = auStack_b0;\n  pcVar5 = acStack_90;\n  local_48 = (__locale_struct *)locale::facet::_S_get_c_locale();\n  puVar2 = PTR_s__0043226c;\n  local_a0[0] = 0;\n  local_98 = param_9;\n  iVar3 = __convert_from_v(&local_48,pcVar5,0x40,PTR_s__0043226c + 0x7450);\n  if (0x3f < iVar3) {\n    iVar1 = -(iVar3 + 8U & 0xfffffff8);\n    puVar7 = auStack_b0 + iVar1;\n    pcVar5 = acStack_90 + iVar1;\n    p_Var4 = (__locale_struct *)locale::facet::_S_get_c_locale();\n    *(undefined8 *)(acStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = p_Var4;\n    iVar3 = __convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450);\n  }\n  (*(code *)PTR_string_004338b8)(&local_48,iVar3,0,auStack_40);\n  if (-1 < (int)local_48[-1].__names[0xc]) {\n    (*(code *)PTR__M_leak_hard_0043388c)(&local_48);\n  }\n                    /* try { // try from 002d3f7c to 002d403b has its CatchHandler @ 002d405c */\n  ctype<char>::widen((ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48);\n  iVar3 = local_34;\n  pcVar6 = (code *)PTR__M_insert<false>_004338c0;\n  if (local_38 != 0) {\n    pcVar6 = (code *)PTR__M_insert<true>_004338bc;\n  }\n  *(__locale_struct ***)(puVar7 + 0x18) = &local_48;\n  *(int *)(puVar7 + 0x14) = iVar3;\n  *(int *)(puVar7 + 0x10) = param_6;\n  (*pcVar6)(param_1,param_2,param_3,param_4);\n  if ((allocator *)(local_48[-1].__names + 10) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n    std::string::_Rep::_M_dispose((allocator *)(local_48[-1].__names + 10));\n  }\n  locale::~locale(alStack_44);\n  return param_1;\n}\n\n" comment (declaration "undefined4\nstd::money_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::do_put\n          (undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,byte param_5,\n          int param_6,char param_7,undefined4 param_8,undefined8 param_9)\n\n{\n  int iVar1;" type_identifier (ERROR "std::" identifier : :) identifier (ERROR "<char" < primitive_type) , (ERROR "std::" identifier : :) identifier (ERROR "<char" < primitive_type) , (ERROR "std::char_traits<char>>>::do_put\n          (undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,byte param_5,\n          int param_6,char param_7,undefined4 param_8,undefined8 param_9)\n\n{\n  int" identifier : : identifier < primitive_type >> > : : (function_declarator "do_put\n          (undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,byte param_5,\n          int param_6,char 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,char 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 "char param_7" primitive_type 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 *this;" type_identifier (pointer_declarator "*this" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "__locale_struct *p_Var4;" type_identifier (pointer_declarator "*p_Var4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined1 *puVar7;" type_identifier (pointer_declarator "*puVar7" * 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 "char acStack_90 [64];" primitive_type (array_declarator "acStack_90 [64]" identifier [ number_literal ]) ;) (declaration "__locale_struct *local_48;" type_identifier (pointer_declarator "*local_48" * 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 ;) (declaration "int local_34;" primitive_type 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 "local_34 = (int)param_7;" (assignment_expression "local_34 = (int)param_7" identifier = (cast_expression "(int)param_7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (labeled_statement "locale::locale(alStack_44,(locale *)(param_6 + 0x6c));" statement_identifier : (ERROR ":" :) (expression_statement "locale(alStack_44,(locale *)(param_6 + 0x6c));" (call_expression "locale(alStack_44,(locale *)(param_6 + 0x6c))" identifier (argument_list "(alStack_44,(locale *)(param_6 + 0x6c))" ( identifier , (cast_expression "(locale *)(param_6 + 0x6c)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0x6c)" ( (binary_expression "param_6 + 0x6c" identifier + number_literal) ))) ))) ;)) comment (expression_statement "this = use_facet<std::ctype<char>>(alStack_44);" (update_expression "this = use_facet<std::ctype<char>>(alStack_44)" (binary_expression "this = use_facet<std::ctype<char>>(alStack_44)" (assignment_expression "this = use_facet<std" identifier = (binary_expression "use_facet<std" identifier < identifier)) (ERROR "::ctype" : : identifier) < (binary_expression "char>>(alStack_44)" identifier >> (parenthesized_expression "(alStack_44)" ( identifier )))) --) ;) (expression_statement "puVar7 = auStack_b0;" (assignment_expression "puVar7 = auStack_b0" identifier = identifier) ;) (expression_statement "pcVar5 = acStack_90;" (assignment_expression "pcVar5 = acStack_90" identifier = identifier) ;) (ERROR "local_48 = (__locale_struct *)locale::" (assignment_expression "local_48 = (__locale_struct *)locale" identifier = (cast_expression "(__locale_struct *)locale" ( (type_descriptor "__locale_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) : :) (labeled_statement "facet::_S_get_c_locale();" statement_identifier : (ERROR ":" :) (expression_statement "_S_get_c_locale();" (call_expression "_S_get_c_locale()" identifier (argument_list "()" ( ))) ;)) (expression_statement "puVar2 = PTR_s__0043226c;" (assignment_expression "puVar2 = PTR_s__0043226c" 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 "iVar3 = __convert_from_v(&local_48,pcVar5,0x40,PTR_s__0043226c + 0x7450);" (assignment_expression "iVar3 = __convert_from_v(&local_48,pcVar5,0x40,PTR_s__0043226c + 0x7450)" identifier = (call_expression "__convert_from_v(&local_48,pcVar5,0x40,PTR_s__0043226c + 0x7450)" identifier (argument_list "(&local_48,pcVar5,0x40,PTR_s__0043226c + 0x7450)" ( (pointer_expression "&local_48" & identifier) , identifier , number_literal , (binary_expression "PTR_s__0043226c + 0x7450" identifier + number_literal) )))) ;) (if_statement "if (0x3f < iVar3) {\n    iVar1 = -(iVar3 + 8U & 0xfffffff8);\n    puVar7 = auStack_b0 + iVar1;\n    pcVar5 = acStack_90 + iVar1;\n    p_Var4 = (__locale_struct *)locale::facet::_S_get_c_locale();\n    *(undefined8 *)(acStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = p_Var4;\n    iVar3 = __convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450);\n  }" if (parenthesized_expression "(0x3f < iVar3)" ( (binary_expression "0x3f < iVar3" number_literal < identifier) )) (compound_statement "{\n    iVar1 = -(iVar3 + 8U & 0xfffffff8);\n    puVar7 = auStack_b0 + iVar1;\n    pcVar5 = acStack_90 + iVar1;\n    p_Var4 = (__locale_struct *)locale::facet::_S_get_c_locale();\n    *(undefined8 *)(acStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = p_Var4;\n    iVar3 = __convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450);\n  }" { (expression_statement "iVar1 = -(iVar3 + 8U & 0xfffffff8);" (assignment_expression "iVar1 = -(iVar3 + 8U & 0xfffffff8)" identifier = (unary_expression "-(iVar3 + 8U & 0xfffffff8)" - (parenthesized_expression "(iVar3 + 8U & 0xfffffff8)" ( (binary_expression "iVar3 + 8U & 0xfffffff8" (binary_expression "iVar3 + 8U" identifier + number_literal) & number_literal) )))) ;) (expression_statement "puVar7 = auStack_b0 + iVar1;" (assignment_expression "puVar7 = auStack_b0 + iVar1" identifier = (binary_expression "auStack_b0 + iVar1" identifier + identifier)) ;) (expression_statement "pcVar5 = acStack_90 + iVar1;" (assignment_expression "pcVar5 = acStack_90 + iVar1" identifier = (binary_expression "acStack_90 + iVar1" identifier + identifier)) ;) (ERROR "p_Var4 = (__locale_struct *)locale::" (assignment_expression "p_Var4 = (__locale_struct *)locale" identifier = (cast_expression "(__locale_struct *)locale" ( (type_descriptor "__locale_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) : :) (labeled_statement "facet::_S_get_c_locale();" statement_identifier : (ERROR ":" :) (expression_statement "_S_get_c_locale();" (call_expression "_S_get_c_locale()" identifier (argument_list "()" ( ))) ;)) (expression_statement "*(undefined8 *)(acStack_90 + iVar1 + -8) = param_9;" (assignment_expression "*(undefined8 *)(acStack_90 + iVar1 + -8) = param_9" (pointer_expression "*(undefined8 *)(acStack_90 + iVar1 + -8)" * (cast_expression "(undefined8 *)(acStack_90 + iVar1 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(acStack_90 + iVar1 + -8)" ( (binary_expression "acStack_90 + iVar1 + -8" (binary_expression "acStack_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 = p_Var4;" (assignment_expression "local_48 = p_Var4" identifier = identifier) ;) (expression_statement "iVar3 = __convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450);" (assignment_expression "iVar3 = __convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450)" identifier = (call_expression "__convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450)" identifier (argument_list "(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450)" ( (pointer_expression "&local_48" & identifier) , identifier , (binary_expression "iVar3 + 1" identifier + number_literal) , (binary_expression "puVar2 + 0x7450" identifier + number_literal) )))) ;) })) (expression_statement "(*(code *)PTR_string_004338b8)(&local_48,iVar3,0,auStack_40);" (call_expression "(*(code *)PTR_string_004338b8)(&local_48,iVar3,0,auStack_40)" (parenthesized_expression "(*(code *)PTR_string_004338b8)" ( (pointer_expression "*(code *)PTR_string_004338b8" * (cast_expression "(code *)PTR_string_004338b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_48,iVar3,0,auStack_40)" ( (pointer_expression "&local_48" & identifier) , identifier , number_literal , identifier ))) ;) (if_statement "if (-1 < (int)local_48[-1].__names[0xc]) {\n    (*(code *)PTR__M_leak_hard_0043388c)(&local_48);\n  }" if (parenthesized_expression "(-1 < (int)local_48[-1].__names[0xc])" ( (binary_expression "-1 < (int)local_48[-1].__names[0xc]" number_literal < (cast_expression "(int)local_48[-1].__names[0xc]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "local_48[-1].__names[0xc]" (field_expression "local_48[-1].__names" (subscript_expression "local_48[-1]" identifier [ number_literal ]) . field_identifier) [ number_literal ]))) )) (compound_statement "{\n    (*(code *)PTR__M_leak_hard_0043388c)(&local_48);\n  }" { (expression_statement "(*(code *)PTR__M_leak_hard_0043388c)(&local_48);" (call_expression "(*(code *)PTR__M_leak_hard_0043388c)(&local_48)" (parenthesized_expression "(*(code *)PTR__M_leak_hard_0043388c)" ( (pointer_expression "*(code *)PTR__M_leak_hard_0043388c" * (cast_expression "(code *)PTR__M_leak_hard_0043388c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_48)" ( (pointer_expression "&local_48" & identifier) ))) ;) })) comment (ERROR "ctype<char>::widen((ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48);\n  iVar3 = local_34;\n  pcVar6 = (code *)PTR__M_insert<false>_004338c0;\n  if (local_38 != 0) {\n    pcVar6 = (code *)PTR__M_insert<true>_004338bc;\n  }\n  *(__locale_struct ***)(puVar7 + 0x18) = &local_48;\n  *(int *)(puVar7 + 0x14) = iVar3;\n  *(int *)(puVar7 + 0x10) = param_6;\n  (*pcVar6)(param_1,param_2,param_3,param_4);\n  if ((allocator *)(local_48[-1].__names + 10) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n    std::string::_Rep::_M_dispose((allocator *)(local_48[-1].__names + 10));\n  }\n  locale::~locale(alStack_44);\n  return param_1;\n}" (binary_expression "ctype<char" identifier < identifier) > (ERROR "::" : :) identifier ( (ERROR "(ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48);\n  iVar3 = local_34;\n  pcVar6 = (code *)PTR__M_insert<false>_004338c0;\n  if (local_38 != 0) {\n    pcVar6 = (code *)PTR__M_insert<true>_004338bc;\n  }\n  *(__locale_struct ***)(puVar7 + 0x18) = &local_48;\n  *(int *)(puVar7 + 0x14) = iVar3;\n  *(int *)(puVar7 + 0x10) = param_6;\n  (*pcVar6)(param_1,param_2,param_3,param_4);\n  if ((allocator *)(local_48[-1].__names + 10) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n    std::string::_Rep::_M_dispose((allocator *)(local_48[-1].__names + 10));\n  }\n  locale::~locale(alStack_44);\n  return" (parenthesized_expression "(ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48)" ( (comma_expression "ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48" (binary_expression "ctype<char> *)this" (binary_expression "ctype<char" identifier < identifier) > (pointer_expression "*)this" * (ERROR ")" )) identifier)) , (comma_expression "pcVar5,pcVar5 + iVar3,(char *)local_48" identifier , (comma_expression "pcVar5 + iVar3,(char *)local_48" (binary_expression "pcVar5 + iVar3" identifier + identifier) , (cast_expression "(char *)local_48" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)))) )) ; (assignment_expression "iVar3 = local_34" identifier = identifier) ; (call_expression "pcVar6 = (code *)PTR__M_insert<false>_004338c0;\n  if (local_38 != 0)" (assignment_expression "pcVar6 = (code *)PTR__M_insert<false>_004338c0" identifier = (binary_expression "(code *)PTR__M_insert<false>_004338c0" (binary_expression "(code *)PTR__M_insert<false" (cast_expression "(code *)PTR__M_insert" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) < false) > identifier)) (ERROR ";\n  if" ; if) (argument_list "(local_38 != 0)" ( (binary_expression "local_38 != 0" identifier != number_literal) ))) (compound_statement "{\n    pcVar6 = (code *)PTR__M_insert<true>_004338bc;\n  }" { (expression_statement "pcVar6 = (code *)PTR__M_insert<true>_004338bc;" (assignment_expression "pcVar6 = (code *)PTR__M_insert<true>_004338bc" identifier = (binary_expression "(code *)PTR__M_insert<true>_004338bc" (binary_expression "(code *)PTR__M_insert<true" (cast_expression "(code *)PTR__M_insert" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) < true) > identifier)) ;) }) (call_expression "*(__locale_struct ***)(puVar7 + 0x18) = &local_48;\n  *(int *)(puVar7 + 0x14) = iVar3;\n  *(int *)(puVar7 + 0x10) = param_6;\n  (*pcVar6)(param_1,param_2,param_3,param_4);\n  if ((allocator *)(local_48[-1].__names + 10) != (allocator *)PTR__S_empty_rep_storage_004322d0)" (call_expression "*(__locale_struct ***)(puVar7 + 0x18) = &local_48;\n  *(int *)(puVar7 + 0x14) = iVar3;\n  *(int *)(puVar7 + 0x10) = param_6;\n  (*pcVar6)(param_1,param_2,param_3,param_4)" (call_expression "*(__locale_struct ***)(puVar7 + 0x18) = &local_48;\n  *(int *)(puVar7 + 0x14) = iVar3;\n  *(int *)(puVar7 + 0x10) = param_6;\n  (*pcVar6)" (binary_expression "*(__locale_struct ***)(puVar7 + 0x18) = &local_48;\n  *(int *)(puVar7 + 0x14) = iVar3;\n  *(int *)(puVar7 + 0x10) = param_6" (binary_expression "*(__locale_struct ***)(puVar7 + 0x18) = &local_48;\n  *(int *)(puVar7 + 0x14) = iVar3" (assignment_expression "*(__locale_struct ***)(puVar7 + 0x18) = &local_48" (pointer_expression "*(__locale_struct ***)(puVar7 + 0x18)" * (cast_expression "(__locale_struct ***)(puVar7 + 0x18)" ( (type_descriptor "__locale_struct ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(puVar7 + 0x18)" ( (binary_expression "puVar7 + 0x18" identifier + number_literal) )))) = (pointer_expression "&local_48" & identifier)) (ERROR ";" ;) * (cast_expression "(int *)(puVar7 + 0x14) = iVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (assignment_expression "(puVar7 + 0x14) = iVar3" (parenthesized_expression "(puVar7 + 0x14)" ( (binary_expression "puVar7 + 0x14" identifier + number_literal) )) = identifier))) (ERROR ";" ;) * (cast_expression "(int *)(puVar7 + 0x10) = param_6" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (assignment_expression "(puVar7 + 0x10) = param_6" (parenthesized_expression "(puVar7 + 0x10)" ( (binary_expression "puVar7 + 0x10" identifier + number_literal) )) = identifier))) (ERROR ";" ;) (argument_list "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) ))) (argument_list "(param_1,param_2,param_3,param_4)" ( identifier , identifier , identifier , identifier ))) (ERROR ";\n  if" ; if) (argument_list "((allocator *)(local_48[-1].__names + 10) != (allocator *)PTR__S_empty_rep_storage_004322d0)" ( (binary_expression "(allocator *)(local_48[-1].__names + 10) != (allocator *)PTR__S_empty_rep_storage_004322d0" (cast_expression "(allocator *)(local_48[-1].__names + 10)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48[-1].__names + 10)" ( (binary_expression "local_48[-1].__names + 10" (field_expression "local_48[-1].__names" (subscript_expression "local_48[-1]" identifier [ number_literal ]) . field_identifier) + number_literal) ))) != (cast_expression "(allocator *)PTR__S_empty_rep_storage_004322d0" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) (compound_statement "{\n    std::string::_Rep::_M_dispose((allocator *)(local_48[-1].__names + 10));\n  }" { (labeled_statement "std::string::_Rep::_M_dispose((allocator *)(local_48[-1].__names + 10));" statement_identifier : (ERROR ":" :) (labeled_statement "string::_Rep::_M_dispose((allocator *)(local_48[-1].__names + 10));" statement_identifier : (ERROR ":" :) (labeled_statement "_Rep::_M_dispose((allocator *)(local_48[-1].__names + 10));" statement_identifier : (ERROR ":" :) (expression_statement "_M_dispose((allocator *)(local_48[-1].__names + 10));" (call_expression "_M_dispose((allocator *)(local_48[-1].__names + 10))" identifier (argument_list "((allocator *)(local_48[-1].__names + 10))" ( (cast_expression "(allocator *)(local_48[-1].__names + 10)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48[-1].__names + 10)" ( (binary_expression "local_48[-1].__names + 10" (field_expression "local_48[-1].__names" (subscript_expression "local_48[-1]" identifier [ number_literal ]) . field_identifier) + number_literal) ))) ))) ;)))) }) identifier : : (unary_expression "~locale(alStack_44)" ~ (call_expression "locale(alStack_44)" identifier (argument_list "(alStack_44)" ( identifier )))) ; return) identifier ; }))
(translation_unit "undefined4\nFUN_002d3e04(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            byte param_5,int param_6,char param_7,undefined4 param_8,undefined8 param_9)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  ctype *this;\n  int iVar3;\n  __locale_struct *p_Var4;\n  char *pcVar5;\n  code *pcVar6;\n  undefined1 *puVar7;\n  undefined1 auStack_b0 [16];\n  undefined4 local_a0 [2];\n  undefined8 local_98;\n  char acStack_90 [64];\n  __locale_struct *local_48;\n  locale alStack_44 [4];\n  undefined1 auStack_40 [8];\n  uint local_38;\n  int local_34;\n  \n  local_38 = (uint)param_5;\n  local_34 = (int)param_7;\n  std::locale::locale(alStack_44,(locale *)(param_6 + 0x6c));\n                    \n  this = std::use_facet<std::ctype<char>>(alStack_44);\n  puVar7 = auStack_b0;\n  pcVar5 = acStack_90;\n  local_48 = (__locale_struct *)std::locale::facet::_S_get_c_locale();\n  puVar2 = PTR_DAT_0043226c;\n  local_a0[0] = 0;\n  local_98 = param_9;\n  iVar3 = std::__convert_from_v(&local_48,pcVar5,0x40,PTR_DAT_0043226c + 0x7450);\n  if (0x3f < iVar3) {\n    iVar1 = -(iVar3 + 8U & 0xfffffff8);\n    puVar7 = auStack_b0 + iVar1;\n    pcVar5 = acStack_90 + iVar1;\n    p_Var4 = (__locale_struct *)std::locale::facet::_S_get_c_locale();\n    *(undefined8 *)(acStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = p_Var4;\n    iVar3 = std::__convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450);\n  }\n  (*(code *)PTR_string_004338b8)(&local_48,iVar3,0,auStack_40);\n  if (-1 < (int)local_48[-1].__names[0xc]) {\n    (*(code *)PTR__M_leak_hard_0043388c)(&local_48);\n  }\n                    \n  std::ctype<char>::widen((ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48);\n  iVar3 = local_34;\n  pcVar6 = (code *)PTR__M_insert<false>_004338c0;\n  if (local_38 != 0) {\n    pcVar6 = (code *)PTR__M_insert<true>_004338bc;\n  }\n  *(__locale_struct ***)(puVar7 + 0x18) = &local_48;\n  *(int *)(puVar7 + 0x14) = iVar3;\n  *(int *)(puVar7 + 0x10) = param_6;\n  (*pcVar6)(param_1,param_2,param_3,param_4);\n  if (local_48[-1].__names + 10 != (char **)PTR__S_empty_rep_storage_004322d0) {\n    FUN_002ccd40(local_48[-1].__names + 10,auStack_40);\n  }\n  std::locale::~locale(alStack_44);\n  return param_1;\n}\n\n" (function_definition "undefined4\nFUN_002d3e04(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            byte param_5,int param_6,char param_7,undefined4 param_8,undefined8 param_9)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  ctype *this;\n  int iVar3;\n  __locale_struct *p_Var4;\n  char *pcVar5;\n  code *pcVar6;\n  undefined1 *puVar7;\n  undefined1 auStack_b0 [16];\n  undefined4 local_a0 [2];\n  undefined8 local_98;\n  char acStack_90 [64];\n  __locale_struct *local_48;\n  locale alStack_44 [4];\n  undefined1 auStack_40 [8];\n  uint local_38;\n  int local_34;\n  \n  local_38 = (uint)param_5;\n  local_34 = (int)param_7;\n  std::locale::locale(alStack_44,(locale *)(param_6 + 0x6c));\n                    \n  this = std::use_facet<std::ctype<char>>(alStack_44);\n  puVar7 = auStack_b0;\n  pcVar5 = acStack_90;\n  local_48 = (__locale_struct *)std::locale::facet::_S_get_c_locale();\n  puVar2 = PTR_DAT_0043226c;\n  local_a0[0] = 0;\n  local_98 = param_9;\n  iVar3 = std::__convert_from_v(&local_48,pcVar5,0x40,PTR_DAT_0043226c + 0x7450);\n  if (0x3f < iVar3) {\n    iVar1 = -(iVar3 + 8U & 0xfffffff8);\n    puVar7 = auStack_b0 + iVar1;\n    pcVar5 = acStack_90 + iVar1;\n    p_Var4 = (__locale_struct *)std::locale::facet::_S_get_c_locale();\n    *(undefined8 *)(acStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = p_Var4;\n    iVar3 = std::__convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450);\n  }\n  (*(code *)PTR_string_004338b8)(&local_48,iVar3,0,auStack_40);\n  if (-1 < (int)local_48[-1].__names[0xc]) {\n    (*(code *)PTR__M_leak_hard_0043388c)(&local_48);\n  }\n                    \n  std::ctype<char>::widen((ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48);\n  iVar3 = local_34;\n  pcVar6 = (code *)PTR__M_insert<false>_004338c0;\n  if (local_38 != 0) {\n    pcVar6 = (code *)PTR__M_insert<true>_004338bc;\n  }\n  *(__locale_struct ***)(puVar7 + 0x18) = &local_48;\n  *(int *)(puVar7 + 0x14) = iVar3;\n  *(int *)(puVar7 + 0x10) = param_6;\n  (*pcVar6)(param_1,param_2,param_3,param_4);\n  if (local_48[-1].__names + 10 != (char **)PTR__S_empty_rep_storage_004322d0) {\n    FUN_002ccd40(local_48[-1].__names + 10,auStack_40);\n  }\n  std::locale::~locale(alStack_44);\n  return param_1;\n}" type_identifier (function_declarator "FUN_002d3e04(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            byte param_5,int param_6,char 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,char 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 "char param_7" primitive_type 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 *this;\n  int iVar3;\n  __locale_struct *p_Var4;\n  char *pcVar5;\n  code *pcVar6;\n  undefined1 *puVar7;\n  undefined1 auStack_b0 [16];\n  undefined4 local_a0 [2];\n  undefined8 local_98;\n  char acStack_90 [64];\n  __locale_struct *local_48;\n  locale alStack_44 [4];\n  undefined1 auStack_40 [8];\n  uint local_38;\n  int local_34;\n  \n  local_38 = (uint)param_5;\n  local_34 = (int)param_7;\n  std::locale::locale(alStack_44,(locale *)(param_6 + 0x6c));\n                    \n  this = std::use_facet<std::ctype<char>>(alStack_44);\n  puVar7 = auStack_b0;\n  pcVar5 = acStack_90;\n  local_48 = (__locale_struct *)std::locale::facet::_S_get_c_locale();\n  puVar2 = PTR_DAT_0043226c;\n  local_a0[0] = 0;\n  local_98 = param_9;\n  iVar3 = std::__convert_from_v(&local_48,pcVar5,0x40,PTR_DAT_0043226c + 0x7450);\n  if (0x3f < iVar3) {\n    iVar1 = -(iVar3 + 8U & 0xfffffff8);\n    puVar7 = auStack_b0 + iVar1;\n    pcVar5 = acStack_90 + iVar1;\n    p_Var4 = (__locale_struct *)std::locale::facet::_S_get_c_locale();\n    *(undefined8 *)(acStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = p_Var4;\n    iVar3 = std::__convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450);\n  }\n  (*(code *)PTR_string_004338b8)(&local_48,iVar3,0,auStack_40);\n  if (-1 < (int)local_48[-1].__names[0xc]) {\n    (*(code *)PTR__M_leak_hard_0043388c)(&local_48);\n  }\n                    \n  std::ctype<char>::widen((ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48);\n  iVar3 = local_34;\n  pcVar6 = (code *)PTR__M_insert<false>_004338c0;\n  if (local_38 != 0) {\n    pcVar6 = (code *)PTR__M_insert<true>_004338bc;\n  }\n  *(__locale_struct ***)(puVar7 + 0x18) = &local_48;\n  *(int *)(puVar7 + 0x14) = iVar3;\n  *(int *)(puVar7 + 0x10) = param_6;\n  (*pcVar6)(param_1,param_2,param_3,param_4);\n  if (local_48[-1].__names + 10 != (char **)PTR__S_empty_rep_storage_004322d0) {\n    FUN_002ccd40(local_48[-1].__names + 10,auStack_40);\n  }\n  std::locale::~locale(alStack_44);\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "ctype *this;" type_identifier (pointer_declarator "*this" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "__locale_struct *p_Var4;" type_identifier (pointer_declarator "*p_Var4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined1 *puVar7;" type_identifier (pointer_declarator "*puVar7" * 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 "char acStack_90 [64];" primitive_type (array_declarator "acStack_90 [64]" identifier [ number_literal ]) ;) (declaration "__locale_struct *local_48;" type_identifier (pointer_declarator "*local_48" * 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 ;) (declaration "int local_34;" primitive_type 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 "local_34 = (int)param_7;" (assignment_expression "local_34 = (int)param_7" identifier = (cast_expression "(int)param_7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (labeled_statement "std::locale::locale(alStack_44,(locale *)(param_6 + 0x6c));" statement_identifier : (ERROR ":" :) (labeled_statement "locale::locale(alStack_44,(locale *)(param_6 + 0x6c));" statement_identifier : (ERROR ":" :) (expression_statement "locale(alStack_44,(locale *)(param_6 + 0x6c));" (call_expression "locale(alStack_44,(locale *)(param_6 + 0x6c))" identifier (argument_list "(alStack_44,(locale *)(param_6 + 0x6c))" ( identifier , (cast_expression "(locale *)(param_6 + 0x6c)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0x6c)" ( (binary_expression "param_6 + 0x6c" identifier + number_literal) ))) ))) ;))) (expression_statement "this = std::use_facet<std::ctype<char>>(alStack_44);" (binary_expression "this = std::use_facet<std::ctype<char>>(alStack_44)" (binary_expression "this = std::use_facet<std" (assignment_expression "this = std" identifier = identifier) (ERROR "::use_facet" : : identifier) < identifier) (ERROR "::ctype" : : identifier) < (binary_expression "char>>(alStack_44)" identifier >> (parenthesized_expression "(alStack_44)" ( identifier )))) ;) (expression_statement "puVar7 = auStack_b0;" (assignment_expression "puVar7 = auStack_b0" identifier = identifier) ;) (expression_statement "pcVar5 = acStack_90;" (assignment_expression "pcVar5 = acStack_90" identifier = identifier) ;) (ERROR "local_48 = (__locale_struct *)std::" (assignment_expression "local_48 = (__locale_struct *)std" identifier = (cast_expression "(__locale_struct *)std" ( (type_descriptor "__locale_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) : :) (labeled_statement "locale::facet::_S_get_c_locale();" statement_identifier : (ERROR ":" :) (labeled_statement "facet::_S_get_c_locale();" statement_identifier : (ERROR ":" :) (expression_statement "_S_get_c_locale();" (call_expression "_S_get_c_locale()" identifier (argument_list "()" ( ))) ;))) (expression_statement "puVar2 = PTR_DAT_0043226c;" (assignment_expression "puVar2 = PTR_DAT_0043226c" 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) ;) (ERROR "iVar3 = std::" (assignment_expression "iVar3 = std" identifier = identifier) : :) (expression_statement "__convert_from_v(&local_48,pcVar5,0x40,PTR_DAT_0043226c + 0x7450);" (call_expression "__convert_from_v(&local_48,pcVar5,0x40,PTR_DAT_0043226c + 0x7450)" identifier (argument_list "(&local_48,pcVar5,0x40,PTR_DAT_0043226c + 0x7450)" ( (pointer_expression "&local_48" & identifier) , identifier , number_literal , (binary_expression "PTR_DAT_0043226c + 0x7450" identifier + number_literal) ))) ;) (if_statement "if (0x3f < iVar3) {\n    iVar1 = -(iVar3 + 8U & 0xfffffff8);\n    puVar7 = auStack_b0 + iVar1;\n    pcVar5 = acStack_90 + iVar1;\n    p_Var4 = (__locale_struct *)std::locale::facet::_S_get_c_locale();\n    *(undefined8 *)(acStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = p_Var4;\n    iVar3 = std::__convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450);\n  }" if (parenthesized_expression "(0x3f < iVar3)" ( (binary_expression "0x3f < iVar3" number_literal < identifier) )) (compound_statement "{\n    iVar1 = -(iVar3 + 8U & 0xfffffff8);\n    puVar7 = auStack_b0 + iVar1;\n    pcVar5 = acStack_90 + iVar1;\n    p_Var4 = (__locale_struct *)std::locale::facet::_S_get_c_locale();\n    *(undefined8 *)(acStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = p_Var4;\n    iVar3 = std::__convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450);\n  }" { (expression_statement "iVar1 = -(iVar3 + 8U & 0xfffffff8);" (assignment_expression "iVar1 = -(iVar3 + 8U & 0xfffffff8)" identifier = (unary_expression "-(iVar3 + 8U & 0xfffffff8)" - (parenthesized_expression "(iVar3 + 8U & 0xfffffff8)" ( (binary_expression "iVar3 + 8U & 0xfffffff8" (binary_expression "iVar3 + 8U" identifier + number_literal) & number_literal) )))) ;) (expression_statement "puVar7 = auStack_b0 + iVar1;" (assignment_expression "puVar7 = auStack_b0 + iVar1" identifier = (binary_expression "auStack_b0 + iVar1" identifier + identifier)) ;) (expression_statement "pcVar5 = acStack_90 + iVar1;" (assignment_expression "pcVar5 = acStack_90 + iVar1" identifier = (binary_expression "acStack_90 + iVar1" identifier + identifier)) ;) (ERROR "p_Var4 = (__locale_struct *)std::" (assignment_expression "p_Var4 = (__locale_struct *)std" identifier = (cast_expression "(__locale_struct *)std" ( (type_descriptor "__locale_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) : :) (labeled_statement "locale::facet::_S_get_c_locale();" statement_identifier : (ERROR ":" :) (labeled_statement "facet::_S_get_c_locale();" statement_identifier : (ERROR ":" :) (expression_statement "_S_get_c_locale();" (call_expression "_S_get_c_locale()" identifier (argument_list "()" ( ))) ;))) (expression_statement "*(undefined8 *)(acStack_90 + iVar1 + -8) = param_9;" (assignment_expression "*(undefined8 *)(acStack_90 + iVar1 + -8) = param_9" (pointer_expression "*(undefined8 *)(acStack_90 + iVar1 + -8)" * (cast_expression "(undefined8 *)(acStack_90 + iVar1 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(acStack_90 + iVar1 + -8)" ( (binary_expression "acStack_90 + iVar1 + -8" (binary_expression "acStack_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 = p_Var4;" (assignment_expression "local_48 = p_Var4" identifier = identifier) ;) (ERROR "iVar3 = std::" (assignment_expression "iVar3 = std" identifier = identifier) : :) (expression_statement "__convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450);" (call_expression "__convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450)" identifier (argument_list "(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450)" ( (pointer_expression "&local_48" & identifier) , identifier , (binary_expression "iVar3 + 1" identifier + number_literal) , (binary_expression "puVar2 + 0x7450" identifier + number_literal) ))) ;) })) (expression_statement "(*(code *)PTR_string_004338b8)(&local_48,iVar3,0,auStack_40);" (call_expression "(*(code *)PTR_string_004338b8)(&local_48,iVar3,0,auStack_40)" (parenthesized_expression "(*(code *)PTR_string_004338b8)" ( (pointer_expression "*(code *)PTR_string_004338b8" * (cast_expression "(code *)PTR_string_004338b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_48,iVar3,0,auStack_40)" ( (pointer_expression "&local_48" & identifier) , identifier , number_literal , identifier ))) ;) (if_statement "if (-1 < (int)local_48[-1].__names[0xc]) {\n    (*(code *)PTR__M_leak_hard_0043388c)(&local_48);\n  }" if (parenthesized_expression "(-1 < (int)local_48[-1].__names[0xc])" ( (binary_expression "-1 < (int)local_48[-1].__names[0xc]" number_literal < (cast_expression "(int)local_48[-1].__names[0xc]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "local_48[-1].__names[0xc]" (field_expression "local_48[-1].__names" (subscript_expression "local_48[-1]" identifier [ number_literal ]) . field_identifier) [ number_literal ]))) )) (compound_statement "{\n    (*(code *)PTR__M_leak_hard_0043388c)(&local_48);\n  }" { (expression_statement "(*(code *)PTR__M_leak_hard_0043388c)(&local_48);" (call_expression "(*(code *)PTR__M_leak_hard_0043388c)(&local_48)" (parenthesized_expression "(*(code *)PTR__M_leak_hard_0043388c)" ( (pointer_expression "*(code *)PTR__M_leak_hard_0043388c" * (cast_expression "(code *)PTR__M_leak_hard_0043388c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_48)" ( (pointer_expression "&local_48" & identifier) ))) ;) })) (labeled_statement "std::ctype<char>::widen((ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48);" statement_identifier (ERROR "::ctype<char>:" : : (binary_expression "ctype<char" identifier < identifier) > :) : (expression_statement "widen((ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48);" (call_expression "widen((ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48)" identifier (argument_list "((ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48)" ( (parenthesized_expression "(ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48)" ( (comma_expression "ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48" (binary_expression "ctype<char> *)this" (binary_expression "ctype<char" identifier < identifier) > (pointer_expression "*)this" * (ERROR ")" )) identifier)) , (comma_expression "pcVar5,pcVar5 + iVar3,(char *)local_48" identifier , (comma_expression "pcVar5 + iVar3,(char *)local_48" (binary_expression "pcVar5 + iVar3" identifier + identifier) , (cast_expression "(char *)local_48" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)))) )) ))) ;)) (expression_statement "iVar3 = local_34;" (assignment_expression "iVar3 = local_34" identifier = identifier) ;) (expression_statement "pcVar6 = (code *)PTR__M_insert<false>_004338c0;" (assignment_expression "pcVar6 = (code *)PTR__M_insert<false>_004338c0" identifier = (binary_expression "(code *)PTR__M_insert<false>_004338c0" (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    pcVar6 = (code *)PTR__M_insert<true>_004338bc;\n  }" if (parenthesized_expression "(local_38 != 0)" ( (binary_expression "local_38 != 0" identifier != number_literal) )) (compound_statement "{\n    pcVar6 = (code *)PTR__M_insert<true>_004338bc;\n  }" { (expression_statement "pcVar6 = (code *)PTR__M_insert<true>_004338bc;" (assignment_expression "pcVar6 = (code *)PTR__M_insert<true>_004338bc" identifier = (binary_expression "(code *)PTR__M_insert<true>_004338bc" (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 "*(__locale_struct ***)(puVar7 + 0x18) = &local_48;" (assignment_expression "*(__locale_struct ***)(puVar7 + 0x18) = &local_48" (pointer_expression "*(__locale_struct ***)(puVar7 + 0x18)" * (cast_expression "(__locale_struct ***)(puVar7 + 0x18)" ( (type_descriptor "__locale_struct ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(puVar7 + 0x18)" ( (binary_expression "puVar7 + 0x18" identifier + number_literal) )))) = (pointer_expression "&local_48" & identifier)) ;) (expression_statement "*(int *)(puVar7 + 0x14) = iVar3;" (assignment_expression "*(int *)(puVar7 + 0x14) = iVar3" (pointer_expression "*(int *)(puVar7 + 0x14)" * (cast_expression "(int *)(puVar7 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x14)" ( (binary_expression "puVar7 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(puVar7 + 0x10) = param_6;" (assignment_expression "*(int *)(puVar7 + 0x10) = param_6" (pointer_expression "*(int *)(puVar7 + 0x10)" * (cast_expression "(int *)(puVar7 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x10)" ( (binary_expression "puVar7 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "(*pcVar6)(param_1,param_2,param_3,param_4);" (call_expression "(*pcVar6)(param_1,param_2,param_3,param_4)" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "(param_1,param_2,param_3,param_4)" ( identifier , identifier , identifier , identifier ))) ;) (if_statement "if (local_48[-1].__names + 10 != (char **)PTR__S_empty_rep_storage_004322d0) {\n    FUN_002ccd40(local_48[-1].__names + 10,auStack_40);\n  }" if (parenthesized_expression "(local_48[-1].__names + 10 != (char **)PTR__S_empty_rep_storage_004322d0)" ( (binary_expression "local_48[-1].__names + 10 != (char **)PTR__S_empty_rep_storage_004322d0" (binary_expression "local_48[-1].__names + 10" (field_expression "local_48[-1].__names" (subscript_expression "local_48[-1]" identifier [ number_literal ]) . field_identifier) + number_literal) != (cast_expression "(char **)PTR__S_empty_rep_storage_004322d0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) )) (compound_statement "{\n    FUN_002ccd40(local_48[-1].__names + 10,auStack_40);\n  }" { (expression_statement "FUN_002ccd40(local_48[-1].__names + 10,auStack_40);" (call_expression "FUN_002ccd40(local_48[-1].__names + 10,auStack_40)" identifier (argument_list "(local_48[-1].__names + 10,auStack_40)" ( (binary_expression "local_48[-1].__names + 10" (field_expression "local_48[-1].__names" (subscript_expression "local_48[-1]" identifier [ number_literal ]) . field_identifier) + number_literal) , identifier ))) ;) })) (labeled_statement "std::locale::~locale(alStack_44);" statement_identifier : (ERROR ":" :) (labeled_statement "locale::~locale(alStack_44);" statement_identifier : (ERROR ":" :) (expression_statement "~locale(alStack_44);" (unary_expression "~locale(alStack_44)" ~ (call_expression "locale(alStack_44)" 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 (pointer_declarator * 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 (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (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) ;) (ERROR (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) : :) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( ))) ;))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (ERROR (assignment_expression IDENT = IDENT) : :) (expression_statement (call_expression 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)) ;) (ERROR (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) : :) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression 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) ;) (ERROR (assignment_expression IDENT = IDENT) : :) (expression_statement (call_expression 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 < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) [ 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) ))) ;) })) (labeled_statement statement_identifier (ERROR : : (binary_expression IDENT < IDENT) > :) : (expression_statement (call_expression IDENT (argument_list ( (parenthesized_expression ( (comma_expression (binary_expression (binary_expression IDENT < IDENT) > (pointer_expression * (ERROR )) IDENT)) , (comma_expression IDENT , (comma_expression (binary_expression IDENT + IDENT) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)))) )) ))) ;)) (expression_statement (assignment_expression 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 * (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 (binary_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) + LIT) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) + LIT) , IDENT ))) ;) })) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (unary_expression ~ (call_expression IDENT (argument_list ( IDENT )))) ;))) (return_statement return IDENT ;) })))
(function_definition "undefined4\nFUN_002d3e04(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            byte param_5,int param_6,char param_7,undefined4 param_8,undefined8 param_9)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  ctype *this;\n  int iVar3;\n  __locale_struct *p_Var4;\n  char *pcVar5;\n  code *pcVar6;\n  undefined1 *puVar7;\n  undefined1 auStack_b0 [16];\n  undefined4 local_a0 [2];\n  undefined8 local_98;\n  char acStack_90 [64];\n  __locale_struct *local_48;\n  locale alStack_44 [4];\n  undefined1 auStack_40 [8];\n  uint local_38;\n  int local_34;\n  \n  local_38 = (uint)param_5;\n  local_34 = (int)param_7;\n  std::locale::locale(alStack_44,(locale *)(param_6 + 0x6c));\n                    \n  this = std::use_facet<std::ctype<char>>(alStack_44);\n  puVar7 = auStack_b0;\n  pcVar5 = acStack_90;\n  local_48 = (__locale_struct *)std::locale::facet::_S_get_c_locale();\n  puVar2 = PTR_DAT_0043226c;\n  local_a0[0] = 0;\n  local_98 = param_9;\n  iVar3 = std::__convert_from_v(&local_48,pcVar5,0x40,PTR_DAT_0043226c + 0x7450);\n  if (0x3f < iVar3) {\n    iVar1 = -(iVar3 + 8U & 0xfffffff8);\n    puVar7 = auStack_b0 + iVar1;\n    pcVar5 = acStack_90 + iVar1;\n    p_Var4 = (__locale_struct *)std::locale::facet::_S_get_c_locale();\n    *(undefined8 *)(acStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = p_Var4;\n    iVar3 = std::__convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450);\n  }\n  (*(code *)PTR_string_004338b8)(&local_48,iVar3,0,auStack_40);\n  if (-1 < (int)local_48[-1].__names[0xc]) {\n    (*(code *)PTR__M_leak_hard_0043388c)(&local_48);\n  }\n                    \n  std::ctype<char>::widen((ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48);\n  iVar3 = local_34;\n  pcVar6 = (code *)PTR__M_insert<false>_004338c0;\n  if (local_38 != 0) {\n    pcVar6 = (code *)PTR__M_insert<true>_004338bc;\n  }\n  *(__locale_struct ***)(puVar7 + 0x18) = &local_48;\n  *(int *)(puVar7 + 0x14) = iVar3;\n  *(int *)(puVar7 + 0x10) = param_6;\n  (*pcVar6)(param_1,param_2,param_3,param_4);\n  if (local_48[-1].__names + 10 != (char **)PTR__S_empty_rep_storage_004322d0) {\n    FUN_002ccd40(local_48[-1].__names + 10,auStack_40);\n  }\n  std::locale::~locale(alStack_44);\n  return param_1;\n}" (type_identifier "undefined4") (function_declarator "FUN_002d3e04(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            byte param_5,int param_6,char param_7,undefined4 param_8,undefined8 param_9)" (identifier "FUN_002d3e04") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            byte param_5,int param_6,char 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 "char param_7" (primitive_type "char") (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 *this;\n  int iVar3;\n  __locale_struct *p_Var4;\n  char *pcVar5;\n  code *pcVar6;\n  undefined1 *puVar7;\n  undefined1 auStack_b0 [16];\n  undefined4 local_a0 [2];\n  undefined8 local_98;\n  char acStack_90 [64];\n  __locale_struct *local_48;\n  locale alStack_44 [4];\n  undefined1 auStack_40 [8];\n  uint local_38;\n  int local_34;\n  \n  local_38 = (uint)param_5;\n  local_34 = (int)param_7;\n  std::locale::locale(alStack_44,(locale *)(param_6 + 0x6c));\n                    \n  this = std::use_facet<std::ctype<char>>(alStack_44);\n  puVar7 = auStack_b0;\n  pcVar5 = acStack_90;\n  local_48 = (__locale_struct *)std::locale::facet::_S_get_c_locale();\n  puVar2 = PTR_DAT_0043226c;\n  local_a0[0] = 0;\n  local_98 = param_9;\n  iVar3 = std::__convert_from_v(&local_48,pcVar5,0x40,PTR_DAT_0043226c + 0x7450);\n  if (0x3f < iVar3) {\n    iVar1 = -(iVar3 + 8U & 0xfffffff8);\n    puVar7 = auStack_b0 + iVar1;\n    pcVar5 = acStack_90 + iVar1;\n    p_Var4 = (__locale_struct *)std::locale::facet::_S_get_c_locale();\n    *(undefined8 *)(acStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = p_Var4;\n    iVar3 = std::__convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450);\n  }\n  (*(code *)PTR_string_004338b8)(&local_48,iVar3,0,auStack_40);\n  if (-1 < (int)local_48[-1].__names[0xc]) {\n    (*(code *)PTR__M_leak_hard_0043388c)(&local_48);\n  }\n                    \n  std::ctype<char>::widen((ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48);\n  iVar3 = local_34;\n  pcVar6 = (code *)PTR__M_insert<false>_004338c0;\n  if (local_38 != 0) {\n    pcVar6 = (code *)PTR__M_insert<true>_004338bc;\n  }\n  *(__locale_struct ***)(puVar7 + 0x18) = &local_48;\n  *(int *)(puVar7 + 0x14) = iVar3;\n  *(int *)(puVar7 + 0x10) = param_6;\n  (*pcVar6)(param_1,param_2,param_3,param_4);\n  if (local_48[-1].__names + 10 != (char **)PTR__S_empty_rep_storage_004322d0) {\n    FUN_002ccd40(local_48[-1].__names + 10,auStack_40);\n  }\n  std::locale::~locale(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 *this;" (type_identifier "ctype") (pointer_declarator "*this" (* "*") (identifier "this")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "__locale_struct *p_Var4;" (type_identifier "__locale_struct") (pointer_declarator "*p_Var4" (* "*") (identifier "p_Var4")) (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "code *pcVar6;" (type_identifier "code") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "undefined1 *puVar7;" (type_identifier "undefined1") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (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 "char acStack_90 [64];" (primitive_type "char") (array_declarator "acStack_90 [64]" (identifier "acStack_90") ([ "[") (number_literal "64") (] "]")) (; ";")) (declaration "__locale_struct *local_48;" (type_identifier "__locale_struct") (pointer_declarator "*local_48" (* "*") (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") (; ";")) (declaration "int local_34;" (primitive_type "int") (identifier "local_34") (; ";")) (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 "local_34 = (int)param_7;" (assignment_expression "local_34 = (int)param_7" (identifier "local_34") (= "=") (cast_expression "(int)param_7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_7"))) (; ";")) (labeled_statement "std::locale::locale(alStack_44,(locale *)(param_6 + 0x6c));" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "locale::locale(alStack_44,(locale *)(param_6 + 0x6c));" (statement_identifier "locale") (: ":") (ERROR ":" (: ":")) (expression_statement "locale(alStack_44,(locale *)(param_6 + 0x6c));" (call_expression "locale(alStack_44,(locale *)(param_6 + 0x6c))" (identifier "locale") (argument_list "(alStack_44,(locale *)(param_6 + 0x6c))" (( "(") (identifier "alStack_44") (, ",") (cast_expression "(locale *)(param_6 + 0x6c)" (( "(") (type_descriptor "locale *" (type_identifier "locale") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_6 + 0x6c)" (( "(") (binary_expression "param_6 + 0x6c" (identifier "param_6") (+ "+") (number_literal "0x6c")) () ")"))) () ")"))) (; ";")))) (expression_statement "this = std::use_facet<std::ctype<char>>(alStack_44);" (binary_expression "this = std::use_facet<std::ctype<char>>(alStack_44)" (binary_expression "this = std::use_facet<std" (assignment_expression "this = std" (identifier "this") (= "=") (identifier "std")) (ERROR "::use_facet" (: ":") (: ":") (identifier "use_facet")) (< "<") (identifier "std")) (ERROR "::ctype" (: ":") (: ":") (identifier "ctype")) (< "<") (binary_expression "char>>(alStack_44)" (identifier "char") (>> ">>") (parenthesized_expression "(alStack_44)" (( "(") (identifier "alStack_44") () ")")))) (; ";")) (expression_statement "puVar7 = auStack_b0;" (assignment_expression "puVar7 = auStack_b0" (identifier "puVar7") (= "=") (identifier "auStack_b0")) (; ";")) (expression_statement "pcVar5 = acStack_90;" (assignment_expression "pcVar5 = acStack_90" (identifier "pcVar5") (= "=") (identifier "acStack_90")) (; ";")) (ERROR "local_48 = (__locale_struct *)std::" (assignment_expression "local_48 = (__locale_struct *)std" (identifier "local_48") (= "=") (cast_expression "(__locale_struct *)std" (( "(") (type_descriptor "__locale_struct *" (type_identifier "__locale_struct") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "std"))) (: ":") (: ":")) (labeled_statement "locale::facet::_S_get_c_locale();" (statement_identifier "locale") (: ":") (ERROR ":" (: ":")) (labeled_statement "facet::_S_get_c_locale();" (statement_identifier "facet") (: ":") (ERROR ":" (: ":")) (expression_statement "_S_get_c_locale();" (call_expression "_S_get_c_locale()" (identifier "_S_get_c_locale") (argument_list "()" (( "(") () ")"))) (; ";")))) (expression_statement "puVar2 = PTR_DAT_0043226c;" (assignment_expression "puVar2 = PTR_DAT_0043226c" (identifier "puVar2") (= "=") (identifier "PTR_DAT_0043226c")) (; ";")) (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")) (; ";")) (ERROR "iVar3 = std::" (assignment_expression "iVar3 = std" (identifier "iVar3") (= "=") (identifier "std")) (: ":") (: ":")) (expression_statement "__convert_from_v(&local_48,pcVar5,0x40,PTR_DAT_0043226c + 0x7450);" (call_expression "__convert_from_v(&local_48,pcVar5,0x40,PTR_DAT_0043226c + 0x7450)" (identifier "__convert_from_v") (argument_list "(&local_48,pcVar5,0x40,PTR_DAT_0043226c + 0x7450)" (( "(") (pointer_expression "&local_48" (& "&") (identifier "local_48")) (, ",") (identifier "pcVar5") (, ",") (number_literal "0x40") (, ",") (binary_expression "PTR_DAT_0043226c + 0x7450" (identifier "PTR_DAT_0043226c") (+ "+") (number_literal "0x7450")) () ")"))) (; ";")) (if_statement "if (0x3f < iVar3) {\n    iVar1 = -(iVar3 + 8U & 0xfffffff8);\n    puVar7 = auStack_b0 + iVar1;\n    pcVar5 = acStack_90 + iVar1;\n    p_Var4 = (__locale_struct *)std::locale::facet::_S_get_c_locale();\n    *(undefined8 *)(acStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = p_Var4;\n    iVar3 = std::__convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450);\n  }" (if "if") (parenthesized_expression "(0x3f < iVar3)" (( "(") (binary_expression "0x3f < iVar3" (number_literal "0x3f") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n    iVar1 = -(iVar3 + 8U & 0xfffffff8);\n    puVar7 = auStack_b0 + iVar1;\n    pcVar5 = acStack_90 + iVar1;\n    p_Var4 = (__locale_struct *)std::locale::facet::_S_get_c_locale();\n    *(undefined8 *)(acStack_90 + iVar1 + -8) = param_9;\n    *(undefined4 *)((int)local_a0 + iVar1) = 0;\n    local_48 = p_Var4;\n    iVar3 = std::__convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450);\n  }" ({ "{") (expression_statement "iVar1 = -(iVar3 + 8U & 0xfffffff8);" (assignment_expression "iVar1 = -(iVar3 + 8U & 0xfffffff8)" (identifier "iVar1") (= "=") (unary_expression "-(iVar3 + 8U & 0xfffffff8)" (- "-") (parenthesized_expression "(iVar3 + 8U & 0xfffffff8)" (( "(") (binary_expression "iVar3 + 8U & 0xfffffff8" (binary_expression "iVar3 + 8U" (identifier "iVar3") (+ "+") (number_literal "8U")) (& "&") (number_literal "0xfffffff8")) () ")")))) (; ";")) (expression_statement "puVar7 = auStack_b0 + iVar1;" (assignment_expression "puVar7 = auStack_b0 + iVar1" (identifier "puVar7") (= "=") (binary_expression "auStack_b0 + iVar1" (identifier "auStack_b0") (+ "+") (identifier "iVar1"))) (; ";")) (expression_statement "pcVar5 = acStack_90 + iVar1;" (assignment_expression "pcVar5 = acStack_90 + iVar1" (identifier "pcVar5") (= "=") (binary_expression "acStack_90 + iVar1" (identifier "acStack_90") (+ "+") (identifier "iVar1"))) (; ";")) (ERROR "p_Var4 = (__locale_struct *)std::" (assignment_expression "p_Var4 = (__locale_struct *)std" (identifier "p_Var4") (= "=") (cast_expression "(__locale_struct *)std" (( "(") (type_descriptor "__locale_struct *" (type_identifier "__locale_struct") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "std"))) (: ":") (: ":")) (labeled_statement "locale::facet::_S_get_c_locale();" (statement_identifier "locale") (: ":") (ERROR ":" (: ":")) (labeled_statement "facet::_S_get_c_locale();" (statement_identifier "facet") (: ":") (ERROR ":" (: ":")) (expression_statement "_S_get_c_locale();" (call_expression "_S_get_c_locale()" (identifier "_S_get_c_locale") (argument_list "()" (( "(") () ")"))) (; ";")))) (expression_statement "*(undefined8 *)(acStack_90 + iVar1 + -8) = param_9;" (assignment_expression "*(undefined8 *)(acStack_90 + iVar1 + -8) = param_9" (pointer_expression "*(undefined8 *)(acStack_90 + iVar1 + -8)" (* "*") (cast_expression "(undefined8 *)(acStack_90 + iVar1 + -8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(acStack_90 + iVar1 + -8)" (( "(") (binary_expression "acStack_90 + iVar1 + -8" (binary_expression "acStack_90 + iVar1" (identifier "acStack_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 = p_Var4;" (assignment_expression "local_48 = p_Var4" (identifier "local_48") (= "=") (identifier "p_Var4")) (; ";")) (ERROR "iVar3 = std::" (assignment_expression "iVar3 = std" (identifier "iVar3") (= "=") (identifier "std")) (: ":") (: ":")) (expression_statement "__convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450);" (call_expression "__convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450)" (identifier "__convert_from_v") (argument_list "(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450)" (( "(") (pointer_expression "&local_48" (& "&") (identifier "local_48")) (, ",") (identifier "pcVar5") (, ",") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1")) (, ",") (binary_expression "puVar2 + 0x7450" (identifier "puVar2") (+ "+") (number_literal "0x7450")) () ")"))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_string_004338b8)(&local_48,iVar3,0,auStack_40);" (call_expression "(*(code *)PTR_string_004338b8)(&local_48,iVar3,0,auStack_40)" (parenthesized_expression "(*(code *)PTR_string_004338b8)" (( "(") (pointer_expression "*(code *)PTR_string_004338b8" (* "*") (cast_expression "(code *)PTR_string_004338b8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_string_004338b8"))) () ")")) (argument_list "(&local_48,iVar3,0,auStack_40)" (( "(") (pointer_expression "&local_48" (& "&") (identifier "local_48")) (, ",") (identifier "iVar3") (, ",") (number_literal "0") (, ",") (identifier "auStack_40") () ")"))) (; ";")) (if_statement "if (-1 < (int)local_48[-1].__names[0xc]) {\n    (*(code *)PTR__M_leak_hard_0043388c)(&local_48);\n  }" (if "if") (parenthesized_expression "(-1 < (int)local_48[-1].__names[0xc])" (( "(") (binary_expression "-1 < (int)local_48[-1].__names[0xc]" (number_literal "-1") (< "<") (cast_expression "(int)local_48[-1].__names[0xc]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "local_48[-1].__names[0xc]" (field_expression "local_48[-1].__names" (subscript_expression "local_48[-1]" (identifier "local_48") ([ "[") (number_literal "-1") (] "]")) (. ".") (field_identifier "__names")) ([ "[") (number_literal "0xc") (] "]")))) () ")")) (compound_statement "{\n    (*(code *)PTR__M_leak_hard_0043388c)(&local_48);\n  }" ({ "{") (expression_statement "(*(code *)PTR__M_leak_hard_0043388c)(&local_48);" (call_expression "(*(code *)PTR__M_leak_hard_0043388c)(&local_48)" (parenthesized_expression "(*(code *)PTR__M_leak_hard_0043388c)" (( "(") (pointer_expression "*(code *)PTR__M_leak_hard_0043388c" (* "*") (cast_expression "(code *)PTR__M_leak_hard_0043388c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__M_leak_hard_0043388c"))) () ")")) (argument_list "(&local_48)" (( "(") (pointer_expression "&local_48" (& "&") (identifier "local_48")) () ")"))) (; ";")) (} "}"))) (labeled_statement "std::ctype<char>::widen((ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48);" (statement_identifier "std") (ERROR "::ctype<char>:" (: ":") (: ":") (binary_expression "ctype<char" (identifier "ctype") (< "<") (identifier "char")) (> ">") (: ":")) (: ":") (expression_statement "widen((ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48);" (call_expression "widen((ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48)" (identifier "widen") (argument_list "((ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48)" (( "(") (parenthesized_expression "(ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48)" (( "(") (comma_expression "ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48" (binary_expression "ctype<char> *)this" (binary_expression "ctype<char" (identifier "ctype") (< "<") (identifier "char")) (> ">") (pointer_expression "*)this" (* "*") (ERROR ")" () ")")) (identifier "this"))) (, ",") (comma_expression "pcVar5,pcVar5 + iVar3,(char *)local_48" (identifier "pcVar5") (, ",") (comma_expression "pcVar5 + iVar3,(char *)local_48" (binary_expression "pcVar5 + iVar3" (identifier "pcVar5") (+ "+") (identifier "iVar3")) (, ",") (cast_expression "(char *)local_48" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_48"))))) () ")")) () ""))) (; ";"))) (expression_statement "iVar3 = local_34;" (assignment_expression "iVar3 = local_34" (identifier "iVar3") (= "=") (identifier "local_34")) (; ";")) (expression_statement "pcVar6 = (code *)PTR__M_insert<false>_004338c0;" (assignment_expression "pcVar6 = (code *)PTR__M_insert<false>_004338c0" (identifier "pcVar6") (= "=") (binary_expression "(code *)PTR__M_insert<false>_004338c0" (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 "_004338c0"))) (; ";")) (if_statement "if (local_38 != 0) {\n    pcVar6 = (code *)PTR__M_insert<true>_004338bc;\n  }" (if "if") (parenthesized_expression "(local_38 != 0)" (( "(") (binary_expression "local_38 != 0" (identifier "local_38") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    pcVar6 = (code *)PTR__M_insert<true>_004338bc;\n  }" ({ "{") (expression_statement "pcVar6 = (code *)PTR__M_insert<true>_004338bc;" (assignment_expression "pcVar6 = (code *)PTR__M_insert<true>_004338bc" (identifier "pcVar6") (= "=") (binary_expression "(code *)PTR__M_insert<true>_004338bc" (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 "_004338bc"))) (; ";")) (} "}"))) (expression_statement "*(__locale_struct ***)(puVar7 + 0x18) = &local_48;" (assignment_expression "*(__locale_struct ***)(puVar7 + 0x18) = &local_48" (pointer_expression "*(__locale_struct ***)(puVar7 + 0x18)" (* "*") (cast_expression "(__locale_struct ***)(puVar7 + 0x18)" (( "(") (type_descriptor "__locale_struct ***" (type_identifier "__locale_struct") (abstract_pointer_declarator "***" (* "*") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*"))))) () ")") (parenthesized_expression "(puVar7 + 0x18)" (( "(") (binary_expression "puVar7 + 0x18" (identifier "puVar7") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (pointer_expression "&local_48" (& "&") (identifier "local_48"))) (; ";")) (expression_statement "*(int *)(puVar7 + 0x14) = iVar3;" (assignment_expression "*(int *)(puVar7 + 0x14) = iVar3" (pointer_expression "*(int *)(puVar7 + 0x14)" (* "*") (cast_expression "(int *)(puVar7 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 0x14)" (( "(") (binary_expression "puVar7 + 0x14" (identifier "puVar7") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*(int *)(puVar7 + 0x10) = param_6;" (assignment_expression "*(int *)(puVar7 + 0x10) = param_6" (pointer_expression "*(int *)(puVar7 + 0x10)" (* "*") (cast_expression "(int *)(puVar7 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 0x10)" (( "(") (binary_expression "puVar7 + 0x10" (identifier "puVar7") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "param_6")) (; ";")) (expression_statement "(*pcVar6)(param_1,param_2,param_3,param_4);" (call_expression "(*pcVar6)(param_1,param_2,param_3,param_4)" (parenthesized_expression "(*pcVar6)" (( "(") (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) () ")")) (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 (local_48[-1].__names + 10 != (char **)PTR__S_empty_rep_storage_004322d0) {\n    FUN_002ccd40(local_48[-1].__names + 10,auStack_40);\n  }" (if "if") (parenthesized_expression "(local_48[-1].__names + 10 != (char **)PTR__S_empty_rep_storage_004322d0)" (( "(") (binary_expression "local_48[-1].__names + 10 != (char **)PTR__S_empty_rep_storage_004322d0" (binary_expression "local_48[-1].__names + 10" (field_expression "local_48[-1].__names" (subscript_expression "local_48[-1]" (identifier "local_48") ([ "[") (number_literal "-1") (] "]")) (. ".") (field_identifier "__names")) (+ "+") (number_literal "10")) (!= "!=") (cast_expression "(char **)PTR__S_empty_rep_storage_004322d0" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR__S_empty_rep_storage_004322d0"))) () ")")) (compound_statement "{\n    FUN_002ccd40(local_48[-1].__names + 10,auStack_40);\n  }" ({ "{") (expression_statement "FUN_002ccd40(local_48[-1].__names + 10,auStack_40);" (call_expression "FUN_002ccd40(local_48[-1].__names + 10,auStack_40)" (identifier "FUN_002ccd40") (argument_list "(local_48[-1].__names + 10,auStack_40)" (( "(") (binary_expression "local_48[-1].__names + 10" (field_expression "local_48[-1].__names" (subscript_expression "local_48[-1]" (identifier "local_48") ([ "[") (number_literal "-1") (] "]")) (. ".") (field_identifier "__names")) (+ "+") (number_literal "10")) (, ",") (identifier "auStack_40") () ")"))) (; ";")) (} "}"))) (labeled_statement "std::locale::~locale(alStack_44);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "locale::~locale(alStack_44);" (statement_identifier "locale") (: ":") (ERROR ":" (: ":")) (expression_statement "~locale(alStack_44);" (unary_expression "~locale(alStack_44)" (~ "~") (call_expression "locale(alStack_44)" (identifier "locale") (argument_list "(alStack_44)" (( "(") (identifier "alStack_44") () ")")))) (; ";")))) (return_statement "return param_1;" (return "return") (identifier "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: (primitive_type) 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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (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: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (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))) (ERROR (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (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))) (ERROR (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (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)))) (ERROR (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (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))) (ERROR (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (field_expression argument: (subscript_expression argument: (identifier) index: (number_literal)) field: (field_identifier)) index: (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))))))) (labeled_statement label: (statement_identifier) (ERROR (binary_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (parenthesized_expression (comma_expression left: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (pointer_expression (ERROR) argument: (identifier))) right: (comma_expression left: (identifier) right: (comma_expression left: (binary_expression left: (identifier) right: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)))))) (MISSING ")"))))) (expression_statement (assignment_expression left: (identifier) right: (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: (type_identifier) declarator: (abstract_pointer_declarator 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: (primitive_type) 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: (binary_expression left: (field_expression argument: (subscript_expression argument: (identifier) index: (number_literal)) field: (field_identifier)) right: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (field_expression argument: (subscript_expression argument: (identifier) index: (number_literal)) field: (field_identifier)) right: (number_literal)) (identifier)))))) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (unary_expression argument: (call_expression function: (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,char param_7,undefined4 param_8,undefined8 param_9)

{
  int iVar1;
  undefined *puVar2;
  ctype *this;
  int iVar3;
  __locale_struct *p_Var4;
  char *pcVar5;
  code *pcVar6;
  undefined1 *puVar7;
  undefined1 auStack_b0 [16];
  undefined4 local_a0 [2];
  undefined8 local_98;
  char acStack_90 [64];
  __locale_struct *local_48;
  locale alStack_44 [4];
  undefined1 auStack_40 [8];
  uint local_38;
  int local_34;
  
  local_38 = (uint)param_5;
  local_34 = (int)param_7;
  std::locale::locale(alStack_44,(locale *)(param_6 + 0x6c));
                    /* try { // try from 002d3e8c to 002d3f57 has its CatchHandler @ 002d40a4 */
  this = std::use_facet<std::ctype<char>>(alStack_44);
  puVar7 = auStack_b0;
  pcVar5 = acStack_90;
  local_48 = (__locale_struct *)std::locale::facet::_S_get_c_locale();
  puVar2 = PTR_DAT_0043226c;
  local_a0[0] = 0;
  local_98 = param_9;
  iVar3 = std::__convert_from_v(&local_48,pcVar5,0x40,PTR_DAT_0043226c + 0x7450);
  if (0x3f < iVar3) {
    iVar1 = -(iVar3 + 8U & 0xfffffff8);
    puVar7 = auStack_b0 + iVar1;
    pcVar5 = acStack_90 + iVar1;
    p_Var4 = (__locale_struct *)std::locale::facet::_S_get_c_locale();
    *(undefined8 *)(acStack_90 + iVar1 + -8) = param_9;
    *(undefined4 *)((int)local_a0 + iVar1) = 0;
    local_48 = p_Var4;
    iVar3 = std::__convert_from_v(&local_48,pcVar5,iVar3 + 1,puVar2 + 0x7450);
  }
  (*(code *)PTR_string_004338b8)(&local_48,iVar3,0,auStack_40);
  if (-1 < (int)local_48[-1].__names[0xc]) {
    (*(code *)PTR__M_leak_hard_0043388c)(&local_48);
  }
                    /* try { // try from 002d3f7c to 002d403b has its CatchHandler @ 002d405c */
  std::ctype<char>::widen((ctype<char> *)this,pcVar5,pcVar5 + iVar3,(char *)local_48);
  iVar3 = local_34;
  pcVar6 = (code *)PTR__M_insert<false>_004338c0;
  if (local_38 != 0) {
    pcVar6 = (code *)PTR__M_insert<true>_004338bc;
  }
  *(__locale_struct ***)(puVar7 + 0x18) = &local_48;
  *(int *)(puVar7 + 0x14) = iVar3;
  *(int *)(puVar7 + 0x10) = param_6;
  (*pcVar6)(param_1,param_2,param_3,param_4);
  if (local_48[-1].__names + 10 != (char **)PTR__S_empty_rep_storage_004322d0) {
    FUN_002ccd40(local_48[-1].__names + 10,auStack_40);
  }
  std::locale::~locale(alStack_44);
  return param_1;
}

