
int adjsline(int sline)

{
  int iVar1;
  int iVar2;
  
  iVar2 = *(int *)PTR_sc_height_0004ece8;
  if (sline < 0) {
    sline = sline + iVar2;
  }
  iVar1 = 1;
  if (0 < sline) {
    iVar1 = sline;
  }
  if (iVar2 <= iVar1) {
    iVar1 = iVar2 + -1;
  }
  return iVar1 + -1;
}



int adjsline(int param_1)

{
  int iVar1;
  int iVar2;
  
  iVar2 = *(int *)PTR_sc_height_0004ece8;
  if (param_1 < 0) {
    param_1 = param_1 + iVar2;
  }
  iVar1 = 1;
  if (0 < param_1) {
    iVar1 = param_1;
  }
  if (iVar2 <= iVar1) {
    iVar1 = iVar2 + -1;
  }
  return iVar1 + -1;
}


lui gp,0x2
addiu gp,gp,0x72d8
addu gp,gp,t9
lw v0,-0x7ee8(gp)
bgez a0,0x0002f914
_lw v1,0x0(v0)
addu a0,a0,v1
li a1,0x1
slt v0,zero,a0
movn a1,a0,v0
slt a0,a1,v1
bne a0,zero,0x0002f930
_or v0,a1,zero
addiu v0,v1,-0x1
jr ra
_addiu v0,v0,-0x1
(translation_unit "int adjsline(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)PTR_sc_height_0004ece8;\n  if (param_1 < 0) {\n    param_1 = param_1 + iVar2;\n  }\n  iVar1 = 1;\n  if (0 < param_1) {\n    iVar1 = param_1;\n  }\n  if (iVar2 <= iVar1) {\n    iVar1 = iVar2 + -1;\n  }\n  return iVar1 + -1;\n}\n\n" (function_definition "int adjsline(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)PTR_sc_height_0004ece8;\n  if (param_1 < 0) {\n    param_1 = param_1 + iVar2;\n  }\n  iVar1 = 1;\n  if (0 < param_1) {\n    iVar1 = param_1;\n  }\n  if (iVar2 <= iVar1) {\n    iVar1 = iVar2 + -1;\n  }\n  return iVar1 + -1;\n}" primitive_type (function_declarator "adjsline(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)PTR_sc_height_0004ece8;\n  if (param_1 < 0) {\n    param_1 = param_1 + iVar2;\n  }\n  iVar1 = 1;\n  if (0 < param_1) {\n    iVar1 = param_1;\n  }\n  if (iVar2 <= iVar1) {\n    iVar1 = iVar2 + -1;\n  }\n  return iVar1 + -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)PTR_sc_height_0004ece8;" (assignment_expression "iVar2 = *(int *)PTR_sc_height_0004ece8" identifier = (pointer_expression "*(int *)PTR_sc_height_0004ece8" * (cast_expression "(int *)PTR_sc_height_0004ece8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (param_1 < 0) {\n    param_1 = param_1 + iVar2;\n  }" if (parenthesized_expression "(param_1 < 0)" ( (binary_expression "param_1 < 0" identifier < number_literal) )) (compound_statement "{\n    param_1 = param_1 + iVar2;\n  }" { (expression_statement "param_1 = param_1 + iVar2;" (assignment_expression "param_1 = param_1 + iVar2" identifier = (binary_expression "param_1 + iVar2" identifier + identifier)) ;) })) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (if_statement "if (0 < param_1) {\n    iVar1 = param_1;\n  }" if (parenthesized_expression "(0 < param_1)" ( (binary_expression "0 < param_1" number_literal < identifier) )) (compound_statement "{\n    iVar1 = param_1;\n  }" { (expression_statement "iVar1 = param_1;" (assignment_expression "iVar1 = param_1" identifier = identifier) ;) })) (if_statement "if (iVar2 <= iVar1) {\n    iVar1 = iVar2 + -1;\n  }" if (parenthesized_expression "(iVar2 <= iVar1)" ( (binary_expression "iVar2 <= iVar1" identifier <= identifier) )) (compound_statement "{\n    iVar1 = iVar2 + -1;\n  }" { (expression_statement "iVar1 = iVar2 + -1;" (assignment_expression "iVar1 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) })) (return_statement "return iVar1 + -1;" return (binary_expression "iVar1 + -1" identifier + number_literal) ;) })))
(translation_unit "int adjsline(int sline)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)PTR_sc_height_0004ece8;\n  if (sline < 0) {\n    sline = sline + iVar2;\n  }\n  iVar1 = 1;\n  if (0 < sline) {\n    iVar1 = sline;\n  }\n  if (iVar2 <= iVar1) {\n    iVar1 = iVar2 + -1;\n  }\n  return iVar1 + -1;\n}\n\n" (function_definition "int adjsline(int sline)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)PTR_sc_height_0004ece8;\n  if (sline < 0) {\n    sline = sline + iVar2;\n  }\n  iVar1 = 1;\n  if (0 < sline) {\n    iVar1 = sline;\n  }\n  if (iVar2 <= iVar1) {\n    iVar1 = iVar2 + -1;\n  }\n  return iVar1 + -1;\n}" primitive_type (function_declarator "adjsline(int sline)" identifier (parameter_list "(int sline)" ( (parameter_declaration "int sline" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)PTR_sc_height_0004ece8;\n  if (sline < 0) {\n    sline = sline + iVar2;\n  }\n  iVar1 = 1;\n  if (0 < sline) {\n    iVar1 = sline;\n  }\n  if (iVar2 <= iVar1) {\n    iVar1 = iVar2 + -1;\n  }\n  return iVar1 + -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)PTR_sc_height_0004ece8;" (assignment_expression "iVar2 = *(int *)PTR_sc_height_0004ece8" identifier = (pointer_expression "*(int *)PTR_sc_height_0004ece8" * (cast_expression "(int *)PTR_sc_height_0004ece8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (sline < 0) {\n    sline = sline + iVar2;\n  }" if (parenthesized_expression "(sline < 0)" ( (binary_expression "sline < 0" identifier < number_literal) )) (compound_statement "{\n    sline = sline + iVar2;\n  }" { (expression_statement "sline = sline + iVar2;" (assignment_expression "sline = sline + iVar2" identifier = (binary_expression "sline + iVar2" identifier + identifier)) ;) })) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (if_statement "if (0 < sline) {\n    iVar1 = sline;\n  }" if (parenthesized_expression "(0 < sline)" ( (binary_expression "0 < sline" number_literal < identifier) )) (compound_statement "{\n    iVar1 = sline;\n  }" { (expression_statement "iVar1 = sline;" (assignment_expression "iVar1 = sline" identifier = identifier) ;) })) (if_statement "if (iVar2 <= iVar1) {\n    iVar1 = iVar2 + -1;\n  }" if (parenthesized_expression "(iVar2 <= iVar1)" ( (binary_expression "iVar2 <= iVar1" identifier <= identifier) )) (compound_statement "{\n    iVar1 = iVar2 + -1;\n  }" { (expression_statement "iVar1 = iVar2 + -1;" (assignment_expression "iVar1 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) })) (return_statement "return iVar1 + -1;" return (binary_expression "iVar1 + -1" identifier + number_literal) ;) })))
(translation_unit "int adjsline(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)PTR_sc_height_0004ece8;\n  if (param_1 < 0) {\n    param_1 = param_1 + iVar2;\n  }\n  iVar1 = 1;\n  if (0 < param_1) {\n    iVar1 = param_1;\n  }\n  if (iVar2 <= iVar1) {\n    iVar1 = iVar2 + -1;\n  }\n  return iVar1 + -1;\n}\n\n" (function_definition "int adjsline(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)PTR_sc_height_0004ece8;\n  if (param_1 < 0) {\n    param_1 = param_1 + iVar2;\n  }\n  iVar1 = 1;\n  if (0 < param_1) {\n    iVar1 = param_1;\n  }\n  if (iVar2 <= iVar1) {\n    iVar1 = iVar2 + -1;\n  }\n  return iVar1 + -1;\n}" primitive_type (function_declarator "adjsline(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)PTR_sc_height_0004ece8;\n  if (param_1 < 0) {\n    param_1 = param_1 + iVar2;\n  }\n  iVar1 = 1;\n  if (0 < param_1) {\n    iVar1 = param_1;\n  }\n  if (iVar2 <= iVar1) {\n    iVar1 = iVar2 + -1;\n  }\n  return iVar1 + -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)PTR_sc_height_0004ece8;" (assignment_expression "iVar2 = *(int *)PTR_sc_height_0004ece8" identifier = (pointer_expression "*(int *)PTR_sc_height_0004ece8" * (cast_expression "(int *)PTR_sc_height_0004ece8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (param_1 < 0) {\n    param_1 = param_1 + iVar2;\n  }" if (parenthesized_expression "(param_1 < 0)" ( (binary_expression "param_1 < 0" identifier < number_literal) )) (compound_statement "{\n    param_1 = param_1 + iVar2;\n  }" { (expression_statement "param_1 = param_1 + iVar2;" (assignment_expression "param_1 = param_1 + iVar2" identifier = (binary_expression "param_1 + iVar2" identifier + identifier)) ;) })) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (if_statement "if (0 < param_1) {\n    iVar1 = param_1;\n  }" if (parenthesized_expression "(0 < param_1)" ( (binary_expression "0 < param_1" number_literal < identifier) )) (compound_statement "{\n    iVar1 = param_1;\n  }" { (expression_statement "iVar1 = param_1;" (assignment_expression "iVar1 = param_1" identifier = identifier) ;) })) (if_statement "if (iVar2 <= iVar1) {\n    iVar1 = iVar2 + -1;\n  }" if (parenthesized_expression "(iVar2 <= iVar1)" ( (binary_expression "iVar2 <= iVar1" identifier <= identifier) )) (compound_statement "{\n    iVar1 = iVar2 + -1;\n  }" { (expression_statement "iVar1 = iVar2 + -1;" (assignment_expression "iVar1 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) })) (return_statement "return iVar1 + -1;" return (binary_expression "iVar1 + -1" identifier + number_literal) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (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 IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (return_statement return (binary_expression IDENT + LIT) ;) })))
(function_definition "int adjsline(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)PTR_sc_height_0004ece8;\n  if (param_1 < 0) {\n    param_1 = param_1 + iVar2;\n  }\n  iVar1 = 1;\n  if (0 < param_1) {\n    iVar1 = param_1;\n  }\n  if (iVar2 <= iVar1) {\n    iVar1 = iVar2 + -1;\n  }\n  return iVar1 + -1;\n}" (primitive_type "int") (function_declarator "adjsline(int param_1)" (identifier "adjsline") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)PTR_sc_height_0004ece8;\n  if (param_1 < 0) {\n    param_1 = param_1 + iVar2;\n  }\n  iVar1 = 1;\n  if (0 < param_1) {\n    iVar1 = param_1;\n  }\n  if (iVar2 <= iVar1) {\n    iVar1 = iVar2 + -1;\n  }\n  return iVar1 + -1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = *(int *)PTR_sc_height_0004ece8;" (assignment_expression "iVar2 = *(int *)PTR_sc_height_0004ece8" (identifier "iVar2") (= "=") (pointer_expression "*(int *)PTR_sc_height_0004ece8" (* "*") (cast_expression "(int *)PTR_sc_height_0004ece8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sc_height_0004ece8")))) (; ";")) (if_statement "if (param_1 < 0) {\n    param_1 = param_1 + iVar2;\n  }" (if "if") (parenthesized_expression "(param_1 < 0)" (( "(") (binary_expression "param_1 < 0" (identifier "param_1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    param_1 = param_1 + iVar2;\n  }" ({ "{") (expression_statement "param_1 = param_1 + iVar2;" (assignment_expression "param_1 = param_1 + iVar2" (identifier "param_1") (= "=") (binary_expression "param_1 + iVar2" (identifier "param_1") (+ "+") (identifier "iVar2"))) (; ";")) (} "}"))) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" (identifier "iVar1") (= "=") (number_literal "1")) (; ";")) (if_statement "if (0 < param_1) {\n    iVar1 = param_1;\n  }" (if "if") (parenthesized_expression "(0 < param_1)" (( "(") (binary_expression "0 < param_1" (number_literal "0") (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n    iVar1 = param_1;\n  }" ({ "{") (expression_statement "iVar1 = param_1;" (assignment_expression "iVar1 = param_1" (identifier "iVar1") (= "=") (identifier "param_1")) (; ";")) (} "}"))) (if_statement "if (iVar2 <= iVar1) {\n    iVar1 = iVar2 + -1;\n  }" (if "if") (parenthesized_expression "(iVar2 <= iVar1)" (( "(") (binary_expression "iVar2 <= iVar1" (identifier "iVar2") (<= "<=") (identifier "iVar1")) () ")")) (compound_statement "{\n    iVar1 = iVar2 + -1;\n  }" ({ "{") (expression_statement "iVar1 = iVar2 + -1;" (assignment_expression "iVar1 = iVar2 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (} "}"))) (return_statement "return iVar1 + -1;" (return "return") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1")) (; ";")) (} "}")))

int function_1(int var_1)

{
  int var_3;
  int var_2;
  
  var_2 = *(int *)PTR_sc_height_0004ece8;
  if (var_1 < 0) {
    var_1 = var_1 + var_2;
  }
  var_3 = 1;
  if (0 < var_1) {
    var_3 = var_1;
  }
  if (var_2 <= var_3) {
    var_3 = var_2 + -1;
  }
  return var_3 + -1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) 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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (binary_expression left: (identifier) right: (number_literal))))))

int MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  
  iVar2 = *(int *)PTR_sc_height_0004ece8;
  if (param_1 < 0) {
    param_1 = param_1 + iVar2;
  }
  iVar1 = 1;
  if (0 < param_1) {
    iVar1 = param_1;
  }
  if (iVar2 <= iVar1) {
    iVar1 = iVar2 + -1;
  }
  return iVar1 + -1;
}

