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

void term_invalidate(Terminal *term)

{
  int iVar1;
  int iVar2;
  termchar *ptVar3;
  ulong *puVar4;
  int iVar5;
  
  iVar1 = term->rows;
  if (0 < iVar1) {
    iVar2 = term->cols;
    iVar5 = 0;
    do {
      if (0 < iVar2) {
        ptVar3 = term->disptext[iVar5]->chars;
        puVar4 = &ptVar3->attr;
        do {
          *puVar4 = *puVar4 | 0x3ffff;
          puVar4 = puVar4 + 3;
        } while (&ptVar3[iVar2].attr != puVar4);
      }
      iVar5 = iVar5 + 1;
    } while (iVar5 != iVar1);
  }
  if (term->window_update_pending != 0) {
    return;
  }
  term_schedule_update(term);
  return;
}



void FUN_00036450(int param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  uint *puVar4;
  int iVar5;
  
  iVar1 = *(int *)(param_1 + 0x128);
  if (0 < iVar1) {
    iVar2 = *(int *)(param_1 + 300);
    iVar5 = 0;
    do {
      if (0 < iVar2) {
        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);
        puVar4 = (uint *)(iVar3 + 4);
        do {
          *puVar4 = *puVar4 | 0x3ffff;
          puVar4 = puVar4 + 3;
        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);
      }
      iVar5 = iVar5 + 1;
    } while (iVar5 != iVar1);
  }
  if (*(int *)(param_1 + 0x109c) != 0) {
    return;
  }
  FUN_00032ca0();
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
MOV EAX,dword ptr [ESP + 0x14]
MOV EDI,dword ptr [EAX + 0x128]
TEST EDI,EDI
JLE 0x000364a4
MOV ESI,dword ptr [EAX + 0x12c]
XOR EBX,EBX
LEA EDX,[ESI + ESI*0x2]
LEA EBP,[EDX*0x4 + 0x4]
LEA ESI,[ESI]
TEST ESI,ESI
JLE 0x0003649d
MOV EDX,dword ptr [EAX + 0x18]
MOV EDX,dword ptr [EDX + EBX*0x4]
MOV ECX,dword ptr [EDX + 0x14]
LEA EDX,[ECX + 0x4]
ADD ECX,EBP
LEA ESI,[ESI]
OR dword ptr [EDX],0x3ffff
ADD EDX,0xc
CMP ECX,EDX
JNZ 0x00036490
ADD EBX,0x1
CMP EBX,EDI
JNZ 0x00036478
MOV EDX,dword ptr [EAX + 0x109c]
TEST EDX,EDX
JZ 0x000364b3
POP EBX
POP ESI
POP EDI
POP EBP
RET
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x00032ca0
(translation_unit "void FUN_00036450(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  uint *puVar4;\n  int iVar5;\n  \n  iVar1 = *(int *)(param_1 + 0x128);\n  if (0 < iVar1) {\n    iVar2 = *(int *)(param_1 + 300);\n    iVar5 = 0;\n    do {\n      if (0 < iVar2) {\n        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);\n        puVar4 = (uint *)(iVar3 + 4);\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != iVar1);\n  }\n  if (*(int *)(param_1 + 0x109c) != 0) {\n    return;\n  }\n  FUN_00032ca0();\n  return;\n}\n\n" (function_definition "void FUN_00036450(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  uint *puVar4;\n  int iVar5;\n  \n  iVar1 = *(int *)(param_1 + 0x128);\n  if (0 < iVar1) {\n    iVar2 = *(int *)(param_1 + 300);\n    iVar5 = 0;\n    do {\n      if (0 < iVar2) {\n        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);\n        puVar4 = (uint *)(iVar3 + 4);\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != iVar1);\n  }\n  if (*(int *)(param_1 + 0x109c) != 0) {\n    return;\n  }\n  FUN_00032ca0();\n  return;\n}" primitive_type (function_declarator "FUN_00036450(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  uint *puVar4;\n  int iVar5;\n  \n  iVar1 = *(int *)(param_1 + 0x128);\n  if (0 < iVar1) {\n    iVar2 = *(int *)(param_1 + 300);\n    iVar5 = 0;\n    do {\n      if (0 < iVar2) {\n        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);\n        puVar4 = (uint *)(iVar3 + 4);\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != iVar1);\n  }\n  if (*(int *)(param_1 + 0x109c) != 0) {\n    return;\n  }\n  FUN_00032ca0();\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x128);" (assignment_expression "iVar1 = *(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) ))))) ;) (if_statement "if (0 < iVar1) {\n    iVar2 = *(int *)(param_1 + 300);\n    iVar5 = 0;\n    do {\n      if (0 < iVar2) {\n        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);\n        puVar4 = (uint *)(iVar3 + 4);\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != iVar1);\n  }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n    iVar2 = *(int *)(param_1 + 300);\n    iVar5 = 0;\n    do {\n      if (0 < iVar2) {\n        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);\n        puVar4 = (uint *)(iVar3 + 4);\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != iVar1);\n  }" { (expression_statement "iVar2 = *(int *)(param_1 + 300);" (assignment_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 "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (0 < iVar2) {\n        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);\n        puVar4 = (uint *)(iVar3 + 4);\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != iVar1);" do (compound_statement "{\n      if (0 < iVar2) {\n        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);\n        puVar4 = (uint *)(iVar3 + 4);\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    }" { (if_statement "if (0 < iVar2) {\n        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);\n        puVar4 = (uint *)(iVar3 + 4);\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);\n      }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);\n        puVar4 = (uint *)(iVar3 + 4);\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);\n      }" { (expression_statement "iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);" (assignment_expression "iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14)" identifier = (pointer_expression "*(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14)" * (cast_expression "(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14)" ( (binary_expression "*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14" (pointer_expression "*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + iVar5 * 4)" ( (binary_expression "*(int *)(param_1 + 0x18) + iVar5 * 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 "iVar5 * 4" identifier * number_literal)) )))) + number_literal) ))))) ;) (expression_statement "puVar4 = (uint *)(iVar3 + 4);" (assignment_expression "puVar4 = (uint *)(iVar3 + 4)" identifier = (cast_expression "(uint *)(iVar3 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) ;) (do_statement "do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);" do (compound_statement "{\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        }" { (expression_statement "*puVar4 = *puVar4 | 0x3ffff;" (assignment_expression "*puVar4 = *puVar4 | 0x3ffff" (pointer_expression "*puVar4" * identifier) = (binary_expression "*puVar4 | 0x3ffff" (pointer_expression "*puVar4" * identifier) | number_literal)) ;) (expression_statement "puVar4 = puVar4 + 3;" (assignment_expression "puVar4 = puVar4 + 3" identifier = (binary_expression "puVar4 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4)" ( (binary_expression "(uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4" (cast_expression "(uint *)(iVar3 + iVar2 * 0xc + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar2 * 0xc + 4)" ( (binary_expression "iVar3 + iVar2 * 0xc + 4" (binary_expression "iVar3 + iVar2 * 0xc" identifier + (binary_expression "iVar2 * 0xc" identifier * number_literal)) + number_literal) ))) != identifier) )) ;) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != iVar1)" ( (binary_expression "iVar5 != iVar1" identifier != identifier) )) ;) })) (if_statement "if (*(int *)(param_1 + 0x109c) != 0) {\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x109c) != 0)" ( (binary_expression "*(int *)(param_1 + 0x109c) != 0" (pointer_expression "*(int *)(param_1 + 0x109c)" * (cast_expression "(int *)(param_1 + 0x109c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x109c)" ( (binary_expression "param_1 + 0x109c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00032ca0();" (call_expression "FUN_00032ca0()" 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  int iVar1;\n  int iVar2;\n  termchar *ptVar3;\n  ulong *puVar4;\n  int iVar5;\n  \n  iVar1 = term->rows;\n  if (0 < iVar1) {\n    iVar2 = term->cols;\n    iVar5 = 0;\n    do {\n      if (0 < iVar2) {\n        ptVar3 = term->disptext[iVar5]->chars;\n        puVar4 = &ptVar3->attr;\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while (&ptVar3[iVar2].attr != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != iVar1);\n  }\n  if (term->window_update_pending != 0) {\n    return;\n  }\n  term_schedule_update(term);\n  return;\n}\n\n" comment (function_definition "void term_invalidate(Terminal *term)\n\n{\n  int iVar1;\n  int iVar2;\n  termchar *ptVar3;\n  ulong *puVar4;\n  int iVar5;\n  \n  iVar1 = term->rows;\n  if (0 < iVar1) {\n    iVar2 = term->cols;\n    iVar5 = 0;\n    do {\n      if (0 < iVar2) {\n        ptVar3 = term->disptext[iVar5]->chars;\n        puVar4 = &ptVar3->attr;\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while (&ptVar3[iVar2].attr != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != iVar1);\n  }\n  if (term->window_update_pending != 0) {\n    return;\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  int iVar1;\n  int iVar2;\n  termchar *ptVar3;\n  ulong *puVar4;\n  int iVar5;\n  \n  iVar1 = term->rows;\n  if (0 < iVar1) {\n    iVar2 = term->cols;\n    iVar5 = 0;\n    do {\n      if (0 < iVar2) {\n        ptVar3 = term->disptext[iVar5]->chars;\n        puVar4 = &ptVar3->attr;\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while (&ptVar3[iVar2].attr != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != iVar1);\n  }\n  if (term->window_update_pending != 0) {\n    return;\n  }\n  term_schedule_update(term);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "termchar *ptVar3;" type_identifier (pointer_declarator "*ptVar3" * identifier) ;) (declaration "ulong *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar1 = term->rows;" (assignment_expression "iVar1 = term->rows" identifier = (field_expression "term->rows" identifier -> field_identifier)) ;) (if_statement "if (0 < iVar1) {\n    iVar2 = term->cols;\n    iVar5 = 0;\n    do {\n      if (0 < iVar2) {\n        ptVar3 = term->disptext[iVar5]->chars;\n        puVar4 = &ptVar3->attr;\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while (&ptVar3[iVar2].attr != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != iVar1);\n  }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n    iVar2 = term->cols;\n    iVar5 = 0;\n    do {\n      if (0 < iVar2) {\n        ptVar3 = term->disptext[iVar5]->chars;\n        puVar4 = &ptVar3->attr;\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while (&ptVar3[iVar2].attr != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != iVar1);\n  }" { (expression_statement "iVar2 = term->cols;" (assignment_expression "iVar2 = term->cols" identifier = (field_expression "term->cols" identifier -> field_identifier)) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (0 < iVar2) {\n        ptVar3 = term->disptext[iVar5]->chars;\n        puVar4 = &ptVar3->attr;\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while (&ptVar3[iVar2].attr != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != iVar1);" do (compound_statement "{\n      if (0 < iVar2) {\n        ptVar3 = term->disptext[iVar5]->chars;\n        puVar4 = &ptVar3->attr;\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while (&ptVar3[iVar2].attr != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    }" { (if_statement "if (0 < iVar2) {\n        ptVar3 = term->disptext[iVar5]->chars;\n        puVar4 = &ptVar3->attr;\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while (&ptVar3[iVar2].attr != puVar4);\n      }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n        ptVar3 = term->disptext[iVar5]->chars;\n        puVar4 = &ptVar3->attr;\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while (&ptVar3[iVar2].attr != puVar4);\n      }" { (expression_statement "ptVar3 = term->disptext[iVar5]->chars;" (assignment_expression "ptVar3 = term->disptext[iVar5]->chars" identifier = (field_expression "term->disptext[iVar5]->chars" (subscript_expression "term->disptext[iVar5]" (field_expression "term->disptext" identifier -> field_identifier) [ identifier ]) -> field_identifier)) ;) (expression_statement "puVar4 = &ptVar3->attr;" (assignment_expression "puVar4 = &ptVar3->attr" identifier = (pointer_expression "&ptVar3->attr" & (field_expression "ptVar3->attr" identifier -> field_identifier))) ;) (do_statement "do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while (&ptVar3[iVar2].attr != puVar4);" do (compound_statement "{\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        }" { (expression_statement "*puVar4 = *puVar4 | 0x3ffff;" (assignment_expression "*puVar4 = *puVar4 | 0x3ffff" (pointer_expression "*puVar4" * identifier) = (binary_expression "*puVar4 | 0x3ffff" (pointer_expression "*puVar4" * identifier) | number_literal)) ;) (expression_statement "puVar4 = puVar4 + 3;" (assignment_expression "puVar4 = puVar4 + 3" identifier = (binary_expression "puVar4 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "(&ptVar3[iVar2].attr != puVar4)" ( (binary_expression "&ptVar3[iVar2].attr != puVar4" (pointer_expression "&ptVar3[iVar2].attr" & (field_expression "ptVar3[iVar2].attr" (subscript_expression "ptVar3[iVar2]" identifier [ identifier ]) . field_identifier)) != identifier) )) ;) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != iVar1)" ( (binary_expression "iVar5 != iVar1" identifier != identifier) )) ;) })) (if_statement "if (term->window_update_pending != 0) {\n    return;\n  }" if (parenthesized_expression "(term->window_update_pending != 0)" ( (binary_expression "term->window_update_pending != 0" (field_expression "term->window_update_pending" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "term_schedule_update(term);" (call_expression "term_schedule_update(term)" identifier (argument_list "(term)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00036450(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  uint *puVar4;\n  int iVar5;\n  \n  iVar1 = *(int *)(param_1 + 0x128);\n  if (0 < iVar1) {\n    iVar2 = *(int *)(param_1 + 300);\n    iVar5 = 0;\n    do {\n      if (0 < iVar2) {\n        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);\n        puVar4 = (uint *)(iVar3 + 4);\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != iVar1);\n  }\n  if (*(int *)(param_1 + 0x109c) != 0) {\n    return;\n  }\n  FUN_00032ca0();\n  return;\n}\n\n" (function_definition "void FUN_00036450(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  uint *puVar4;\n  int iVar5;\n  \n  iVar1 = *(int *)(param_1 + 0x128);\n  if (0 < iVar1) {\n    iVar2 = *(int *)(param_1 + 300);\n    iVar5 = 0;\n    do {\n      if (0 < iVar2) {\n        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);\n        puVar4 = (uint *)(iVar3 + 4);\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != iVar1);\n  }\n  if (*(int *)(param_1 + 0x109c) != 0) {\n    return;\n  }\n  FUN_00032ca0();\n  return;\n}" primitive_type (function_declarator "FUN_00036450(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  uint *puVar4;\n  int iVar5;\n  \n  iVar1 = *(int *)(param_1 + 0x128);\n  if (0 < iVar1) {\n    iVar2 = *(int *)(param_1 + 300);\n    iVar5 = 0;\n    do {\n      if (0 < iVar2) {\n        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);\n        puVar4 = (uint *)(iVar3 + 4);\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != iVar1);\n  }\n  if (*(int *)(param_1 + 0x109c) != 0) {\n    return;\n  }\n  FUN_00032ca0();\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x128);" (assignment_expression "iVar1 = *(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) ))))) ;) (if_statement "if (0 < iVar1) {\n    iVar2 = *(int *)(param_1 + 300);\n    iVar5 = 0;\n    do {\n      if (0 < iVar2) {\n        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);\n        puVar4 = (uint *)(iVar3 + 4);\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != iVar1);\n  }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n    iVar2 = *(int *)(param_1 + 300);\n    iVar5 = 0;\n    do {\n      if (0 < iVar2) {\n        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);\n        puVar4 = (uint *)(iVar3 + 4);\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != iVar1);\n  }" { (expression_statement "iVar2 = *(int *)(param_1 + 300);" (assignment_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 "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (0 < iVar2) {\n        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);\n        puVar4 = (uint *)(iVar3 + 4);\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != iVar1);" do (compound_statement "{\n      if (0 < iVar2) {\n        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);\n        puVar4 = (uint *)(iVar3 + 4);\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    }" { (if_statement "if (0 < iVar2) {\n        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);\n        puVar4 = (uint *)(iVar3 + 4);\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);\n      }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);\n        puVar4 = (uint *)(iVar3 + 4);\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);\n      }" { (expression_statement "iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);" (assignment_expression "iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14)" identifier = (pointer_expression "*(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14)" * (cast_expression "(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14)" ( (binary_expression "*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14" (pointer_expression "*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + iVar5 * 4)" ( (binary_expression "*(int *)(param_1 + 0x18) + iVar5 * 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 "iVar5 * 4" identifier * number_literal)) )))) + number_literal) ))))) ;) (expression_statement "puVar4 = (uint *)(iVar3 + 4);" (assignment_expression "puVar4 = (uint *)(iVar3 + 4)" identifier = (cast_expression "(uint *)(iVar3 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) ;) (do_statement "do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);" do (compound_statement "{\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        }" { (expression_statement "*puVar4 = *puVar4 | 0x3ffff;" (assignment_expression "*puVar4 = *puVar4 | 0x3ffff" (pointer_expression "*puVar4" * identifier) = (binary_expression "*puVar4 | 0x3ffff" (pointer_expression "*puVar4" * identifier) | number_literal)) ;) (expression_statement "puVar4 = puVar4 + 3;" (assignment_expression "puVar4 = puVar4 + 3" identifier = (binary_expression "puVar4 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4)" ( (binary_expression "(uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4" (cast_expression "(uint *)(iVar3 + iVar2 * 0xc + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar2 * 0xc + 4)" ( (binary_expression "iVar3 + iVar2 * 0xc + 4" (binary_expression "iVar3 + iVar2 * 0xc" identifier + (binary_expression "iVar2 * 0xc" identifier * number_literal)) + number_literal) ))) != identifier) )) ;) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != iVar1)" ( (binary_expression "iVar5 != iVar1" identifier != identifier) )) ;) })) (if_statement "if (*(int *)(param_1 + 0x109c) != 0) {\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x109c) != 0)" ( (binary_expression "*(int *)(param_1 + 0x109c) != 0" (pointer_expression "*(int *)(param_1 + 0x109c)" * (cast_expression "(int *)(param_1 + 0x109c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x109c)" ( (binary_expression "param_1 + 0x109c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00032ca0();" (call_expression "FUN_00032ca0()" 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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (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 IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (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) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) | LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) ))) != IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00036450(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  uint *puVar4;\n  int iVar5;\n  \n  iVar1 = *(int *)(param_1 + 0x128);\n  if (0 < iVar1) {\n    iVar2 = *(int *)(param_1 + 300);\n    iVar5 = 0;\n    do {\n      if (0 < iVar2) {\n        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);\n        puVar4 = (uint *)(iVar3 + 4);\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != iVar1);\n  }\n  if (*(int *)(param_1 + 0x109c) != 0) {\n    return;\n  }\n  FUN_00032ca0();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00036450(int param_1)" (identifier "FUN_00036450") (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  uint *puVar4;\n  int iVar5;\n  \n  iVar1 = *(int *)(param_1 + 0x128);\n  if (0 < iVar1) {\n    iVar2 = *(int *)(param_1 + 300);\n    iVar5 = 0;\n    do {\n      if (0 < iVar2) {\n        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);\n        puVar4 = (uint *)(iVar3 + 4);\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != iVar1);\n  }\n  if (*(int *)(param_1 + 0x109c) != 0) {\n    return;\n  }\n  FUN_00032ca0();\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 "uint *puVar4;" (type_identifier "uint") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x128);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x128)" (identifier "iVar1") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if (0 < iVar1) {\n    iVar2 = *(int *)(param_1 + 300);\n    iVar5 = 0;\n    do {\n      if (0 < iVar2) {\n        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);\n        puVar4 = (uint *)(iVar3 + 4);\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != iVar1);\n  }" (if "if") (parenthesized_expression "(0 < iVar1)" (( "(") (binary_expression "0 < iVar1" (number_literal "0") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n    iVar2 = *(int *)(param_1 + 300);\n    iVar5 = 0;\n    do {\n      if (0 < iVar2) {\n        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);\n        puVar4 = (uint *)(iVar3 + 4);\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != iVar1);\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(param_1 + 300);" (assignment_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 "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      if (0 < iVar2) {\n        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);\n        puVar4 = (uint *)(iVar3 + 4);\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != iVar1);" (do "do") (compound_statement "{\n      if (0 < iVar2) {\n        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);\n        puVar4 = (uint *)(iVar3 + 4);\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);\n      }\n      iVar5 = iVar5 + 1;\n    }" ({ "{") (if_statement "if (0 < iVar2) {\n        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);\n        puVar4 = (uint *)(iVar3 + 4);\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);\n      }" (if "if") (parenthesized_expression "(0 < iVar2)" (( "(") (binary_expression "0 < iVar2" (number_literal "0") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);\n        puVar4 = (uint *)(iVar3 + 4);\n        do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);\n      }" ({ "{") (expression_statement "iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);" (assignment_expression "iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14)" (* "*") (cast_expression "(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14)" (( "(") (binary_expression "*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14" (pointer_expression "*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x18) + iVar5 * 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x18) + iVar5 * 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 "iVar5 * 4" (identifier "iVar5") (* "*") (number_literal "4"))) () ")")))) (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "puVar4 = (uint *)(iVar3 + 4);" (assignment_expression "puVar4 = (uint *)(iVar3 + 4)" (identifier "puVar4") (= "=") (cast_expression "(uint *)(iVar3 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 4)" (( "(") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) () ")")))) (; ";")) (do_statement "do {\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);" (do "do") (compound_statement "{\n          *puVar4 = *puVar4 | 0x3ffff;\n          puVar4 = puVar4 + 3;\n        }" ({ "{") (expression_statement "*puVar4 = *puVar4 | 0x3ffff;" (assignment_expression "*puVar4 = *puVar4 | 0x3ffff" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (binary_expression "*puVar4 | 0x3ffff" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (| "|") (number_literal "0x3ffff"))) (; ";")) (expression_statement "puVar4 = puVar4 + 3;" (assignment_expression "puVar4 = puVar4 + 3" (identifier "puVar4") (= "=") (binary_expression "puVar4 + 3" (identifier "puVar4") (+ "+") (number_literal "3"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4)" (( "(") (binary_expression "(uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4" (cast_expression "(uint *)(iVar3 + iVar2 * 0xc + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar2 * 0xc + 4)" (( "(") (binary_expression "iVar3 + iVar2 * 0xc + 4" (binary_expression "iVar3 + iVar2 * 0xc" (identifier "iVar3") (+ "+") (binary_expression "iVar2 * 0xc" (identifier "iVar2") (* "*") (number_literal "0xc"))) (+ "+") (number_literal "4")) () ")"))) (!= "!=") (identifier "puVar4")) () ")")) (; ";")) (} "}"))) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 != iVar1)" (( "(") (binary_expression "iVar5 != iVar1" (identifier "iVar5") (!= "!=") (identifier "iVar1")) () ")")) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x109c) != 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x109c) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x109c) != 0" (pointer_expression "*(int *)(param_1 + 0x109c)" (* "*") (cast_expression "(int *)(param_1 + 0x109c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x109c)" (( "(") (binary_expression "param_1 + 0x109c" (identifier "param_1") (+ "+") (number_literal "0x109c")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00032ca0();" (call_expression "FUN_00032ca0()" (identifier "FUN_00032ca0") (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)

{
  int var_1;
  int var_2;
  type_2 *ptVar3;
  type_3 *var_3;
  int var_4;
  
  var_1 = term->rows;
  if (0 < var_1) {
    var_2 = term->cols;
    var_4 = 0;
    do {
      if (0 < var_2) {
        ptVar3 = term->disptext[var_4]->chars;
        var_3 = &ptVar3->attr;
        do {
          *var_3 = *var_3 | 0x3ffff;
          var_3 = var_3 + 3;
        } while (&ptVar3[var_2].attr != var_3);
      }
      var_4 = var_4 + 1;
    } while (var_4 != var_1);
  }
  if (term->window_update_pending != 0) {
    return;
  }
  var_5(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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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: (number_literal))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) 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: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

void MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  uint *puVar4;
  int iVar5;
  
  iVar1 = *(int *)(param_1 + 0x128);
  if (0 < iVar1) {
    iVar2 = *(int *)(param_1 + 300);
    iVar5 = 0;
    do {
      if (0 < iVar2) {
        iVar3 = *(int *)(*(int *)(*(int *)(param_1 + 0x18) + iVar5 * 4) + 0x14);
        puVar4 = (uint *)(iVar3 + 4);
        do {
          *puVar4 = *puVar4 | 0x3ffff;
          puVar4 = puVar4 + 3;
        } while ((uint *)(iVar3 + iVar2 * 0xc + 4) != puVar4);
      }
      iVar5 = iVar5 + 1;
    } while (iVar5 != iVar1);
  }
  if (*(int *)(param_1 + 0x109c) != 0) {
    return;
  }
  FUN_00032ca0();
  return;
}

