
void wideaddch(wchar_t c)

{
  int iVar1;
  char *message;
  int iVar2;
  wchar_t c_00;
  undefined4 *puVar3;
  undefined *puVar4;
  wchar_t wc [2];
  cchar_t c2;
  
  puVar4 = PTR___stack_chk_guard_0002c460;
  iVar2 = *(int *)PTR___stack_chk_guard_0002c460;
  if (*(int *)PTR_isUTF8Locale_0002c2ac == 0) {
    c_00 = *(wchar_t *)PTR_stdscr_0002c42c;
    (*(code *)PTR_waddch_0002c354)(c_00,c);
  }
  else {
    wc[1] = 0;
    wc[0] = c;
    iVar1 = (*(code *)PTR_setcchar_0002c37c)(&c2,wc,0,0,0);
    if (iVar1 != 0) {
      message = (char *)(*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);
      fatal_error(message,PTR_DAT_0002c238 + -0x46b8);
    }
    c_00 = *(wchar_t *)PTR_stdscr_0002c42c;
    (*(code *)PTR_wadd_wch_0002c3c0)(c_00,&c2);
  }
  if (iVar2 == *(int *)puVar4) {
    return;
  }
  puVar4 = PTR___stack_chk_fail_0002c440;
  (*(code *)PTR___stack_chk_fail_0002c440)();
  puVar3 = *(undefined4 **)(puVar4 + 0x12e08);
  (**(code **)(puVar4 + 0x12e68))(*puVar3,0x40000,0);
  wideaddch(c_00);
                    /* WARNING: Could not recover jumptable at 0x00019690. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(puVar4 + 0x12d54))(*puVar3,0x40000,0);
  return;
}



void wideaddch(undefined4 param_1)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  undefined *puVar4;
  undefined4 local_38;
  undefined4 local_34;
  undefined1 auStack_30 [28];
  int local_14;
  
  puVar4 = PTR___stack_chk_guard_0002c460;
  local_14 = *(int *)PTR___stack_chk_guard_0002c460;
  if (*(int *)PTR_isUTF8Locale_0002c2ac == 0) {
    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;
    (*(code *)PTR_waddch_0002c354)(uVar2,param_1);
  }
  else {
    local_34 = 0;
    local_38 = param_1;
    iVar1 = (*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0);
    if (iVar1 != 0) {
      uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);
      fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);
    }
    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;
    (*(code *)PTR_wadd_wch_0002c3c0)(uVar2,auStack_30);
  }
  if (local_14 == *(int *)puVar4) {
    return;
  }
  puVar4 = PTR___stack_chk_fail_0002c440;
  (*(code *)PTR___stack_chk_fail_0002c440)();
  puVar3 = *(undefined4 **)(puVar4 + 0x12e08);
  (**(code **)(puVar4 + 0x12e68))(*puVar3,0x40000,0);
  wideaddch(uVar2);
                    /* WARNING: Could not recover jumptable at 0x00019690. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(puVar4 + 0x12d54))(*puVar3,0x40000,0);
  return;
}


lui gp,0x2
addiu gp,gp,-0x5324
addu gp,gp,t9
addiu sp,sp,-0x58
lw v0,-0x7f54(gp)
sw s0,0x4c(sp)
lw s0,-0x7da0(gp)
lw v0,0x0(v0)
sw gp,0x18(sp)
sw ra,0x54(sp)
sw s1,0x50(sp)
lw v1,0x0(s0)
sw v1,0x44(sp)
beq v0,zero,0x000195fc
_lw t9,-0x7e84(gp)
addiu s1,sp,0x28
or a3,zero,zero
sw a0,0x20(sp)
or a2,zero,zero
sw zero,0x10(sp)
addiu a1,sp,0x20
sw zero,0x24(sp)
jalr t9
_or a0,s1,zero
bne v0,zero,0x000195c4
_lw gp,0x18(sp)
lw v0,-0x7dd4(gp)
or a1,s1,zero
lw t9,-0x7e40(gp)
jalr t9
_lw a0,0x0(v0)
lw gp,0x18(sp)
lw v1,0x44(sp)
lw v0,0x0(s0)
bne v1,v0,0x00019618
_lw ra,0x54(sp)
lw s1,0x50(sp)
lw s0,0x4c(sp)
jr ra
_addiu sp,sp,0x58
lw a1,-0x7fc8(gp)
li a2,0x5
lw t9,-0x7db8(gp)
or a0,zero,zero
jalr t9
_addiu a1,a1,-0x46b4
lw gp,0x18(sp)
or a0,v0,zero
lw a1,-0x7fc8(gp)
lw t9,-0x7f84(gp)
bal 0x000190c0
_addiu a1,a1,-0x46b8
b 0x0001958c
_lw gp,0x18(sp)
lw v0,-0x7dd4(gp)
or a1,a0,zero
lw t9,-0x7eac(gp)
jalr t9
_lw a0,0x0(v0)
b 0x000195a4
_lw gp,0x18(sp)
lw t9,-0x7dc0(gp)
jalr t9
_nop
(translation_unit "void wideaddch(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined4 local_38;\n  undefined4 local_34;\n  undefined1 auStack_30 [28];\n  int local_14;\n  \n  puVar4 = PTR___stack_chk_guard_0002c460;\n  local_14 = *(int *)PTR___stack_chk_guard_0002c460;\n  if (*(int *)PTR_isUTF8Locale_0002c2ac == 0) {\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_waddch_0002c354)(uVar2,param_1);\n  }\n  else {\n    local_34 = 0;\n    local_38 = param_1;\n    iVar1 = (*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0);\n    if (iVar1 != 0) {\n      uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);\n    }\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_wadd_wch_0002c3c0)(uVar2,auStack_30);\n  }\n  if (local_14 == *(int *)puVar4) {\n    return;\n  }\n  puVar4 = PTR___stack_chk_fail_0002c440;\n  (*(code *)PTR___stack_chk_fail_0002c440)();\n  puVar3 = *(undefined4 **)(puVar4 + 0x12e08);\n  (**(code **)(puVar4 + 0x12e68))(*puVar3,0x40000,0);\n  wideaddch(uVar2);\n                    /* WARNING: Could not recover jumptable at 0x00019690. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(puVar4 + 0x12d54))(*puVar3,0x40000,0);\n  return;\n}\n\n" (function_definition "void wideaddch(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined4 local_38;\n  undefined4 local_34;\n  undefined1 auStack_30 [28];\n  int local_14;\n  \n  puVar4 = PTR___stack_chk_guard_0002c460;\n  local_14 = *(int *)PTR___stack_chk_guard_0002c460;\n  if (*(int *)PTR_isUTF8Locale_0002c2ac == 0) {\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_waddch_0002c354)(uVar2,param_1);\n  }\n  else {\n    local_34 = 0;\n    local_38 = param_1;\n    iVar1 = (*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0);\n    if (iVar1 != 0) {\n      uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);\n    }\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_wadd_wch_0002c3c0)(uVar2,auStack_30);\n  }\n  if (local_14 == *(int *)puVar4) {\n    return;\n  }\n  puVar4 = PTR___stack_chk_fail_0002c440;\n  (*(code *)PTR___stack_chk_fail_0002c440)();\n  puVar3 = *(undefined4 **)(puVar4 + 0x12e08);\n  (**(code **)(puVar4 + 0x12e68))(*puVar3,0x40000,0);\n  wideaddch(uVar2);\n                    /* WARNING: Could not recover jumptable at 0x00019690. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(puVar4 + 0x12d54))(*puVar3,0x40000,0);\n  return;\n}" primitive_type (function_declarator "wideaddch(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined4 local_38;\n  undefined4 local_34;\n  undefined1 auStack_30 [28];\n  int local_14;\n  \n  puVar4 = PTR___stack_chk_guard_0002c460;\n  local_14 = *(int *)PTR___stack_chk_guard_0002c460;\n  if (*(int *)PTR_isUTF8Locale_0002c2ac == 0) {\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_waddch_0002c354)(uVar2,param_1);\n  }\n  else {\n    local_34 = 0;\n    local_38 = param_1;\n    iVar1 = (*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0);\n    if (iVar1 != 0) {\n      uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);\n    }\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_wadd_wch_0002c3c0)(uVar2,auStack_30);\n  }\n  if (local_14 == *(int *)puVar4) {\n    return;\n  }\n  puVar4 = PTR___stack_chk_fail_0002c440;\n  (*(code *)PTR___stack_chk_fail_0002c440)();\n  puVar3 = *(undefined4 **)(puVar4 + 0x12e08);\n  (**(code **)(puVar4 + 0x12e68))(*puVar3,0x40000,0);\n  wideaddch(uVar2);\n                    /* WARNING: Could not recover jumptable at 0x00019690. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(puVar4 + 0x12d54))(*puVar3,0x40000,0);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 local_38;" type_identifier identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "undefined1 auStack_30 [28];" type_identifier (array_declarator "auStack_30 [28]" identifier [ number_literal ]) ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar4 = PTR___stack_chk_guard_0002c460;" (assignment_expression "puVar4 = PTR___stack_chk_guard_0002c460" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_0002c460;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_0002c460" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0002c460" * (cast_expression "(int *)PTR___stack_chk_guard_0002c460" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (*(int *)PTR_isUTF8Locale_0002c2ac == 0) {\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_waddch_0002c354)(uVar2,param_1);\n  }\n  else {\n    local_34 = 0;\n    local_38 = param_1;\n    iVar1 = (*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0);\n    if (iVar1 != 0) {\n      uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);\n    }\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_wadd_wch_0002c3c0)(uVar2,auStack_30);\n  }" if (parenthesized_expression "(*(int *)PTR_isUTF8Locale_0002c2ac == 0)" ( (binary_expression "*(int *)PTR_isUTF8Locale_0002c2ac == 0" (pointer_expression "*(int *)PTR_isUTF8Locale_0002c2ac" * (cast_expression "(int *)PTR_isUTF8Locale_0002c2ac" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_waddch_0002c354)(uVar2,param_1);\n  }" { (expression_statement "uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;" (assignment_expression "uVar2 = *(undefined4 *)PTR_stdscr_0002c42c" identifier = (pointer_expression "*(undefined4 *)PTR_stdscr_0002c42c" * (cast_expression "(undefined4 *)PTR_stdscr_0002c42c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_waddch_0002c354)(uVar2,param_1);" (call_expression "(*(code *)PTR_waddch_0002c354)(uVar2,param_1)" (parenthesized_expression "(*(code *)PTR_waddch_0002c354)" ( (pointer_expression "*(code *)PTR_waddch_0002c354" * (cast_expression "(code *)PTR_waddch_0002c354" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,param_1)" ( identifier , identifier ))) ;) }) (else_clause "else {\n    local_34 = 0;\n    local_38 = param_1;\n    iVar1 = (*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0);\n    if (iVar1 != 0) {\n      uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);\n    }\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_wadd_wch_0002c3c0)(uVar2,auStack_30);\n  }" else (compound_statement "{\n    local_34 = 0;\n    local_38 = param_1;\n    iVar1 = (*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0);\n    if (iVar1 != 0) {\n      uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);\n    }\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_wadd_wch_0002c3c0)(uVar2,auStack_30);\n  }" { (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "local_38 = param_1;" (assignment_expression "local_38 = param_1" identifier = identifier) ;) (expression_statement "iVar1 = (*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0);" (assignment_expression "iVar1 = (*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0)" identifier = (call_expression "(*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0)" (parenthesized_expression "(*(code *)PTR_setcchar_0002c37c)" ( (pointer_expression "*(code *)PTR_setcchar_0002c37c" * (cast_expression "(code *)PTR_setcchar_0002c37c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_30,&local_38,0,0,0)" ( identifier , (pointer_expression "&local_38" & identifier) , number_literal , number_literal , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);\n    }" { (expression_statement "uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);" (assignment_expression "uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_0002c448)" ( (pointer_expression "*(code *)PTR_dcgettext_0002c448" * (cast_expression "(code *)PTR_dcgettext_0002c448" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_DAT_0002c238 + -0x46b4,5)" ( number_literal , (binary_expression "PTR_DAT_0002c238 + -0x46b4" identifier + number_literal) , number_literal )))) ;) (expression_statement "fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);" (call_expression "fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8)" identifier (argument_list "(uVar2,PTR_DAT_0002c238 + -0x46b8)" ( identifier , (binary_expression "PTR_DAT_0002c238 + -0x46b8" identifier + number_literal) ))) ;) })) (expression_statement "uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;" (assignment_expression "uVar2 = *(undefined4 *)PTR_stdscr_0002c42c" identifier = (pointer_expression "*(undefined4 *)PTR_stdscr_0002c42c" * (cast_expression "(undefined4 *)PTR_stdscr_0002c42c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_wadd_wch_0002c3c0)(uVar2,auStack_30);" (call_expression "(*(code *)PTR_wadd_wch_0002c3c0)(uVar2,auStack_30)" (parenthesized_expression "(*(code *)PTR_wadd_wch_0002c3c0)" ( (pointer_expression "*(code *)PTR_wadd_wch_0002c3c0" * (cast_expression "(code *)PTR_wadd_wch_0002c3c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,auStack_30)" ( identifier , identifier ))) ;) }))) (if_statement "if (local_14 == *(int *)puVar4) {\n    return;\n  }" if (parenthesized_expression "(local_14 == *(int *)puVar4)" ( (binary_expression "local_14 == *(int *)puVar4" identifier == (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar4 = PTR___stack_chk_fail_0002c440;" (assignment_expression "puVar4 = PTR___stack_chk_fail_0002c440" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0002c440)();" (call_expression "(*(code *)PTR___stack_chk_fail_0002c440)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0002c440)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0002c440" * (cast_expression "(code *)PTR___stack_chk_fail_0002c440" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar3 = *(undefined4 **)(puVar4 + 0x12e08);" (assignment_expression "puVar3 = *(undefined4 **)(puVar4 + 0x12e08)" identifier = (pointer_expression "*(undefined4 **)(puVar4 + 0x12e08)" * (cast_expression "(undefined4 **)(puVar4 + 0x12e08)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x12e08)" ( (binary_expression "puVar4 + 0x12e08" identifier + number_literal) ))))) ;) (expression_statement "(**(code **)(puVar4 + 0x12e68))(*puVar3,0x40000,0);" (call_expression "(**(code **)(puVar4 + 0x12e68))(*puVar3,0x40000,0)" (parenthesized_expression "(**(code **)(puVar4 + 0x12e68))" ( (pointer_expression "**(code **)(puVar4 + 0x12e68)" * (pointer_expression "*(code **)(puVar4 + 0x12e68)" * (cast_expression "(code **)(puVar4 + 0x12e68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x12e68)" ( (binary_expression "puVar4 + 0x12e68" identifier + number_literal) ))))) )) (argument_list "(*puVar3,0x40000,0)" ( (pointer_expression "*puVar3" * identifier) , number_literal , number_literal ))) ;) (expression_statement "wideaddch(uVar2);" (call_expression "wideaddch(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) comment comment (expression_statement "(**(code **)(puVar4 + 0x12d54))(*puVar3,0x40000,0);" (call_expression "(**(code **)(puVar4 + 0x12d54))(*puVar3,0x40000,0)" (parenthesized_expression "(**(code **)(puVar4 + 0x12d54))" ( (pointer_expression "**(code **)(puVar4 + 0x12d54)" * (pointer_expression "*(code **)(puVar4 + 0x12d54)" * (cast_expression "(code **)(puVar4 + 0x12d54)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x12d54)" ( (binary_expression "puVar4 + 0x12d54" identifier + number_literal) ))))) )) (argument_list "(*puVar3,0x40000,0)" ( (pointer_expression "*puVar3" * identifier) , number_literal , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void wideaddch(wchar_t c)\n\n{\n  int iVar1;\n  char *message;\n  int iVar2;\n  wchar_t c_00;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  wchar_t wc [2];\n  cchar_t c2;\n  \n  puVar4 = PTR___stack_chk_guard_0002c460;\n  iVar2 = *(int *)PTR___stack_chk_guard_0002c460;\n  if (*(int *)PTR_isUTF8Locale_0002c2ac == 0) {\n    c_00 = *(wchar_t *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_waddch_0002c354)(c_00,c);\n  }\n  else {\n    wc[1] = 0;\n    wc[0] = c;\n    iVar1 = (*(code *)PTR_setcchar_0002c37c)(&c2,wc,0,0,0);\n    if (iVar1 != 0) {\n      message = (char *)(*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(message,PTR_DAT_0002c238 + -0x46b8);\n    }\n    c_00 = *(wchar_t *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_wadd_wch_0002c3c0)(c_00,&c2);\n  }\n  if (iVar2 == *(int *)puVar4) {\n    return;\n  }\n  puVar4 = PTR___stack_chk_fail_0002c440;\n  (*(code *)PTR___stack_chk_fail_0002c440)();\n  puVar3 = *(undefined4 **)(puVar4 + 0x12e08);\n  (**(code **)(puVar4 + 0x12e68))(*puVar3,0x40000,0);\n  wideaddch(c_00);\n                    /* WARNING: Could not recover jumptable at 0x00019690. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(puVar4 + 0x12d54))(*puVar3,0x40000,0);\n  return;\n}\n\n" (function_definition "void wideaddch(wchar_t c)\n\n{\n  int iVar1;\n  char *message;\n  int iVar2;\n  wchar_t c_00;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  wchar_t wc [2];\n  cchar_t c2;\n  \n  puVar4 = PTR___stack_chk_guard_0002c460;\n  iVar2 = *(int *)PTR___stack_chk_guard_0002c460;\n  if (*(int *)PTR_isUTF8Locale_0002c2ac == 0) {\n    c_00 = *(wchar_t *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_waddch_0002c354)(c_00,c);\n  }\n  else {\n    wc[1] = 0;\n    wc[0] = c;\n    iVar1 = (*(code *)PTR_setcchar_0002c37c)(&c2,wc,0,0,0);\n    if (iVar1 != 0) {\n      message = (char *)(*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(message,PTR_DAT_0002c238 + -0x46b8);\n    }\n    c_00 = *(wchar_t *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_wadd_wch_0002c3c0)(c_00,&c2);\n  }\n  if (iVar2 == *(int *)puVar4) {\n    return;\n  }\n  puVar4 = PTR___stack_chk_fail_0002c440;\n  (*(code *)PTR___stack_chk_fail_0002c440)();\n  puVar3 = *(undefined4 **)(puVar4 + 0x12e08);\n  (**(code **)(puVar4 + 0x12e68))(*puVar3,0x40000,0);\n  wideaddch(c_00);\n                    /* WARNING: Could not recover jumptable at 0x00019690. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(puVar4 + 0x12d54))(*puVar3,0x40000,0);\n  return;\n}" primitive_type (function_declarator "wideaddch(wchar_t c)" identifier (parameter_list "(wchar_t c)" ( (parameter_declaration "wchar_t c" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char *message;\n  int iVar2;\n  wchar_t c_00;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  wchar_t wc [2];\n  cchar_t c2;\n  \n  puVar4 = PTR___stack_chk_guard_0002c460;\n  iVar2 = *(int *)PTR___stack_chk_guard_0002c460;\n  if (*(int *)PTR_isUTF8Locale_0002c2ac == 0) {\n    c_00 = *(wchar_t *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_waddch_0002c354)(c_00,c);\n  }\n  else {\n    wc[1] = 0;\n    wc[0] = c;\n    iVar1 = (*(code *)PTR_setcchar_0002c37c)(&c2,wc,0,0,0);\n    if (iVar1 != 0) {\n      message = (char *)(*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(message,PTR_DAT_0002c238 + -0x46b8);\n    }\n    c_00 = *(wchar_t *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_wadd_wch_0002c3c0)(c_00,&c2);\n  }\n  if (iVar2 == *(int *)puVar4) {\n    return;\n  }\n  puVar4 = PTR___stack_chk_fail_0002c440;\n  (*(code *)PTR___stack_chk_fail_0002c440)();\n  puVar3 = *(undefined4 **)(puVar4 + 0x12e08);\n  (**(code **)(puVar4 + 0x12e68))(*puVar3,0x40000,0);\n  wideaddch(c_00);\n                    /* WARNING: Could not recover jumptable at 0x00019690. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(puVar4 + 0x12d54))(*puVar3,0x40000,0);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *message;" primitive_type (pointer_declarator "*message" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "wchar_t c_00;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "wchar_t wc [2];" type_identifier (array_declarator "wc [2]" identifier [ number_literal ]) ;) (declaration "cchar_t c2;" type_identifier identifier ;) (expression_statement "puVar4 = PTR___stack_chk_guard_0002c460;" (assignment_expression "puVar4 = PTR___stack_chk_guard_0002c460" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_0002c460;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_0002c460" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0002c460" * (cast_expression "(int *)PTR___stack_chk_guard_0002c460" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (*(int *)PTR_isUTF8Locale_0002c2ac == 0) {\n    c_00 = *(wchar_t *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_waddch_0002c354)(c_00,c);\n  }\n  else {\n    wc[1] = 0;\n    wc[0] = c;\n    iVar1 = (*(code *)PTR_setcchar_0002c37c)(&c2,wc,0,0,0);\n    if (iVar1 != 0) {\n      message = (char *)(*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(message,PTR_DAT_0002c238 + -0x46b8);\n    }\n    c_00 = *(wchar_t *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_wadd_wch_0002c3c0)(c_00,&c2);\n  }" if (parenthesized_expression "(*(int *)PTR_isUTF8Locale_0002c2ac == 0)" ( (binary_expression "*(int *)PTR_isUTF8Locale_0002c2ac == 0" (pointer_expression "*(int *)PTR_isUTF8Locale_0002c2ac" * (cast_expression "(int *)PTR_isUTF8Locale_0002c2ac" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n    c_00 = *(wchar_t *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_waddch_0002c354)(c_00,c);\n  }" { (expression_statement "c_00 = *(wchar_t *)PTR_stdscr_0002c42c;" (assignment_expression "c_00 = *(wchar_t *)PTR_stdscr_0002c42c" identifier = (pointer_expression "*(wchar_t *)PTR_stdscr_0002c42c" * (cast_expression "(wchar_t *)PTR_stdscr_0002c42c" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_waddch_0002c354)(c_00,c);" (call_expression "(*(code *)PTR_waddch_0002c354)(c_00,c)" (parenthesized_expression "(*(code *)PTR_waddch_0002c354)" ( (pointer_expression "*(code *)PTR_waddch_0002c354" * (cast_expression "(code *)PTR_waddch_0002c354" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(c_00,c)" ( identifier , identifier ))) ;) }) (else_clause "else {\n    wc[1] = 0;\n    wc[0] = c;\n    iVar1 = (*(code *)PTR_setcchar_0002c37c)(&c2,wc,0,0,0);\n    if (iVar1 != 0) {\n      message = (char *)(*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(message,PTR_DAT_0002c238 + -0x46b8);\n    }\n    c_00 = *(wchar_t *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_wadd_wch_0002c3c0)(c_00,&c2);\n  }" else (compound_statement "{\n    wc[1] = 0;\n    wc[0] = c;\n    iVar1 = (*(code *)PTR_setcchar_0002c37c)(&c2,wc,0,0,0);\n    if (iVar1 != 0) {\n      message = (char *)(*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(message,PTR_DAT_0002c238 + -0x46b8);\n    }\n    c_00 = *(wchar_t *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_wadd_wch_0002c3c0)(c_00,&c2);\n  }" { (expression_statement "wc[1] = 0;" (assignment_expression "wc[1] = 0" (subscript_expression "wc[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "wc[0] = c;" (assignment_expression "wc[0] = c" (subscript_expression "wc[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar1 = (*(code *)PTR_setcchar_0002c37c)(&c2,wc,0,0,0);" (assignment_expression "iVar1 = (*(code *)PTR_setcchar_0002c37c)(&c2,wc,0,0,0)" identifier = (call_expression "(*(code *)PTR_setcchar_0002c37c)(&c2,wc,0,0,0)" (parenthesized_expression "(*(code *)PTR_setcchar_0002c37c)" ( (pointer_expression "*(code *)PTR_setcchar_0002c37c" * (cast_expression "(code *)PTR_setcchar_0002c37c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&c2,wc,0,0,0)" ( (pointer_expression "&c2" & identifier) , identifier , number_literal , number_literal , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      message = (char *)(*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(message,PTR_DAT_0002c238 + -0x46b8);\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      message = (char *)(*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(message,PTR_DAT_0002c238 + -0x46b8);\n    }" { (expression_statement "message = (char *)(*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);" (assignment_expression "message = (char *)(*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5)" identifier = (cast_expression "(char *)(*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_0002c448)" ( (pointer_expression "*(code *)PTR_dcgettext_0002c448" * (cast_expression "(code *)PTR_dcgettext_0002c448" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_DAT_0002c238 + -0x46b4,5)" ( number_literal , (binary_expression "PTR_DAT_0002c238 + -0x46b4" identifier + number_literal) , number_literal ))))) ;) (expression_statement "fatal_error(message,PTR_DAT_0002c238 + -0x46b8);" (call_expression "fatal_error(message,PTR_DAT_0002c238 + -0x46b8)" identifier (argument_list "(message,PTR_DAT_0002c238 + -0x46b8)" ( identifier , (binary_expression "PTR_DAT_0002c238 + -0x46b8" identifier + number_literal) ))) ;) })) (expression_statement "c_00 = *(wchar_t *)PTR_stdscr_0002c42c;" (assignment_expression "c_00 = *(wchar_t *)PTR_stdscr_0002c42c" identifier = (pointer_expression "*(wchar_t *)PTR_stdscr_0002c42c" * (cast_expression "(wchar_t *)PTR_stdscr_0002c42c" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_wadd_wch_0002c3c0)(c_00,&c2);" (call_expression "(*(code *)PTR_wadd_wch_0002c3c0)(c_00,&c2)" (parenthesized_expression "(*(code *)PTR_wadd_wch_0002c3c0)" ( (pointer_expression "*(code *)PTR_wadd_wch_0002c3c0" * (cast_expression "(code *)PTR_wadd_wch_0002c3c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(c_00,&c2)" ( identifier , (pointer_expression "&c2" & identifier) ))) ;) }))) (if_statement "if (iVar2 == *(int *)puVar4) {\n    return;\n  }" if (parenthesized_expression "(iVar2 == *(int *)puVar4)" ( (binary_expression "iVar2 == *(int *)puVar4" identifier == (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar4 = PTR___stack_chk_fail_0002c440;" (assignment_expression "puVar4 = PTR___stack_chk_fail_0002c440" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0002c440)();" (call_expression "(*(code *)PTR___stack_chk_fail_0002c440)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0002c440)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0002c440" * (cast_expression "(code *)PTR___stack_chk_fail_0002c440" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar3 = *(undefined4 **)(puVar4 + 0x12e08);" (assignment_expression "puVar3 = *(undefined4 **)(puVar4 + 0x12e08)" identifier = (pointer_expression "*(undefined4 **)(puVar4 + 0x12e08)" * (cast_expression "(undefined4 **)(puVar4 + 0x12e08)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x12e08)" ( (binary_expression "puVar4 + 0x12e08" identifier + number_literal) ))))) ;) (expression_statement "(**(code **)(puVar4 + 0x12e68))(*puVar3,0x40000,0);" (call_expression "(**(code **)(puVar4 + 0x12e68))(*puVar3,0x40000,0)" (parenthesized_expression "(**(code **)(puVar4 + 0x12e68))" ( (pointer_expression "**(code **)(puVar4 + 0x12e68)" * (pointer_expression "*(code **)(puVar4 + 0x12e68)" * (cast_expression "(code **)(puVar4 + 0x12e68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x12e68)" ( (binary_expression "puVar4 + 0x12e68" identifier + number_literal) ))))) )) (argument_list "(*puVar3,0x40000,0)" ( (pointer_expression "*puVar3" * identifier) , number_literal , number_literal ))) ;) (expression_statement "wideaddch(c_00);" (call_expression "wideaddch(c_00)" identifier (argument_list "(c_00)" ( identifier ))) ;) comment comment (expression_statement "(**(code **)(puVar4 + 0x12d54))(*puVar3,0x40000,0);" (call_expression "(**(code **)(puVar4 + 0x12d54))(*puVar3,0x40000,0)" (parenthesized_expression "(**(code **)(puVar4 + 0x12d54))" ( (pointer_expression "**(code **)(puVar4 + 0x12d54)" * (pointer_expression "*(code **)(puVar4 + 0x12d54)" * (cast_expression "(code **)(puVar4 + 0x12d54)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x12d54)" ( (binary_expression "puVar4 + 0x12d54" identifier + number_literal) ))))) )) (argument_list "(*puVar3,0x40000,0)" ( (pointer_expression "*puVar3" * identifier) , number_literal , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void wideaddch(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined4 local_38;\n  undefined4 local_34;\n  undefined1 auStack_30 [28];\n  int local_14;\n  \n  puVar4 = PTR___stack_chk_guard_0002c460;\n  local_14 = *(int *)PTR___stack_chk_guard_0002c460;\n  if (*(int *)PTR_isUTF8Locale_0002c2ac == 0) {\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_waddch_0002c354)(uVar2,param_1);\n  }\n  else {\n    local_34 = 0;\n    local_38 = param_1;\n    iVar1 = (*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0);\n    if (iVar1 != 0) {\n      uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);\n    }\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_wadd_wch_0002c3c0)(uVar2,auStack_30);\n  }\n  if (local_14 == *(int *)puVar4) {\n    return;\n  }\n  puVar4 = PTR___stack_chk_fail_0002c440;\n  (*(code *)PTR___stack_chk_fail_0002c440)();\n  puVar3 = *(undefined4 **)(puVar4 + 0x12e08);\n  (**(code **)(puVar4 + 0x12e68))(*puVar3,0x40000,0);\n  wideaddch(uVar2);\n                    \n                    \n  (**(code **)(puVar4 + 0x12d54))(*puVar3,0x40000,0);\n  return;\n}\n\n" (function_definition "void wideaddch(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined4 local_38;\n  undefined4 local_34;\n  undefined1 auStack_30 [28];\n  int local_14;\n  \n  puVar4 = PTR___stack_chk_guard_0002c460;\n  local_14 = *(int *)PTR___stack_chk_guard_0002c460;\n  if (*(int *)PTR_isUTF8Locale_0002c2ac == 0) {\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_waddch_0002c354)(uVar2,param_1);\n  }\n  else {\n    local_34 = 0;\n    local_38 = param_1;\n    iVar1 = (*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0);\n    if (iVar1 != 0) {\n      uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);\n    }\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_wadd_wch_0002c3c0)(uVar2,auStack_30);\n  }\n  if (local_14 == *(int *)puVar4) {\n    return;\n  }\n  puVar4 = PTR___stack_chk_fail_0002c440;\n  (*(code *)PTR___stack_chk_fail_0002c440)();\n  puVar3 = *(undefined4 **)(puVar4 + 0x12e08);\n  (**(code **)(puVar4 + 0x12e68))(*puVar3,0x40000,0);\n  wideaddch(uVar2);\n                    \n                    \n  (**(code **)(puVar4 + 0x12d54))(*puVar3,0x40000,0);\n  return;\n}" primitive_type (function_declarator "wideaddch(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined4 local_38;\n  undefined4 local_34;\n  undefined1 auStack_30 [28];\n  int local_14;\n  \n  puVar4 = PTR___stack_chk_guard_0002c460;\n  local_14 = *(int *)PTR___stack_chk_guard_0002c460;\n  if (*(int *)PTR_isUTF8Locale_0002c2ac == 0) {\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_waddch_0002c354)(uVar2,param_1);\n  }\n  else {\n    local_34 = 0;\n    local_38 = param_1;\n    iVar1 = (*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0);\n    if (iVar1 != 0) {\n      uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);\n    }\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_wadd_wch_0002c3c0)(uVar2,auStack_30);\n  }\n  if (local_14 == *(int *)puVar4) {\n    return;\n  }\n  puVar4 = PTR___stack_chk_fail_0002c440;\n  (*(code *)PTR___stack_chk_fail_0002c440)();\n  puVar3 = *(undefined4 **)(puVar4 + 0x12e08);\n  (**(code **)(puVar4 + 0x12e68))(*puVar3,0x40000,0);\n  wideaddch(uVar2);\n                    \n                    \n  (**(code **)(puVar4 + 0x12d54))(*puVar3,0x40000,0);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 local_38;" type_identifier identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "undefined1 auStack_30 [28];" type_identifier (array_declarator "auStack_30 [28]" identifier [ number_literal ]) ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar4 = PTR___stack_chk_guard_0002c460;" (assignment_expression "puVar4 = PTR___stack_chk_guard_0002c460" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_0002c460;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_0002c460" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0002c460" * (cast_expression "(int *)PTR___stack_chk_guard_0002c460" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (*(int *)PTR_isUTF8Locale_0002c2ac == 0) {\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_waddch_0002c354)(uVar2,param_1);\n  }\n  else {\n    local_34 = 0;\n    local_38 = param_1;\n    iVar1 = (*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0);\n    if (iVar1 != 0) {\n      uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);\n    }\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_wadd_wch_0002c3c0)(uVar2,auStack_30);\n  }" if (parenthesized_expression "(*(int *)PTR_isUTF8Locale_0002c2ac == 0)" ( (binary_expression "*(int *)PTR_isUTF8Locale_0002c2ac == 0" (pointer_expression "*(int *)PTR_isUTF8Locale_0002c2ac" * (cast_expression "(int *)PTR_isUTF8Locale_0002c2ac" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_waddch_0002c354)(uVar2,param_1);\n  }" { (expression_statement "uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;" (assignment_expression "uVar2 = *(undefined4 *)PTR_stdscr_0002c42c" identifier = (pointer_expression "*(undefined4 *)PTR_stdscr_0002c42c" * (cast_expression "(undefined4 *)PTR_stdscr_0002c42c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_waddch_0002c354)(uVar2,param_1);" (call_expression "(*(code *)PTR_waddch_0002c354)(uVar2,param_1)" (parenthesized_expression "(*(code *)PTR_waddch_0002c354)" ( (pointer_expression "*(code *)PTR_waddch_0002c354" * (cast_expression "(code *)PTR_waddch_0002c354" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,param_1)" ( identifier , identifier ))) ;) }) (else_clause "else {\n    local_34 = 0;\n    local_38 = param_1;\n    iVar1 = (*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0);\n    if (iVar1 != 0) {\n      uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);\n    }\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_wadd_wch_0002c3c0)(uVar2,auStack_30);\n  }" else (compound_statement "{\n    local_34 = 0;\n    local_38 = param_1;\n    iVar1 = (*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0);\n    if (iVar1 != 0) {\n      uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);\n    }\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_wadd_wch_0002c3c0)(uVar2,auStack_30);\n  }" { (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "local_38 = param_1;" (assignment_expression "local_38 = param_1" identifier = identifier) ;) (expression_statement "iVar1 = (*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0);" (assignment_expression "iVar1 = (*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0)" identifier = (call_expression "(*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0)" (parenthesized_expression "(*(code *)PTR_setcchar_0002c37c)" ( (pointer_expression "*(code *)PTR_setcchar_0002c37c" * (cast_expression "(code *)PTR_setcchar_0002c37c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_30,&local_38,0,0,0)" ( identifier , (pointer_expression "&local_38" & identifier) , number_literal , number_literal , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);\n    }" { (expression_statement "uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);" (assignment_expression "uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_0002c448)" ( (pointer_expression "*(code *)PTR_dcgettext_0002c448" * (cast_expression "(code *)PTR_dcgettext_0002c448" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_DAT_0002c238 + -0x46b4,5)" ( number_literal , (binary_expression "PTR_DAT_0002c238 + -0x46b4" identifier + number_literal) , number_literal )))) ;) (expression_statement "fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);" (call_expression "fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8)" identifier (argument_list "(uVar2,PTR_DAT_0002c238 + -0x46b8)" ( identifier , (binary_expression "PTR_DAT_0002c238 + -0x46b8" identifier + number_literal) ))) ;) })) (expression_statement "uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;" (assignment_expression "uVar2 = *(undefined4 *)PTR_stdscr_0002c42c" identifier = (pointer_expression "*(undefined4 *)PTR_stdscr_0002c42c" * (cast_expression "(undefined4 *)PTR_stdscr_0002c42c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_wadd_wch_0002c3c0)(uVar2,auStack_30);" (call_expression "(*(code *)PTR_wadd_wch_0002c3c0)(uVar2,auStack_30)" (parenthesized_expression "(*(code *)PTR_wadd_wch_0002c3c0)" ( (pointer_expression "*(code *)PTR_wadd_wch_0002c3c0" * (cast_expression "(code *)PTR_wadd_wch_0002c3c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,auStack_30)" ( identifier , identifier ))) ;) }))) (if_statement "if (local_14 == *(int *)puVar4) {\n    return;\n  }" if (parenthesized_expression "(local_14 == *(int *)puVar4)" ( (binary_expression "local_14 == *(int *)puVar4" identifier == (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar4 = PTR___stack_chk_fail_0002c440;" (assignment_expression "puVar4 = PTR___stack_chk_fail_0002c440" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0002c440)();" (call_expression "(*(code *)PTR___stack_chk_fail_0002c440)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0002c440)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0002c440" * (cast_expression "(code *)PTR___stack_chk_fail_0002c440" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar3 = *(undefined4 **)(puVar4 + 0x12e08);" (assignment_expression "puVar3 = *(undefined4 **)(puVar4 + 0x12e08)" identifier = (pointer_expression "*(undefined4 **)(puVar4 + 0x12e08)" * (cast_expression "(undefined4 **)(puVar4 + 0x12e08)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x12e08)" ( (binary_expression "puVar4 + 0x12e08" identifier + number_literal) ))))) ;) (expression_statement "(**(code **)(puVar4 + 0x12e68))(*puVar3,0x40000,0);" (call_expression "(**(code **)(puVar4 + 0x12e68))(*puVar3,0x40000,0)" (parenthesized_expression "(**(code **)(puVar4 + 0x12e68))" ( (pointer_expression "**(code **)(puVar4 + 0x12e68)" * (pointer_expression "*(code **)(puVar4 + 0x12e68)" * (cast_expression "(code **)(puVar4 + 0x12e68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x12e68)" ( (binary_expression "puVar4 + 0x12e68" identifier + number_literal) ))))) )) (argument_list "(*puVar3,0x40000,0)" ( (pointer_expression "*puVar3" * identifier) , number_literal , number_literal ))) ;) (expression_statement "wideaddch(uVar2);" (call_expression "wideaddch(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "(**(code **)(puVar4 + 0x12d54))(*puVar3,0x40000,0);" (call_expression "(**(code **)(puVar4 + 0x12d54))(*puVar3,0x40000,0)" (parenthesized_expression "(**(code **)(puVar4 + 0x12d54))" ( (pointer_expression "**(code **)(puVar4 + 0x12d54)" * (pointer_expression "*(code **)(puVar4 + 0x12d54)" * (cast_expression "(code **)(puVar4 + 0x12d54)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x12d54)" ( (binary_expression "puVar4 + 0x12d54" identifier + number_literal) ))))) )) (argument_list "(*puVar3,0x40000,0)" ( (pointer_expression "*puVar3" * identifier) , number_literal , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression & IDENT) , LIT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * IDENT) , LIT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * IDENT) , LIT , LIT ))) ;) (return_statement return ;) })))
(function_definition "void wideaddch(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined4 local_38;\n  undefined4 local_34;\n  undefined1 auStack_30 [28];\n  int local_14;\n  \n  puVar4 = PTR___stack_chk_guard_0002c460;\n  local_14 = *(int *)PTR___stack_chk_guard_0002c460;\n  if (*(int *)PTR_isUTF8Locale_0002c2ac == 0) {\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_waddch_0002c354)(uVar2,param_1);\n  }\n  else {\n    local_34 = 0;\n    local_38 = param_1;\n    iVar1 = (*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0);\n    if (iVar1 != 0) {\n      uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);\n    }\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_wadd_wch_0002c3c0)(uVar2,auStack_30);\n  }\n  if (local_14 == *(int *)puVar4) {\n    return;\n  }\n  puVar4 = PTR___stack_chk_fail_0002c440;\n  (*(code *)PTR___stack_chk_fail_0002c440)();\n  puVar3 = *(undefined4 **)(puVar4 + 0x12e08);\n  (**(code **)(puVar4 + 0x12e68))(*puVar3,0x40000,0);\n  wideaddch(uVar2);\n                    \n                    \n  (**(code **)(puVar4 + 0x12d54))(*puVar3,0x40000,0);\n  return;\n}" (primitive_type "void") (function_declarator "wideaddch(undefined4 param_1)" (identifier "wideaddch") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined4 local_38;\n  undefined4 local_34;\n  undefined1 auStack_30 [28];\n  int local_14;\n  \n  puVar4 = PTR___stack_chk_guard_0002c460;\n  local_14 = *(int *)PTR___stack_chk_guard_0002c460;\n  if (*(int *)PTR_isUTF8Locale_0002c2ac == 0) {\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_waddch_0002c354)(uVar2,param_1);\n  }\n  else {\n    local_34 = 0;\n    local_38 = param_1;\n    iVar1 = (*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0);\n    if (iVar1 != 0) {\n      uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);\n    }\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_wadd_wch_0002c3c0)(uVar2,auStack_30);\n  }\n  if (local_14 == *(int *)puVar4) {\n    return;\n  }\n  puVar4 = PTR___stack_chk_fail_0002c440;\n  (*(code *)PTR___stack_chk_fail_0002c440)();\n  puVar3 = *(undefined4 **)(puVar4 + 0x12e08);\n  (**(code **)(puVar4 + 0x12e68))(*puVar3,0x40000,0);\n  wideaddch(uVar2);\n                    \n                    \n  (**(code **)(puVar4 + 0x12d54))(*puVar3,0x40000,0);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined4 local_38;" (type_identifier "undefined4") (identifier "local_38") (; ";")) (declaration "undefined4 local_34;" (type_identifier "undefined4") (identifier "local_34") (; ";")) (declaration "undefined1 auStack_30 [28];" (type_identifier "undefined1") (array_declarator "auStack_30 [28]" (identifier "auStack_30") ([ "[") (number_literal "28") (] "]")) (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (expression_statement "puVar4 = PTR___stack_chk_guard_0002c460;" (assignment_expression "puVar4 = PTR___stack_chk_guard_0002c460" (identifier "puVar4") (= "=") (identifier "PTR___stack_chk_guard_0002c460")) (; ";")) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_0002c460;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_0002c460" (identifier "local_14") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0002c460" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0002c460" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0002c460")))) (; ";")) (if_statement "if (*(int *)PTR_isUTF8Locale_0002c2ac == 0) {\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_waddch_0002c354)(uVar2,param_1);\n  }\n  else {\n    local_34 = 0;\n    local_38 = param_1;\n    iVar1 = (*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0);\n    if (iVar1 != 0) {\n      uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);\n    }\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_wadd_wch_0002c3c0)(uVar2,auStack_30);\n  }" (if "if") (parenthesized_expression "(*(int *)PTR_isUTF8Locale_0002c2ac == 0)" (( "(") (binary_expression "*(int *)PTR_isUTF8Locale_0002c2ac == 0" (pointer_expression "*(int *)PTR_isUTF8Locale_0002c2ac" (* "*") (cast_expression "(int *)PTR_isUTF8Locale_0002c2ac" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_isUTF8Locale_0002c2ac"))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_waddch_0002c354)(uVar2,param_1);\n  }" ({ "{") (expression_statement "uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;" (assignment_expression "uVar2 = *(undefined4 *)PTR_stdscr_0002c42c" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)PTR_stdscr_0002c42c" (* "*") (cast_expression "(undefined4 *)PTR_stdscr_0002c42c" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stdscr_0002c42c")))) (; ";")) (expression_statement "(*(code *)PTR_waddch_0002c354)(uVar2,param_1);" (call_expression "(*(code *)PTR_waddch_0002c354)(uVar2,param_1)" (parenthesized_expression "(*(code *)PTR_waddch_0002c354)" (( "(") (pointer_expression "*(code *)PTR_waddch_0002c354" (* "*") (cast_expression "(code *)PTR_waddch_0002c354" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_waddch_0002c354"))) () ")")) (argument_list "(uVar2,param_1)" (( "(") (identifier "uVar2") (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    local_34 = 0;\n    local_38 = param_1;\n    iVar1 = (*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0);\n    if (iVar1 != 0) {\n      uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);\n    }\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_wadd_wch_0002c3c0)(uVar2,auStack_30);\n  }" (else "else") (compound_statement "{\n    local_34 = 0;\n    local_38 = param_1;\n    iVar1 = (*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0);\n    if (iVar1 != 0) {\n      uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);\n    }\n    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;\n    (*(code *)PTR_wadd_wch_0002c3c0)(uVar2,auStack_30);\n  }" ({ "{") (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" (identifier "local_34") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_38 = param_1;" (assignment_expression "local_38 = param_1" (identifier "local_38") (= "=") (identifier "param_1")) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0);" (assignment_expression "iVar1 = (*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0)" (parenthesized_expression "(*(code *)PTR_setcchar_0002c37c)" (( "(") (pointer_expression "*(code *)PTR_setcchar_0002c37c" (* "*") (cast_expression "(code *)PTR_setcchar_0002c37c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_setcchar_0002c37c"))) () ")")) (argument_list "(auStack_30,&local_38,0,0,0)" (( "(") (identifier "auStack_30") (, ",") (pointer_expression "&local_38" (& "&") (identifier "local_38")) (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);\n      fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);\n    }" ({ "{") (expression_statement "uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);" (assignment_expression "uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_0002c448)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_0002c448" (* "*") (cast_expression "(code *)PTR_dcgettext_0002c448" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_0002c448"))) () ")")) (argument_list "(0,PTR_DAT_0002c238 + -0x46b4,5)" (( "(") (number_literal "0") (, ",") (binary_expression "PTR_DAT_0002c238 + -0x46b4" (identifier "PTR_DAT_0002c238") (+ "+") (number_literal "-0x46b4")) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);" (call_expression "fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8)" (identifier "fatal_error") (argument_list "(uVar2,PTR_DAT_0002c238 + -0x46b8)" (( "(") (identifier "uVar2") (, ",") (binary_expression "PTR_DAT_0002c238 + -0x46b8" (identifier "PTR_DAT_0002c238") (+ "+") (number_literal "-0x46b8")) () ")"))) (; ";")) (} "}"))) (expression_statement "uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;" (assignment_expression "uVar2 = *(undefined4 *)PTR_stdscr_0002c42c" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)PTR_stdscr_0002c42c" (* "*") (cast_expression "(undefined4 *)PTR_stdscr_0002c42c" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stdscr_0002c42c")))) (; ";")) (expression_statement "(*(code *)PTR_wadd_wch_0002c3c0)(uVar2,auStack_30);" (call_expression "(*(code *)PTR_wadd_wch_0002c3c0)(uVar2,auStack_30)" (parenthesized_expression "(*(code *)PTR_wadd_wch_0002c3c0)" (( "(") (pointer_expression "*(code *)PTR_wadd_wch_0002c3c0" (* "*") (cast_expression "(code *)PTR_wadd_wch_0002c3c0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_wadd_wch_0002c3c0"))) () ")")) (argument_list "(uVar2,auStack_30)" (( "(") (identifier "uVar2") (, ",") (identifier "auStack_30") () ")"))) (; ";")) (} "}")))) (if_statement "if (local_14 == *(int *)puVar4) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_14 == *(int *)puVar4)" (( "(") (binary_expression "local_14 == *(int *)puVar4" (identifier "local_14") (== "==") (pointer_expression "*(int *)puVar4" (* "*") (cast_expression "(int *)puVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar4 = PTR___stack_chk_fail_0002c440;" (assignment_expression "puVar4 = PTR___stack_chk_fail_0002c440" (identifier "puVar4") (= "=") (identifier "PTR___stack_chk_fail_0002c440")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_0002c440)();" (call_expression "(*(code *)PTR___stack_chk_fail_0002c440)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0002c440)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0002c440" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0002c440" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0002c440"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar3 = *(undefined4 **)(puVar4 + 0x12e08);" (assignment_expression "puVar3 = *(undefined4 **)(puVar4 + 0x12e08)" (identifier "puVar3") (= "=") (pointer_expression "*(undefined4 **)(puVar4 + 0x12e08)" (* "*") (cast_expression "(undefined4 **)(puVar4 + 0x12e08)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar4 + 0x12e08)" (( "(") (binary_expression "puVar4 + 0x12e08" (identifier "puVar4") (+ "+") (number_literal "0x12e08")) () ")"))))) (; ";")) (expression_statement "(**(code **)(puVar4 + 0x12e68))(*puVar3,0x40000,0);" (call_expression "(**(code **)(puVar4 + 0x12e68))(*puVar3,0x40000,0)" (parenthesized_expression "(**(code **)(puVar4 + 0x12e68))" (( "(") (pointer_expression "**(code **)(puVar4 + 0x12e68)" (* "*") (pointer_expression "*(code **)(puVar4 + 0x12e68)" (* "*") (cast_expression "(code **)(puVar4 + 0x12e68)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar4 + 0x12e68)" (( "(") (binary_expression "puVar4 + 0x12e68" (identifier "puVar4") (+ "+") (number_literal "0x12e68")) () ")"))))) () ")")) (argument_list "(*puVar3,0x40000,0)" (( "(") (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (, ",") (number_literal "0x40000") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "wideaddch(uVar2);" (call_expression "wideaddch(uVar2)" (identifier "wideaddch") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "(**(code **)(puVar4 + 0x12d54))(*puVar3,0x40000,0);" (call_expression "(**(code **)(puVar4 + 0x12d54))(*puVar3,0x40000,0)" (parenthesized_expression "(**(code **)(puVar4 + 0x12d54))" (( "(") (pointer_expression "**(code **)(puVar4 + 0x12d54)" (* "*") (pointer_expression "*(code **)(puVar4 + 0x12d54)" (* "*") (cast_expression "(code **)(puVar4 + 0x12d54)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar4 + 0x12d54)" (( "(") (binary_expression "puVar4 + 0x12d54" (identifier "puVar4") (+ "+") (number_literal "0x12d54")) () ")"))))) () ")")) (argument_list "(*puVar3,0x40000,0)" (( "(") (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (, ",") (number_literal "0x40000") (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 c)

{
  int var_1;
  char *message;
  int var_4;
  type_1 c_00;
  type_2 *puVar3;
  type_3 *var_5;
  type_1 wc [2];
  type_4 c2;
  
  var_5 = PTR___stack_chk_guard_0002c460;
  var_4 = *(int *)PTR___stack_chk_guard_0002c460;
  if (*(int *)PTR_isUTF8Locale_0002c2ac == 0) {
    c_00 = *(type_1 *)PTR_stdscr_0002c42c;
    (*(type_5 *)PTR_waddch_0002c354)(c_00,c);
  }
  else {
    wc[1] = 0;
    wc[0] = c;
    var_1 = (*(type_5 *)PTR_setcchar_0002c37c)(&c2,wc,0,0,0);
    if (var_1 != 0) {
      message = (char *)(*(type_5 *)PTR_dcgettext_0002c448)(0,var_2 + -0x46b4,5);
      var_3(message,var_2 + -0x46b8);
    }
    c_00 = *(type_1 *)PTR_stdscr_0002c42c;
    (*(type_5 *)PTR_wadd_wch_0002c3c0)(c_00,&c2);
  }
  if (var_4 == *(int *)var_5) {
    return;
  }
  var_5 = PTR___stack_chk_fail_0002c440;
  (*(type_5 *)PTR___stack_chk_fail_0002c440)();
  puVar3 = *(type_2 **)(var_5 + 0x12e08);
  (**(type_5 **)(var_5 + 0x12e68))(*puVar3,0x40000,0);
  function_1(c_00);
                    /* WARNING: Could not recover jumptable at 0x00019690. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(type_5 **)(var_5 + 0x12d54))(*puVar3,0x40000,0);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) 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: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (number_literal) (number_literal) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (binary_expression left: (identifier) right: (number_literal)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal) (number_literal)))) (return_statement))))

void MASKED(undefined4 param_1)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  undefined *puVar4;
  undefined4 local_38;
  undefined4 local_34;
  undefined1 auStack_30 [28];
  int local_14;
  
  puVar4 = PTR___stack_chk_guard_0002c460;
  local_14 = *(int *)PTR___stack_chk_guard_0002c460;
  if (*(int *)PTR_isUTF8Locale_0002c2ac == 0) {
    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;
    (*(code *)PTR_waddch_0002c354)(uVar2,param_1);
  }
  else {
    local_34 = 0;
    local_38 = param_1;
    iVar1 = (*(code *)PTR_setcchar_0002c37c)(auStack_30,&local_38,0,0,0);
    if (iVar1 != 0) {
      uVar2 = (*(code *)PTR_dcgettext_0002c448)(0,PTR_DAT_0002c238 + -0x46b4,5);
      fatal_error(uVar2,PTR_DAT_0002c238 + -0x46b8);
    }
    uVar2 = *(undefined4 *)PTR_stdscr_0002c42c;
    (*(code *)PTR_wadd_wch_0002c3c0)(uVar2,auStack_30);
  }
  if (local_14 == *(int *)puVar4) {
    return;
  }
  puVar4 = PTR___stack_chk_fail_0002c440;
  (*(code *)PTR___stack_chk_fail_0002c440)();
  puVar3 = *(undefined4 **)(puVar4 + 0x12e08);
  (**(code **)(puVar4 + 0x12e68))(*puVar3,0x40000,0);
  MASKED(uVar2);
                    /* WARNING: Could not recover jumptable at 0x00019690. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(puVar4 + 0x12d54))(*puVar3,0x40000,0);
  return;
}

