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

void snip_last_keystroke(void)

{
  int *piVar1;
  undefined *puVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  
  puVar2 = PTR_DAT_0007754c;
  iVar3 = *(int *)(PTR_DAT_0007754c + -0x79e8);
  *(int *)(PTR_DAT_0007754c + -0x79e8) = iVar3 + -1;
  if (iVar3 + -1 != 0) {
    if (*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b) {
      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;
      iVar3 = iVar3 + -2;
      while (iVar4 = iVar3, iVar4 != 0) {
        piVar1 = (int *)(iVar5 + -0xc);
        iVar5 = iVar5 + -4;
        iVar3 = iVar4 + -1;
        if (*piVar1 != 0x1b) {
          *(int *)(puVar2 + -0x79e8) = iVar4;
          return;
        }
      }
      *(undefined4 *)(puVar2 + -0x79e8) = 0;
    }
  }
  return;
}



void FUN_000432f8(void)

{
  int *piVar1;
  undefined *puVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  
  puVar2 = PTR_DAT_0007754c;
  iVar3 = *(int *)(PTR_DAT_0007754c + -0x79e8);
  *(int *)(PTR_DAT_0007754c + -0x79e8) = iVar3 + -1;
  if (iVar3 + -1 != 0) {
    if (*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b) {
      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;
      iVar3 = iVar3 + -2;
      while (iVar4 = iVar3, iVar4 != 0) {
        piVar1 = (int *)(iVar5 + -0xc);
        iVar5 = iVar5 + -4;
        iVar3 = iVar4 + -1;
        if (*piVar1 != 0x1b) {
          *(int *)(puVar2 + -0x79e8) = iVar4;
          return;
        }
      }
      *(undefined4 *)(puVar2 + -0x79e8) = 0;
    }
  }
  return;
}


lui gp,0x4
addiu gp,gp,-0x3dd8
addu gp,gp,t9
lw a3,-0x7fd4(gp)
lw v0,-0x79e8(a3)
addiu v1,v0,-0x1
beq v1,zero,0x00043368
_sw v1,-0x79e8(a3)
lw v1,-0x7fd4(gp)
sll a0,v0,0x2
li a1,0x1b
addiu a0,a0,-0x8
lw v1,-0x79e4(v1)
addu a2,v1,a0
lw a2,0x0(a2)
bne a2,a1,0x00043368
_addiu a0,a0,0x8
addiu v0,v0,-0x2
addu v1,v1,a0
b 0x0004335c
_li a2,0x1b
lw a0,-0xc(v1)
bne a0,a2,0x00043370
_addiu v1,v1,-0x4
or v0,a1,zero
bne v0,zero,0x0004334c
_addiu a1,v0,-0x1
sw zero,-0x79e8(a3)
jr ra
_nop
jr ra
_sw v0,-0x79e8(a3)
(translation_unit "void FUN_000432f8(void)\n\n{\n  int *piVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  puVar2 = PTR_DAT_0007754c;\n  iVar3 = *(int *)(PTR_DAT_0007754c + -0x79e8);\n  *(int *)(PTR_DAT_0007754c + -0x79e8) = iVar3 + -1;\n  if (iVar3 + -1 != 0) {\n    if (*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b) {\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_000432f8(void)\n\n{\n  int *piVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  puVar2 = PTR_DAT_0007754c;\n  iVar3 = *(int *)(PTR_DAT_0007754c + -0x79e8);\n  *(int *)(PTR_DAT_0007754c + -0x79e8) = iVar3 + -1;\n  if (iVar3 + -1 != 0) {\n    if (*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b) {\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000432f8(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  puVar2 = PTR_DAT_0007754c;\n  iVar3 = *(int *)(PTR_DAT_0007754c + -0x79e8);\n  *(int *)(PTR_DAT_0007754c + -0x79e8) = iVar3 + -1;\n  if (iVar3 + -1 != 0) {\n    if (*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b) {\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "puVar2 = PTR_DAT_0007754c;" (assignment_expression "puVar2 = PTR_DAT_0007754c" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)(PTR_DAT_0007754c + -0x79e8);" (assignment_expression "iVar3 = *(int *)(PTR_DAT_0007754c + -0x79e8)" identifier = (pointer_expression "*(int *)(PTR_DAT_0007754c + -0x79e8)" * (cast_expression "(int *)(PTR_DAT_0007754c + -0x79e8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0007754c + -0x79e8)" ( (binary_expression "PTR_DAT_0007754c + -0x79e8" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(PTR_DAT_0007754c + -0x79e8) = iVar3 + -1;" (assignment_expression "*(int *)(PTR_DAT_0007754c + -0x79e8) = iVar3 + -1" (pointer_expression "*(int *)(PTR_DAT_0007754c + -0x79e8)" * (cast_expression "(int *)(PTR_DAT_0007754c + -0x79e8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0007754c + -0x79e8)" ( (binary_expression "PTR_DAT_0007754c + -0x79e8" identifier + number_literal) )))) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (if_statement "if (iVar3 + -1 != 0) {\n    if (*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b) {\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }\n  }" if (parenthesized_expression "(iVar3 + -1 != 0)" ( (binary_expression "iVar3 + -1 != 0" (binary_expression "iVar3 + -1" identifier + number_literal) != number_literal) )) (compound_statement "{\n    if (*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b) {\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }\n  }" { (if_statement "if (*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b) {\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }" if (parenthesized_expression "(*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b)" ( (binary_expression "*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b" (pointer_expression "*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8)" * (cast_expression "(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8)" ( (binary_expression "*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8" (binary_expression "*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4" (pointer_expression "*(int *)(PTR_DAT_0007754c + -0x79e4)" * (cast_expression "(int *)(PTR_DAT_0007754c + -0x79e4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0007754c + -0x79e4)" ( (binary_expression "PTR_DAT_0007754c + -0x79e4" identifier + number_literal) )))) + (binary_expression "iVar3 * 4" identifier * number_literal)) + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }" { (expression_statement "iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;" (assignment_expression "iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4" identifier = (binary_expression "*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4" (pointer_expression "*(int *)(PTR_DAT_0007754c + -0x79e4)" * (cast_expression "(int *)(PTR_DAT_0007754c + -0x79e4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0007754c + -0x79e4)" ( (binary_expression "PTR_DAT_0007754c + -0x79e4" identifier + number_literal) )))) + (binary_expression "iVar3 * 4" identifier * number_literal))) ;) (expression_statement "iVar3 = iVar3 + -2;" (assignment_expression "iVar3 = iVar3 + -2" identifier = (binary_expression "iVar3 + -2" identifier + number_literal)) ;) (while_statement "while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }" while (parenthesized_expression "(iVar4 = iVar3, iVar4 != 0)" ( (comma_expression "iVar4 = iVar3, iVar4 != 0" (assignment_expression "iVar4 = iVar3" identifier = identifier) , (binary_expression "iVar4 != 0" identifier != number_literal)) )) (compound_statement "{\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }" { (expression_statement "piVar1 = (int *)(iVar5 + -0xc);" (assignment_expression "piVar1 = (int *)(iVar5 + -0xc)" identifier = (cast_expression "(int *)(iVar5 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -0xc)" ( (binary_expression "iVar5 + -0xc" identifier + number_literal) )))) ;) (expression_statement "iVar5 = iVar5 + -4;" (assignment_expression "iVar5 = iVar5 + -4" identifier = (binary_expression "iVar5 + -4" identifier + number_literal)) ;) (expression_statement "iVar3 = iVar4 + -1;" (assignment_expression "iVar3 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (if_statement "if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }" if (parenthesized_expression "(*piVar1 != 0x1b)" ( (binary_expression "*piVar1 != 0x1b" (pointer_expression "*piVar1" * identifier) != number_literal) )) (compound_statement "{\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }" { (expression_statement "*(int *)(puVar2 + -0x79e8) = iVar4;" (assignment_expression "*(int *)(puVar2 + -0x79e8) = iVar4" (pointer_expression "*(int *)(puVar2 + -0x79e8)" * (cast_expression "(int *)(puVar2 + -0x79e8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x79e8)" ( (binary_expression "puVar2 + -0x79e8" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) })) (expression_statement "*(undefined4 *)(puVar2 + -0x79e8) = 0;" (assignment_expression "*(undefined4 *)(puVar2 + -0x79e8) = 0" (pointer_expression "*(undefined4 *)(puVar2 + -0x79e8)" * (cast_expression "(undefined4 *)(puVar2 + -0x79e8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x79e8)" ( (binary_expression "puVar2 + -0x79e8" identifier + number_literal) )))) = number_literal) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid snip_last_keystroke(void)\n\n{\n  int *piVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  puVar2 = PTR_DAT_0007754c;\n  iVar3 = *(int *)(PTR_DAT_0007754c + -0x79e8);\n  *(int *)(PTR_DAT_0007754c + -0x79e8) = iVar3 + -1;\n  if (iVar3 + -1 != 0) {\n    if (*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b) {\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void snip_last_keystroke(void)\n\n{\n  int *piVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  puVar2 = PTR_DAT_0007754c;\n  iVar3 = *(int *)(PTR_DAT_0007754c + -0x79e8);\n  *(int *)(PTR_DAT_0007754c + -0x79e8) = iVar3 + -1;\n  if (iVar3 + -1 != 0) {\n    if (*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b) {\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "snip_last_keystroke(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  puVar2 = PTR_DAT_0007754c;\n  iVar3 = *(int *)(PTR_DAT_0007754c + -0x79e8);\n  *(int *)(PTR_DAT_0007754c + -0x79e8) = iVar3 + -1;\n  if (iVar3 + -1 != 0) {\n    if (*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b) {\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "puVar2 = PTR_DAT_0007754c;" (assignment_expression "puVar2 = PTR_DAT_0007754c" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)(PTR_DAT_0007754c + -0x79e8);" (assignment_expression "iVar3 = *(int *)(PTR_DAT_0007754c + -0x79e8)" identifier = (pointer_expression "*(int *)(PTR_DAT_0007754c + -0x79e8)" * (cast_expression "(int *)(PTR_DAT_0007754c + -0x79e8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0007754c + -0x79e8)" ( (binary_expression "PTR_DAT_0007754c + -0x79e8" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(PTR_DAT_0007754c + -0x79e8) = iVar3 + -1;" (assignment_expression "*(int *)(PTR_DAT_0007754c + -0x79e8) = iVar3 + -1" (pointer_expression "*(int *)(PTR_DAT_0007754c + -0x79e8)" * (cast_expression "(int *)(PTR_DAT_0007754c + -0x79e8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0007754c + -0x79e8)" ( (binary_expression "PTR_DAT_0007754c + -0x79e8" identifier + number_literal) )))) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (if_statement "if (iVar3 + -1 != 0) {\n    if (*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b) {\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }\n  }" if (parenthesized_expression "(iVar3 + -1 != 0)" ( (binary_expression "iVar3 + -1 != 0" (binary_expression "iVar3 + -1" identifier + number_literal) != number_literal) )) (compound_statement "{\n    if (*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b) {\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }\n  }" { (if_statement "if (*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b) {\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }" if (parenthesized_expression "(*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b)" ( (binary_expression "*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b" (pointer_expression "*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8)" * (cast_expression "(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8)" ( (binary_expression "*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8" (binary_expression "*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4" (pointer_expression "*(int *)(PTR_DAT_0007754c + -0x79e4)" * (cast_expression "(int *)(PTR_DAT_0007754c + -0x79e4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0007754c + -0x79e4)" ( (binary_expression "PTR_DAT_0007754c + -0x79e4" identifier + number_literal) )))) + (binary_expression "iVar3 * 4" identifier * number_literal)) + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }" { (expression_statement "iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;" (assignment_expression "iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4" identifier = (binary_expression "*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4" (pointer_expression "*(int *)(PTR_DAT_0007754c + -0x79e4)" * (cast_expression "(int *)(PTR_DAT_0007754c + -0x79e4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0007754c + -0x79e4)" ( (binary_expression "PTR_DAT_0007754c + -0x79e4" identifier + number_literal) )))) + (binary_expression "iVar3 * 4" identifier * number_literal))) ;) (expression_statement "iVar3 = iVar3 + -2;" (assignment_expression "iVar3 = iVar3 + -2" identifier = (binary_expression "iVar3 + -2" identifier + number_literal)) ;) (while_statement "while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }" while (parenthesized_expression "(iVar4 = iVar3, iVar4 != 0)" ( (comma_expression "iVar4 = iVar3, iVar4 != 0" (assignment_expression "iVar4 = iVar3" identifier = identifier) , (binary_expression "iVar4 != 0" identifier != number_literal)) )) (compound_statement "{\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }" { (expression_statement "piVar1 = (int *)(iVar5 + -0xc);" (assignment_expression "piVar1 = (int *)(iVar5 + -0xc)" identifier = (cast_expression "(int *)(iVar5 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -0xc)" ( (binary_expression "iVar5 + -0xc" identifier + number_literal) )))) ;) (expression_statement "iVar5 = iVar5 + -4;" (assignment_expression "iVar5 = iVar5 + -4" identifier = (binary_expression "iVar5 + -4" identifier + number_literal)) ;) (expression_statement "iVar3 = iVar4 + -1;" (assignment_expression "iVar3 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (if_statement "if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }" if (parenthesized_expression "(*piVar1 != 0x1b)" ( (binary_expression "*piVar1 != 0x1b" (pointer_expression "*piVar1" * identifier) != number_literal) )) (compound_statement "{\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }" { (expression_statement "*(int *)(puVar2 + -0x79e8) = iVar4;" (assignment_expression "*(int *)(puVar2 + -0x79e8) = iVar4" (pointer_expression "*(int *)(puVar2 + -0x79e8)" * (cast_expression "(int *)(puVar2 + -0x79e8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x79e8)" ( (binary_expression "puVar2 + -0x79e8" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) })) (expression_statement "*(undefined4 *)(puVar2 + -0x79e8) = 0;" (assignment_expression "*(undefined4 *)(puVar2 + -0x79e8) = 0" (pointer_expression "*(undefined4 *)(puVar2 + -0x79e8)" * (cast_expression "(undefined4 *)(puVar2 + -0x79e8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x79e8)" ( (binary_expression "puVar2 + -0x79e8" identifier + number_literal) )))) = number_literal) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000432f8(void)\n\n{\n  int *piVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  puVar2 = PTR_DAT_0007754c;\n  iVar3 = *(int *)(PTR_DAT_0007754c + -0x79e8);\n  *(int *)(PTR_DAT_0007754c + -0x79e8) = iVar3 + -1;\n  if (iVar3 + -1 != 0) {\n    if (*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b) {\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_000432f8(void)\n\n{\n  int *piVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  puVar2 = PTR_DAT_0007754c;\n  iVar3 = *(int *)(PTR_DAT_0007754c + -0x79e8);\n  *(int *)(PTR_DAT_0007754c + -0x79e8) = iVar3 + -1;\n  if (iVar3 + -1 != 0) {\n    if (*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b) {\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000432f8(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  puVar2 = PTR_DAT_0007754c;\n  iVar3 = *(int *)(PTR_DAT_0007754c + -0x79e8);\n  *(int *)(PTR_DAT_0007754c + -0x79e8) = iVar3 + -1;\n  if (iVar3 + -1 != 0) {\n    if (*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b) {\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "puVar2 = PTR_DAT_0007754c;" (assignment_expression "puVar2 = PTR_DAT_0007754c" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)(PTR_DAT_0007754c + -0x79e8);" (assignment_expression "iVar3 = *(int *)(PTR_DAT_0007754c + -0x79e8)" identifier = (pointer_expression "*(int *)(PTR_DAT_0007754c + -0x79e8)" * (cast_expression "(int *)(PTR_DAT_0007754c + -0x79e8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0007754c + -0x79e8)" ( (binary_expression "PTR_DAT_0007754c + -0x79e8" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(PTR_DAT_0007754c + -0x79e8) = iVar3 + -1;" (assignment_expression "*(int *)(PTR_DAT_0007754c + -0x79e8) = iVar3 + -1" (pointer_expression "*(int *)(PTR_DAT_0007754c + -0x79e8)" * (cast_expression "(int *)(PTR_DAT_0007754c + -0x79e8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0007754c + -0x79e8)" ( (binary_expression "PTR_DAT_0007754c + -0x79e8" identifier + number_literal) )))) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (if_statement "if (iVar3 + -1 != 0) {\n    if (*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b) {\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }\n  }" if (parenthesized_expression "(iVar3 + -1 != 0)" ( (binary_expression "iVar3 + -1 != 0" (binary_expression "iVar3 + -1" identifier + number_literal) != number_literal) )) (compound_statement "{\n    if (*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b) {\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }\n  }" { (if_statement "if (*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b) {\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }" if (parenthesized_expression "(*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b)" ( (binary_expression "*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b" (pointer_expression "*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8)" * (cast_expression "(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8)" ( (binary_expression "*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8" (binary_expression "*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4" (pointer_expression "*(int *)(PTR_DAT_0007754c + -0x79e4)" * (cast_expression "(int *)(PTR_DAT_0007754c + -0x79e4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0007754c + -0x79e4)" ( (binary_expression "PTR_DAT_0007754c + -0x79e4" identifier + number_literal) )))) + (binary_expression "iVar3 * 4" identifier * number_literal)) + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }" { (expression_statement "iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;" (assignment_expression "iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4" identifier = (binary_expression "*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4" (pointer_expression "*(int *)(PTR_DAT_0007754c + -0x79e4)" * (cast_expression "(int *)(PTR_DAT_0007754c + -0x79e4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0007754c + -0x79e4)" ( (binary_expression "PTR_DAT_0007754c + -0x79e4" identifier + number_literal) )))) + (binary_expression "iVar3 * 4" identifier * number_literal))) ;) (expression_statement "iVar3 = iVar3 + -2;" (assignment_expression "iVar3 = iVar3 + -2" identifier = (binary_expression "iVar3 + -2" identifier + number_literal)) ;) (while_statement "while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }" while (parenthesized_expression "(iVar4 = iVar3, iVar4 != 0)" ( (comma_expression "iVar4 = iVar3, iVar4 != 0" (assignment_expression "iVar4 = iVar3" identifier = identifier) , (binary_expression "iVar4 != 0" identifier != number_literal)) )) (compound_statement "{\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }" { (expression_statement "piVar1 = (int *)(iVar5 + -0xc);" (assignment_expression "piVar1 = (int *)(iVar5 + -0xc)" identifier = (cast_expression "(int *)(iVar5 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -0xc)" ( (binary_expression "iVar5 + -0xc" identifier + number_literal) )))) ;) (expression_statement "iVar5 = iVar5 + -4;" (assignment_expression "iVar5 = iVar5 + -4" identifier = (binary_expression "iVar5 + -4" identifier + number_literal)) ;) (expression_statement "iVar3 = iVar4 + -1;" (assignment_expression "iVar3 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (if_statement "if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }" if (parenthesized_expression "(*piVar1 != 0x1b)" ( (binary_expression "*piVar1 != 0x1b" (pointer_expression "*piVar1" * identifier) != number_literal) )) (compound_statement "{\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }" { (expression_statement "*(int *)(puVar2 + -0x79e8) = iVar4;" (assignment_expression "*(int *)(puVar2 + -0x79e8) = iVar4" (pointer_expression "*(int *)(puVar2 + -0x79e8)" * (cast_expression "(int *)(puVar2 + -0x79e8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x79e8)" ( (binary_expression "puVar2 + -0x79e8" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) })) (expression_statement "*(undefined4 *)(puVar2 + -0x79e8) = 0;" (assignment_expression "*(undefined4 *)(puVar2 + -0x79e8) = 0" (pointer_expression "*(undefined4 *)(puVar2 + -0x79e8)" * (cast_expression "(undefined4 *)(puVar2 + -0x79e8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x79e8)" ( (binary_expression "puVar2 + -0x79e8" identifier + number_literal) )))) = number_literal) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT != LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_000432f8(void)\n\n{\n  int *piVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  puVar2 = PTR_DAT_0007754c;\n  iVar3 = *(int *)(PTR_DAT_0007754c + -0x79e8);\n  *(int *)(PTR_DAT_0007754c + -0x79e8) = iVar3 + -1;\n  if (iVar3 + -1 != 0) {\n    if (*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b) {\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000432f8(void)" (identifier "FUN_000432f8") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int *piVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  puVar2 = PTR_DAT_0007754c;\n  iVar3 = *(int *)(PTR_DAT_0007754c + -0x79e8);\n  *(int *)(PTR_DAT_0007754c + -0x79e8) = iVar3 + -1;\n  if (iVar3 + -1 != 0) {\n    if (*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b) {\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }\n  }\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "puVar2 = PTR_DAT_0007754c;" (assignment_expression "puVar2 = PTR_DAT_0007754c" (identifier "puVar2") (= "=") (identifier "PTR_DAT_0007754c")) (; ";")) (expression_statement "iVar3 = *(int *)(PTR_DAT_0007754c + -0x79e8);" (assignment_expression "iVar3 = *(int *)(PTR_DAT_0007754c + -0x79e8)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(PTR_DAT_0007754c + -0x79e8)" (* "*") (cast_expression "(int *)(PTR_DAT_0007754c + -0x79e8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0007754c + -0x79e8)" (( "(") (binary_expression "PTR_DAT_0007754c + -0x79e8" (identifier "PTR_DAT_0007754c") (+ "+") (number_literal "-0x79e8")) () ")"))))) (; ";")) (expression_statement "*(int *)(PTR_DAT_0007754c + -0x79e8) = iVar3 + -1;" (assignment_expression "*(int *)(PTR_DAT_0007754c + -0x79e8) = iVar3 + -1" (pointer_expression "*(int *)(PTR_DAT_0007754c + -0x79e8)" (* "*") (cast_expression "(int *)(PTR_DAT_0007754c + -0x79e8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0007754c + -0x79e8)" (( "(") (binary_expression "PTR_DAT_0007754c + -0x79e8" (identifier "PTR_DAT_0007754c") (+ "+") (number_literal "-0x79e8")) () ")")))) (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (iVar3 + -1 != 0) {\n    if (*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b) {\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }\n  }" (if "if") (parenthesized_expression "(iVar3 + -1 != 0)" (( "(") (binary_expression "iVar3 + -1 != 0" (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b) {\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }\n  }" ({ "{") (if_statement "if (*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b) {\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }" (if "if") (parenthesized_expression "(*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b)" (( "(") (binary_expression "*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b" (pointer_expression "*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8)" (* "*") (cast_expression "(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8)" (( "(") (binary_expression "*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8" (binary_expression "*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4" (pointer_expression "*(int *)(PTR_DAT_0007754c + -0x79e4)" (* "*") (cast_expression "(int *)(PTR_DAT_0007754c + -0x79e4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0007754c + -0x79e4)" (( "(") (binary_expression "PTR_DAT_0007754c + -0x79e4" (identifier "PTR_DAT_0007754c") (+ "+") (number_literal "-0x79e4")) () ")")))) (+ "+") (binary_expression "iVar3 * 4" (identifier "iVar3") (* "*") (number_literal "4"))) (+ "+") (number_literal "-8")) () ")")))) (== "==") (number_literal "0x1b")) () ")")) (compound_statement "{\n      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;\n      iVar3 = iVar3 + -2;\n      while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }\n      *(undefined4 *)(puVar2 + -0x79e8) = 0;\n    }" ({ "{") (expression_statement "iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;" (assignment_expression "iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4" (identifier "iVar5") (= "=") (binary_expression "*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4" (pointer_expression "*(int *)(PTR_DAT_0007754c + -0x79e4)" (* "*") (cast_expression "(int *)(PTR_DAT_0007754c + -0x79e4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0007754c + -0x79e4)" (( "(") (binary_expression "PTR_DAT_0007754c + -0x79e4" (identifier "PTR_DAT_0007754c") (+ "+") (number_literal "-0x79e4")) () ")")))) (+ "+") (binary_expression "iVar3 * 4" (identifier "iVar3") (* "*") (number_literal "4")))) (; ";")) (expression_statement "iVar3 = iVar3 + -2;" (assignment_expression "iVar3 = iVar3 + -2" (identifier "iVar3") (= "=") (binary_expression "iVar3 + -2" (identifier "iVar3") (+ "+") (number_literal "-2"))) (; ";")) (while_statement "while (iVar4 = iVar3, iVar4 != 0) {\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }" (while "while") (parenthesized_expression "(iVar4 = iVar3, iVar4 != 0)" (( "(") (comma_expression "iVar4 = iVar3, iVar4 != 0" (assignment_expression "iVar4 = iVar3" (identifier "iVar4") (= "=") (identifier "iVar3")) (, ",") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n        piVar1 = (int *)(iVar5 + -0xc);\n        iVar5 = iVar5 + -4;\n        iVar3 = iVar4 + -1;\n        if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }\n      }" ({ "{") (expression_statement "piVar1 = (int *)(iVar5 + -0xc);" (assignment_expression "piVar1 = (int *)(iVar5 + -0xc)" (identifier "piVar1") (= "=") (cast_expression "(int *)(iVar5 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + -0xc)" (( "(") (binary_expression "iVar5 + -0xc" (identifier "iVar5") (+ "+") (number_literal "-0xc")) () ")")))) (; ";")) (expression_statement "iVar5 = iVar5 + -4;" (assignment_expression "iVar5 = iVar5 + -4" (identifier "iVar5") (= "=") (binary_expression "iVar5 + -4" (identifier "iVar5") (+ "+") (number_literal "-4"))) (; ";")) (expression_statement "iVar3 = iVar4 + -1;" (assignment_expression "iVar3 = iVar4 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (*piVar1 != 0x1b) {\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }" (if "if") (parenthesized_expression "(*piVar1 != 0x1b)" (( "(") (binary_expression "*piVar1 != 0x1b" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (!= "!=") (number_literal "0x1b")) () ")")) (compound_statement "{\n          *(int *)(puVar2 + -0x79e8) = iVar4;\n          return;\n        }" ({ "{") (expression_statement "*(int *)(puVar2 + -0x79e8) = iVar4;" (assignment_expression "*(int *)(puVar2 + -0x79e8) = iVar4" (pointer_expression "*(int *)(puVar2 + -0x79e8)" (* "*") (cast_expression "(int *)(puVar2 + -0x79e8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + -0x79e8)" (( "(") (binary_expression "puVar2 + -0x79e8" (identifier "puVar2") (+ "+") (number_literal "-0x79e8")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "*(undefined4 *)(puVar2 + -0x79e8) = 0;" (assignment_expression "*(undefined4 *)(puVar2 + -0x79e8) = 0" (pointer_expression "*(undefined4 *)(puVar2 + -0x79e8)" (* "*") (cast_expression "(undefined4 *)(puVar2 + -0x79e8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + -0x79e8)" (( "(") (binary_expression "puVar2 + -0x79e8" (identifier "puVar2") (+ "+") (number_literal "-0x79e8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator 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: (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))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (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: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (return_statement))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))) (return_statement))))

void MASKED(void)

{
  int *piVar1;
  undefined *puVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  
  puVar2 = PTR_DAT_0007754c;
  iVar3 = *(int *)(PTR_DAT_0007754c + -0x79e8);
  *(int *)(PTR_DAT_0007754c + -0x79e8) = iVar3 + -1;
  if (iVar3 + -1 != 0) {
    if (*(int *)(*(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4 + -8) == 0x1b) {
      iVar5 = *(int *)(PTR_DAT_0007754c + -0x79e4) + iVar3 * 4;
      iVar3 = iVar3 + -2;
      while (iVar4 = iVar3, iVar4 != 0) {
        piVar1 = (int *)(iVar5 + -0xc);
        iVar5 = iVar5 + -4;
        iVar3 = iVar4 + -1;
        if (*piVar1 != 0x1b) {
          *(int *)(puVar2 + -0x79e8) = iVar4;
          return;
        }
      }
      *(undefined4 *)(puVar2 + -0x79e8) = 0;
    }
  }
  return;
}

