
void clear_cc(termline *line,int col)

{
  int origcol;
  int iVar1;
  termchar *ptVar2;
  int iVar3;
  
  if ((-1 < col) && (col < line->cols)) {
    ptVar2 = line->chars;
    iVar1 = ptVar2[col].cc_next + col;
    if (ptVar2[col].cc_next != 0) {
      iVar3 = line->cc_free;
      line->cc_free = iVar1;
      while( true ) {
        if (ptVar2[iVar1].cc_next == 0) break;
        iVar1 = ptVar2[iVar1].cc_next + iVar1;
      }
      if (iVar3 != 0) {
        iVar3 = iVar3 - iVar1;
      }
      ptVar2[iVar1].cc_next = iVar3;
      ptVar2[col].cc_next = 0;
    }
    return;
  }
  (*(code *)PTR___assert_fail_00111f50)
            (PTR_E1_202__001112f8 + 0x5870,PTR_E1_202__001112f8 + 0x5830,0x126,
             PTR_E1_202__001112f8 + 0x63f4);
  return;
}



void FUN_00090ab0(int param_1,int param_2)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  if ((-1 < param_2) && (param_2 < *(int *)(param_1 + 4))) {
    iVar4 = *(int *)(param_1 + 0x14) + param_2 * 0xc;
    iVar2 = *(int *)(iVar4 + 8);
    param_2 = iVar2 + param_2;
    if (iVar2 != 0) {
      iVar2 = *(int *)(param_1 + 0x10);
      *(int *)(param_1 + 0x10) = param_2;
      while( true ) {
        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;
        iVar3 = *(int *)(iVar1 + 8);
        if (iVar3 == 0) break;
        param_2 = iVar3 + param_2;
      }
      if (iVar2 != 0) {
        iVar2 = iVar2 - param_2;
      }
      *(int *)(iVar1 + 8) = iVar2;
      *(undefined4 *)(iVar4 + 8) = 0;
    }
    return;
  }
  (*(code *)PTR___assert_fail_00111f50)
            (PTR_DAT_001112f8 + 0x5870,PTR_DAT_001112f8 + 0x5830,0x126,PTR_DAT_001112f8 + 0x63f4);
  return;
}


lui gp,0x9
addiu gp,gp,-0x7800
addu gp,gp,t9
bltz a1,0x00090b38
_lw a3,-0x7fb8(gp)
lw v0,0x4(a0)
slt v0,a1,v0
beq v0,zero,0x00090b38
_sll a2,a1,0x1
lw a3,0x14(a0)
addu a2,a2,a1
sll a2,a2,0x2
addu a2,a3,a2
lw v1,0x8(a2)
beq v1,zero,0x00090b30
_addu a1,v1,a1
lw t0,0x10(a0)
b 0x00090b00
_sw a1,0x10(a0)
addu a1,v1,a1
sll v0,a1,0x1
addu v0,v0,a1
sll v0,v0,0x2
addu v0,a3,v0
lw v1,0x8(v0)
bne v1,zero,0x00090afc
_nop
beq t0,zero,0x00090b28
_nop
subu t0,t0,a1
sw t0,0x8(v0)
sw zero,0x8(a2)
jr ra
_nop
addiu sp,sp,-0x20
lw a1,-0x7fb8(gp)
li a2,0x126
lw a0,-0x7fb8(gp)
lw t9,-0x7360(gp)
addiu a3,a3,0x63f4
addiu a1,a1,0x5830
sw gp,0x10(sp)
sw ra,0x1c(sp)
jalr t9
_addiu a0,a0,0x5870
(translation_unit "void FUN_00090ab0(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if ((-1 < param_2) && (param_2 < *(int *)(param_1 + 4))) {\n    iVar4 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n    iVar2 = *(int *)(iVar4 + 8);\n    param_2 = iVar2 + param_2;\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      *(int *)(param_1 + 0x10) = param_2;\n      while( true ) {\n        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n        iVar3 = *(int *)(iVar1 + 8);\n        if (iVar3 == 0) break;\n        param_2 = iVar3 + param_2;\n      }\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - param_2;\n      }\n      *(int *)(iVar1 + 8) = iVar2;\n      *(undefined4 *)(iVar4 + 8) = 0;\n    }\n    return;\n  }\n  (*(code *)PTR___assert_fail_00111f50)\n            (PTR_DAT_001112f8 + 0x5870,PTR_DAT_001112f8 + 0x5830,0x126,PTR_DAT_001112f8 + 0x63f4);\n  return;\n}\n\n" (function_definition "void FUN_00090ab0(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if ((-1 < param_2) && (param_2 < *(int *)(param_1 + 4))) {\n    iVar4 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n    iVar2 = *(int *)(iVar4 + 8);\n    param_2 = iVar2 + param_2;\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      *(int *)(param_1 + 0x10) = param_2;\n      while( true ) {\n        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n        iVar3 = *(int *)(iVar1 + 8);\n        if (iVar3 == 0) break;\n        param_2 = iVar3 + param_2;\n      }\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - param_2;\n      }\n      *(int *)(iVar1 + 8) = iVar2;\n      *(undefined4 *)(iVar4 + 8) = 0;\n    }\n    return;\n  }\n  (*(code *)PTR___assert_fail_00111f50)\n            (PTR_DAT_001112f8 + 0x5870,PTR_DAT_001112f8 + 0x5830,0x126,PTR_DAT_001112f8 + 0x63f4);\n  return;\n}" primitive_type (function_declarator "FUN_00090ab0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if ((-1 < param_2) && (param_2 < *(int *)(param_1 + 4))) {\n    iVar4 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n    iVar2 = *(int *)(iVar4 + 8);\n    param_2 = iVar2 + param_2;\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      *(int *)(param_1 + 0x10) = param_2;\n      while( true ) {\n        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n        iVar3 = *(int *)(iVar1 + 8);\n        if (iVar3 == 0) break;\n        param_2 = iVar3 + param_2;\n      }\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - param_2;\n      }\n      *(int *)(iVar1 + 8) = iVar2;\n      *(undefined4 *)(iVar4 + 8) = 0;\n    }\n    return;\n  }\n  (*(code *)PTR___assert_fail_00111f50)\n            (PTR_DAT_001112f8 + 0x5870,PTR_DAT_001112f8 + 0x5830,0x126,PTR_DAT_001112f8 + 0x63f4);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if ((-1 < param_2) && (param_2 < *(int *)(param_1 + 4))) {\n    iVar4 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n    iVar2 = *(int *)(iVar4 + 8);\n    param_2 = iVar2 + param_2;\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      *(int *)(param_1 + 0x10) = param_2;\n      while( true ) {\n        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n        iVar3 = *(int *)(iVar1 + 8);\n        if (iVar3 == 0) break;\n        param_2 = iVar3 + param_2;\n      }\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - param_2;\n      }\n      *(int *)(iVar1 + 8) = iVar2;\n      *(undefined4 *)(iVar4 + 8) = 0;\n    }\n    return;\n  }" if (parenthesized_expression "((-1 < param_2) && (param_2 < *(int *)(param_1 + 4)))" ( (binary_expression "(-1 < param_2) && (param_2 < *(int *)(param_1 + 4))" (parenthesized_expression "(-1 < param_2)" ( (binary_expression "-1 < param_2" number_literal < identifier) )) && (parenthesized_expression "(param_2 < *(int *)(param_1 + 4))" ( (binary_expression "param_2 < *(int *)(param_1 + 4)" identifier < (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ))) )) (compound_statement "{\n    iVar4 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n    iVar2 = *(int *)(iVar4 + 8);\n    param_2 = iVar2 + param_2;\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      *(int *)(param_1 + 0x10) = param_2;\n      while( true ) {\n        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n        iVar3 = *(int *)(iVar1 + 8);\n        if (iVar3 == 0) break;\n        param_2 = iVar3 + param_2;\n      }\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - param_2;\n      }\n      *(int *)(iVar1 + 8) = iVar2;\n      *(undefined4 *)(iVar4 + 8) = 0;\n    }\n    return;\n  }" { (expression_statement "iVar4 = *(int *)(param_1 + 0x14) + param_2 * 0xc;" (assignment_expression "iVar4 = *(int *)(param_1 + 0x14) + param_2 * 0xc" identifier = (binary_expression "*(int *)(param_1 + 0x14) + param_2 * 0xc" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) + (binary_expression "param_2 * 0xc" identifier * number_literal))) ;) (expression_statement "iVar2 = *(int *)(iVar4 + 8);" (assignment_expression "iVar2 = *(int *)(iVar4 + 8)" identifier = (pointer_expression "*(int *)(iVar4 + 8)" * (cast_expression "(int *)(iVar4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) ))))) ;) (expression_statement "param_2 = iVar2 + param_2;" (assignment_expression "param_2 = iVar2 + param_2" identifier = (binary_expression "iVar2 + param_2" identifier + identifier)) ;) (if_statement "if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      *(int *)(param_1 + 0x10) = param_2;\n      while( true ) {\n        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n        iVar3 = *(int *)(iVar1 + 8);\n        if (iVar3 == 0) break;\n        param_2 = iVar3 + param_2;\n      }\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - param_2;\n      }\n      *(int *)(iVar1 + 8) = iVar2;\n      *(undefined4 *)(iVar4 + 8) = 0;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x10);\n      *(int *)(param_1 + 0x10) = param_2;\n      while( true ) {\n        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n        iVar3 = *(int *)(iVar1 + 8);\n        if (iVar3 == 0) break;\n        param_2 = iVar3 + param_2;\n      }\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - param_2;\n      }\n      *(int *)(iVar1 + 8) = iVar2;\n      *(undefined4 *)(iVar4 + 8) = 0;\n    }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x10)" identifier = (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0x10) = param_2;" (assignment_expression "*(int *)(param_1 + 0x10) = param_2" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (while_statement "while( true ) {\n        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n        iVar3 = *(int *)(iVar1 + 8);\n        if (iVar3 == 0) break;\n        param_2 = iVar3 + param_2;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n        iVar3 = *(int *)(iVar1 + 8);\n        if (iVar3 == 0) break;\n        param_2 = iVar3 + param_2;\n      }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc" identifier = (binary_expression "*(int *)(param_1 + 0x14) + param_2 * 0xc" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) + (binary_expression "param_2 * 0xc" identifier * number_literal))) ;) (expression_statement "iVar3 = *(int *)(iVar1 + 8);" (assignment_expression "iVar3 = *(int *)(iVar1 + 8)" identifier = (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "param_2 = iVar3 + param_2;" (assignment_expression "param_2 = iVar3 + param_2" identifier = (binary_expression "iVar3 + param_2" identifier + identifier)) ;) })) (if_statement "if (iVar2 != 0) {\n        iVar2 = iVar2 - param_2;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar2 = iVar2 - param_2;\n      }" { (expression_statement "iVar2 = iVar2 - param_2;" (assignment_expression "iVar2 = iVar2 - param_2" identifier = (binary_expression "iVar2 - param_2" identifier - identifier)) ;) })) (expression_statement "*(int *)(iVar1 + 8) = iVar2;" (assignment_expression "*(int *)(iVar1 + 8) = iVar2" (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar4 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 8)" * (cast_expression "(undefined4 *)(iVar4 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) = number_literal) ;) })) (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR___assert_fail_00111f50)\n            (PTR_DAT_001112f8 + 0x5870,PTR_DAT_001112f8 + 0x5830,0x126,PTR_DAT_001112f8 + 0x63f4);" (call_expression "(*(code *)PTR___assert_fail_00111f50)\n            (PTR_DAT_001112f8 + 0x5870,PTR_DAT_001112f8 + 0x5830,0x126,PTR_DAT_001112f8 + 0x63f4)" (parenthesized_expression "(*(code *)PTR___assert_fail_00111f50)" ( (pointer_expression "*(code *)PTR___assert_fail_00111f50" * (cast_expression "(code *)PTR___assert_fail_00111f50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f8 + 0x5870,PTR_DAT_001112f8 + 0x5830,0x126,PTR_DAT_001112f8 + 0x63f4)" ( (binary_expression "PTR_DAT_001112f8 + 0x5870" identifier + number_literal) , (binary_expression "PTR_DAT_001112f8 + 0x5830" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_001112f8 + 0x63f4" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void clear_cc(termline *line,int col)\n\n{\n  int origcol;\n  int iVar1;\n  termchar *ptVar2;\n  int iVar3;\n  \n  if ((-1 < col) && (col < line->cols)) {\n    ptVar2 = line->chars;\n    iVar1 = ptVar2[col].cc_next + col;\n    if (ptVar2[col].cc_next != 0) {\n      iVar3 = line->cc_free;\n      line->cc_free = iVar1;\n      while( true ) {\n        if (ptVar2[iVar1].cc_next == 0) break;\n        iVar1 = ptVar2[iVar1].cc_next + iVar1;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 - iVar1;\n      }\n      ptVar2[iVar1].cc_next = iVar3;\n      ptVar2[col].cc_next = 0;\n    }\n    return;\n  }\n  (*(code *)PTR___assert_fail_00111f50)\n            (PTR_E1_202__001112f8 + 0x5870,PTR_E1_202__001112f8 + 0x5830,0x126,\n             PTR_E1_202__001112f8 + 0x63f4);\n  return;\n}\n\n" (function_definition "void clear_cc(termline *line,int col)\n\n{\n  int origcol;\n  int iVar1;\n  termchar *ptVar2;\n  int iVar3;\n  \n  if ((-1 < col) && (col < line->cols)) {\n    ptVar2 = line->chars;\n    iVar1 = ptVar2[col].cc_next + col;\n    if (ptVar2[col].cc_next != 0) {\n      iVar3 = line->cc_free;\n      line->cc_free = iVar1;\n      while( true ) {\n        if (ptVar2[iVar1].cc_next == 0) break;\n        iVar1 = ptVar2[iVar1].cc_next + iVar1;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 - iVar1;\n      }\n      ptVar2[iVar1].cc_next = iVar3;\n      ptVar2[col].cc_next = 0;\n    }\n    return;\n  }\n  (*(code *)PTR___assert_fail_00111f50)\n            (PTR_E1_202__001112f8 + 0x5870,PTR_E1_202__001112f8 + 0x5830,0x126,\n             PTR_E1_202__001112f8 + 0x63f4);\n  return;\n}" primitive_type (function_declarator "clear_cc(termline *line,int col)" identifier (parameter_list "(termline *line,int col)" ( (parameter_declaration "termline *line" type_identifier (pointer_declarator "*line" * identifier)) , (parameter_declaration "int col" primitive_type identifier) ))) (compound_statement "{\n  int origcol;\n  int iVar1;\n  termchar *ptVar2;\n  int iVar3;\n  \n  if ((-1 < col) && (col < line->cols)) {\n    ptVar2 = line->chars;\n    iVar1 = ptVar2[col].cc_next + col;\n    if (ptVar2[col].cc_next != 0) {\n      iVar3 = line->cc_free;\n      line->cc_free = iVar1;\n      while( true ) {\n        if (ptVar2[iVar1].cc_next == 0) break;\n        iVar1 = ptVar2[iVar1].cc_next + iVar1;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 - iVar1;\n      }\n      ptVar2[iVar1].cc_next = iVar3;\n      ptVar2[col].cc_next = 0;\n    }\n    return;\n  }\n  (*(code *)PTR___assert_fail_00111f50)\n            (PTR_E1_202__001112f8 + 0x5870,PTR_E1_202__001112f8 + 0x5830,0x126,\n             PTR_E1_202__001112f8 + 0x63f4);\n  return;\n}" { (declaration "int origcol;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "termchar *ptVar2;" type_identifier (pointer_declarator "*ptVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if ((-1 < col) && (col < line->cols)) {\n    ptVar2 = line->chars;\n    iVar1 = ptVar2[col].cc_next + col;\n    if (ptVar2[col].cc_next != 0) {\n      iVar3 = line->cc_free;\n      line->cc_free = iVar1;\n      while( true ) {\n        if (ptVar2[iVar1].cc_next == 0) break;\n        iVar1 = ptVar2[iVar1].cc_next + iVar1;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 - iVar1;\n      }\n      ptVar2[iVar1].cc_next = iVar3;\n      ptVar2[col].cc_next = 0;\n    }\n    return;\n  }" if (parenthesized_expression "((-1 < col) && (col < line->cols))" ( (binary_expression "(-1 < col) && (col < line->cols)" (parenthesized_expression "(-1 < col)" ( (binary_expression "-1 < col" number_literal < identifier) )) && (parenthesized_expression "(col < line->cols)" ( (binary_expression "col < line->cols" identifier < (field_expression "line->cols" identifier -> field_identifier)) ))) )) (compound_statement "{\n    ptVar2 = line->chars;\n    iVar1 = ptVar2[col].cc_next + col;\n    if (ptVar2[col].cc_next != 0) {\n      iVar3 = line->cc_free;\n      line->cc_free = iVar1;\n      while( true ) {\n        if (ptVar2[iVar1].cc_next == 0) break;\n        iVar1 = ptVar2[iVar1].cc_next + iVar1;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 - iVar1;\n      }\n      ptVar2[iVar1].cc_next = iVar3;\n      ptVar2[col].cc_next = 0;\n    }\n    return;\n  }" { (expression_statement "ptVar2 = line->chars;" (assignment_expression "ptVar2 = line->chars" identifier = (field_expression "line->chars" identifier -> field_identifier)) ;) (expression_statement "iVar1 = ptVar2[col].cc_next + col;" (assignment_expression "iVar1 = ptVar2[col].cc_next + col" identifier = (binary_expression "ptVar2[col].cc_next + col" (field_expression "ptVar2[col].cc_next" (subscript_expression "ptVar2[col]" identifier [ identifier ]) . field_identifier) + identifier)) ;) (if_statement "if (ptVar2[col].cc_next != 0) {\n      iVar3 = line->cc_free;\n      line->cc_free = iVar1;\n      while( true ) {\n        if (ptVar2[iVar1].cc_next == 0) break;\n        iVar1 = ptVar2[iVar1].cc_next + iVar1;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 - iVar1;\n      }\n      ptVar2[iVar1].cc_next = iVar3;\n      ptVar2[col].cc_next = 0;\n    }" if (parenthesized_expression "(ptVar2[col].cc_next != 0)" ( (binary_expression "ptVar2[col].cc_next != 0" (field_expression "ptVar2[col].cc_next" (subscript_expression "ptVar2[col]" identifier [ identifier ]) . field_identifier) != number_literal) )) (compound_statement "{\n      iVar3 = line->cc_free;\n      line->cc_free = iVar1;\n      while( true ) {\n        if (ptVar2[iVar1].cc_next == 0) break;\n        iVar1 = ptVar2[iVar1].cc_next + iVar1;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 - iVar1;\n      }\n      ptVar2[iVar1].cc_next = iVar3;\n      ptVar2[col].cc_next = 0;\n    }" { (expression_statement "iVar3 = line->cc_free;" (assignment_expression "iVar3 = line->cc_free" identifier = (field_expression "line->cc_free" identifier -> field_identifier)) ;) (expression_statement "line->cc_free = iVar1;" (assignment_expression "line->cc_free = iVar1" (field_expression "line->cc_free" identifier -> field_identifier) = identifier) ;) (while_statement "while( true ) {\n        if (ptVar2[iVar1].cc_next == 0) break;\n        iVar1 = ptVar2[iVar1].cc_next + iVar1;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if (ptVar2[iVar1].cc_next == 0) break;\n        iVar1 = ptVar2[iVar1].cc_next + iVar1;\n      }" { (if_statement "if (ptVar2[iVar1].cc_next == 0) break;" if (parenthesized_expression "(ptVar2[iVar1].cc_next == 0)" ( (binary_expression "ptVar2[iVar1].cc_next == 0" (field_expression "ptVar2[iVar1].cc_next" (subscript_expression "ptVar2[iVar1]" identifier [ identifier ]) . field_identifier) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = ptVar2[iVar1].cc_next + iVar1;" (assignment_expression "iVar1 = ptVar2[iVar1].cc_next + iVar1" identifier = (binary_expression "ptVar2[iVar1].cc_next + iVar1" (field_expression "ptVar2[iVar1].cc_next" (subscript_expression "ptVar2[iVar1]" identifier [ identifier ]) . field_identifier) + identifier)) ;) })) (if_statement "if (iVar3 != 0) {\n        iVar3 = iVar3 - iVar1;\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar3 = iVar3 - iVar1;\n      }" { (expression_statement "iVar3 = iVar3 - iVar1;" (assignment_expression "iVar3 = iVar3 - iVar1" identifier = (binary_expression "iVar3 - iVar1" identifier - identifier)) ;) })) (expression_statement "ptVar2[iVar1].cc_next = iVar3;" (assignment_expression "ptVar2[iVar1].cc_next = iVar3" (field_expression "ptVar2[iVar1].cc_next" (subscript_expression "ptVar2[iVar1]" identifier [ identifier ]) . field_identifier) = identifier) ;) (expression_statement "ptVar2[col].cc_next = 0;" (assignment_expression "ptVar2[col].cc_next = 0" (field_expression "ptVar2[col].cc_next" (subscript_expression "ptVar2[col]" identifier [ identifier ]) . field_identifier) = number_literal) ;) })) (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR___assert_fail_00111f50)\n            (PTR_E1_202__001112f8 + 0x5870,PTR_E1_202__001112f8 + 0x5830,0x126,\n             PTR_E1_202__001112f8 + 0x63f4);" (call_expression "(*(code *)PTR___assert_fail_00111f50)\n            (PTR_E1_202__001112f8 + 0x5870,PTR_E1_202__001112f8 + 0x5830,0x126,\n             PTR_E1_202__001112f8 + 0x63f4)" (parenthesized_expression "(*(code *)PTR___assert_fail_00111f50)" ( (pointer_expression "*(code *)PTR___assert_fail_00111f50" * (cast_expression "(code *)PTR___assert_fail_00111f50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_E1_202__001112f8 + 0x5870,PTR_E1_202__001112f8 + 0x5830,0x126,\n             PTR_E1_202__001112f8 + 0x63f4)" ( (binary_expression "PTR_E1_202__001112f8 + 0x5870" identifier + number_literal) , (binary_expression "PTR_E1_202__001112f8 + 0x5830" identifier + number_literal) , number_literal , (binary_expression "PTR_E1_202__001112f8 + 0x63f4" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00090ab0(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if ((-1 < param_2) && (param_2 < *(int *)(param_1 + 4))) {\n    iVar4 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n    iVar2 = *(int *)(iVar4 + 8);\n    param_2 = iVar2 + param_2;\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      *(int *)(param_1 + 0x10) = param_2;\n      while( true ) {\n        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n        iVar3 = *(int *)(iVar1 + 8);\n        if (iVar3 == 0) break;\n        param_2 = iVar3 + param_2;\n      }\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - param_2;\n      }\n      *(int *)(iVar1 + 8) = iVar2;\n      *(undefined4 *)(iVar4 + 8) = 0;\n    }\n    return;\n  }\n  (*(code *)PTR___assert_fail_00111f50)\n            (PTR_DAT_001112f8 + 0x5870,PTR_DAT_001112f8 + 0x5830,0x126,PTR_DAT_001112f8 + 0x63f4);\n  return;\n}\n\n" (function_definition "void FUN_00090ab0(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if ((-1 < param_2) && (param_2 < *(int *)(param_1 + 4))) {\n    iVar4 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n    iVar2 = *(int *)(iVar4 + 8);\n    param_2 = iVar2 + param_2;\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      *(int *)(param_1 + 0x10) = param_2;\n      while( true ) {\n        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n        iVar3 = *(int *)(iVar1 + 8);\n        if (iVar3 == 0) break;\n        param_2 = iVar3 + param_2;\n      }\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - param_2;\n      }\n      *(int *)(iVar1 + 8) = iVar2;\n      *(undefined4 *)(iVar4 + 8) = 0;\n    }\n    return;\n  }\n  (*(code *)PTR___assert_fail_00111f50)\n            (PTR_DAT_001112f8 + 0x5870,PTR_DAT_001112f8 + 0x5830,0x126,PTR_DAT_001112f8 + 0x63f4);\n  return;\n}" primitive_type (function_declarator "FUN_00090ab0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if ((-1 < param_2) && (param_2 < *(int *)(param_1 + 4))) {\n    iVar4 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n    iVar2 = *(int *)(iVar4 + 8);\n    param_2 = iVar2 + param_2;\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      *(int *)(param_1 + 0x10) = param_2;\n      while( true ) {\n        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n        iVar3 = *(int *)(iVar1 + 8);\n        if (iVar3 == 0) break;\n        param_2 = iVar3 + param_2;\n      }\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - param_2;\n      }\n      *(int *)(iVar1 + 8) = iVar2;\n      *(undefined4 *)(iVar4 + 8) = 0;\n    }\n    return;\n  }\n  (*(code *)PTR___assert_fail_00111f50)\n            (PTR_DAT_001112f8 + 0x5870,PTR_DAT_001112f8 + 0x5830,0x126,PTR_DAT_001112f8 + 0x63f4);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if ((-1 < param_2) && (param_2 < *(int *)(param_1 + 4))) {\n    iVar4 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n    iVar2 = *(int *)(iVar4 + 8);\n    param_2 = iVar2 + param_2;\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      *(int *)(param_1 + 0x10) = param_2;\n      while( true ) {\n        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n        iVar3 = *(int *)(iVar1 + 8);\n        if (iVar3 == 0) break;\n        param_2 = iVar3 + param_2;\n      }\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - param_2;\n      }\n      *(int *)(iVar1 + 8) = iVar2;\n      *(undefined4 *)(iVar4 + 8) = 0;\n    }\n    return;\n  }" if (parenthesized_expression "((-1 < param_2) && (param_2 < *(int *)(param_1 + 4)))" ( (binary_expression "(-1 < param_2) && (param_2 < *(int *)(param_1 + 4))" (parenthesized_expression "(-1 < param_2)" ( (binary_expression "-1 < param_2" number_literal < identifier) )) && (parenthesized_expression "(param_2 < *(int *)(param_1 + 4))" ( (binary_expression "param_2 < *(int *)(param_1 + 4)" identifier < (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ))) )) (compound_statement "{\n    iVar4 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n    iVar2 = *(int *)(iVar4 + 8);\n    param_2 = iVar2 + param_2;\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      *(int *)(param_1 + 0x10) = param_2;\n      while( true ) {\n        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n        iVar3 = *(int *)(iVar1 + 8);\n        if (iVar3 == 0) break;\n        param_2 = iVar3 + param_2;\n      }\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - param_2;\n      }\n      *(int *)(iVar1 + 8) = iVar2;\n      *(undefined4 *)(iVar4 + 8) = 0;\n    }\n    return;\n  }" { (expression_statement "iVar4 = *(int *)(param_1 + 0x14) + param_2 * 0xc;" (assignment_expression "iVar4 = *(int *)(param_1 + 0x14) + param_2 * 0xc" identifier = (binary_expression "*(int *)(param_1 + 0x14) + param_2 * 0xc" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) + (binary_expression "param_2 * 0xc" identifier * number_literal))) ;) (expression_statement "iVar2 = *(int *)(iVar4 + 8);" (assignment_expression "iVar2 = *(int *)(iVar4 + 8)" identifier = (pointer_expression "*(int *)(iVar4 + 8)" * (cast_expression "(int *)(iVar4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) ))))) ;) (expression_statement "param_2 = iVar2 + param_2;" (assignment_expression "param_2 = iVar2 + param_2" identifier = (binary_expression "iVar2 + param_2" identifier + identifier)) ;) (if_statement "if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      *(int *)(param_1 + 0x10) = param_2;\n      while( true ) {\n        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n        iVar3 = *(int *)(iVar1 + 8);\n        if (iVar3 == 0) break;\n        param_2 = iVar3 + param_2;\n      }\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - param_2;\n      }\n      *(int *)(iVar1 + 8) = iVar2;\n      *(undefined4 *)(iVar4 + 8) = 0;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x10);\n      *(int *)(param_1 + 0x10) = param_2;\n      while( true ) {\n        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n        iVar3 = *(int *)(iVar1 + 8);\n        if (iVar3 == 0) break;\n        param_2 = iVar3 + param_2;\n      }\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - param_2;\n      }\n      *(int *)(iVar1 + 8) = iVar2;\n      *(undefined4 *)(iVar4 + 8) = 0;\n    }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x10)" identifier = (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0x10) = param_2;" (assignment_expression "*(int *)(param_1 + 0x10) = param_2" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (while_statement "while( true ) {\n        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n        iVar3 = *(int *)(iVar1 + 8);\n        if (iVar3 == 0) break;\n        param_2 = iVar3 + param_2;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n        iVar3 = *(int *)(iVar1 + 8);\n        if (iVar3 == 0) break;\n        param_2 = iVar3 + param_2;\n      }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc" identifier = (binary_expression "*(int *)(param_1 + 0x14) + param_2 * 0xc" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) + (binary_expression "param_2 * 0xc" identifier * number_literal))) ;) (expression_statement "iVar3 = *(int *)(iVar1 + 8);" (assignment_expression "iVar3 = *(int *)(iVar1 + 8)" identifier = (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "param_2 = iVar3 + param_2;" (assignment_expression "param_2 = iVar3 + param_2" identifier = (binary_expression "iVar3 + param_2" identifier + identifier)) ;) })) (if_statement "if (iVar2 != 0) {\n        iVar2 = iVar2 - param_2;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar2 = iVar2 - param_2;\n      }" { (expression_statement "iVar2 = iVar2 - param_2;" (assignment_expression "iVar2 = iVar2 - param_2" identifier = (binary_expression "iVar2 - param_2" identifier - identifier)) ;) })) (expression_statement "*(int *)(iVar1 + 8) = iVar2;" (assignment_expression "*(int *)(iVar1 + 8) = iVar2" (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar4 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 8)" * (cast_expression "(undefined4 *)(iVar4 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) = number_literal) ;) })) (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR___assert_fail_00111f50)\n            (PTR_DAT_001112f8 + 0x5870,PTR_DAT_001112f8 + 0x5830,0x126,PTR_DAT_001112f8 + 0x63f4);" (call_expression "(*(code *)PTR___assert_fail_00111f50)\n            (PTR_DAT_001112f8 + 0x5870,PTR_DAT_001112f8 + 0x5830,0x126,PTR_DAT_001112f8 + 0x63f4)" (parenthesized_expression "(*(code *)PTR___assert_fail_00111f50)" ( (pointer_expression "*(code *)PTR___assert_fail_00111f50" * (cast_expression "(code *)PTR___assert_fail_00111f50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f8 + 0x5870,PTR_DAT_001112f8 + 0x5830,0x126,PTR_DAT_001112f8 + 0x63f4)" ( (binary_expression "PTR_DAT_001112f8 + 0x5870" identifier + number_literal) , (binary_expression "PTR_DAT_001112f8 + 0x5830" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_001112f8 + 0x63f4" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT))) ;) (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 == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (return_statement return ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00090ab0(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if ((-1 < param_2) && (param_2 < *(int *)(param_1 + 4))) {\n    iVar4 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n    iVar2 = *(int *)(iVar4 + 8);\n    param_2 = iVar2 + param_2;\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      *(int *)(param_1 + 0x10) = param_2;\n      while( true ) {\n        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n        iVar3 = *(int *)(iVar1 + 8);\n        if (iVar3 == 0) break;\n        param_2 = iVar3 + param_2;\n      }\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - param_2;\n      }\n      *(int *)(iVar1 + 8) = iVar2;\n      *(undefined4 *)(iVar4 + 8) = 0;\n    }\n    return;\n  }\n  (*(code *)PTR___assert_fail_00111f50)\n            (PTR_DAT_001112f8 + 0x5870,PTR_DAT_001112f8 + 0x5830,0x126,PTR_DAT_001112f8 + 0x63f4);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00090ab0(int param_1,int param_2)" (identifier "FUN_00090ab0") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if ((-1 < param_2) && (param_2 < *(int *)(param_1 + 4))) {\n    iVar4 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n    iVar2 = *(int *)(iVar4 + 8);\n    param_2 = iVar2 + param_2;\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      *(int *)(param_1 + 0x10) = param_2;\n      while( true ) {\n        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n        iVar3 = *(int *)(iVar1 + 8);\n        if (iVar3 == 0) break;\n        param_2 = iVar3 + param_2;\n      }\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - param_2;\n      }\n      *(int *)(iVar1 + 8) = iVar2;\n      *(undefined4 *)(iVar4 + 8) = 0;\n    }\n    return;\n  }\n  (*(code *)PTR___assert_fail_00111f50)\n            (PTR_DAT_001112f8 + 0x5870,PTR_DAT_001112f8 + 0x5830,0x126,PTR_DAT_001112f8 + 0x63f4);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (if_statement "if ((-1 < param_2) && (param_2 < *(int *)(param_1 + 4))) {\n    iVar4 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n    iVar2 = *(int *)(iVar4 + 8);\n    param_2 = iVar2 + param_2;\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      *(int *)(param_1 + 0x10) = param_2;\n      while( true ) {\n        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n        iVar3 = *(int *)(iVar1 + 8);\n        if (iVar3 == 0) break;\n        param_2 = iVar3 + param_2;\n      }\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - param_2;\n      }\n      *(int *)(iVar1 + 8) = iVar2;\n      *(undefined4 *)(iVar4 + 8) = 0;\n    }\n    return;\n  }" (if "if") (parenthesized_expression "((-1 < param_2) && (param_2 < *(int *)(param_1 + 4)))" (( "(") (binary_expression "(-1 < param_2) && (param_2 < *(int *)(param_1 + 4))" (parenthesized_expression "(-1 < param_2)" (( "(") (binary_expression "-1 < param_2" (number_literal "-1") (< "<") (identifier "param_2")) () ")")) (&& "&&") (parenthesized_expression "(param_2 < *(int *)(param_1 + 4))" (( "(") (binary_expression "param_2 < *(int *)(param_1 + 4)" (identifier "param_2") (< "<") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) () ")"))) () ")")) (compound_statement "{\n    iVar4 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n    iVar2 = *(int *)(iVar4 + 8);\n    param_2 = iVar2 + param_2;\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      *(int *)(param_1 + 0x10) = param_2;\n      while( true ) {\n        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n        iVar3 = *(int *)(iVar1 + 8);\n        if (iVar3 == 0) break;\n        param_2 = iVar3 + param_2;\n      }\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - param_2;\n      }\n      *(int *)(iVar1 + 8) = iVar2;\n      *(undefined4 *)(iVar4 + 8) = 0;\n    }\n    return;\n  }" ({ "{") (expression_statement "iVar4 = *(int *)(param_1 + 0x14) + param_2 * 0xc;" (assignment_expression "iVar4 = *(int *)(param_1 + 0x14) + param_2 * 0xc" (identifier "iVar4") (= "=") (binary_expression "*(int *)(param_1 + 0x14) + param_2 * 0xc" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (binary_expression "param_2 * 0xc" (identifier "param_2") (* "*") (number_literal "0xc")))) (; ";")) (expression_statement "iVar2 = *(int *)(iVar4 + 8);" (assignment_expression "iVar2 = *(int *)(iVar4 + 8)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar4 + 8)" (* "*") (cast_expression "(int *)(iVar4 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 8)" (( "(") (binary_expression "iVar4 + 8" (identifier "iVar4") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "param_2 = iVar2 + param_2;" (assignment_expression "param_2 = iVar2 + param_2" (identifier "param_2") (= "=") (binary_expression "iVar2 + param_2" (identifier "iVar2") (+ "+") (identifier "param_2"))) (; ";")) (if_statement "if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      *(int *)(param_1 + 0x10) = param_2;\n      while( true ) {\n        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n        iVar3 = *(int *)(iVar1 + 8);\n        if (iVar3 == 0) break;\n        param_2 = iVar3 + param_2;\n      }\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - param_2;\n      }\n      *(int *)(iVar1 + 8) = iVar2;\n      *(undefined4 *)(iVar4 + 8) = 0;\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x10);\n      *(int *)(param_1 + 0x10) = param_2;\n      while( true ) {\n        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n        iVar3 = *(int *)(iVar1 + 8);\n        if (iVar3 == 0) break;\n        param_2 = iVar3 + param_2;\n      }\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - param_2;\n      }\n      *(int *)(iVar1 + 8) = iVar2;\n      *(undefined4 *)(iVar4 + 8) = 0;\n    }" ({ "{") (expression_statement "iVar2 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x10)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "*(int *)(param_1 + 0x10) = param_2;" (assignment_expression "*(int *)(param_1 + 0x10) = param_2" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (while_statement "while( true ) {\n        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n        iVar3 = *(int *)(iVar1 + 8);\n        if (iVar3 == 0) break;\n        param_2 = iVar3 + param_2;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;\n        iVar3 = *(int *)(iVar1 + 8);\n        if (iVar3 == 0) break;\n        param_2 = iVar3 + param_2;\n      }" ({ "{") (expression_statement "iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc" (identifier "iVar1") (= "=") (binary_expression "*(int *)(param_1 + 0x14) + param_2 * 0xc" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (binary_expression "param_2 * 0xc" (identifier "param_2") (* "*") (number_literal "0xc")))) (; ";")) (expression_statement "iVar3 = *(int *)(iVar1 + 8);" (assignment_expression "iVar3 = *(int *)(iVar1 + 8)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar1 + 8)" (* "*") (cast_expression "(int *)(iVar1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (iVar3 == 0) break;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "param_2 = iVar3 + param_2;" (assignment_expression "param_2 = iVar3 + param_2" (identifier "param_2") (= "=") (binary_expression "iVar3 + param_2" (identifier "iVar3") (+ "+") (identifier "param_2"))) (; ";")) (} "}"))) (if_statement "if (iVar2 != 0) {\n        iVar2 = iVar2 - param_2;\n      }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar2 = iVar2 - param_2;\n      }" ({ "{") (expression_statement "iVar2 = iVar2 - param_2;" (assignment_expression "iVar2 = iVar2 - param_2" (identifier "iVar2") (= "=") (binary_expression "iVar2 - param_2" (identifier "iVar2") (- "-") (identifier "param_2"))) (; ";")) (} "}"))) (expression_statement "*(int *)(iVar1 + 8) = iVar2;" (assignment_expression "*(int *)(iVar1 + 8) = iVar2" (pointer_expression "*(int *)(iVar1 + 8)" (* "*") (cast_expression "(int *)(iVar1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*(undefined4 *)(iVar4 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 8)" (( "(") (binary_expression "iVar4 + 8" (identifier "iVar4") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR___assert_fail_00111f50)\n            (PTR_DAT_001112f8 + 0x5870,PTR_DAT_001112f8 + 0x5830,0x126,PTR_DAT_001112f8 + 0x63f4);" (call_expression "(*(code *)PTR___assert_fail_00111f50)\n            (PTR_DAT_001112f8 + 0x5870,PTR_DAT_001112f8 + 0x5830,0x126,PTR_DAT_001112f8 + 0x63f4)" (parenthesized_expression "(*(code *)PTR___assert_fail_00111f50)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_00111f50" (* "*") (cast_expression "(code *)PTR___assert_fail_00111f50" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_00111f50"))) () ")")) (argument_list "(PTR_DAT_001112f8 + 0x5870,PTR_DAT_001112f8 + 0x5830,0x126,PTR_DAT_001112f8 + 0x63f4)" (( "(") (binary_expression "PTR_DAT_001112f8 + 0x5870" (identifier "PTR_DAT_001112f8") (+ "+") (number_literal "0x5870")) (, ",") (binary_expression "PTR_DAT_001112f8 + 0x5830" (identifier "PTR_DAT_001112f8") (+ "+") (number_literal "0x5830")) (, ",") (number_literal "0x126") (, ",") (binary_expression "PTR_DAT_001112f8 + 0x63f4" (identifier "PTR_DAT_001112f8") (+ "+") (number_literal "0x63f4")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (parenthesized_expression (binary_expression left: (identifier) right: (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))))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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))))))) (expression_statement (assignment_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: (identifier))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (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: (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: (identifier))) (expression_statement (assignment_expression left: (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))))) right: (number_literal))))) (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 (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal))))) (return_statement))))

void MASKED(int param_1,int param_2)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  if ((-1 < param_2) && (param_2 < *(int *)(param_1 + 4))) {
    iVar4 = *(int *)(param_1 + 0x14) + param_2 * 0xc;
    iVar2 = *(int *)(iVar4 + 8);
    param_2 = iVar2 + param_2;
    if (iVar2 != 0) {
      iVar2 = *(int *)(param_1 + 0x10);
      *(int *)(param_1 + 0x10) = param_2;
      while( true ) {
        iVar1 = *(int *)(param_1 + 0x14) + param_2 * 0xc;
        iVar3 = *(int *)(iVar1 + 8);
        if (iVar3 == 0) break;
        param_2 = iVar3 + param_2;
      }
      if (iVar2 != 0) {
        iVar2 = iVar2 - param_2;
      }
      *(int *)(iVar1 + 8) = iVar2;
      *(undefined4 *)(iVar4 + 8) = 0;
    }
    return;
  }
  (*(code *)PTR___assert_fail_00111f50)
            (PTR_DAT_001112f8 + 0x5870,PTR_DAT_001112f8 + 0x5830,0x126,PTR_DAT_001112f8 + 0x63f4);
  return;
}

