
void post_one_key(char *keystroke,char *tag,int width)

{
  undefined *puVar1;
  undefined *puVar2;
  size_t sVar3;
  undefined4 uVar4;
  
  puVar2 = PTR_interface_color_pair_000778e8;
  puVar1 = PTR_bottomwin_000775cc;
  (*(code *)PTR_wattr_on_0007812c)
            (*(undefined4 *)PTR_bottomwin_000775cc,
             *(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14),0);
  uVar4 = *(undefined4 *)puVar1;
  sVar3 = actual_x(keystroke,width);
  (*(code *)PTR_waddnstr_000780fc)(uVar4,keystroke,sVar3);
  (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x14),0);
  sVar3 = strlenpt(keystroke);
  if (1 < (int)(width - sVar3)) {
    (*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20);
    (*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);
    uVar4 = *(undefined4 *)puVar1;
    sVar3 = actual_x(tag,(width - sVar3) - 1);
    (*(code *)PTR_waddnstr_000780fc)(uVar4,tag,sVar3);
                    /* WARNING: Could not recover jumptable at 0x00046958. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);
    return;
  }
  return;
}



void post_one_key(undefined4 param_1,undefined4 param_2,int param_3)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined4 uVar3;
  int iVar4;
  undefined4 uVar5;
  
  puVar2 = PTR_interface_color_pair_000778e8;
  puVar1 = PTR_bottomwin_000775cc;
  (*(code *)PTR_wattr_on_0007812c)
            (*(undefined4 *)PTR_bottomwin_000775cc,
             *(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14),0);
  uVar5 = *(undefined4 *)puVar1;
  uVar3 = actual_x(param_1,param_3);
  (*(code *)PTR_waddnstr_000780fc)(uVar5,param_1,uVar3);
  (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x14),0);
  iVar4 = strlenpt(param_1);
  if (1 < param_3 - iVar4) {
    (*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20);
    (*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);
    uVar5 = *(undefined4 *)puVar1;
    uVar3 = actual_x(param_2,(param_3 - iVar4) + -1);
    (*(code *)PTR_waddnstr_000780fc)(uVar5,param_2,uVar3);
                    /* WARNING: Could not recover jumptable at 0x00046958. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);
    return;
  }
  return;
}


lui gp,0x4
addiu gp,gp,-0x72f0
addu gp,gp,t9
addiu sp,sp,-0x38
lw t9,-0x73f4(gp)
sw s2,0x24(sp)
sw s0,0x1c(sp)
sw s4,0x2c(sp)
or s4,a1,zero
sw s3,0x28(sp)
or s3,a0,zero
lw s0,-0x7f54(gp)
lw s2,-0x7c38(gp)
sw s1,0x20(sp)
or s1,a2,zero
or a2,zero,zero
sw ra,0x34(sp)
sw gp,0x10(sp)
sw s5,0x30(sp)
lw a0,0x0(s0)
jalr t9
_lw a1,0x14(s2)
or a1,s1,zero
lw gp,0x10(sp)
or a0,s3,zero
lw t9,-0x7e68(gp)
bal 0x00042c00
_lw s5,0x0(s0)
or a1,s3,zero
lw gp,0x10(sp)
or a0,s5,zero
lw t9,-0x7424(gp)
jalr t9
_or a2,v0,zero
or a2,zero,zero
lw gp,0x10(sp)
lw a1,0x14(s2)
lw t9,-0x75ec(gp)
jalr t9
_lw a0,0x0(s0)
lw gp,0x10(sp)
lw t9,-0x7f08(gp)
bal 0x00042dc4
_or a0,s3,zero
subu s1,s1,v0
slti v0,s1,0x2
bne v0,zero,0x00046960
_lw gp,0x10(sp)
lw t9,-0x7638(gp)
li a1,0x20
jalr t9
_lw a0,0x0(s0)
or a2,zero,zero
lw gp,0x10(sp)
lw a1,0x18(s2)
lw t9,-0x73f4(gp)
jalr t9
_lw a0,0x0(s0)
addiu a1,s1,-0x1
lw gp,0x10(sp)
or a0,s4,zero
lw t9,-0x7e68(gp)
bal 0x00042c00
_lw s1,0x0(s0)
or a1,s4,zero
lw gp,0x10(sp)
or a0,s1,zero
lw t9,-0x7424(gp)
jalr t9
_or a2,v0,zero
or a2,zero,zero
lw gp,0x10(sp)
lw a1,0x18(s2)
lw a0,0x0(s0)
lw ra,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
lw t9,-0x75ec(gp)
jr t9
_addiu sp,sp,0x38
lw ra,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x38
(translation_unit "void post_one_key(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  puVar2 = PTR_interface_color_pair_000778e8;\n  puVar1 = PTR_bottomwin_000775cc;\n  (*(code *)PTR_wattr_on_0007812c)\n            (*(undefined4 *)PTR_bottomwin_000775cc,\n             *(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14),0);\n  uVar5 = *(undefined4 *)puVar1;\n  uVar3 = actual_x(param_1,param_3);\n  (*(code *)PTR_waddnstr_000780fc)(uVar5,param_1,uVar3);\n  (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x14),0);\n  iVar4 = strlenpt(param_1);\n  if (1 < param_3 - iVar4) {\n    (*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20);\n    (*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    uVar5 = *(undefined4 *)puVar1;\n    uVar3 = actual_x(param_2,(param_3 - iVar4) + -1);\n    (*(code *)PTR_waddnstr_000780fc)(uVar5,param_2,uVar3);\n                    /* WARNING: Could not recover jumptable at 0x00046958. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void post_one_key(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  puVar2 = PTR_interface_color_pair_000778e8;\n  puVar1 = PTR_bottomwin_000775cc;\n  (*(code *)PTR_wattr_on_0007812c)\n            (*(undefined4 *)PTR_bottomwin_000775cc,\n             *(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14),0);\n  uVar5 = *(undefined4 *)puVar1;\n  uVar3 = actual_x(param_1,param_3);\n  (*(code *)PTR_waddnstr_000780fc)(uVar5,param_1,uVar3);\n  (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x14),0);\n  iVar4 = strlenpt(param_1);\n  if (1 < param_3 - iVar4) {\n    (*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20);\n    (*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    uVar5 = *(undefined4 *)puVar1;\n    uVar3 = actual_x(param_2,(param_3 - iVar4) + -1);\n    (*(code *)PTR_waddnstr_000780fc)(uVar5,param_2,uVar3);\n                    /* WARNING: Could not recover jumptable at 0x00046958. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "post_one_key(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  puVar2 = PTR_interface_color_pair_000778e8;\n  puVar1 = PTR_bottomwin_000775cc;\n  (*(code *)PTR_wattr_on_0007812c)\n            (*(undefined4 *)PTR_bottomwin_000775cc,\n             *(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14),0);\n  uVar5 = *(undefined4 *)puVar1;\n  uVar3 = actual_x(param_1,param_3);\n  (*(code *)PTR_waddnstr_000780fc)(uVar5,param_1,uVar3);\n  (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x14),0);\n  iVar4 = strlenpt(param_1);\n  if (1 < param_3 - iVar4) {\n    (*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20);\n    (*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    uVar5 = *(undefined4 *)puVar1;\n    uVar3 = actual_x(param_2,(param_3 - iVar4) + -1);\n    (*(code *)PTR_waddnstr_000780fc)(uVar5,param_2,uVar3);\n                    /* WARNING: Could not recover jumptable at 0x00046958. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    return;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (expression_statement "puVar2 = PTR_interface_color_pair_000778e8;" (assignment_expression "puVar2 = PTR_interface_color_pair_000778e8" identifier = identifier) ;) (expression_statement "puVar1 = PTR_bottomwin_000775cc;" (assignment_expression "puVar1 = PTR_bottomwin_000775cc" identifier = identifier) ;) (expression_statement "(*(code *)PTR_wattr_on_0007812c)\n            (*(undefined4 *)PTR_bottomwin_000775cc,\n             *(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14),0);" (call_expression "(*(code *)PTR_wattr_on_0007812c)\n            (*(undefined4 *)PTR_bottomwin_000775cc,\n             *(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14),0)" (parenthesized_expression "(*(code *)PTR_wattr_on_0007812c)" ( (pointer_expression "*(code *)PTR_wattr_on_0007812c" * (cast_expression "(code *)PTR_wattr_on_0007812c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_bottomwin_000775cc,\n             *(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14),0)" ( (pointer_expression "*(undefined4 *)PTR_bottomwin_000775cc" * (cast_expression "(undefined4 *)PTR_bottomwin_000775cc" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (pointer_expression "*(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14)" * (cast_expression "(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_interface_color_pair_000778e8 + 0x14)" ( (binary_expression "PTR_interface_color_pair_000778e8 + 0x14" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "uVar5 = *(undefined4 *)puVar1;" (assignment_expression "uVar5 = *(undefined4 *)puVar1" identifier = (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar3 = actual_x(param_1,param_3);" (assignment_expression "uVar3 = actual_x(param_1,param_3)" identifier = (call_expression "actual_x(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier )))) ;) (expression_statement "(*(code *)PTR_waddnstr_000780fc)(uVar5,param_1,uVar3);" (call_expression "(*(code *)PTR_waddnstr_000780fc)(uVar5,param_1,uVar3)" (parenthesized_expression "(*(code *)PTR_waddnstr_000780fc)" ( (pointer_expression "*(code *)PTR_waddnstr_000780fc" * (cast_expression "(code *)PTR_waddnstr_000780fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5,param_1,uVar3)" ( identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x14),0);" (call_expression "(*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x14),0)" (parenthesized_expression "(*(code *)PTR_wattr_off_00077f34)" ( (pointer_expression "*(code *)PTR_wattr_off_00077f34" * (cast_expression "(code *)PTR_wattr_off_00077f34" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x14),0)" ( (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (pointer_expression "*(undefined4 *)(puVar2 + 0x14)" * (cast_expression "(undefined4 *)(puVar2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x14)" ( (binary_expression "puVar2 + 0x14" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "iVar4 = strlenpt(param_1);" (assignment_expression "iVar4 = strlenpt(param_1)" identifier = (call_expression "strlenpt(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (1 < param_3 - iVar4) {\n    (*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20);\n    (*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    uVar5 = *(undefined4 *)puVar1;\n    uVar3 = actual_x(param_2,(param_3 - iVar4) + -1);\n    (*(code *)PTR_waddnstr_000780fc)(uVar5,param_2,uVar3);\n                    /* WARNING: Could not recover jumptable at 0x00046958. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    return;\n  }" if (parenthesized_expression "(1 < param_3 - iVar4)" ( (binary_expression "1 < param_3 - iVar4" number_literal < (binary_expression "param_3 - iVar4" identifier - identifier)) )) (compound_statement "{\n    (*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20);\n    (*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    uVar5 = *(undefined4 *)puVar1;\n    uVar3 = actual_x(param_2,(param_3 - iVar4) + -1);\n    (*(code *)PTR_waddnstr_000780fc)(uVar5,param_2,uVar3);\n                    /* WARNING: Could not recover jumptable at 0x00046958. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    return;\n  }" { (expression_statement "(*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20);" (call_expression "(*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20)" (parenthesized_expression "(*(code *)PTR_waddch_00077ee8)" ( (pointer_expression "*(code *)PTR_waddch_00077ee8" * (cast_expression "(code *)PTR_waddch_00077ee8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)puVar1,0x20)" ( (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal ))) ;) (expression_statement "(*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);" (call_expression "(*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0)" (parenthesized_expression "(*(code *)PTR_wattr_on_0007812c)" ( (pointer_expression "*(code *)PTR_wattr_on_0007812c" * (cast_expression "(code *)PTR_wattr_on_0007812c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0)" ( (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (pointer_expression "*(undefined4 *)(puVar2 + 0x18)" * (cast_expression "(undefined4 *)(puVar2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x18)" ( (binary_expression "puVar2 + 0x18" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "uVar5 = *(undefined4 *)puVar1;" (assignment_expression "uVar5 = *(undefined4 *)puVar1" identifier = (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar3 = actual_x(param_2,(param_3 - iVar4) + -1);" (assignment_expression "uVar3 = actual_x(param_2,(param_3 - iVar4) + -1)" identifier = (call_expression "actual_x(param_2,(param_3 - iVar4) + -1)" identifier (argument_list "(param_2,(param_3 - iVar4) + -1)" ( identifier , (binary_expression "(param_3 - iVar4) + -1" (parenthesized_expression "(param_3 - iVar4)" ( (binary_expression "param_3 - iVar4" identifier - identifier) )) + number_literal) )))) ;) (expression_statement "(*(code *)PTR_waddnstr_000780fc)(uVar5,param_2,uVar3);" (call_expression "(*(code *)PTR_waddnstr_000780fc)(uVar5,param_2,uVar3)" (parenthesized_expression "(*(code *)PTR_waddnstr_000780fc)" ( (pointer_expression "*(code *)PTR_waddnstr_000780fc" * (cast_expression "(code *)PTR_waddnstr_000780fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5,param_2,uVar3)" ( identifier , identifier , identifier ))) ;) comment comment (expression_statement "(*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);" (call_expression "(*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0)" (parenthesized_expression "(*(code *)PTR_wattr_off_00077f34)" ( (pointer_expression "*(code *)PTR_wattr_off_00077f34" * (cast_expression "(code *)PTR_wattr_off_00077f34" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0)" ( (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (pointer_expression "*(undefined4 *)(puVar2 + 0x18)" * (cast_expression "(undefined4 *)(puVar2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x18)" ( (binary_expression "puVar2 + 0x18" identifier + number_literal) )))) , number_literal ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void post_one_key(char *keystroke,char *tag,int width)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  size_t sVar3;\n  undefined4 uVar4;\n  \n  puVar2 = PTR_interface_color_pair_000778e8;\n  puVar1 = PTR_bottomwin_000775cc;\n  (*(code *)PTR_wattr_on_0007812c)\n            (*(undefined4 *)PTR_bottomwin_000775cc,\n             *(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14),0);\n  uVar4 = *(undefined4 *)puVar1;\n  sVar3 = actual_x(keystroke,width);\n  (*(code *)PTR_waddnstr_000780fc)(uVar4,keystroke,sVar3);\n  (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x14),0);\n  sVar3 = strlenpt(keystroke);\n  if (1 < (int)(width - sVar3)) {\n    (*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20);\n    (*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    uVar4 = *(undefined4 *)puVar1;\n    sVar3 = actual_x(tag,(width - sVar3) - 1);\n    (*(code *)PTR_waddnstr_000780fc)(uVar4,tag,sVar3);\n                    /* WARNING: Could not recover jumptable at 0x00046958. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void post_one_key(char *keystroke,char *tag,int width)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  size_t sVar3;\n  undefined4 uVar4;\n  \n  puVar2 = PTR_interface_color_pair_000778e8;\n  puVar1 = PTR_bottomwin_000775cc;\n  (*(code *)PTR_wattr_on_0007812c)\n            (*(undefined4 *)PTR_bottomwin_000775cc,\n             *(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14),0);\n  uVar4 = *(undefined4 *)puVar1;\n  sVar3 = actual_x(keystroke,width);\n  (*(code *)PTR_waddnstr_000780fc)(uVar4,keystroke,sVar3);\n  (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x14),0);\n  sVar3 = strlenpt(keystroke);\n  if (1 < (int)(width - sVar3)) {\n    (*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20);\n    (*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    uVar4 = *(undefined4 *)puVar1;\n    sVar3 = actual_x(tag,(width - sVar3) - 1);\n    (*(code *)PTR_waddnstr_000780fc)(uVar4,tag,sVar3);\n                    /* WARNING: Could not recover jumptable at 0x00046958. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "post_one_key(char *keystroke,char *tag,int width)" identifier (parameter_list "(char *keystroke,char *tag,int width)" ( (parameter_declaration "char *keystroke" primitive_type (pointer_declarator "*keystroke" * identifier)) , (parameter_declaration "char *tag" primitive_type (pointer_declarator "*tag" * identifier)) , (parameter_declaration "int width" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  size_t sVar3;\n  undefined4 uVar4;\n  \n  puVar2 = PTR_interface_color_pair_000778e8;\n  puVar1 = PTR_bottomwin_000775cc;\n  (*(code *)PTR_wattr_on_0007812c)\n            (*(undefined4 *)PTR_bottomwin_000775cc,\n             *(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14),0);\n  uVar4 = *(undefined4 *)puVar1;\n  sVar3 = actual_x(keystroke,width);\n  (*(code *)PTR_waddnstr_000780fc)(uVar4,keystroke,sVar3);\n  (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x14),0);\n  sVar3 = strlenpt(keystroke);\n  if (1 < (int)(width - sVar3)) {\n    (*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20);\n    (*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    uVar4 = *(undefined4 *)puVar1;\n    sVar3 = actual_x(tag,(width - sVar3) - 1);\n    (*(code *)PTR_waddnstr_000780fc)(uVar4,tag,sVar3);\n                    /* WARNING: Could not recover jumptable at 0x00046958. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    return;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "puVar2 = PTR_interface_color_pair_000778e8;" (assignment_expression "puVar2 = PTR_interface_color_pair_000778e8" identifier = identifier) ;) (expression_statement "puVar1 = PTR_bottomwin_000775cc;" (assignment_expression "puVar1 = PTR_bottomwin_000775cc" identifier = identifier) ;) (expression_statement "(*(code *)PTR_wattr_on_0007812c)\n            (*(undefined4 *)PTR_bottomwin_000775cc,\n             *(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14),0);" (call_expression "(*(code *)PTR_wattr_on_0007812c)\n            (*(undefined4 *)PTR_bottomwin_000775cc,\n             *(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14),0)" (parenthesized_expression "(*(code *)PTR_wattr_on_0007812c)" ( (pointer_expression "*(code *)PTR_wattr_on_0007812c" * (cast_expression "(code *)PTR_wattr_on_0007812c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_bottomwin_000775cc,\n             *(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14),0)" ( (pointer_expression "*(undefined4 *)PTR_bottomwin_000775cc" * (cast_expression "(undefined4 *)PTR_bottomwin_000775cc" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (pointer_expression "*(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14)" * (cast_expression "(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_interface_color_pair_000778e8 + 0x14)" ( (binary_expression "PTR_interface_color_pair_000778e8 + 0x14" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "uVar4 = *(undefined4 *)puVar1;" (assignment_expression "uVar4 = *(undefined4 *)puVar1" identifier = (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "sVar3 = actual_x(keystroke,width);" (assignment_expression "sVar3 = actual_x(keystroke,width)" identifier = (call_expression "actual_x(keystroke,width)" identifier (argument_list "(keystroke,width)" ( identifier , identifier )))) ;) (expression_statement "(*(code *)PTR_waddnstr_000780fc)(uVar4,keystroke,sVar3);" (call_expression "(*(code *)PTR_waddnstr_000780fc)(uVar4,keystroke,sVar3)" (parenthesized_expression "(*(code *)PTR_waddnstr_000780fc)" ( (pointer_expression "*(code *)PTR_waddnstr_000780fc" * (cast_expression "(code *)PTR_waddnstr_000780fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4,keystroke,sVar3)" ( identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x14),0);" (call_expression "(*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x14),0)" (parenthesized_expression "(*(code *)PTR_wattr_off_00077f34)" ( (pointer_expression "*(code *)PTR_wattr_off_00077f34" * (cast_expression "(code *)PTR_wattr_off_00077f34" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x14),0)" ( (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (pointer_expression "*(undefined4 *)(puVar2 + 0x14)" * (cast_expression "(undefined4 *)(puVar2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x14)" ( (binary_expression "puVar2 + 0x14" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "sVar3 = strlenpt(keystroke);" (assignment_expression "sVar3 = strlenpt(keystroke)" identifier = (call_expression "strlenpt(keystroke)" identifier (argument_list "(keystroke)" ( identifier )))) ;) (if_statement "if (1 < (int)(width - sVar3)) {\n    (*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20);\n    (*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    uVar4 = *(undefined4 *)puVar1;\n    sVar3 = actual_x(tag,(width - sVar3) - 1);\n    (*(code *)PTR_waddnstr_000780fc)(uVar4,tag,sVar3);\n                    /* WARNING: Could not recover jumptable at 0x00046958. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    return;\n  }" if (parenthesized_expression "(1 < (int)(width - sVar3))" ( (binary_expression "1 < (int)(width - sVar3)" number_literal < (cast_expression "(int)(width - sVar3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(width - sVar3)" ( (binary_expression "width - sVar3" identifier - identifier) )))) )) (compound_statement "{\n    (*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20);\n    (*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    uVar4 = *(undefined4 *)puVar1;\n    sVar3 = actual_x(tag,(width - sVar3) - 1);\n    (*(code *)PTR_waddnstr_000780fc)(uVar4,tag,sVar3);\n                    /* WARNING: Could not recover jumptable at 0x00046958. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    return;\n  }" { (expression_statement "(*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20);" (call_expression "(*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20)" (parenthesized_expression "(*(code *)PTR_waddch_00077ee8)" ( (pointer_expression "*(code *)PTR_waddch_00077ee8" * (cast_expression "(code *)PTR_waddch_00077ee8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)puVar1,0x20)" ( (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal ))) ;) (expression_statement "(*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);" (call_expression "(*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0)" (parenthesized_expression "(*(code *)PTR_wattr_on_0007812c)" ( (pointer_expression "*(code *)PTR_wattr_on_0007812c" * (cast_expression "(code *)PTR_wattr_on_0007812c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0)" ( (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (pointer_expression "*(undefined4 *)(puVar2 + 0x18)" * (cast_expression "(undefined4 *)(puVar2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x18)" ( (binary_expression "puVar2 + 0x18" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "uVar4 = *(undefined4 *)puVar1;" (assignment_expression "uVar4 = *(undefined4 *)puVar1" identifier = (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "sVar3 = actual_x(tag,(width - sVar3) - 1);" (assignment_expression "sVar3 = actual_x(tag,(width - sVar3) - 1)" identifier = (call_expression "actual_x(tag,(width - sVar3) - 1)" identifier (argument_list "(tag,(width - sVar3) - 1)" ( identifier , (binary_expression "(width - sVar3) - 1" (parenthesized_expression "(width - sVar3)" ( (binary_expression "width - sVar3" identifier - identifier) )) - number_literal) )))) ;) (expression_statement "(*(code *)PTR_waddnstr_000780fc)(uVar4,tag,sVar3);" (call_expression "(*(code *)PTR_waddnstr_000780fc)(uVar4,tag,sVar3)" (parenthesized_expression "(*(code *)PTR_waddnstr_000780fc)" ( (pointer_expression "*(code *)PTR_waddnstr_000780fc" * (cast_expression "(code *)PTR_waddnstr_000780fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4,tag,sVar3)" ( identifier , identifier , identifier ))) ;) comment comment (expression_statement "(*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);" (call_expression "(*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0)" (parenthesized_expression "(*(code *)PTR_wattr_off_00077f34)" ( (pointer_expression "*(code *)PTR_wattr_off_00077f34" * (cast_expression "(code *)PTR_wattr_off_00077f34" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0)" ( (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (pointer_expression "*(undefined4 *)(puVar2 + 0x18)" * (cast_expression "(undefined4 *)(puVar2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x18)" ( (binary_expression "puVar2 + 0x18" identifier + number_literal) )))) , number_literal ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void post_one_key(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  puVar2 = PTR_interface_color_pair_000778e8;\n  puVar1 = PTR_bottomwin_000775cc;\n  (*(code *)PTR_wattr_on_0007812c)\n            (*(undefined4 *)PTR_bottomwin_000775cc,\n             *(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14),0);\n  uVar5 = *(undefined4 *)puVar1;\n  uVar3 = actual_x(param_1,param_3);\n  (*(code *)PTR_waddnstr_000780fc)(uVar5,param_1,uVar3);\n  (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x14),0);\n  iVar4 = strlenpt(param_1);\n  if (1 < param_3 - iVar4) {\n    (*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20);\n    (*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    uVar5 = *(undefined4 *)puVar1;\n    uVar3 = actual_x(param_2,(param_3 - iVar4) + -1);\n    (*(code *)PTR_waddnstr_000780fc)(uVar5,param_2,uVar3);\n                    \n                    \n    (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void post_one_key(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  puVar2 = PTR_interface_color_pair_000778e8;\n  puVar1 = PTR_bottomwin_000775cc;\n  (*(code *)PTR_wattr_on_0007812c)\n            (*(undefined4 *)PTR_bottomwin_000775cc,\n             *(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14),0);\n  uVar5 = *(undefined4 *)puVar1;\n  uVar3 = actual_x(param_1,param_3);\n  (*(code *)PTR_waddnstr_000780fc)(uVar5,param_1,uVar3);\n  (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x14),0);\n  iVar4 = strlenpt(param_1);\n  if (1 < param_3 - iVar4) {\n    (*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20);\n    (*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    uVar5 = *(undefined4 *)puVar1;\n    uVar3 = actual_x(param_2,(param_3 - iVar4) + -1);\n    (*(code *)PTR_waddnstr_000780fc)(uVar5,param_2,uVar3);\n                    \n                    \n    (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "post_one_key(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  puVar2 = PTR_interface_color_pair_000778e8;\n  puVar1 = PTR_bottomwin_000775cc;\n  (*(code *)PTR_wattr_on_0007812c)\n            (*(undefined4 *)PTR_bottomwin_000775cc,\n             *(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14),0);\n  uVar5 = *(undefined4 *)puVar1;\n  uVar3 = actual_x(param_1,param_3);\n  (*(code *)PTR_waddnstr_000780fc)(uVar5,param_1,uVar3);\n  (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x14),0);\n  iVar4 = strlenpt(param_1);\n  if (1 < param_3 - iVar4) {\n    (*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20);\n    (*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    uVar5 = *(undefined4 *)puVar1;\n    uVar3 = actual_x(param_2,(param_3 - iVar4) + -1);\n    (*(code *)PTR_waddnstr_000780fc)(uVar5,param_2,uVar3);\n                    \n                    \n    (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    return;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (expression_statement "puVar2 = PTR_interface_color_pair_000778e8;" (assignment_expression "puVar2 = PTR_interface_color_pair_000778e8" identifier = identifier) ;) (expression_statement "puVar1 = PTR_bottomwin_000775cc;" (assignment_expression "puVar1 = PTR_bottomwin_000775cc" identifier = identifier) ;) (expression_statement "(*(code *)PTR_wattr_on_0007812c)\n            (*(undefined4 *)PTR_bottomwin_000775cc,\n             *(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14),0);" (call_expression "(*(code *)PTR_wattr_on_0007812c)\n            (*(undefined4 *)PTR_bottomwin_000775cc,\n             *(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14),0)" (parenthesized_expression "(*(code *)PTR_wattr_on_0007812c)" ( (pointer_expression "*(code *)PTR_wattr_on_0007812c" * (cast_expression "(code *)PTR_wattr_on_0007812c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_bottomwin_000775cc,\n             *(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14),0)" ( (pointer_expression "*(undefined4 *)PTR_bottomwin_000775cc" * (cast_expression "(undefined4 *)PTR_bottomwin_000775cc" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (pointer_expression "*(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14)" * (cast_expression "(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_interface_color_pair_000778e8 + 0x14)" ( (binary_expression "PTR_interface_color_pair_000778e8 + 0x14" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "uVar5 = *(undefined4 *)puVar1;" (assignment_expression "uVar5 = *(undefined4 *)puVar1" identifier = (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar3 = actual_x(param_1,param_3);" (assignment_expression "uVar3 = actual_x(param_1,param_3)" identifier = (call_expression "actual_x(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier )))) ;) (expression_statement "(*(code *)PTR_waddnstr_000780fc)(uVar5,param_1,uVar3);" (call_expression "(*(code *)PTR_waddnstr_000780fc)(uVar5,param_1,uVar3)" (parenthesized_expression "(*(code *)PTR_waddnstr_000780fc)" ( (pointer_expression "*(code *)PTR_waddnstr_000780fc" * (cast_expression "(code *)PTR_waddnstr_000780fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5,param_1,uVar3)" ( identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x14),0);" (call_expression "(*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x14),0)" (parenthesized_expression "(*(code *)PTR_wattr_off_00077f34)" ( (pointer_expression "*(code *)PTR_wattr_off_00077f34" * (cast_expression "(code *)PTR_wattr_off_00077f34" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x14),0)" ( (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (pointer_expression "*(undefined4 *)(puVar2 + 0x14)" * (cast_expression "(undefined4 *)(puVar2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x14)" ( (binary_expression "puVar2 + 0x14" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "iVar4 = strlenpt(param_1);" (assignment_expression "iVar4 = strlenpt(param_1)" identifier = (call_expression "strlenpt(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (1 < param_3 - iVar4) {\n    (*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20);\n    (*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    uVar5 = *(undefined4 *)puVar1;\n    uVar3 = actual_x(param_2,(param_3 - iVar4) + -1);\n    (*(code *)PTR_waddnstr_000780fc)(uVar5,param_2,uVar3);\n                    \n                    \n    (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    return;\n  }" if (parenthesized_expression "(1 < param_3 - iVar4)" ( (binary_expression "1 < param_3 - iVar4" number_literal < (binary_expression "param_3 - iVar4" identifier - identifier)) )) (compound_statement "{\n    (*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20);\n    (*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    uVar5 = *(undefined4 *)puVar1;\n    uVar3 = actual_x(param_2,(param_3 - iVar4) + -1);\n    (*(code *)PTR_waddnstr_000780fc)(uVar5,param_2,uVar3);\n                    \n                    \n    (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    return;\n  }" { (expression_statement "(*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20);" (call_expression "(*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20)" (parenthesized_expression "(*(code *)PTR_waddch_00077ee8)" ( (pointer_expression "*(code *)PTR_waddch_00077ee8" * (cast_expression "(code *)PTR_waddch_00077ee8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)puVar1,0x20)" ( (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal ))) ;) (expression_statement "(*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);" (call_expression "(*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0)" (parenthesized_expression "(*(code *)PTR_wattr_on_0007812c)" ( (pointer_expression "*(code *)PTR_wattr_on_0007812c" * (cast_expression "(code *)PTR_wattr_on_0007812c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0)" ( (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (pointer_expression "*(undefined4 *)(puVar2 + 0x18)" * (cast_expression "(undefined4 *)(puVar2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x18)" ( (binary_expression "puVar2 + 0x18" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "uVar5 = *(undefined4 *)puVar1;" (assignment_expression "uVar5 = *(undefined4 *)puVar1" identifier = (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar3 = actual_x(param_2,(param_3 - iVar4) + -1);" (assignment_expression "uVar3 = actual_x(param_2,(param_3 - iVar4) + -1)" identifier = (call_expression "actual_x(param_2,(param_3 - iVar4) + -1)" identifier (argument_list "(param_2,(param_3 - iVar4) + -1)" ( identifier , (binary_expression "(param_3 - iVar4) + -1" (parenthesized_expression "(param_3 - iVar4)" ( (binary_expression "param_3 - iVar4" identifier - identifier) )) + number_literal) )))) ;) (expression_statement "(*(code *)PTR_waddnstr_000780fc)(uVar5,param_2,uVar3);" (call_expression "(*(code *)PTR_waddnstr_000780fc)(uVar5,param_2,uVar3)" (parenthesized_expression "(*(code *)PTR_waddnstr_000780fc)" ( (pointer_expression "*(code *)PTR_waddnstr_000780fc" * (cast_expression "(code *)PTR_waddnstr_000780fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5,param_2,uVar3)" ( identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);" (call_expression "(*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0)" (parenthesized_expression "(*(code *)PTR_wattr_off_00077f34)" ( (pointer_expression "*(code *)PTR_wattr_off_00077f34" * (cast_expression "(code *)PTR_wattr_off_00077f34" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0)" ( (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (pointer_expression "*(undefined4 *)(puVar2 + 0x18)" * (cast_expression "(undefined4 *)(puVar2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x18)" ( (binary_expression "puVar2 + 0x18" identifier + number_literal) )))) , number_literal ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT - IDENT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , LIT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void post_one_key(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  puVar2 = PTR_interface_color_pair_000778e8;\n  puVar1 = PTR_bottomwin_000775cc;\n  (*(code *)PTR_wattr_on_0007812c)\n            (*(undefined4 *)PTR_bottomwin_000775cc,\n             *(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14),0);\n  uVar5 = *(undefined4 *)puVar1;\n  uVar3 = actual_x(param_1,param_3);\n  (*(code *)PTR_waddnstr_000780fc)(uVar5,param_1,uVar3);\n  (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x14),0);\n  iVar4 = strlenpt(param_1);\n  if (1 < param_3 - iVar4) {\n    (*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20);\n    (*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    uVar5 = *(undefined4 *)puVar1;\n    uVar3 = actual_x(param_2,(param_3 - iVar4) + -1);\n    (*(code *)PTR_waddnstr_000780fc)(uVar5,param_2,uVar3);\n                    \n                    \n    (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "post_one_key(undefined4 param_1,undefined4 param_2,int param_3)" (identifier "post_one_key") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  puVar2 = PTR_interface_color_pair_000778e8;\n  puVar1 = PTR_bottomwin_000775cc;\n  (*(code *)PTR_wattr_on_0007812c)\n            (*(undefined4 *)PTR_bottomwin_000775cc,\n             *(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14),0);\n  uVar5 = *(undefined4 *)puVar1;\n  uVar3 = actual_x(param_1,param_3);\n  (*(code *)PTR_waddnstr_000780fc)(uVar5,param_1,uVar3);\n  (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x14),0);\n  iVar4 = strlenpt(param_1);\n  if (1 < param_3 - iVar4) {\n    (*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20);\n    (*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    uVar5 = *(undefined4 *)puVar1;\n    uVar3 = actual_x(param_2,(param_3 - iVar4) + -1);\n    (*(code *)PTR_waddnstr_000780fc)(uVar5,param_2,uVar3);\n                    \n                    \n    (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    return;\n  }\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (expression_statement "puVar2 = PTR_interface_color_pair_000778e8;" (assignment_expression "puVar2 = PTR_interface_color_pair_000778e8" (identifier "puVar2") (= "=") (identifier "PTR_interface_color_pair_000778e8")) (; ";")) (expression_statement "puVar1 = PTR_bottomwin_000775cc;" (assignment_expression "puVar1 = PTR_bottomwin_000775cc" (identifier "puVar1") (= "=") (identifier "PTR_bottomwin_000775cc")) (; ";")) (expression_statement "(*(code *)PTR_wattr_on_0007812c)\n            (*(undefined4 *)PTR_bottomwin_000775cc,\n             *(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14),0);" (call_expression "(*(code *)PTR_wattr_on_0007812c)\n            (*(undefined4 *)PTR_bottomwin_000775cc,\n             *(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14),0)" (parenthesized_expression "(*(code *)PTR_wattr_on_0007812c)" (( "(") (pointer_expression "*(code *)PTR_wattr_on_0007812c" (* "*") (cast_expression "(code *)PTR_wattr_on_0007812c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_wattr_on_0007812c"))) () ")")) (argument_list "(*(undefined4 *)PTR_bottomwin_000775cc,\n             *(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14),0)" (( "(") (pointer_expression "*(undefined4 *)PTR_bottomwin_000775cc" (* "*") (cast_expression "(undefined4 *)PTR_bottomwin_000775cc" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_bottomwin_000775cc"))) (, ",") (pointer_expression "*(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14)" (* "*") (cast_expression "(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_interface_color_pair_000778e8 + 0x14)" (( "(") (binary_expression "PTR_interface_color_pair_000778e8 + 0x14" (identifier "PTR_interface_color_pair_000778e8") (+ "+") (number_literal "0x14")) () ")")))) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar5 = *(undefined4 *)puVar1;" (assignment_expression "uVar5 = *(undefined4 *)puVar1" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)puVar1" (* "*") (cast_expression "(undefined4 *)puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) (; ";")) (expression_statement "uVar3 = actual_x(param_1,param_3);" (assignment_expression "uVar3 = actual_x(param_1,param_3)" (identifier "uVar3") (= "=") (call_expression "actual_x(param_1,param_3)" (identifier "actual_x") (argument_list "(param_1,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_waddnstr_000780fc)(uVar5,param_1,uVar3);" (call_expression "(*(code *)PTR_waddnstr_000780fc)(uVar5,param_1,uVar3)" (parenthesized_expression "(*(code *)PTR_waddnstr_000780fc)" (( "(") (pointer_expression "*(code *)PTR_waddnstr_000780fc" (* "*") (cast_expression "(code *)PTR_waddnstr_000780fc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_waddnstr_000780fc"))) () ")")) (argument_list "(uVar5,param_1,uVar3)" (( "(") (identifier "uVar5") (, ",") (identifier "param_1") (, ",") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x14),0);" (call_expression "(*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x14),0)" (parenthesized_expression "(*(code *)PTR_wattr_off_00077f34)" (( "(") (pointer_expression "*(code *)PTR_wattr_off_00077f34" (* "*") (cast_expression "(code *)PTR_wattr_off_00077f34" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_wattr_off_00077f34"))) () ")")) (argument_list "(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x14),0)" (( "(") (pointer_expression "*(undefined4 *)puVar1" (* "*") (cast_expression "(undefined4 *)puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (, ",") (pointer_expression "*(undefined4 *)(puVar2 + 0x14)" (* "*") (cast_expression "(undefined4 *)(puVar2 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x14)" (( "(") (binary_expression "puVar2 + 0x14" (identifier "puVar2") (+ "+") (number_literal "0x14")) () ")")))) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar4 = strlenpt(param_1);" (assignment_expression "iVar4 = strlenpt(param_1)" (identifier "iVar4") (= "=") (call_expression "strlenpt(param_1)" (identifier "strlenpt") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (1 < param_3 - iVar4) {\n    (*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20);\n    (*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    uVar5 = *(undefined4 *)puVar1;\n    uVar3 = actual_x(param_2,(param_3 - iVar4) + -1);\n    (*(code *)PTR_waddnstr_000780fc)(uVar5,param_2,uVar3);\n                    \n                    \n    (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    return;\n  }" (if "if") (parenthesized_expression "(1 < param_3 - iVar4)" (( "(") (binary_expression "1 < param_3 - iVar4" (number_literal "1") (< "<") (binary_expression "param_3 - iVar4" (identifier "param_3") (- "-") (identifier "iVar4"))) () ")")) (compound_statement "{\n    (*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20);\n    (*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    uVar5 = *(undefined4 *)puVar1;\n    uVar3 = actual_x(param_2,(param_3 - iVar4) + -1);\n    (*(code *)PTR_waddnstr_000780fc)(uVar5,param_2,uVar3);\n                    \n                    \n    (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);\n    return;\n  }" ({ "{") (expression_statement "(*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20);" (call_expression "(*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20)" (parenthesized_expression "(*(code *)PTR_waddch_00077ee8)" (( "(") (pointer_expression "*(code *)PTR_waddch_00077ee8" (* "*") (cast_expression "(code *)PTR_waddch_00077ee8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_waddch_00077ee8"))) () ")")) (argument_list "(*(undefined4 *)puVar1,0x20)" (( "(") (pointer_expression "*(undefined4 *)puVar1" (* "*") (cast_expression "(undefined4 *)puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (, ",") (number_literal "0x20") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);" (call_expression "(*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0)" (parenthesized_expression "(*(code *)PTR_wattr_on_0007812c)" (( "(") (pointer_expression "*(code *)PTR_wattr_on_0007812c" (* "*") (cast_expression "(code *)PTR_wattr_on_0007812c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_wattr_on_0007812c"))) () ")")) (argument_list "(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0)" (( "(") (pointer_expression "*(undefined4 *)puVar1" (* "*") (cast_expression "(undefined4 *)puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (, ",") (pointer_expression "*(undefined4 *)(puVar2 + 0x18)" (* "*") (cast_expression "(undefined4 *)(puVar2 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x18)" (( "(") (binary_expression "puVar2 + 0x18" (identifier "puVar2") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar5 = *(undefined4 *)puVar1;" (assignment_expression "uVar5 = *(undefined4 *)puVar1" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)puVar1" (* "*") (cast_expression "(undefined4 *)puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) (; ";")) (expression_statement "uVar3 = actual_x(param_2,(param_3 - iVar4) + -1);" (assignment_expression "uVar3 = actual_x(param_2,(param_3 - iVar4) + -1)" (identifier "uVar3") (= "=") (call_expression "actual_x(param_2,(param_3 - iVar4) + -1)" (identifier "actual_x") (argument_list "(param_2,(param_3 - iVar4) + -1)" (( "(") (identifier "param_2") (, ",") (binary_expression "(param_3 - iVar4) + -1" (parenthesized_expression "(param_3 - iVar4)" (( "(") (binary_expression "param_3 - iVar4" (identifier "param_3") (- "-") (identifier "iVar4")) () ")")) (+ "+") (number_literal "-1")) () ")")))) (; ";")) (expression_statement "(*(code *)PTR_waddnstr_000780fc)(uVar5,param_2,uVar3);" (call_expression "(*(code *)PTR_waddnstr_000780fc)(uVar5,param_2,uVar3)" (parenthesized_expression "(*(code *)PTR_waddnstr_000780fc)" (( "(") (pointer_expression "*(code *)PTR_waddnstr_000780fc" (* "*") (cast_expression "(code *)PTR_waddnstr_000780fc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_waddnstr_000780fc"))) () ")")) (argument_list "(uVar5,param_2,uVar3)" (( "(") (identifier "uVar5") (, ",") (identifier "param_2") (, ",") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);" (call_expression "(*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0)" (parenthesized_expression "(*(code *)PTR_wattr_off_00077f34)" (( "(") (pointer_expression "*(code *)PTR_wattr_off_00077f34" (* "*") (cast_expression "(code *)PTR_wattr_off_00077f34" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_wattr_off_00077f34"))) () ")")) (argument_list "(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0)" (( "(") (pointer_expression "*(undefined4 *)puVar1" (* "*") (cast_expression "(undefined4 *)puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (, ",") (pointer_expression "*(undefined4 *)(puVar2 + 0x18)" (* "*") (cast_expression "(undefined4 *)(puVar2 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x18)" (( "(") (binary_expression "puVar2 + 0x18" (identifier "puVar2") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(char *keystroke,char *tag,int var_5)

{
  type_1 *puVar1;
  type_1 *var_3;
  size_t var_6;
  type_2 uVar4;
  
  var_3 = var_1;
  puVar1 = PTR_bottomwin_000775cc;
  (*(type_3 *)PTR_wattr_on_0007812c)
            (*(type_2 *)PTR_bottomwin_000775cc,
             *(type_2 *)(var_1 + 0x14),0);
  uVar4 = *(type_2 *)puVar1;
  var_6 = var_2(keystroke,var_5);
  (*(type_3 *)PTR_waddnstr_000780fc)(uVar4,keystroke,var_6);
  (*(type_3 *)PTR_wattr_off_00077f34)(*(type_2 *)puVar1,*(type_2 *)(var_3 + 0x14),0);
  var_6 = var_4(keystroke);
  if (1 < (int)(var_5 - var_6)) {
    (*(type_3 *)PTR_waddch_00077ee8)(*(type_2 *)puVar1,0x20);
    (*(type_3 *)PTR_wattr_on_0007812c)(*(type_2 *)puVar1,*(type_2 *)(var_3 + 0x18),0);
    uVar4 = *(type_2 *)puVar1;
    var_6 = var_2(tag,(var_5 - var_6) - 1);
    (*(type_3 *)PTR_waddnstr_000780fc)(uVar4,tag,var_6);
                    /* WARNING: Could not recover jumptable at 0x00046958. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*(type_3 *)PTR_wattr_off_00077f34)(*(type_2 *)puVar1,*(type_2 *)(var_3 + 0x18),0);
    return;
  }
  return;
}


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

void MASKED(undefined4 param_1,undefined4 param_2,int param_3)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined4 uVar3;
  int iVar4;
  undefined4 uVar5;
  
  puVar2 = PTR_interface_color_pair_000778e8;
  puVar1 = PTR_bottomwin_000775cc;
  (*(code *)PTR_wattr_on_0007812c)
            (*(undefined4 *)PTR_bottomwin_000775cc,
             *(undefined4 *)(PTR_interface_color_pair_000778e8 + 0x14),0);
  uVar5 = *(undefined4 *)puVar1;
  uVar3 = actual_x(param_1,param_3);
  (*(code *)PTR_waddnstr_000780fc)(uVar5,param_1,uVar3);
  (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x14),0);
  iVar4 = strlenpt(param_1);
  if (1 < param_3 - iVar4) {
    (*(code *)PTR_waddch_00077ee8)(*(undefined4 *)puVar1,0x20);
    (*(code *)PTR_wattr_on_0007812c)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);
    uVar5 = *(undefined4 *)puVar1;
    uVar3 = actual_x(param_2,(param_3 - iVar4) + -1);
    (*(code *)PTR_waddnstr_000780fc)(uVar5,param_2,uVar3);
                    /* WARNING: Could not recover jumptable at 0x00046958. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*(code *)PTR_wattr_off_00077f34)(*(undefined4 *)puVar1,*(undefined4 *)(puVar2 + 0x18),0);
    return;
  }
  return;
}

