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

void do_scroll_up(void)

{
  int iVar1;
  
  iVar1 = *(int *)PTR_openfile_0007c6e8;
  if ((*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {
    if (*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {
      do_up();
    }
    if (1 < *(int *)PTR_editwinrows_0007c56c) {
      (*(code *)PTR_edit_scroll_0007ca80)(0);
    }
  }
  return;
}



void do_scroll_up(void)

{
  int iVar1;
  
  iVar1 = *(int *)PTR_openfile_0007c6e8;
  if ((*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {
    if (*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {
      do_up();
    }
    if (1 < *(int *)PTR_editwinrows_0007c56c) {
      (*(code *)PTR_edit_scroll_0007ca80)(0);
    }
  }
  return;
}


lui gp,0x5
addiu gp,gp,0x6154
addu gp,gp,t9
addiu sp,sp,-0x20
sw ra,0x1c(sp)
sw gp,0x10(sp)
lw v0,-0x7e38(gp)
lw v1,0x0(v0)
lw v0,0xc(v1)
lw v0,0xc(v0)
beq v0,zero,0x0002e430
_lw v0,-0x7fb4(gp)
lw v0,0x0(v0)
addiu v0,v0,-0x1
lw v1,0x24(v1)
beq v1,v0,0x0002e444
_lw t9,-0x7ed8(gp)
lw v0,-0x7fb4(gp)
lw v0,0x0(v0)
slti v0,v0,0x2
beq v0,zero,0x0002e458
_or a0,zero,zero
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
lw v0,0x18(v1)
bne v0,zero,0x0002e3fc
_lw v0,-0x7fb4(gp)
b 0x0002e428
_lw ra,0x1c(sp)
bal 0x0002e150
_nop
lw gp,0x10(sp)
b 0x0002e414
_lw v0,-0x7fb4(gp)
lw t9,-0x7aa0(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x0002e428
_lw ra,0x1c(sp)
(translation_unit "void do_scroll_up(void)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)PTR_openfile_0007c6e8;\n  if ((*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n    if (*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {\n      do_up();\n    }\n    if (1 < *(int *)PTR_editwinrows_0007c56c) {\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }\n  }\n  return;\n}\n\n" (function_definition "void do_scroll_up(void)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)PTR_openfile_0007c6e8;\n  if ((*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n    if (*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {\n      do_up();\n    }\n    if (1 < *(int *)PTR_editwinrows_0007c56c) {\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "do_scroll_up(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)PTR_openfile_0007c6e8;\n  if ((*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n    if (*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {\n      do_up();\n    }\n    if (1 < *(int *)PTR_editwinrows_0007c56c) {\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)PTR_openfile_0007c6e8;" (assignment_expression "iVar1 = *(int *)PTR_openfile_0007c6e8" identifier = (pointer_expression "*(int *)PTR_openfile_0007c6e8" * (cast_expression "(int *)PTR_openfile_0007c6e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n    if (*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {\n      do_up();\n    }\n    if (1 < *(int *)PTR_editwinrows_0007c56c) {\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }\n  }" if (parenthesized_expression "((*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0) || (*(int *)(iVar1 + 0x18) != 0))" ( (binary_expression "(*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0) || (*(int *)(iVar1 + 0x18) != 0)" (parenthesized_expression "(*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0)" ( (binary_expression "*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0" (pointer_expression "*(int *)(*(int *)(iVar1 + 0xc) + 0xc)" * (cast_expression "(int *)(*(int *)(iVar1 + 0xc) + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 0xc) + 0xc)" ( (binary_expression "*(int *)(iVar1 + 0xc) + 0xc" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) + number_literal) )))) != number_literal) )) || (parenthesized_expression "(*(int *)(iVar1 + 0x18) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x18) != 0" (pointer_expression "*(int *)(iVar1 + 0x18)" * (cast_expression "(int *)(iVar1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    if (*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {\n      do_up();\n    }\n    if (1 < *(int *)PTR_editwinrows_0007c56c) {\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }\n  }" { (if_statement "if (*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {\n      do_up();\n    }" if (parenthesized_expression "(*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1)" ( (binary_expression "*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1" (pointer_expression "*(int *)(iVar1 + 0x24)" * (cast_expression "(int *)(iVar1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) == (binary_expression "*(int *)PTR_editwinrows_0007c56c + -1" (pointer_expression "*(int *)PTR_editwinrows_0007c56c" * (cast_expression "(int *)PTR_editwinrows_0007c56c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal)) )) (compound_statement "{\n      do_up();\n    }" { (expression_statement "do_up();" (call_expression "do_up()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (1 < *(int *)PTR_editwinrows_0007c56c) {\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }" if (parenthesized_expression "(1 < *(int *)PTR_editwinrows_0007c56c)" ( (binary_expression "1 < *(int *)PTR_editwinrows_0007c56c" number_literal < (pointer_expression "*(int *)PTR_editwinrows_0007c56c" * (cast_expression "(int *)PTR_editwinrows_0007c56c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }" { (expression_statement "(*(code *)PTR_edit_scroll_0007ca80)(0);" (call_expression "(*(code *)PTR_edit_scroll_0007ca80)(0)" (parenthesized_expression "(*(code *)PTR_edit_scroll_0007ca80)" ( (pointer_expression "*(code *)PTR_edit_scroll_0007ca80" * (cast_expression "(code *)PTR_edit_scroll_0007ca80" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0)" ( number_literal ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid do_scroll_up(void)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)PTR_openfile_0007c6e8;\n  if ((*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n    if (*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {\n      do_up();\n    }\n    if (1 < *(int *)PTR_editwinrows_0007c56c) {\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void do_scroll_up(void)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)PTR_openfile_0007c6e8;\n  if ((*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n    if (*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {\n      do_up();\n    }\n    if (1 < *(int *)PTR_editwinrows_0007c56c) {\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "do_scroll_up(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)PTR_openfile_0007c6e8;\n  if ((*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n    if (*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {\n      do_up();\n    }\n    if (1 < *(int *)PTR_editwinrows_0007c56c) {\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)PTR_openfile_0007c6e8;" (assignment_expression "iVar1 = *(int *)PTR_openfile_0007c6e8" identifier = (pointer_expression "*(int *)PTR_openfile_0007c6e8" * (cast_expression "(int *)PTR_openfile_0007c6e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n    if (*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {\n      do_up();\n    }\n    if (1 < *(int *)PTR_editwinrows_0007c56c) {\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }\n  }" if (parenthesized_expression "((*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0) || (*(int *)(iVar1 + 0x18) != 0))" ( (binary_expression "(*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0) || (*(int *)(iVar1 + 0x18) != 0)" (parenthesized_expression "(*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0)" ( (binary_expression "*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0" (pointer_expression "*(int *)(*(int *)(iVar1 + 0xc) + 0xc)" * (cast_expression "(int *)(*(int *)(iVar1 + 0xc) + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 0xc) + 0xc)" ( (binary_expression "*(int *)(iVar1 + 0xc) + 0xc" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) + number_literal) )))) != number_literal) )) || (parenthesized_expression "(*(int *)(iVar1 + 0x18) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x18) != 0" (pointer_expression "*(int *)(iVar1 + 0x18)" * (cast_expression "(int *)(iVar1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    if (*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {\n      do_up();\n    }\n    if (1 < *(int *)PTR_editwinrows_0007c56c) {\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }\n  }" { (if_statement "if (*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {\n      do_up();\n    }" if (parenthesized_expression "(*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1)" ( (binary_expression "*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1" (pointer_expression "*(int *)(iVar1 + 0x24)" * (cast_expression "(int *)(iVar1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) == (binary_expression "*(int *)PTR_editwinrows_0007c56c + -1" (pointer_expression "*(int *)PTR_editwinrows_0007c56c" * (cast_expression "(int *)PTR_editwinrows_0007c56c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal)) )) (compound_statement "{\n      do_up();\n    }" { (expression_statement "do_up();" (call_expression "do_up()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (1 < *(int *)PTR_editwinrows_0007c56c) {\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }" if (parenthesized_expression "(1 < *(int *)PTR_editwinrows_0007c56c)" ( (binary_expression "1 < *(int *)PTR_editwinrows_0007c56c" number_literal < (pointer_expression "*(int *)PTR_editwinrows_0007c56c" * (cast_expression "(int *)PTR_editwinrows_0007c56c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }" { (expression_statement "(*(code *)PTR_edit_scroll_0007ca80)(0);" (call_expression "(*(code *)PTR_edit_scroll_0007ca80)(0)" (parenthesized_expression "(*(code *)PTR_edit_scroll_0007ca80)" ( (pointer_expression "*(code *)PTR_edit_scroll_0007ca80" * (cast_expression "(code *)PTR_edit_scroll_0007ca80" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0)" ( number_literal ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void do_scroll_up(void)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)PTR_openfile_0007c6e8;\n  if ((*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n    if (*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {\n      do_up();\n    }\n    if (1 < *(int *)PTR_editwinrows_0007c56c) {\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }\n  }\n  return;\n}\n\n" (function_definition "void do_scroll_up(void)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)PTR_openfile_0007c6e8;\n  if ((*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n    if (*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {\n      do_up();\n    }\n    if (1 < *(int *)PTR_editwinrows_0007c56c) {\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "do_scroll_up(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)PTR_openfile_0007c6e8;\n  if ((*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n    if (*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {\n      do_up();\n    }\n    if (1 < *(int *)PTR_editwinrows_0007c56c) {\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)PTR_openfile_0007c6e8;" (assignment_expression "iVar1 = *(int *)PTR_openfile_0007c6e8" identifier = (pointer_expression "*(int *)PTR_openfile_0007c6e8" * (cast_expression "(int *)PTR_openfile_0007c6e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n    if (*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {\n      do_up();\n    }\n    if (1 < *(int *)PTR_editwinrows_0007c56c) {\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }\n  }" if (parenthesized_expression "((*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0) || (*(int *)(iVar1 + 0x18) != 0))" ( (binary_expression "(*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0) || (*(int *)(iVar1 + 0x18) != 0)" (parenthesized_expression "(*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0)" ( (binary_expression "*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0" (pointer_expression "*(int *)(*(int *)(iVar1 + 0xc) + 0xc)" * (cast_expression "(int *)(*(int *)(iVar1 + 0xc) + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 0xc) + 0xc)" ( (binary_expression "*(int *)(iVar1 + 0xc) + 0xc" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) + number_literal) )))) != number_literal) )) || (parenthesized_expression "(*(int *)(iVar1 + 0x18) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x18) != 0" (pointer_expression "*(int *)(iVar1 + 0x18)" * (cast_expression "(int *)(iVar1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    if (*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {\n      do_up();\n    }\n    if (1 < *(int *)PTR_editwinrows_0007c56c) {\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }\n  }" { (if_statement "if (*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {\n      do_up();\n    }" if (parenthesized_expression "(*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1)" ( (binary_expression "*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1" (pointer_expression "*(int *)(iVar1 + 0x24)" * (cast_expression "(int *)(iVar1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) == (binary_expression "*(int *)PTR_editwinrows_0007c56c + -1" (pointer_expression "*(int *)PTR_editwinrows_0007c56c" * (cast_expression "(int *)PTR_editwinrows_0007c56c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal)) )) (compound_statement "{\n      do_up();\n    }" { (expression_statement "do_up();" (call_expression "do_up()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (1 < *(int *)PTR_editwinrows_0007c56c) {\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }" if (parenthesized_expression "(1 < *(int *)PTR_editwinrows_0007c56c)" ( (binary_expression "1 < *(int *)PTR_editwinrows_0007c56c" number_literal < (pointer_expression "*(int *)PTR_editwinrows_0007c56c" * (cast_expression "(int *)PTR_editwinrows_0007c56c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }" { (expression_statement "(*(code *)PTR_edit_scroll_0007ca80)(0);" (call_expression "(*(code *)PTR_edit_scroll_0007ca80)(0)" (parenthesized_expression "(*(code *)PTR_edit_scroll_0007ca80)" ( (pointer_expression "*(code *)PTR_edit_scroll_0007ca80" * (cast_expression "(code *)PTR_edit_scroll_0007ca80" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0)" ( number_literal ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) != LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (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 do_scroll_up(void)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)PTR_openfile_0007c6e8;\n  if ((*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n    if (*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {\n      do_up();\n    }\n    if (1 < *(int *)PTR_editwinrows_0007c56c) {\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "do_scroll_up(void)" (identifier "do_scroll_up") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)PTR_openfile_0007c6e8;\n  if ((*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n    if (*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {\n      do_up();\n    }\n    if (1 < *(int *)PTR_editwinrows_0007c56c) {\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = *(int *)PTR_openfile_0007c6e8;" (assignment_expression "iVar1 = *(int *)PTR_openfile_0007c6e8" (identifier "iVar1") (= "=") (pointer_expression "*(int *)PTR_openfile_0007c6e8" (* "*") (cast_expression "(int *)PTR_openfile_0007c6e8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_openfile_0007c6e8")))) (; ";")) (if_statement "if ((*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n    if (*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {\n      do_up();\n    }\n    if (1 < *(int *)PTR_editwinrows_0007c56c) {\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }\n  }" (if "if") (parenthesized_expression "((*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0) || (*(int *)(iVar1 + 0x18) != 0))" (( "(") (binary_expression "(*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0) || (*(int *)(iVar1 + 0x18) != 0)" (parenthesized_expression "(*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0)" (( "(") (binary_expression "*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0" (pointer_expression "*(int *)(*(int *)(iVar1 + 0xc) + 0xc)" (* "*") (cast_expression "(int *)(*(int *)(iVar1 + 0xc) + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar1 + 0xc) + 0xc)" (( "(") (binary_expression "*(int *)(iVar1 + 0xc) + 0xc" (pointer_expression "*(int *)(iVar1 + 0xc)" (* "*") (cast_expression "(int *)(iVar1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)(iVar1 + 0x18) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x18) != 0" (pointer_expression "*(int *)(iVar1 + 0x18)" (* "*") (cast_expression "(int *)(iVar1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x18)" (( "(") (binary_expression "iVar1 + 0x18" (identifier "iVar1") (+ "+") (number_literal "0x18")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    if (*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {\n      do_up();\n    }\n    if (1 < *(int *)PTR_editwinrows_0007c56c) {\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }\n  }" ({ "{") (if_statement "if (*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {\n      do_up();\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1)" (( "(") (binary_expression "*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1" (pointer_expression "*(int *)(iVar1 + 0x24)" (* "*") (cast_expression "(int *)(iVar1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x24)" (( "(") (binary_expression "iVar1 + 0x24" (identifier "iVar1") (+ "+") (number_literal "0x24")) () ")")))) (== "==") (binary_expression "*(int *)PTR_editwinrows_0007c56c + -1" (pointer_expression "*(int *)PTR_editwinrows_0007c56c" (* "*") (cast_expression "(int *)PTR_editwinrows_0007c56c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_editwinrows_0007c56c"))) (+ "+") (number_literal "-1"))) () ")")) (compound_statement "{\n      do_up();\n    }" ({ "{") (expression_statement "do_up();" (call_expression "do_up()" (identifier "do_up") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (1 < *(int *)PTR_editwinrows_0007c56c) {\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }" (if "if") (parenthesized_expression "(1 < *(int *)PTR_editwinrows_0007c56c)" (( "(") (binary_expression "1 < *(int *)PTR_editwinrows_0007c56c" (number_literal "1") (< "<") (pointer_expression "*(int *)PTR_editwinrows_0007c56c" (* "*") (cast_expression "(int *)PTR_editwinrows_0007c56c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_editwinrows_0007c56c")))) () ")")) (compound_statement "{\n      (*(code *)PTR_edit_scroll_0007ca80)(0);\n    }" ({ "{") (expression_statement "(*(code *)PTR_edit_scroll_0007ca80)(0);" (call_expression "(*(code *)PTR_edit_scroll_0007ca80)(0)" (parenthesized_expression "(*(code *)PTR_edit_scroll_0007ca80)" (( "(") (pointer_expression "*(code *)PTR_edit_scroll_0007ca80" (* "*") (cast_expression "(code *)PTR_edit_scroll_0007ca80" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_edit_scroll_0007ca80"))) () ")")) (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(void)

{
  int var_1;
  
  var_1 = *(int *)PTR_openfile_0007c6e8;
  if ((*(int *)(*(int *)(var_1 + 0xc) + 0xc) != 0) || (*(int *)(var_1 + 0x18) != 0)) {
    if (*(int *)(var_1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {
      var_2();
    }
    if (1 < *(int *)PTR_editwinrows_0007c56c) {
      (*(type_1 *)PTR_edit_scroll_0007ca80)(0);
    }
  }
  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: (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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (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))))) 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 (if_statement condition: (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: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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 (number_literal)))))))) (return_statement))))

void MASKED(void)

{
  int iVar1;
  
  iVar1 = *(int *)PTR_openfile_0007c6e8;
  if ((*(int *)(*(int *)(iVar1 + 0xc) + 0xc) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {
    if (*(int *)(iVar1 + 0x24) == *(int *)PTR_editwinrows_0007c56c + -1) {
      do_up();
    }
    if (1 < *(int *)PTR_editwinrows_0007c56c) {
      (*(code *)PTR_edit_scroll_0007ca80)(0);
    }
  }
  return;
}

