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

void yyensure_buffer_stack(void)

{
  undefined *puVar1;
  int iVar2;
  undefined4 *puVar3;
  int iVar4;
  int iVar5;
  
  puVar1 = PTR_optarg_0002f0d8;
  if (*(int *)(PTR_optarg_0002f0d8 + -0xb68) == 0) {
    iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1);
    *(int *)(puVar1 + -0xb68) = iVar2;
    if (iVar2 != 0) {
      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;
      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;
      return;
    }
  }
  else {
    if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {
      return;
    }
    iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;
    iVar5 = iVar4 * 4;
    iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);
    *(int *)(puVar1 + -0xb68) = iVar2;
    if (iVar2 != 0) {
      *(int *)(puVar1 + -0xb64) = iVar4;
      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);
      *puVar3 = 0;
      puVar3[1] = 0;
      puVar3[2] = 0;
      puVar3[3] = 0;
      puVar3[4] = 0;
      puVar3[5] = 0;
      puVar3[6] = 0;
      puVar3[7] = 0;
      return;
    }
  }
                    /* WARNING: Subroutine does not return */
  yy_fatal_error(PTR_DAT_0002f0e8 + -0x31c0);
}



void FUN_0001576c(void)

{
  undefined *puVar1;
  int iVar2;
  undefined4 *puVar3;
  int iVar4;
  int iVar5;
  
  puVar1 = PTR_optarg_0002f0d8;
  if (*(int *)(PTR_optarg_0002f0d8 + -0xb68) == 0) {
    iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1);
    *(int *)(puVar1 + -0xb68) = iVar2;
    if (iVar2 != 0) {
      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;
      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;
      return;
    }
  }
  else {
    if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {
      return;
    }
    iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;
    iVar5 = iVar4 * 4;
    iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);
    *(int *)(puVar1 + -0xb68) = iVar2;
    if (iVar2 != 0) {
      *(int *)(puVar1 + -0xb64) = iVar4;
      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);
      *puVar3 = 0;
      puVar3[1] = 0;
      puVar3[2] = 0;
      puVar3[3] = 0;
      puVar3[4] = 0;
      puVar3[5] = 0;
      puVar3[6] = 0;
      puVar3[7] = 0;
      return;
    }
  }
                    /* WARNING: Subroutine does not return */
  FUN_00015728(PTR_DAT_0002f0e8 + -0x31c0);
}


lui gp,0x2
addiu gp,gp,0x1944
addu gp,gp,t9
addiu sp,sp,-0x30
sw s1,0x20(sp)
lw s1,-0x7fd8(gp)
sw gp,0x10(sp)
sw ra,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
sw s0,0x1c(sp)
lw a0,-0xb68(s1)
beq a0,zero,0x00015840
_lw s2,-0x7fd8(gp)
lw v0,-0x7fd8(gp)
lw v1,-0xb64(s2)
lw a1,-0xb60(v0)
addiu v0,v1,-0x1
sltu v0,a1,v0
beq v0,zero,0x000157d8
_lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
addiu s0,v1,0x8
lw t9,-0x7d80(gp)
sll s3,s0,0x2
jalr t9
_or a1,s3,zero
lw gp,0x10(sp)
beq v0,zero,0x0001588c
_sw v0,-0xb68(s1)
addiu s3,s3,-0x20
sw s0,-0xb64(s2)
addu v0,v0,s3
sw zero,0x0(v0)
sw zero,0x4(v0)
sw zero,0x8(v0)
sw zero,0xc(v0)
sw zero,0x10(v0)
sw zero,0x14(v0)
sw zero,0x18(v0)
sw zero,0x1c(v0)
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7e74(gp)
li a1,0x1
jalr t9
_li a0,0x4
lw gp,0x10(sp)
beq v0,zero,0x0001588c
_sw v0,-0xb68(s1)
lw v0,-0x7fd8(gp)
li v1,0x1
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
addiu sp,sp,0x30
sw v1,-0xb64(v0)
lw v0,-0x7fd8(gp)
jr ra
_sw zero,-0xb60(v0)
lw a0,-0x7fc8(gp)
lw t9,-0x7fcc(gp)
addiu t9,t9,0x5728
bal 0x00015728
_addiu a0,a0,-0x31c0
(translation_unit "void FUN_0001576c(void)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  \n  puVar1 = PTR_optarg_0002f0d8;\n  if (*(int *)(PTR_optarg_0002f0d8 + -0xb68) == 0) {\n    iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }\n  }\n  else {\n    if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }\n    iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;\n    iVar5 = iVar4 * 4;\n    iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00015728(PTR_DAT_0002f0e8 + -0x31c0);\n}\n\n" (function_definition "void FUN_0001576c(void)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  \n  puVar1 = PTR_optarg_0002f0d8;\n  if (*(int *)(PTR_optarg_0002f0d8 + -0xb68) == 0) {\n    iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }\n  }\n  else {\n    if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }\n    iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;\n    iVar5 = iVar4 * 4;\n    iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00015728(PTR_DAT_0002f0e8 + -0x31c0);\n}" primitive_type (function_declarator "FUN_0001576c(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  \n  puVar1 = PTR_optarg_0002f0d8;\n  if (*(int *)(PTR_optarg_0002f0d8 + -0xb68) == 0) {\n    iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }\n  }\n  else {\n    if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }\n    iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;\n    iVar5 = iVar4 * 4;\n    iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00015728(PTR_DAT_0002f0e8 + -0x31c0);\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_optarg_0002f0d8;" (assignment_expression "puVar1 = PTR_optarg_0002f0d8" identifier = identifier) ;) (if_statement "if (*(int *)(PTR_optarg_0002f0d8 + -0xb68) == 0) {\n    iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }\n  }\n  else {\n    if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }\n    iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;\n    iVar5 = iVar4 * 4;\n    iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }\n  }" if (parenthesized_expression "(*(int *)(PTR_optarg_0002f0d8 + -0xb68) == 0)" ( (binary_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb68) == 0" (pointer_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb68)" * (cast_expression "(int *)(PTR_optarg_0002f0d8 + -0xb68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb68)" ( (binary_expression "PTR_optarg_0002f0d8 + -0xb68" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }\n  }" { (expression_statement "iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1);" (assignment_expression "iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1)" identifier = (call_expression "(*(code *)PTR_calloc_0002f23c)(4,1)" (parenthesized_expression "(*(code *)PTR_calloc_0002f23c)" ( (pointer_expression "*(code *)PTR_calloc_0002f23c" * (cast_expression "(code *)PTR_calloc_0002f23c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(4,1)" ( number_literal , number_literal )))) ;) (expression_statement "*(int *)(puVar1 + -0xb68) = iVar2;" (assignment_expression "*(int *)(puVar1 + -0xb68) = iVar2" (pointer_expression "*(int *)(puVar1 + -0xb68)" * (cast_expression "(int *)(puVar1 + -0xb68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0xb68)" ( (binary_expression "puVar1 + -0xb68" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar2 != 0) {\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }" { (expression_statement "*(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;" (assignment_expression "*(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1" (pointer_expression "*(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64)" * (cast_expression "(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb64)" ( (binary_expression "PTR_optarg_0002f0d8 + -0xb64" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;" (assignment_expression "*(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0" (pointer_expression "*(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60)" * (cast_expression "(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb60)" ( (binary_expression "PTR_optarg_0002f0d8 + -0xb60" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }\n    iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;\n    iVar5 = iVar4 * 4;\n    iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }\n  }" else (compound_statement "{\n    if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }\n    iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;\n    iVar5 = iVar4 * 4;\n    iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }\n  }" { (if_statement "if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }" if (parenthesized_expression "(*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U)" ( (binary_expression "*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U" (pointer_expression "*(uint *)(PTR_optarg_0002f0d8 + -0xb60)" * (cast_expression "(uint *)(PTR_optarg_0002f0d8 + -0xb60)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb60)" ( (binary_expression "PTR_optarg_0002f0d8 + -0xb60" identifier + number_literal) )))) < (binary_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U" (pointer_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb64)" * (cast_expression "(int *)(PTR_optarg_0002f0d8 + -0xb64)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb64)" ( (binary_expression "PTR_optarg_0002f0d8 + -0xb64" identifier + number_literal) )))) - number_literal)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;" (assignment_expression "iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8" identifier = (binary_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8" (pointer_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb64)" * (cast_expression "(int *)(PTR_optarg_0002f0d8 + -0xb64)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb64)" ( (binary_expression "PTR_optarg_0002f0d8 + -0xb64" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar5 = iVar4 * 4;" (assignment_expression "iVar5 = iVar4 * 4" identifier = (binary_expression "iVar4 * 4" identifier * number_literal)) ;) (expression_statement "iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);" (assignment_expression "iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5)" identifier = (call_expression "(*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5)" (parenthesized_expression "(*(code *)PTR_realloc_0002f330)" ( (pointer_expression "*(code *)PTR_realloc_0002f330" * (cast_expression "(code *)PTR_realloc_0002f330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5)" ( (pointer_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb68)" * (cast_expression "(int *)(PTR_optarg_0002f0d8 + -0xb68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb68)" ( (binary_expression "PTR_optarg_0002f0d8 + -0xb68" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "*(int *)(puVar1 + -0xb68) = iVar2;" (assignment_expression "*(int *)(puVar1 + -0xb68) = iVar2" (pointer_expression "*(int *)(puVar1 + -0xb68)" * (cast_expression "(int *)(puVar1 + -0xb68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0xb68)" ( (binary_expression "puVar1 + -0xb68" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }" { (expression_statement "*(int *)(puVar1 + -0xb64) = iVar4;" (assignment_expression "*(int *)(puVar1 + -0xb64) = iVar4" (pointer_expression "*(int *)(puVar1 + -0xb64)" * (cast_expression "(int *)(puVar1 + -0xb64)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0xb64)" ( (binary_expression "puVar1 + -0xb64" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);" (assignment_expression "puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20)" identifier = (cast_expression "(undefined4 *)(iVar2 + iVar5 + -0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar5 + -0x20)" ( (binary_expression "iVar2 + iVar5 + -0x20" (binary_expression "iVar2 + iVar5" identifier + identifier) + number_literal) )))) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[3] = 0;" (assignment_expression "puVar3[3] = 0" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[4] = 0;" (assignment_expression "puVar3[4] = 0" (subscript_expression "puVar3[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[5] = 0;" (assignment_expression "puVar3[5] = 0" (subscript_expression "puVar3[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[6] = 0;" (assignment_expression "puVar3[6] = 0" (subscript_expression "puVar3[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[7] = 0;" (assignment_expression "puVar3[7] = 0" (subscript_expression "puVar3[7]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })) }))) comment (expression_statement "FUN_00015728(PTR_DAT_0002f0e8 + -0x31c0);" (call_expression "FUN_00015728(PTR_DAT_0002f0e8 + -0x31c0)" identifier (argument_list "(PTR_DAT_0002f0e8 + -0x31c0)" ( (binary_expression "PTR_DAT_0002f0e8 + -0x31c0" identifier + number_literal) ))) ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid yyensure_buffer_stack(void)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  \n  puVar1 = PTR_optarg_0002f0d8;\n  if (*(int *)(PTR_optarg_0002f0d8 + -0xb68) == 0) {\n    iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }\n  }\n  else {\n    if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }\n    iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;\n    iVar5 = iVar4 * 4;\n    iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  yy_fatal_error(PTR_DAT_0002f0e8 + -0x31c0);\n}\n\n" comment (function_definition "void yyensure_buffer_stack(void)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  \n  puVar1 = PTR_optarg_0002f0d8;\n  if (*(int *)(PTR_optarg_0002f0d8 + -0xb68) == 0) {\n    iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }\n  }\n  else {\n    if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }\n    iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;\n    iVar5 = iVar4 * 4;\n    iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  yy_fatal_error(PTR_DAT_0002f0e8 + -0x31c0);\n}" primitive_type (function_declarator "yyensure_buffer_stack(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  \n  puVar1 = PTR_optarg_0002f0d8;\n  if (*(int *)(PTR_optarg_0002f0d8 + -0xb68) == 0) {\n    iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }\n  }\n  else {\n    if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }\n    iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;\n    iVar5 = iVar4 * 4;\n    iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  yy_fatal_error(PTR_DAT_0002f0e8 + -0x31c0);\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_optarg_0002f0d8;" (assignment_expression "puVar1 = PTR_optarg_0002f0d8" identifier = identifier) ;) (if_statement "if (*(int *)(PTR_optarg_0002f0d8 + -0xb68) == 0) {\n    iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }\n  }\n  else {\n    if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }\n    iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;\n    iVar5 = iVar4 * 4;\n    iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }\n  }" if (parenthesized_expression "(*(int *)(PTR_optarg_0002f0d8 + -0xb68) == 0)" ( (binary_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb68) == 0" (pointer_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb68)" * (cast_expression "(int *)(PTR_optarg_0002f0d8 + -0xb68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb68)" ( (binary_expression "PTR_optarg_0002f0d8 + -0xb68" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }\n  }" { (expression_statement "iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1);" (assignment_expression "iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1)" identifier = (call_expression "(*(code *)PTR_calloc_0002f23c)(4,1)" (parenthesized_expression "(*(code *)PTR_calloc_0002f23c)" ( (pointer_expression "*(code *)PTR_calloc_0002f23c" * (cast_expression "(code *)PTR_calloc_0002f23c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(4,1)" ( number_literal , number_literal )))) ;) (expression_statement "*(int *)(puVar1 + -0xb68) = iVar2;" (assignment_expression "*(int *)(puVar1 + -0xb68) = iVar2" (pointer_expression "*(int *)(puVar1 + -0xb68)" * (cast_expression "(int *)(puVar1 + -0xb68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0xb68)" ( (binary_expression "puVar1 + -0xb68" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar2 != 0) {\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }" { (expression_statement "*(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;" (assignment_expression "*(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1" (pointer_expression "*(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64)" * (cast_expression "(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb64)" ( (binary_expression "PTR_optarg_0002f0d8 + -0xb64" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;" (assignment_expression "*(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0" (pointer_expression "*(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60)" * (cast_expression "(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb60)" ( (binary_expression "PTR_optarg_0002f0d8 + -0xb60" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }\n    iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;\n    iVar5 = iVar4 * 4;\n    iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }\n  }" else (compound_statement "{\n    if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }\n    iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;\n    iVar5 = iVar4 * 4;\n    iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }\n  }" { (if_statement "if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }" if (parenthesized_expression "(*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U)" ( (binary_expression "*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U" (pointer_expression "*(uint *)(PTR_optarg_0002f0d8 + -0xb60)" * (cast_expression "(uint *)(PTR_optarg_0002f0d8 + -0xb60)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb60)" ( (binary_expression "PTR_optarg_0002f0d8 + -0xb60" identifier + number_literal) )))) < (binary_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U" (pointer_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb64)" * (cast_expression "(int *)(PTR_optarg_0002f0d8 + -0xb64)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb64)" ( (binary_expression "PTR_optarg_0002f0d8 + -0xb64" identifier + number_literal) )))) - number_literal)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;" (assignment_expression "iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8" identifier = (binary_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8" (pointer_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb64)" * (cast_expression "(int *)(PTR_optarg_0002f0d8 + -0xb64)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb64)" ( (binary_expression "PTR_optarg_0002f0d8 + -0xb64" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar5 = iVar4 * 4;" (assignment_expression "iVar5 = iVar4 * 4" identifier = (binary_expression "iVar4 * 4" identifier * number_literal)) ;) (expression_statement "iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);" (assignment_expression "iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5)" identifier = (call_expression "(*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5)" (parenthesized_expression "(*(code *)PTR_realloc_0002f330)" ( (pointer_expression "*(code *)PTR_realloc_0002f330" * (cast_expression "(code *)PTR_realloc_0002f330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5)" ( (pointer_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb68)" * (cast_expression "(int *)(PTR_optarg_0002f0d8 + -0xb68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb68)" ( (binary_expression "PTR_optarg_0002f0d8 + -0xb68" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "*(int *)(puVar1 + -0xb68) = iVar2;" (assignment_expression "*(int *)(puVar1 + -0xb68) = iVar2" (pointer_expression "*(int *)(puVar1 + -0xb68)" * (cast_expression "(int *)(puVar1 + -0xb68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0xb68)" ( (binary_expression "puVar1 + -0xb68" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }" { (expression_statement "*(int *)(puVar1 + -0xb64) = iVar4;" (assignment_expression "*(int *)(puVar1 + -0xb64) = iVar4" (pointer_expression "*(int *)(puVar1 + -0xb64)" * (cast_expression "(int *)(puVar1 + -0xb64)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0xb64)" ( (binary_expression "puVar1 + -0xb64" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);" (assignment_expression "puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20)" identifier = (cast_expression "(undefined4 *)(iVar2 + iVar5 + -0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar5 + -0x20)" ( (binary_expression "iVar2 + iVar5 + -0x20" (binary_expression "iVar2 + iVar5" identifier + identifier) + number_literal) )))) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[3] = 0;" (assignment_expression "puVar3[3] = 0" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[4] = 0;" (assignment_expression "puVar3[4] = 0" (subscript_expression "puVar3[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[5] = 0;" (assignment_expression "puVar3[5] = 0" (subscript_expression "puVar3[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[6] = 0;" (assignment_expression "puVar3[6] = 0" (subscript_expression "puVar3[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[7] = 0;" (assignment_expression "puVar3[7] = 0" (subscript_expression "puVar3[7]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })) }))) comment (expression_statement "yy_fatal_error(PTR_DAT_0002f0e8 + -0x31c0);" (call_expression "yy_fatal_error(PTR_DAT_0002f0e8 + -0x31c0)" identifier (argument_list "(PTR_DAT_0002f0e8 + -0x31c0)" ( (binary_expression "PTR_DAT_0002f0e8 + -0x31c0" identifier + number_literal) ))) ;) })))
(translation_unit "void FUN_0001576c(void)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  \n  puVar1 = PTR_optarg_0002f0d8;\n  if (*(int *)(PTR_optarg_0002f0d8 + -0xb68) == 0) {\n    iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }\n  }\n  else {\n    if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }\n    iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;\n    iVar5 = iVar4 * 4;\n    iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }\n  }\n                    \n  FUN_00015728(PTR_DAT_0002f0e8 + -0x31c0);\n}\n\n" (function_definition "void FUN_0001576c(void)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  \n  puVar1 = PTR_optarg_0002f0d8;\n  if (*(int *)(PTR_optarg_0002f0d8 + -0xb68) == 0) {\n    iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }\n  }\n  else {\n    if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }\n    iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;\n    iVar5 = iVar4 * 4;\n    iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }\n  }\n                    \n  FUN_00015728(PTR_DAT_0002f0e8 + -0x31c0);\n}" primitive_type (function_declarator "FUN_0001576c(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  \n  puVar1 = PTR_optarg_0002f0d8;\n  if (*(int *)(PTR_optarg_0002f0d8 + -0xb68) == 0) {\n    iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }\n  }\n  else {\n    if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }\n    iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;\n    iVar5 = iVar4 * 4;\n    iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }\n  }\n                    \n  FUN_00015728(PTR_DAT_0002f0e8 + -0x31c0);\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_optarg_0002f0d8;" (assignment_expression "puVar1 = PTR_optarg_0002f0d8" identifier = identifier) ;) (if_statement "if (*(int *)(PTR_optarg_0002f0d8 + -0xb68) == 0) {\n    iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }\n  }\n  else {\n    if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }\n    iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;\n    iVar5 = iVar4 * 4;\n    iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }\n  }" if (parenthesized_expression "(*(int *)(PTR_optarg_0002f0d8 + -0xb68) == 0)" ( (binary_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb68) == 0" (pointer_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb68)" * (cast_expression "(int *)(PTR_optarg_0002f0d8 + -0xb68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb68)" ( (binary_expression "PTR_optarg_0002f0d8 + -0xb68" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }\n  }" { (expression_statement "iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1);" (assignment_expression "iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1)" identifier = (call_expression "(*(code *)PTR_calloc_0002f23c)(4,1)" (parenthesized_expression "(*(code *)PTR_calloc_0002f23c)" ( (pointer_expression "*(code *)PTR_calloc_0002f23c" * (cast_expression "(code *)PTR_calloc_0002f23c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(4,1)" ( number_literal , number_literal )))) ;) (expression_statement "*(int *)(puVar1 + -0xb68) = iVar2;" (assignment_expression "*(int *)(puVar1 + -0xb68) = iVar2" (pointer_expression "*(int *)(puVar1 + -0xb68)" * (cast_expression "(int *)(puVar1 + -0xb68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0xb68)" ( (binary_expression "puVar1 + -0xb68" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar2 != 0) {\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }" { (expression_statement "*(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;" (assignment_expression "*(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1" (pointer_expression "*(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64)" * (cast_expression "(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb64)" ( (binary_expression "PTR_optarg_0002f0d8 + -0xb64" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;" (assignment_expression "*(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0" (pointer_expression "*(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60)" * (cast_expression "(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb60)" ( (binary_expression "PTR_optarg_0002f0d8 + -0xb60" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }\n    iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;\n    iVar5 = iVar4 * 4;\n    iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }\n  }" else (compound_statement "{\n    if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }\n    iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;\n    iVar5 = iVar4 * 4;\n    iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }\n  }" { (if_statement "if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }" if (parenthesized_expression "(*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U)" ( (binary_expression "*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U" (pointer_expression "*(uint *)(PTR_optarg_0002f0d8 + -0xb60)" * (cast_expression "(uint *)(PTR_optarg_0002f0d8 + -0xb60)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb60)" ( (binary_expression "PTR_optarg_0002f0d8 + -0xb60" identifier + number_literal) )))) < (binary_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U" (pointer_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb64)" * (cast_expression "(int *)(PTR_optarg_0002f0d8 + -0xb64)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb64)" ( (binary_expression "PTR_optarg_0002f0d8 + -0xb64" identifier + number_literal) )))) - number_literal)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;" (assignment_expression "iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8" identifier = (binary_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8" (pointer_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb64)" * (cast_expression "(int *)(PTR_optarg_0002f0d8 + -0xb64)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb64)" ( (binary_expression "PTR_optarg_0002f0d8 + -0xb64" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar5 = iVar4 * 4;" (assignment_expression "iVar5 = iVar4 * 4" identifier = (binary_expression "iVar4 * 4" identifier * number_literal)) ;) (expression_statement "iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);" (assignment_expression "iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5)" identifier = (call_expression "(*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5)" (parenthesized_expression "(*(code *)PTR_realloc_0002f330)" ( (pointer_expression "*(code *)PTR_realloc_0002f330" * (cast_expression "(code *)PTR_realloc_0002f330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5)" ( (pointer_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb68)" * (cast_expression "(int *)(PTR_optarg_0002f0d8 + -0xb68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb68)" ( (binary_expression "PTR_optarg_0002f0d8 + -0xb68" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "*(int *)(puVar1 + -0xb68) = iVar2;" (assignment_expression "*(int *)(puVar1 + -0xb68) = iVar2" (pointer_expression "*(int *)(puVar1 + -0xb68)" * (cast_expression "(int *)(puVar1 + -0xb68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0xb68)" ( (binary_expression "puVar1 + -0xb68" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }" { (expression_statement "*(int *)(puVar1 + -0xb64) = iVar4;" (assignment_expression "*(int *)(puVar1 + -0xb64) = iVar4" (pointer_expression "*(int *)(puVar1 + -0xb64)" * (cast_expression "(int *)(puVar1 + -0xb64)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0xb64)" ( (binary_expression "puVar1 + -0xb64" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);" (assignment_expression "puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20)" identifier = (cast_expression "(undefined4 *)(iVar2 + iVar5 + -0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar5 + -0x20)" ( (binary_expression "iVar2 + iVar5 + -0x20" (binary_expression "iVar2 + iVar5" identifier + identifier) + number_literal) )))) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[3] = 0;" (assignment_expression "puVar3[3] = 0" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[4] = 0;" (assignment_expression "puVar3[4] = 0" (subscript_expression "puVar3[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[5] = 0;" (assignment_expression "puVar3[5] = 0" (subscript_expression "puVar3[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[6] = 0;" (assignment_expression "puVar3[6] = 0" (subscript_expression "puVar3[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[7] = 0;" (assignment_expression "puVar3[7] = 0" (subscript_expression "puVar3[7]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })) }))) (expression_statement "FUN_00015728(PTR_DAT_0002f0e8 + -0x31c0);" (call_expression "FUN_00015728(PTR_DAT_0002f0e8 + -0x31c0)" identifier (argument_list "(PTR_DAT_0002f0e8 + -0x31c0)" ( (binary_expression "PTR_DAT_0002f0e8 + -0x31c0" identifier + number_literal) ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_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 { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_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) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - LIT)) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_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) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return ;) })) }))) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) })))
(function_definition "void FUN_0001576c(void)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  \n  puVar1 = PTR_optarg_0002f0d8;\n  if (*(int *)(PTR_optarg_0002f0d8 + -0xb68) == 0) {\n    iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }\n  }\n  else {\n    if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }\n    iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;\n    iVar5 = iVar4 * 4;\n    iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }\n  }\n                    \n  FUN_00015728(PTR_DAT_0002f0e8 + -0x31c0);\n}" (primitive_type "void") (function_declarator "FUN_0001576c(void)" (identifier "FUN_0001576c") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  \n  puVar1 = PTR_optarg_0002f0d8;\n  if (*(int *)(PTR_optarg_0002f0d8 + -0xb68) == 0) {\n    iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }\n  }\n  else {\n    if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }\n    iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;\n    iVar5 = iVar4 * 4;\n    iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }\n  }\n                    \n  FUN_00015728(PTR_DAT_0002f0e8 + -0x31c0);\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "puVar1 = PTR_optarg_0002f0d8;" (assignment_expression "puVar1 = PTR_optarg_0002f0d8" (identifier "puVar1") (= "=") (identifier "PTR_optarg_0002f0d8")) (; ";")) (if_statement "if (*(int *)(PTR_optarg_0002f0d8 + -0xb68) == 0) {\n    iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }\n  }\n  else {\n    if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }\n    iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;\n    iVar5 = iVar4 * 4;\n    iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)(PTR_optarg_0002f0d8 + -0xb68) == 0)" (( "(") (binary_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb68) == 0" (pointer_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb68)" (* "*") (cast_expression "(int *)(PTR_optarg_0002f0d8 + -0xb68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb68)" (( "(") (binary_expression "PTR_optarg_0002f0d8 + -0xb68" (identifier "PTR_optarg_0002f0d8") (+ "+") (number_literal "-0xb68")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }\n  }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1);" (assignment_expression "iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_calloc_0002f23c)(4,1)" (parenthesized_expression "(*(code *)PTR_calloc_0002f23c)" (( "(") (pointer_expression "*(code *)PTR_calloc_0002f23c" (* "*") (cast_expression "(code *)PTR_calloc_0002f23c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_calloc_0002f23c"))) () ")")) (argument_list "(4,1)" (( "(") (number_literal "4") (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "*(int *)(puVar1 + -0xb68) = iVar2;" (assignment_expression "*(int *)(puVar1 + -0xb68) = iVar2" (pointer_expression "*(int *)(puVar1 + -0xb68)" (* "*") (cast_expression "(int *)(puVar1 + -0xb68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -0xb68)" (( "(") (binary_expression "puVar1 + -0xb68" (identifier "puVar1") (+ "+") (number_literal "-0xb68")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (iVar2 != 0) {\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;\n      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;\n      return;\n    }" ({ "{") (expression_statement "*(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;" (assignment_expression "*(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1" (pointer_expression "*(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64)" (* "*") (cast_expression "(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb64)" (( "(") (binary_expression "PTR_optarg_0002f0d8 + -0xb64" (identifier "PTR_optarg_0002f0d8") (+ "+") (number_literal "-0xb64")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;" (assignment_expression "*(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0" (pointer_expression "*(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60)" (* "*") (cast_expression "(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb60)" (( "(") (binary_expression "PTR_optarg_0002f0d8 + -0xb60" (identifier "PTR_optarg_0002f0d8") (+ "+") (number_literal "-0xb60")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }\n    iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;\n    iVar5 = iVar4 * 4;\n    iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }\n  }" (else "else") (compound_statement "{\n    if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }\n    iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;\n    iVar5 = iVar4 * 4;\n    iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);\n    *(int *)(puVar1 + -0xb68) = iVar2;\n    if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }\n  }" ({ "{") (if_statement "if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {\n      return;\n    }" (if "if") (parenthesized_expression "(*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U)" (( "(") (binary_expression "*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U" (pointer_expression "*(uint *)(PTR_optarg_0002f0d8 + -0xb60)" (* "*") (cast_expression "(uint *)(PTR_optarg_0002f0d8 + -0xb60)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb60)" (( "(") (binary_expression "PTR_optarg_0002f0d8 + -0xb60" (identifier "PTR_optarg_0002f0d8") (+ "+") (number_literal "-0xb60")) () ")")))) (< "<") (binary_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U" (pointer_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb64)" (* "*") (cast_expression "(int *)(PTR_optarg_0002f0d8 + -0xb64)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb64)" (( "(") (binary_expression "PTR_optarg_0002f0d8 + -0xb64" (identifier "PTR_optarg_0002f0d8") (+ "+") (number_literal "-0xb64")) () ")")))) (- "-") (number_literal "1U"))) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;" (assignment_expression "iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8" (identifier "iVar4") (= "=") (binary_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8" (pointer_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb64)" (* "*") (cast_expression "(int *)(PTR_optarg_0002f0d8 + -0xb64)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb64)" (( "(") (binary_expression "PTR_optarg_0002f0d8 + -0xb64" (identifier "PTR_optarg_0002f0d8") (+ "+") (number_literal "-0xb64")) () ")")))) (+ "+") (number_literal "8"))) (; ";")) (expression_statement "iVar5 = iVar4 * 4;" (assignment_expression "iVar5 = iVar4 * 4" (identifier "iVar5") (= "=") (binary_expression "iVar4 * 4" (identifier "iVar4") (* "*") (number_literal "4"))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);" (assignment_expression "iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5)" (parenthesized_expression "(*(code *)PTR_realloc_0002f330)" (( "(") (pointer_expression "*(code *)PTR_realloc_0002f330" (* "*") (cast_expression "(code *)PTR_realloc_0002f330" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_realloc_0002f330"))) () ")")) (argument_list "(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5)" (( "(") (pointer_expression "*(int *)(PTR_optarg_0002f0d8 + -0xb68)" (* "*") (cast_expression "(int *)(PTR_optarg_0002f0d8 + -0xb68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_optarg_0002f0d8 + -0xb68)" (( "(") (binary_expression "PTR_optarg_0002f0d8 + -0xb68" (identifier "PTR_optarg_0002f0d8") (+ "+") (number_literal "-0xb68")) () ")")))) (, ",") (identifier "iVar5") () ")")))) (; ";")) (expression_statement "*(int *)(puVar1 + -0xb68) = iVar2;" (assignment_expression "*(int *)(puVar1 + -0xb68) = iVar2" (pointer_expression "*(int *)(puVar1 + -0xb68)" (* "*") (cast_expression "(int *)(puVar1 + -0xb68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -0xb68)" (( "(") (binary_expression "puVar1 + -0xb68" (identifier "puVar1") (+ "+") (number_literal "-0xb68")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (iVar2 != 0) {\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(int *)(puVar1 + -0xb64) = iVar4;\n      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar3[4] = 0;\n      puVar3[5] = 0;\n      puVar3[6] = 0;\n      puVar3[7] = 0;\n      return;\n    }" ({ "{") (expression_statement "*(int *)(puVar1 + -0xb64) = iVar4;" (assignment_expression "*(int *)(puVar1 + -0xb64) = iVar4" (pointer_expression "*(int *)(puVar1 + -0xb64)" (* "*") (cast_expression "(int *)(puVar1 + -0xb64)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -0xb64)" (( "(") (binary_expression "puVar1 + -0xb64" (identifier "puVar1") (+ "+") (number_literal "-0xb64")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);" (assignment_expression "puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)(iVar2 + iVar5 + -0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + iVar5 + -0x20)" (( "(") (binary_expression "iVar2 + iVar5 + -0x20" (binary_expression "iVar2 + iVar5" (identifier "iVar2") (+ "+") (identifier "iVar5")) (+ "+") (number_literal "-0x20")) () ")")))) (; ";")) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[3] = 0;" (assignment_expression "puVar3[3] = 0" (subscript_expression "puVar3[3]" (identifier "puVar3") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[4] = 0;" (assignment_expression "puVar3[4] = 0" (subscript_expression "puVar3[4]" (identifier "puVar3") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[5] = 0;" (assignment_expression "puVar3[5] = 0" (subscript_expression "puVar3[5]" (identifier "puVar3") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[6] = 0;" (assignment_expression "puVar3[6] = 0" (subscript_expression "puVar3[6]" (identifier "puVar3") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[7] = 0;" (assignment_expression "puVar3[7] = 0" (subscript_expression "puVar3[7]" (identifier "puVar3") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")))) (expression_statement "FUN_00015728(PTR_DAT_0002f0e8 + -0x31c0);" (call_expression "FUN_00015728(PTR_DAT_0002f0e8 + -0x31c0)" (identifier "FUN_00015728") (argument_list "(PTR_DAT_0002f0e8 + -0x31c0)" (( "(") (binary_expression "PTR_DAT_0002f0e8 + -0x31c0" (identifier "PTR_DAT_0002f0e8") (+ "+") (number_literal "-0x31c0")) () ")"))) (; ";")) (} "}")))

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

void function_1(void)

{
  type_1 *var_2;
  int var_3;
  type_2 *puVar3;
  int var_4;
  int var_5;
  
  var_2 = var_1;
  if (*(int *)(var_1 + -0xb68) == 0) {
    var_3 = (*(type_3 *)PTR_calloc_0002f23c)(4,1);
    *(int *)(var_2 + -0xb68) = var_3;
    if (var_3 != 0) {
      *(type_2 *)(var_1 + -0xb64) = 1;
      *(type_2 *)(var_1 + -0xb60) = 0;
      return;
    }
  }
  else {
    if (*(type_4 *)(var_1 + -0xb60) < *(int *)(var_1 + -0xb64) - 1U) {
      return;
    }
    var_4 = *(int *)(var_1 + -0xb64) + 8;
    var_5 = var_4 * 4;
    var_3 = (*(type_3 *)PTR_realloc_0002f330)(*(int *)(var_1 + -0xb68),var_5);
    *(int *)(var_2 + -0xb68) = var_3;
    if (var_3 != 0) {
      *(int *)(var_2 + -0xb64) = var_4;
      puVar3 = (type_2 *)(var_3 + var_5 + -0x20);
      *puVar3 = 0;
      puVar3[1] = 0;
      puVar3[2] = 0;
      puVar3[3] = 0;
      puVar3[4] = 0;
      puVar3[5] = 0;
      puVar3[6] = 0;
      puVar3[7] = 0;
      return;
    }
  }
                    /* WARNING: Subroutine does not return */
  var_6(var_7 + -0x31c0);
}


(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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_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 (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_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))) (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)))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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 (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: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (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))))) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (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))) (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: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))))

void MASKED(void)

{
  undefined *puVar1;
  int iVar2;
  undefined4 *puVar3;
  int iVar4;
  int iVar5;
  
  puVar1 = PTR_optarg_0002f0d8;
  if (*(int *)(PTR_optarg_0002f0d8 + -0xb68) == 0) {
    iVar2 = (*(code *)PTR_calloc_0002f23c)(4,1);
    *(int *)(puVar1 + -0xb68) = iVar2;
    if (iVar2 != 0) {
      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb64) = 1;
      *(undefined4 *)(PTR_optarg_0002f0d8 + -0xb60) = 0;
      return;
    }
  }
  else {
    if (*(uint *)(PTR_optarg_0002f0d8 + -0xb60) < *(int *)(PTR_optarg_0002f0d8 + -0xb64) - 1U) {
      return;
    }
    iVar4 = *(int *)(PTR_optarg_0002f0d8 + -0xb64) + 8;
    iVar5 = iVar4 * 4;
    iVar2 = (*(code *)PTR_realloc_0002f330)(*(int *)(PTR_optarg_0002f0d8 + -0xb68),iVar5);
    *(int *)(puVar1 + -0xb68) = iVar2;
    if (iVar2 != 0) {
      *(int *)(puVar1 + -0xb64) = iVar4;
      puVar3 = (undefined4 *)(iVar2 + iVar5 + -0x20);
      *puVar3 = 0;
      puVar3[1] = 0;
      puVar3[2] = 0;
      puVar3[3] = 0;
      puVar3[4] = 0;
      puVar3[5] = 0;
      puVar3[6] = 0;
      puVar3[7] = 0;
      return;
    }
  }
                    /* WARNING: Subroutine does not return */
  FUN_00015728(PTR_DAT_0002f0e8 + -0x31c0);
}

