
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void term_invalidate(Terminal *term)

{
  termchar *ptVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  iVar4 = 0;
  if (0 < term->rows) {
    do {
      if (0 < term->cols) {
        iVar3 = 0;
        iVar2 = 0;
        do {
          ptVar1 = term->disptext[iVar4]->chars;
          *(uint *)((int)&ptVar1->attr + iVar3) = *(uint *)((int)&ptVar1->attr + iVar3) | 0x3ffff;
          iVar2 = iVar2 + 1;
          iVar3 = iVar3 + 0xc;
        } while (iVar2 < term->cols);
      }
      iVar4 = iVar4 + 1;
    } while (iVar4 < term->rows);
  }
  term_schedule_update(term);
  return;
}



void term_invalidate(int param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  iVar4 = 0;
  if (0 < *(int *)(param_1 + 0x128)) {
    do {
      if (0 < *(int *)(param_1 + 300)) {
        iVar3 = 0;
        iVar2 = 0;
        do {
          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;
          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;
          iVar2 = iVar2 + 1;
          iVar3 = iVar3 + 0xc;
        } while (iVar2 < *(int *)(param_1 + 300));
      }
      iVar4 = iVar4 + 1;
    } while (iVar4 < *(int *)(param_1 + 0x128));
  }
  FUN_0004a8a0();
  return;
}


lui gp,0x7
addiu gp,gp,0x6f30
addu gp,gp,t9
lw v0,0x128(a0)
blez v0,0x0004e328
_or t1,zero,zero
lui t0,0x3
b 0x0004e2d8
_ori t0,t0,0xffff
addiu t1,t1,0x1
lw v0,0x128(a0)
slt v0,t1,v0
beq v0,zero,0x0004e328
_nop
lw v0,0x12c(a0)
blez v0,0x0004e2c4
_sll a3,t1,0x2
or a2,zero,zero
or a1,zero,zero
lw v0,0x18(a0)
addu v0,v0,a3
lw v0,0x0(v0)
lw v0,0x14(v0)
addu v0,v0,a2
lw v1,0x4(v0)
or v1,v1,t0
sw v1,0x4(v0)
addiu a1,a1,0x1
lw v0,0x12c(a0)
slt v0,a1,v0
bne v0,zero,0x0004e2ec
_addiu a2,a2,0xc
b 0x0004e2c8
_addiu t1,t1,0x1
addiu sp,sp,-0x20
sw ra,0x1c(sp)
sw gp,0x10(sp)
lw t9,-0x7bb0(gp)
addiu t9,t9,-0x5760
bal 0x0004a8a0
_nop
lw gp,0x10(sp)
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "void term_invalidate(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar4 = 0;\n  if (0 < *(int *)(param_1 + 0x128)) {\n    do {\n      if (0 < *(int *)(param_1 + 300)) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < *(int *)(param_1 + 0x128));\n  }\n  FUN_0004a8a0();\n  return;\n}\n\n" (function_definition "void term_invalidate(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar4 = 0;\n  if (0 < *(int *)(param_1 + 0x128)) {\n    do {\n      if (0 < *(int *)(param_1 + 300)) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < *(int *)(param_1 + 0x128));\n  }\n  FUN_0004a8a0();\n  return;\n}" primitive_type (function_declarator "term_invalidate(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  int iVar3;\n  int iVar4;\n  \n  iVar4 = 0;\n  if (0 < *(int *)(param_1 + 0x128)) {\n    do {\n      if (0 < *(int *)(param_1 + 300)) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < *(int *)(param_1 + 0x128));\n  }\n  FUN_0004a8a0();\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 ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (if_statement "if (0 < *(int *)(param_1 + 0x128)) {\n    do {\n      if (0 < *(int *)(param_1 + 300)) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < *(int *)(param_1 + 0x128));\n  }" if (parenthesized_expression "(0 < *(int *)(param_1 + 0x128))" ( (binary_expression "0 < *(int *)(param_1 + 0x128)" number_literal < (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      if (0 < *(int *)(param_1 + 300)) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < *(int *)(param_1 + 0x128));\n  }" { (do_statement "do {\n      if (0 < *(int *)(param_1 + 300)) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < *(int *)(param_1 + 0x128));" do (compound_statement "{\n      if (0 < *(int *)(param_1 + 300)) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));\n      }\n      iVar4 = iVar4 + 1;\n    }" { (if_statement "if (0 < *(int *)(param_1 + 300)) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));\n      }" if (parenthesized_expression "(0 < *(int *)(param_1 + 300))" ( (binary_expression "0 < *(int *)(param_1 + 300)" number_literal < (pointer_expression "*(int *)(param_1 + 300)" * (cast_expression "(int *)(param_1 + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) ))))) )) (compound_statement "{\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));\n      }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));" do (compound_statement "{\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        }" { (expression_statement "iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;" (assignment_expression "iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3" identifier = (binary_expression "*(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3" (pointer_expression "*(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14)" * (cast_expression "(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14)" ( (binary_expression "*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14" (pointer_expression "*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + iVar4 * 4)" ( (binary_expression "*(int *)(param_1 + 0x18) + iVar4 * 4" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) + number_literal) )))) + identifier)) ;) (expression_statement "*(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;" (assignment_expression "*(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff" (pointer_expression "*(uint *)(iVar1 + 4)" * (cast_expression "(uint *)(iVar1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) = (binary_expression "*(uint *)(iVar1 + 4) | 0x3ffff" (pointer_expression "*(uint *)(iVar1 + 4)" * (cast_expression "(uint *)(iVar1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = iVar3 + 0xc;" (assignment_expression "iVar3 = iVar3 + 0xc" identifier = (binary_expression "iVar3 + 0xc" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 < *(int *)(param_1 + 300))" ( (binary_expression "iVar2 < *(int *)(param_1 + 300)" identifier < (pointer_expression "*(int *)(param_1 + 300)" * (cast_expression "(int *)(param_1 + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) ))))) )) ;) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 < *(int *)(param_1 + 0x128))" ( (binary_expression "iVar4 < *(int *)(param_1 + 0x128)" identifier < (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) ))))) )) ;) })) (expression_statement "FUN_0004a8a0();" (call_expression "FUN_0004a8a0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid term_invalidate(Terminal *term)\n\n{\n  termchar *ptVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar4 = 0;\n  if (0 < term->rows) {\n    do {\n      if (0 < term->cols) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          ptVar1 = term->disptext[iVar4]->chars;\n          *(uint *)((int)&ptVar1->attr + iVar3) = *(uint *)((int)&ptVar1->attr + iVar3) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < term->cols);\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < term->rows);\n  }\n  term_schedule_update(term);\n  return;\n}\n\n" comment (function_definition "void term_invalidate(Terminal *term)\n\n{\n  termchar *ptVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar4 = 0;\n  if (0 < term->rows) {\n    do {\n      if (0 < term->cols) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          ptVar1 = term->disptext[iVar4]->chars;\n          *(uint *)((int)&ptVar1->attr + iVar3) = *(uint *)((int)&ptVar1->attr + iVar3) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < term->cols);\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < term->rows);\n  }\n  term_schedule_update(term);\n  return;\n}" primitive_type (function_declarator "term_invalidate(Terminal *term)" identifier (parameter_list "(Terminal *term)" ( (parameter_declaration "Terminal *term" type_identifier (pointer_declarator "*term" * identifier)) ))) (compound_statement "{\n  termchar *ptVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar4 = 0;\n  if (0 < term->rows) {\n    do {\n      if (0 < term->cols) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          ptVar1 = term->disptext[iVar4]->chars;\n          *(uint *)((int)&ptVar1->attr + iVar3) = *(uint *)((int)&ptVar1->attr + iVar3) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < term->cols);\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < term->rows);\n  }\n  term_schedule_update(term);\n  return;\n}" { (declaration "termchar *ptVar1;" type_identifier (pointer_declarator "*ptVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (if_statement "if (0 < term->rows) {\n    do {\n      if (0 < term->cols) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          ptVar1 = term->disptext[iVar4]->chars;\n          *(uint *)((int)&ptVar1->attr + iVar3) = *(uint *)((int)&ptVar1->attr + iVar3) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < term->cols);\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < term->rows);\n  }" if (parenthesized_expression "(0 < term->rows)" ( (binary_expression "0 < term->rows" number_literal < (field_expression "term->rows" identifier -> field_identifier)) )) (compound_statement "{\n    do {\n      if (0 < term->cols) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          ptVar1 = term->disptext[iVar4]->chars;\n          *(uint *)((int)&ptVar1->attr + iVar3) = *(uint *)((int)&ptVar1->attr + iVar3) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < term->cols);\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < term->rows);\n  }" { (do_statement "do {\n      if (0 < term->cols) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          ptVar1 = term->disptext[iVar4]->chars;\n          *(uint *)((int)&ptVar1->attr + iVar3) = *(uint *)((int)&ptVar1->attr + iVar3) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < term->cols);\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < term->rows);" do (compound_statement "{\n      if (0 < term->cols) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          ptVar1 = term->disptext[iVar4]->chars;\n          *(uint *)((int)&ptVar1->attr + iVar3) = *(uint *)((int)&ptVar1->attr + iVar3) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < term->cols);\n      }\n      iVar4 = iVar4 + 1;\n    }" { (if_statement "if (0 < term->cols) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          ptVar1 = term->disptext[iVar4]->chars;\n          *(uint *)((int)&ptVar1->attr + iVar3) = *(uint *)((int)&ptVar1->attr + iVar3) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < term->cols);\n      }" if (parenthesized_expression "(0 < term->cols)" ( (binary_expression "0 < term->cols" number_literal < (field_expression "term->cols" identifier -> field_identifier)) )) (compound_statement "{\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          ptVar1 = term->disptext[iVar4]->chars;\n          *(uint *)((int)&ptVar1->attr + iVar3) = *(uint *)((int)&ptVar1->attr + iVar3) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < term->cols);\n      }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n          ptVar1 = term->disptext[iVar4]->chars;\n          *(uint *)((int)&ptVar1->attr + iVar3) = *(uint *)((int)&ptVar1->attr + iVar3) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < term->cols);" do (compound_statement "{\n          ptVar1 = term->disptext[iVar4]->chars;\n          *(uint *)((int)&ptVar1->attr + iVar3) = *(uint *)((int)&ptVar1->attr + iVar3) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        }" { (expression_statement "ptVar1 = term->disptext[iVar4]->chars;" (assignment_expression "ptVar1 = term->disptext[iVar4]->chars" identifier = (field_expression "term->disptext[iVar4]->chars" (subscript_expression "term->disptext[iVar4]" (field_expression "term->disptext" identifier -> field_identifier) [ identifier ]) -> field_identifier)) ;) (expression_statement "*(uint *)((int)&ptVar1->attr + iVar3) = *(uint *)((int)&ptVar1->attr + iVar3) | 0x3ffff;" (assignment_expression "*(uint *)((int)&ptVar1->attr + iVar3) = *(uint *)((int)&ptVar1->attr + iVar3) | 0x3ffff" (pointer_expression "*(uint *)((int)&ptVar1->attr + iVar3)" * (cast_expression "(uint *)((int)&ptVar1->attr + iVar3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&ptVar1->attr + iVar3)" ( (binary_expression "(int)&ptVar1->attr + iVar3" (cast_expression "(int)&ptVar1->attr" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&ptVar1->attr" & (field_expression "ptVar1->attr" identifier -> field_identifier))) + identifier) )))) = (binary_expression "*(uint *)((int)&ptVar1->attr + iVar3) | 0x3ffff" (pointer_expression "*(uint *)((int)&ptVar1->attr + iVar3)" * (cast_expression "(uint *)((int)&ptVar1->attr + iVar3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&ptVar1->attr + iVar3)" ( (binary_expression "(int)&ptVar1->attr + iVar3" (cast_expression "(int)&ptVar1->attr" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&ptVar1->attr" & (field_expression "ptVar1->attr" identifier -> field_identifier))) + identifier) )))) | number_literal)) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = iVar3 + 0xc;" (assignment_expression "iVar3 = iVar3 + 0xc" identifier = (binary_expression "iVar3 + 0xc" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 < term->cols)" ( (binary_expression "iVar2 < term->cols" identifier < (field_expression "term->cols" identifier -> field_identifier)) )) ;) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 < term->rows)" ( (binary_expression "iVar4 < term->rows" identifier < (field_expression "term->rows" identifier -> field_identifier)) )) ;) })) (expression_statement "term_schedule_update(term);" (call_expression "term_schedule_update(term)" identifier (argument_list "(term)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void term_invalidate(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar4 = 0;\n  if (0 < *(int *)(param_1 + 0x128)) {\n    do {\n      if (0 < *(int *)(param_1 + 300)) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < *(int *)(param_1 + 0x128));\n  }\n  FUN_0004a8a0();\n  return;\n}\n\n" (function_definition "void term_invalidate(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar4 = 0;\n  if (0 < *(int *)(param_1 + 0x128)) {\n    do {\n      if (0 < *(int *)(param_1 + 300)) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < *(int *)(param_1 + 0x128));\n  }\n  FUN_0004a8a0();\n  return;\n}" primitive_type (function_declarator "term_invalidate(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  int iVar3;\n  int iVar4;\n  \n  iVar4 = 0;\n  if (0 < *(int *)(param_1 + 0x128)) {\n    do {\n      if (0 < *(int *)(param_1 + 300)) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < *(int *)(param_1 + 0x128));\n  }\n  FUN_0004a8a0();\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 ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (if_statement "if (0 < *(int *)(param_1 + 0x128)) {\n    do {\n      if (0 < *(int *)(param_1 + 300)) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < *(int *)(param_1 + 0x128));\n  }" if (parenthesized_expression "(0 < *(int *)(param_1 + 0x128))" ( (binary_expression "0 < *(int *)(param_1 + 0x128)" number_literal < (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      if (0 < *(int *)(param_1 + 300)) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < *(int *)(param_1 + 0x128));\n  }" { (do_statement "do {\n      if (0 < *(int *)(param_1 + 300)) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < *(int *)(param_1 + 0x128));" do (compound_statement "{\n      if (0 < *(int *)(param_1 + 300)) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));\n      }\n      iVar4 = iVar4 + 1;\n    }" { (if_statement "if (0 < *(int *)(param_1 + 300)) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));\n      }" if (parenthesized_expression "(0 < *(int *)(param_1 + 300))" ( (binary_expression "0 < *(int *)(param_1 + 300)" number_literal < (pointer_expression "*(int *)(param_1 + 300)" * (cast_expression "(int *)(param_1 + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) ))))) )) (compound_statement "{\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));\n      }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));" do (compound_statement "{\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        }" { (expression_statement "iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;" (assignment_expression "iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3" identifier = (binary_expression "*(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3" (pointer_expression "*(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14)" * (cast_expression "(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14)" ( (binary_expression "*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14" (pointer_expression "*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + iVar4 * 4)" ( (binary_expression "*(int *)(param_1 + 0x18) + iVar4 * 4" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) + number_literal) )))) + identifier)) ;) (expression_statement "*(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;" (assignment_expression "*(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff" (pointer_expression "*(uint *)(iVar1 + 4)" * (cast_expression "(uint *)(iVar1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) = (binary_expression "*(uint *)(iVar1 + 4) | 0x3ffff" (pointer_expression "*(uint *)(iVar1 + 4)" * (cast_expression "(uint *)(iVar1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = iVar3 + 0xc;" (assignment_expression "iVar3 = iVar3 + 0xc" identifier = (binary_expression "iVar3 + 0xc" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 < *(int *)(param_1 + 300))" ( (binary_expression "iVar2 < *(int *)(param_1 + 300)" identifier < (pointer_expression "*(int *)(param_1 + 300)" * (cast_expression "(int *)(param_1 + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) ))))) )) ;) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 < *(int *)(param_1 + 0x128))" ( (binary_expression "iVar4 < *(int *)(param_1 + 0x128)" identifier < (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) ))))) )) ;) })) (expression_statement "FUN_0004a8a0();" (call_expression "FUN_0004a8a0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) )))) + LIT) )))) + IDENT)) ;) (expression_statement (assignment_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 *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void term_invalidate(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar4 = 0;\n  if (0 < *(int *)(param_1 + 0x128)) {\n    do {\n      if (0 < *(int *)(param_1 + 300)) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < *(int *)(param_1 + 0x128));\n  }\n  FUN_0004a8a0();\n  return;\n}" (primitive_type "void") (function_declarator "term_invalidate(int param_1)" (identifier "term_invalidate") (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  int iVar3;\n  int iVar4;\n  \n  iVar4 = 0;\n  if (0 < *(int *)(param_1 + 0x128)) {\n    do {\n      if (0 < *(int *)(param_1 + 300)) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < *(int *)(param_1 + 0x128));\n  }\n  FUN_0004a8a0();\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") (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < *(int *)(param_1 + 0x128)) {\n    do {\n      if (0 < *(int *)(param_1 + 300)) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < *(int *)(param_1 + 0x128));\n  }" (if "if") (parenthesized_expression "(0 < *(int *)(param_1 + 0x128))" (( "(") (binary_expression "0 < *(int *)(param_1 + 0x128)" (number_literal "0") (< "<") (pointer_expression "*(int *)(param_1 + 0x128)" (* "*") (cast_expression "(int *)(param_1 + 0x128)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")"))))) () ")")) (compound_statement "{\n    do {\n      if (0 < *(int *)(param_1 + 300)) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < *(int *)(param_1 + 0x128));\n  }" ({ "{") (do_statement "do {\n      if (0 < *(int *)(param_1 + 300)) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < *(int *)(param_1 + 0x128));" (do "do") (compound_statement "{\n      if (0 < *(int *)(param_1 + 300)) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));\n      }\n      iVar4 = iVar4 + 1;\n    }" ({ "{") (if_statement "if (0 < *(int *)(param_1 + 300)) {\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));\n      }" (if "if") (parenthesized_expression "(0 < *(int *)(param_1 + 300))" (( "(") (binary_expression "0 < *(int *)(param_1 + 300)" (number_literal "0") (< "<") (pointer_expression "*(int *)(param_1 + 300)" (* "*") (cast_expression "(int *)(param_1 + 300)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 300)" (( "(") (binary_expression "param_1 + 300" (identifier "param_1") (+ "+") (number_literal "300")) () ")"))))) () ")")) (compound_statement "{\n        iVar3 = 0;\n        iVar2 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));\n      }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        } while (iVar2 < *(int *)(param_1 + 300));" (do "do") (compound_statement "{\n          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;\n          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;\n          iVar2 = iVar2 + 1;\n          iVar3 = iVar3 + 0xc;\n        }" ({ "{") (expression_statement "iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;" (assignment_expression "iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3" (identifier "iVar1") (= "=") (binary_expression "*(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3" (pointer_expression "*(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14)" (* "*") (cast_expression "(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14)" (( "(") (binary_expression "*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14" (pointer_expression "*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x18) + iVar4 * 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x18) + iVar4 * 4" (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (binary_expression "iVar4 * 4" (identifier "iVar4") (* "*") (number_literal "4"))) () ")")))) (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (identifier "iVar3"))) (; ";")) (expression_statement "*(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;" (assignment_expression "*(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff" (pointer_expression "*(uint *)(iVar1 + 4)" (* "*") (cast_expression "(uint *)(iVar1 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(uint *)(iVar1 + 4) | 0x3ffff" (pointer_expression "*(uint *)(iVar1 + 4)" (* "*") (cast_expression "(uint *)(iVar1 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")")))) (| "|") (number_literal "0x3ffff"))) (; ";")) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar3 = iVar3 + 0xc;" (assignment_expression "iVar3 = iVar3 + 0xc" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 < *(int *)(param_1 + 300))" (( "(") (binary_expression "iVar2 < *(int *)(param_1 + 300)" (identifier "iVar2") (< "<") (pointer_expression "*(int *)(param_1 + 300)" (* "*") (cast_expression "(int *)(param_1 + 300)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 300)" (( "(") (binary_expression "param_1 + 300" (identifier "param_1") (+ "+") (number_literal "300")) () ")"))))) () ")")) (; ";")) (} "}"))) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 < *(int *)(param_1 + 0x128))" (( "(") (binary_expression "iVar4 < *(int *)(param_1 + 0x128)" (identifier "iVar4") (< "<") (pointer_expression "*(int *)(param_1 + 0x128)" (* "*") (cast_expression "(int *)(param_1 + 0x128)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")"))))) () ")")) (; ";")) (} "}"))) (expression_statement "FUN_0004a8a0();" (call_expression "FUN_0004a8a0()" (identifier "FUN_0004a8a0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(type_1 *term)

{
  type_2 *ptVar1;
  int var_2;
  int var_1;
  int var_3;
  
  var_3 = 0;
  if (0 < term->rows) {
    do {
      if (0 < term->cols) {
        var_1 = 0;
        var_2 = 0;
        do {
          ptVar1 = term->disptext[var_3]->chars;
          *(type_3 *)((int)&ptVar1->attr + var_1) = *(type_3 *)((int)&ptVar1->attr + var_1) | 0x3ffff;
          var_2 = var_2 + 1;
          var_1 = var_1 + 0xc;
        } while (var_2 < term->cols);
      }
      var_3 = var_3 + 1;
    } while (var_3 < term->rows);
  }
  var_4(term);
  return;
}


(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)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (do_statement body: (compound_statement (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement 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: (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: (binary_expression left: (identifier) right: (number_literal)))))) 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: (binary_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)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (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)))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (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)))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

void MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  iVar4 = 0;
  if (0 < *(int *)(param_1 + 0x128)) {
    do {
      if (0 < *(int *)(param_1 + 300)) {
        iVar3 = 0;
        iVar2 = 0;
        do {
          iVar1 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar4 * 4) + 0x14) + iVar3;
          *(uint *)(iVar1 + 4) = *(uint *)(iVar1 + 4) | 0x3ffff;
          iVar2 = iVar2 + 1;
          iVar3 = iVar3 + 0xc;
        } while (iVar2 < *(int *)(param_1 + 300));
      }
      iVar4 = iVar4 + 1;
    } while (iVar4 < *(int *)(param_1 + 0x128));
  }
  FUN_0004a8a0();
  return;
}

