
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void goto_new_line(void)

{
  uint uVar1;
  int iVar2;
  
  iVar2 = *(int *)PTR_lineedit_ptr_to_statics_0012ac18;
  uVar1 = *(uint *)(iVar2 + 0x14);
  if (uVar1 < *(uint *)(iVar2 + 0x18)) {
    do {
      put_cur_glyph_and_inc_cursor();
      uVar1 = *(uint *)(iVar2 + 0x14);
    } while (uVar1 < *(uint *)(iVar2 + 0x18));
  }
  if ((uVar1 != 0) && (*(int *)(iVar2 + 8) == 0)) {
    return;
  }
                    /* WARNING: Could not recover jumptable at 0x000f00a0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_bb_putchar_0012a354)(10);
  return;
}



void FUN_000f0020(void)

{
  uint uVar1;
  int iVar2;
  
  iVar2 = *(int *)PTR_lineedit_ptr_to_statics_0012ac18;
  uVar1 = *(uint *)(iVar2 + 0x14);
  if (uVar1 < *(uint *)(iVar2 + 0x18)) {
    do {
      FUN_000efcb4();
      uVar1 = *(uint *)(iVar2 + 0x14);
    } while (uVar1 < *(uint *)(iVar2 + 0x18));
  }
  if ((uVar1 != 0) && (*(int *)(iVar2 + 8) == 0)) {
    return;
  }
  (*(code *)PTR_FUN_0012a354)(10);
  return;
}


lui gp,0x4
addiu gp,gp,0x2130
addu gp,gp,t9
lw v0,-0x7538(gp)
addiu sp,sp,-0x28
sw s0,0x1c(sp)
lw s0,0x0(v0)
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s1,0x20(sp)
lw v0,0x14(s0)
lw v1,0x18(s0)
sltu v1,v0,v1
beq v1,zero,0x000f0084
_nop
lw s1,-0x753c(gp)
addiu s1,s1,-0x34c
or t9,s1,zero
bal 0x000efcb4
_nop
lw v0,0x14(s0)
lw v1,0x18(s0)
sltu v1,v0,v1
bne v1,zero,0x000f0064
_lw gp,0x10(sp)
bne v0,zero,0x000f00a8
_nop
lw ra,0x24(sp)
li a0,0xa
lw s1,0x20(sp)
lw s0,0x1c(sp)
lw t9,-0x7dfc(gp)
jr t9
_addiu sp,sp,0x28
lw v0,0x8(s0)
bne v0,zero,0x000f008c
_lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void FUN_000f0020(void)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)PTR_lineedit_ptr_to_statics_0012ac18;\n  uVar1 = *(uint *)(iVar2 + 0x14);\n  if (uVar1 < *(uint *)(iVar2 + 0x18)) {\n    do {\n      FUN_000efcb4();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    } while (uVar1 < *(uint *)(iVar2 + 0x18));\n  }\n  if ((uVar1 != 0) && (*(int *)(iVar2 + 8) == 0)) {\n    return;\n  }\n  (*(code *)PTR_FUN_0012a354)(10);\n  return;\n}\n\n" (function_definition "void FUN_000f0020(void)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)PTR_lineedit_ptr_to_statics_0012ac18;\n  uVar1 = *(uint *)(iVar2 + 0x14);\n  if (uVar1 < *(uint *)(iVar2 + 0x18)) {\n    do {\n      FUN_000efcb4();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    } while (uVar1 < *(uint *)(iVar2 + 0x18));\n  }\n  if ((uVar1 != 0) && (*(int *)(iVar2 + 8) == 0)) {\n    return;\n  }\n  (*(code *)PTR_FUN_0012a354)(10);\n  return;\n}" primitive_type (function_declarator "FUN_000f0020(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)PTR_lineedit_ptr_to_statics_0012ac18;\n  uVar1 = *(uint *)(iVar2 + 0x14);\n  if (uVar1 < *(uint *)(iVar2 + 0x18)) {\n    do {\n      FUN_000efcb4();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    } while (uVar1 < *(uint *)(iVar2 + 0x18));\n  }\n  if ((uVar1 != 0) && (*(int *)(iVar2 + 8) == 0)) {\n    return;\n  }\n  (*(code *)PTR_FUN_0012a354)(10);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)PTR_lineedit_ptr_to_statics_0012ac18;" (assignment_expression "iVar2 = *(int *)PTR_lineedit_ptr_to_statics_0012ac18" identifier = (pointer_expression "*(int *)PTR_lineedit_ptr_to_statics_0012ac18" * (cast_expression "(int *)PTR_lineedit_ptr_to_statics_0012ac18" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar1 = *(uint *)(iVar2 + 0x14);" (assignment_expression "uVar1 = *(uint *)(iVar2 + 0x14)" identifier = (pointer_expression "*(uint *)(iVar2 + 0x14)" * (cast_expression "(uint *)(iVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (uVar1 < *(uint *)(iVar2 + 0x18)) {\n    do {\n      FUN_000efcb4();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    } while (uVar1 < *(uint *)(iVar2 + 0x18));\n  }" if (parenthesized_expression "(uVar1 < *(uint *)(iVar2 + 0x18))" ( (binary_expression "uVar1 < *(uint *)(iVar2 + 0x18)" identifier < (pointer_expression "*(uint *)(iVar2 + 0x18)" * (cast_expression "(uint *)(iVar2 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      FUN_000efcb4();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    } while (uVar1 < *(uint *)(iVar2 + 0x18));\n  }" { (do_statement "do {\n      FUN_000efcb4();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    } while (uVar1 < *(uint *)(iVar2 + 0x18));" do (compound_statement "{\n      FUN_000efcb4();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    }" { (expression_statement "FUN_000efcb4();" (call_expression "FUN_000efcb4()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar1 = *(uint *)(iVar2 + 0x14);" (assignment_expression "uVar1 = *(uint *)(iVar2 + 0x14)" identifier = (pointer_expression "*(uint *)(iVar2 + 0x14)" * (cast_expression "(uint *)(iVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(uVar1 < *(uint *)(iVar2 + 0x18))" ( (binary_expression "uVar1 < *(uint *)(iVar2 + 0x18)" identifier < (pointer_expression "*(uint *)(iVar2 + 0x18)" * (cast_expression "(uint *)(iVar2 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) ))))) )) ;) })) (if_statement "if ((uVar1 != 0) && (*(int *)(iVar2 + 8) == 0)) {\n    return;\n  }" if (parenthesized_expression "((uVar1 != 0) && (*(int *)(iVar2 + 8) == 0))" ( (binary_expression "(uVar1 != 0) && (*(int *)(iVar2 + 8) == 0)" (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(iVar2 + 8) == 0)" ( (binary_expression "*(int *)(iVar2 + 8) == 0" (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR_FUN_0012a354)(10);" (call_expression "(*(code *)PTR_FUN_0012a354)(10)" (parenthesized_expression "(*(code *)PTR_FUN_0012a354)" ( (pointer_expression "*(code *)PTR_FUN_0012a354" * (cast_expression "(code *)PTR_FUN_0012a354" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(10)" ( number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid goto_new_line(void)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)PTR_lineedit_ptr_to_statics_0012ac18;\n  uVar1 = *(uint *)(iVar2 + 0x14);\n  if (uVar1 < *(uint *)(iVar2 + 0x18)) {\n    do {\n      put_cur_glyph_and_inc_cursor();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    } while (uVar1 < *(uint *)(iVar2 + 0x18));\n  }\n  if ((uVar1 != 0) && (*(int *)(iVar2 + 8) == 0)) {\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x000f00a0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_bb_putchar_0012a354)(10);\n  return;\n}\n\n" comment (function_definition "void goto_new_line(void)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)PTR_lineedit_ptr_to_statics_0012ac18;\n  uVar1 = *(uint *)(iVar2 + 0x14);\n  if (uVar1 < *(uint *)(iVar2 + 0x18)) {\n    do {\n      put_cur_glyph_and_inc_cursor();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    } while (uVar1 < *(uint *)(iVar2 + 0x18));\n  }\n  if ((uVar1 != 0) && (*(int *)(iVar2 + 8) == 0)) {\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x000f00a0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_bb_putchar_0012a354)(10);\n  return;\n}" primitive_type (function_declarator "goto_new_line(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)PTR_lineedit_ptr_to_statics_0012ac18;\n  uVar1 = *(uint *)(iVar2 + 0x14);\n  if (uVar1 < *(uint *)(iVar2 + 0x18)) {\n    do {\n      put_cur_glyph_and_inc_cursor();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    } while (uVar1 < *(uint *)(iVar2 + 0x18));\n  }\n  if ((uVar1 != 0) && (*(int *)(iVar2 + 8) == 0)) {\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x000f00a0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_bb_putchar_0012a354)(10);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)PTR_lineedit_ptr_to_statics_0012ac18;" (assignment_expression "iVar2 = *(int *)PTR_lineedit_ptr_to_statics_0012ac18" identifier = (pointer_expression "*(int *)PTR_lineedit_ptr_to_statics_0012ac18" * (cast_expression "(int *)PTR_lineedit_ptr_to_statics_0012ac18" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar1 = *(uint *)(iVar2 + 0x14);" (assignment_expression "uVar1 = *(uint *)(iVar2 + 0x14)" identifier = (pointer_expression "*(uint *)(iVar2 + 0x14)" * (cast_expression "(uint *)(iVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (uVar1 < *(uint *)(iVar2 + 0x18)) {\n    do {\n      put_cur_glyph_and_inc_cursor();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    } while (uVar1 < *(uint *)(iVar2 + 0x18));\n  }" if (parenthesized_expression "(uVar1 < *(uint *)(iVar2 + 0x18))" ( (binary_expression "uVar1 < *(uint *)(iVar2 + 0x18)" identifier < (pointer_expression "*(uint *)(iVar2 + 0x18)" * (cast_expression "(uint *)(iVar2 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      put_cur_glyph_and_inc_cursor();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    } while (uVar1 < *(uint *)(iVar2 + 0x18));\n  }" { (do_statement "do {\n      put_cur_glyph_and_inc_cursor();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    } while (uVar1 < *(uint *)(iVar2 + 0x18));" do (compound_statement "{\n      put_cur_glyph_and_inc_cursor();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    }" { (expression_statement "put_cur_glyph_and_inc_cursor();" (call_expression "put_cur_glyph_and_inc_cursor()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar1 = *(uint *)(iVar2 + 0x14);" (assignment_expression "uVar1 = *(uint *)(iVar2 + 0x14)" identifier = (pointer_expression "*(uint *)(iVar2 + 0x14)" * (cast_expression "(uint *)(iVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(uVar1 < *(uint *)(iVar2 + 0x18))" ( (binary_expression "uVar1 < *(uint *)(iVar2 + 0x18)" identifier < (pointer_expression "*(uint *)(iVar2 + 0x18)" * (cast_expression "(uint *)(iVar2 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) ))))) )) ;) })) (if_statement "if ((uVar1 != 0) && (*(int *)(iVar2 + 8) == 0)) {\n    return;\n  }" if (parenthesized_expression "((uVar1 != 0) && (*(int *)(iVar2 + 8) == 0))" ( (binary_expression "(uVar1 != 0) && (*(int *)(iVar2 + 8) == 0)" (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(iVar2 + 8) == 0)" ( (binary_expression "*(int *)(iVar2 + 8) == 0" (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment comment (expression_statement "(*(code *)PTR_bb_putchar_0012a354)(10);" (call_expression "(*(code *)PTR_bb_putchar_0012a354)(10)" (parenthesized_expression "(*(code *)PTR_bb_putchar_0012a354)" ( (pointer_expression "*(code *)PTR_bb_putchar_0012a354" * (cast_expression "(code *)PTR_bb_putchar_0012a354" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(10)" ( number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000f0020(void)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)PTR_lineedit_ptr_to_statics_0012ac18;\n  uVar1 = *(uint *)(iVar2 + 0x14);\n  if (uVar1 < *(uint *)(iVar2 + 0x18)) {\n    do {\n      FUN_000efcb4();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    } while (uVar1 < *(uint *)(iVar2 + 0x18));\n  }\n  if ((uVar1 != 0) && (*(int *)(iVar2 + 8) == 0)) {\n    return;\n  }\n  (*(code *)PTR_FUN_0012a354)(10);\n  return;\n}\n\n" (function_definition "void FUN_000f0020(void)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)PTR_lineedit_ptr_to_statics_0012ac18;\n  uVar1 = *(uint *)(iVar2 + 0x14);\n  if (uVar1 < *(uint *)(iVar2 + 0x18)) {\n    do {\n      FUN_000efcb4();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    } while (uVar1 < *(uint *)(iVar2 + 0x18));\n  }\n  if ((uVar1 != 0) && (*(int *)(iVar2 + 8) == 0)) {\n    return;\n  }\n  (*(code *)PTR_FUN_0012a354)(10);\n  return;\n}" primitive_type (function_declarator "FUN_000f0020(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)PTR_lineedit_ptr_to_statics_0012ac18;\n  uVar1 = *(uint *)(iVar2 + 0x14);\n  if (uVar1 < *(uint *)(iVar2 + 0x18)) {\n    do {\n      FUN_000efcb4();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    } while (uVar1 < *(uint *)(iVar2 + 0x18));\n  }\n  if ((uVar1 != 0) && (*(int *)(iVar2 + 8) == 0)) {\n    return;\n  }\n  (*(code *)PTR_FUN_0012a354)(10);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)PTR_lineedit_ptr_to_statics_0012ac18;" (assignment_expression "iVar2 = *(int *)PTR_lineedit_ptr_to_statics_0012ac18" identifier = (pointer_expression "*(int *)PTR_lineedit_ptr_to_statics_0012ac18" * (cast_expression "(int *)PTR_lineedit_ptr_to_statics_0012ac18" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar1 = *(uint *)(iVar2 + 0x14);" (assignment_expression "uVar1 = *(uint *)(iVar2 + 0x14)" identifier = (pointer_expression "*(uint *)(iVar2 + 0x14)" * (cast_expression "(uint *)(iVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (uVar1 < *(uint *)(iVar2 + 0x18)) {\n    do {\n      FUN_000efcb4();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    } while (uVar1 < *(uint *)(iVar2 + 0x18));\n  }" if (parenthesized_expression "(uVar1 < *(uint *)(iVar2 + 0x18))" ( (binary_expression "uVar1 < *(uint *)(iVar2 + 0x18)" identifier < (pointer_expression "*(uint *)(iVar2 + 0x18)" * (cast_expression "(uint *)(iVar2 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      FUN_000efcb4();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    } while (uVar1 < *(uint *)(iVar2 + 0x18));\n  }" { (do_statement "do {\n      FUN_000efcb4();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    } while (uVar1 < *(uint *)(iVar2 + 0x18));" do (compound_statement "{\n      FUN_000efcb4();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    }" { (expression_statement "FUN_000efcb4();" (call_expression "FUN_000efcb4()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar1 = *(uint *)(iVar2 + 0x14);" (assignment_expression "uVar1 = *(uint *)(iVar2 + 0x14)" identifier = (pointer_expression "*(uint *)(iVar2 + 0x14)" * (cast_expression "(uint *)(iVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(uVar1 < *(uint *)(iVar2 + 0x18))" ( (binary_expression "uVar1 < *(uint *)(iVar2 + 0x18)" identifier < (pointer_expression "*(uint *)(iVar2 + 0x18)" * (cast_expression "(uint *)(iVar2 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) ))))) )) ;) })) (if_statement "if ((uVar1 != 0) && (*(int *)(iVar2 + 8) == 0)) {\n    return;\n  }" if (parenthesized_expression "((uVar1 != 0) && (*(int *)(iVar2 + 8) == 0))" ( (binary_expression "(uVar1 != 0) && (*(int *)(iVar2 + 8) == 0)" (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(iVar2 + 8) == 0)" ( (binary_expression "*(int *)(iVar2 + 8) == 0" (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR_FUN_0012a354)(10);" (call_expression "(*(code *)PTR_FUN_0012a354)(10)" (parenthesized_expression "(*(code *)PTR_FUN_0012a354)" ( (pointer_expression "*(code *)PTR_FUN_0012a354" * (cast_expression "(code *)PTR_FUN_0012a354" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(10)" ( number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_000f0020(void)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)PTR_lineedit_ptr_to_statics_0012ac18;\n  uVar1 = *(uint *)(iVar2 + 0x14);\n  if (uVar1 < *(uint *)(iVar2 + 0x18)) {\n    do {\n      FUN_000efcb4();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    } while (uVar1 < *(uint *)(iVar2 + 0x18));\n  }\n  if ((uVar1 != 0) && (*(int *)(iVar2 + 8) == 0)) {\n    return;\n  }\n  (*(code *)PTR_FUN_0012a354)(10);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000f0020(void)" (identifier "FUN_000f0020") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)PTR_lineedit_ptr_to_statics_0012ac18;\n  uVar1 = *(uint *)(iVar2 + 0x14);\n  if (uVar1 < *(uint *)(iVar2 + 0x18)) {\n    do {\n      FUN_000efcb4();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    } while (uVar1 < *(uint *)(iVar2 + 0x18));\n  }\n  if ((uVar1 != 0) && (*(int *)(iVar2 + 8) == 0)) {\n    return;\n  }\n  (*(code *)PTR_FUN_0012a354)(10);\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = *(int *)PTR_lineedit_ptr_to_statics_0012ac18;" (assignment_expression "iVar2 = *(int *)PTR_lineedit_ptr_to_statics_0012ac18" (identifier "iVar2") (= "=") (pointer_expression "*(int *)PTR_lineedit_ptr_to_statics_0012ac18" (* "*") (cast_expression "(int *)PTR_lineedit_ptr_to_statics_0012ac18" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_lineedit_ptr_to_statics_0012ac18")))) (; ";")) (expression_statement "uVar1 = *(uint *)(iVar2 + 0x14);" (assignment_expression "uVar1 = *(uint *)(iVar2 + 0x14)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(iVar2 + 0x14)" (* "*") (cast_expression "(uint *)(iVar2 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x14)" (( "(") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (uVar1 < *(uint *)(iVar2 + 0x18)) {\n    do {\n      FUN_000efcb4();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    } while (uVar1 < *(uint *)(iVar2 + 0x18));\n  }" (if "if") (parenthesized_expression "(uVar1 < *(uint *)(iVar2 + 0x18))" (( "(") (binary_expression "uVar1 < *(uint *)(iVar2 + 0x18)" (identifier "uVar1") (< "<") (pointer_expression "*(uint *)(iVar2 + 0x18)" (* "*") (cast_expression "(uint *)(iVar2 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x18)" (( "(") (binary_expression "iVar2 + 0x18" (identifier "iVar2") (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (compound_statement "{\n    do {\n      FUN_000efcb4();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    } while (uVar1 < *(uint *)(iVar2 + 0x18));\n  }" ({ "{") (do_statement "do {\n      FUN_000efcb4();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    } while (uVar1 < *(uint *)(iVar2 + 0x18));" (do "do") (compound_statement "{\n      FUN_000efcb4();\n      uVar1 = *(uint *)(iVar2 + 0x14);\n    }" ({ "{") (expression_statement "FUN_000efcb4();" (call_expression "FUN_000efcb4()" (identifier "FUN_000efcb4") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar1 = *(uint *)(iVar2 + 0x14);" (assignment_expression "uVar1 = *(uint *)(iVar2 + 0x14)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(iVar2 + 0x14)" (* "*") (cast_expression "(uint *)(iVar2 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x14)" (( "(") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar1 < *(uint *)(iVar2 + 0x18))" (( "(") (binary_expression "uVar1 < *(uint *)(iVar2 + 0x18)" (identifier "uVar1") (< "<") (pointer_expression "*(uint *)(iVar2 + 0x18)" (* "*") (cast_expression "(uint *)(iVar2 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x18)" (( "(") (binary_expression "iVar2 + 0x18" (identifier "iVar2") (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (; ";")) (} "}"))) (if_statement "if ((uVar1 != 0) && (*(int *)(iVar2 + 8) == 0)) {\n    return;\n  }" (if "if") (parenthesized_expression "((uVar1 != 0) && (*(int *)(iVar2 + 8) == 0))" (( "(") (binary_expression "(uVar1 != 0) && (*(int *)(iVar2 + 8) == 0)" (parenthesized_expression "(uVar1 != 0)" (( "(") (binary_expression "uVar1 != 0" (identifier "uVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(iVar2 + 8) == 0)" (( "(") (binary_expression "*(int *)(iVar2 + 8) == 0" (pointer_expression "*(int *)(iVar2 + 8)" (* "*") (cast_expression "(int *)(iVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_FUN_0012a354)(10);" (call_expression "(*(code *)PTR_FUN_0012a354)(10)" (parenthesized_expression "(*(code *)PTR_FUN_0012a354)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a354" (* "*") (cast_expression "(code *)PTR_FUN_0012a354" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a354"))) () ")")) (argument_list "(10)" (( "(") (number_literal "10") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  type_1 var_2;
  int var_1;
  
  var_1 = *(int *)PTR_lineedit_ptr_to_statics_0012ac18;
  var_2 = *(type_1 *)(var_1 + 0x14);
  if (var_2 < *(type_1 *)(var_1 + 0x18)) {
    do {
      var_3();
      var_2 = *(type_1 *)(var_1 + 0x14);
    } while (var_2 < *(type_1 *)(var_1 + 0x18));
  }
  if ((var_2 != 0) && (*(int *)(var_1 + 8) == 0)) {
    return;
  }
                    /* WARNING: Could not recover jumptable at 0x000f00a0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(type_2 *)PTR_bb_putchar_0012a354)(10);
  return;
}


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

void MASKED(void)

{
  uint uVar1;
  int iVar2;
  
  iVar2 = *(int *)PTR_lineedit_ptr_to_statics_0012ac18;
  uVar1 = *(uint *)(iVar2 + 0x14);
  if (uVar1 < *(uint *)(iVar2 + 0x18)) {
    do {
      FUN_000efcb4();
      uVar1 = *(uint *)(iVar2 + 0x14);
    } while (uVar1 < *(uint *)(iVar2 + 0x18));
  }
  if ((uVar1 != 0) && (*(int *)(iVar2 + 8) == 0)) {
    return;
  }
  (*(code *)PTR_FUN_0012a354)(10);
  return;
}

