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

void yyensure_buffer_stack(void)

{
  int iVar1;
  undefined4 *puVar2;
  int iVar3;
  int iVar4;
  
  if (*(int *)(PTR_DAT_00046858 + 0x6e14) == 0) {
    puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4);
    *(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2;
    if (puVar2 == (undefined4 *)0x0) {
                    /* WARNING: Subroutine does not return */
      yy_fatal_error(PTR_LAB_00046868 + 0x1824);
    }
    *puVar2 = 0;
    *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;
    *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;
  }
  else {
    iVar3 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;
    if (*(int *)(PTR_DAT_00046858 + 0x6e18) - 1U <= *(uint *)(PTR_DAT_00046858 + 0x6e1c)) {
      iVar4 = iVar3 * 4;
      iVar1 = (*(code *)PTR_realloc_00046cb8)(*(int *)(PTR_DAT_00046858 + 0x6e14),iVar4);
      *(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1;
      if (iVar1 == 0) {
                    /* WARNING: Subroutine does not return */
        yy_fatal_error(PTR_LAB_00046868 + 0x1824);
      }
      puVar2 = (undefined4 *)(iVar1 + iVar4 + -0x20);
      *puVar2 = 0;
      puVar2[1] = 0;
      puVar2[2] = 0;
      puVar2[3] = 0;
      puVar2[4] = 0;
      puVar2[5] = 0;
      puVar2[6] = 0;
      puVar2[7] = 0;
      *(int *)(PTR_DAT_00046858 + 0x6e18) = iVar3;
    }
  }
  return;
}



void FUN_00013d14(void)

{
  int iVar1;
  undefined4 *puVar2;
  int iVar3;
  int *piVar4;
  undefined *puVar5;
  undefined1 *puVar6;
  int unaff_s0;
  undefined *puVar7;
  
  if (*(int *)(PTR_DAT_00046858 + 0x6e14) == 0) {
    puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4);
    *(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2;
    if (puVar2 != (undefined4 *)0x0) {
      *puVar2 = 0;
      *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;
      *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;
      return;
    }
    FUN_00013cc4(PTR_LAB_00046868 + 0x1824);
  }
  else {
    unaff_s0 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;
    if (*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U) {
      return;
    }
  }
  iVar1 = (*(code *)PTR_realloc_00046cb8)();
  *(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1;
  if (iVar1 == 0) {
    puVar5 = PTR_LAB_00046868 + 0x1824;
    puVar7 = PTR_00046864 + 0x3cc4;
    FUN_00013cc4();
    FUN_00013d14();
    iVar1 = *(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14);
    iVar3 = *(int *)(puVar7 + 0x32a20);
    if (iVar1 == 0) {
      if (puVar5 == (undefined *)0x0) {
        return;
      }
    }
    else {
      piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);
      if ((undefined *)*piVar4 == puVar5) {
        return;
      }
      if ((undefined *)*piVar4 != (undefined *)0x0) {
        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);
        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);
        *(undefined1 **)(*piVar4 + 8) = puVar6;
        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);
      }
      iVar3 = *(int *)(puVar7 + 0x32a20);
    }
    *(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4) = puVar5;
    FUN_00013c5c();
    *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc) = 1;
    return;
  }
  puVar2 = (undefined4 *)(iVar1 + unaff_s0 * 4 + -0x20);
  *puVar2 = 0;
  puVar2[1] = 0;
  puVar2[2] = 0;
  puVar2[3] = 0;
  puVar2[4] = 0;
  puVar2[5] = 0;
  puVar2[6] = 0;
  puVar2[7] = 0;
  *(int *)(PTR_DAT_00046858 + 0x6e18) = unaff_s0;
  return;
}


lui gp,0x4
addiu gp,gp,-0x54e4
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
lw v0,-0x7fd8(gp)
lw a0,0x6e14(v0)
beq a0,zero,0x00013d74
_lw v0,-0x7fd8(gp)
lw v1,0x6e18(v0)
addiu v0,v1,-0x1
lw a1,-0x7fd8(gp)
lw a1,0x6e1c(a1)
sltu v0,a1,v0
beq v0,zero,0x00013dc8
_addiu s0,v1,0x8
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
li a0,0x4
lw t9,-0x7b7c(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw v1,-0x7fd8(gp)
beq v0,zero,0x00013db0
_sw v0,0x6e14(v1)
sw zero,0x0(v0)
lw v0,-0x7fd8(gp)
li v1,0x1
sw v1,0x6e18(v0)
lw v0,-0x7fd8(gp)
b 0x00013d60
_sw zero,0x6e1c(v0)
lw a0,-0x7fc8(gp)
addiu a0,a0,0x1824
lw t9,-0x7fcc(gp)
addiu t9,t9,0x3cc4
bal 0x00013cc4
_nop
sll s1,s0,0x2
or a1,s1,zero
lw t9,-0x7b78(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw v1,-0x7fd8(gp)
beq v0,zero,0x00013e20
_sw v0,0x6e14(v1)
addiu s1,s1,-0x20
addu v0,v0,s1
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 v0,-0x7fd8(gp)
b 0x00013d60
_sw s0,0x6e18(v0)
lw a0,-0x7fc8(gp)
addiu a0,a0,0x1824
lw t9,-0x7fcc(gp)
addiu t9,t9,0x3cc4
bal 0x00013cc4
_nop
(translation_unit "void FUN_00013d14(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined *puVar5;\n  undefined1 *puVar6;\n  int unaff_s0;\n  undefined *puVar7;\n  \n  if (*(int *)(PTR_DAT_00046858 + 0x6e14) == 0) {\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4);\n    *(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2;\n    if (puVar2 != (undefined4 *)0x0) {\n      *puVar2 = 0;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;\n      return;\n    }\n    FUN_00013cc4(PTR_LAB_00046868 + 0x1824);\n  }\n  else {\n    unaff_s0 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;\n    if (*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U) {\n      return;\n    }\n  }\n  iVar1 = (*(code *)PTR_realloc_00046cb8)();\n  *(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1;\n  if (iVar1 == 0) {\n    puVar5 = PTR_LAB_00046868 + 0x1824;\n    puVar7 = PTR_00046864 + 0x3cc4;\n    FUN_00013cc4();\n    FUN_00013d14();\n    iVar1 = *(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14);\n    iVar3 = *(int *)(puVar7 + 0x32a20);\n    if (iVar1 == 0) {\n      if (puVar5 == (undefined *)0x0) {\n        return;\n      }\n    }\n    else {\n      piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);\n      if ((undefined *)*piVar4 == puVar5) {\n        return;\n      }\n      if ((undefined *)*piVar4 != (undefined *)0x0) {\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }\n      iVar3 = *(int *)(puVar7 + 0x32a20);\n    }\n    *(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4) = puVar5;\n    FUN_00013c5c();\n    *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc) = 1;\n    return;\n  }\n  puVar2 = (undefined4 *)(iVar1 + unaff_s0 * 4 + -0x20);\n  *puVar2 = 0;\n  puVar2[1] = 0;\n  puVar2[2] = 0;\n  puVar2[3] = 0;\n  puVar2[4] = 0;\n  puVar2[5] = 0;\n  puVar2[6] = 0;\n  puVar2[7] = 0;\n  *(int *)(PTR_DAT_00046858 + 0x6e18) = unaff_s0;\n  return;\n}\n\n" (function_definition "void FUN_00013d14(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined *puVar5;\n  undefined1 *puVar6;\n  int unaff_s0;\n  undefined *puVar7;\n  \n  if (*(int *)(PTR_DAT_00046858 + 0x6e14) == 0) {\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4);\n    *(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2;\n    if (puVar2 != (undefined4 *)0x0) {\n      *puVar2 = 0;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;\n      return;\n    }\n    FUN_00013cc4(PTR_LAB_00046868 + 0x1824);\n  }\n  else {\n    unaff_s0 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;\n    if (*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U) {\n      return;\n    }\n  }\n  iVar1 = (*(code *)PTR_realloc_00046cb8)();\n  *(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1;\n  if (iVar1 == 0) {\n    puVar5 = PTR_LAB_00046868 + 0x1824;\n    puVar7 = PTR_00046864 + 0x3cc4;\n    FUN_00013cc4();\n    FUN_00013d14();\n    iVar1 = *(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14);\n    iVar3 = *(int *)(puVar7 + 0x32a20);\n    if (iVar1 == 0) {\n      if (puVar5 == (undefined *)0x0) {\n        return;\n      }\n    }\n    else {\n      piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);\n      if ((undefined *)*piVar4 == puVar5) {\n        return;\n      }\n      if ((undefined *)*piVar4 != (undefined *)0x0) {\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }\n      iVar3 = *(int *)(puVar7 + 0x32a20);\n    }\n    *(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4) = puVar5;\n    FUN_00013c5c();\n    *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc) = 1;\n    return;\n  }\n  puVar2 = (undefined4 *)(iVar1 + unaff_s0 * 4 + -0x20);\n  *puVar2 = 0;\n  puVar2[1] = 0;\n  puVar2[2] = 0;\n  puVar2[3] = 0;\n  puVar2[4] = 0;\n  puVar2[5] = 0;\n  puVar2[6] = 0;\n  puVar2[7] = 0;\n  *(int *)(PTR_DAT_00046858 + 0x6e18) = unaff_s0;\n  return;\n}" primitive_type (function_declarator "FUN_00013d14(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined *puVar5;\n  undefined1 *puVar6;\n  int unaff_s0;\n  undefined *puVar7;\n  \n  if (*(int *)(PTR_DAT_00046858 + 0x6e14) == 0) {\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4);\n    *(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2;\n    if (puVar2 != (undefined4 *)0x0) {\n      *puVar2 = 0;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;\n      return;\n    }\n    FUN_00013cc4(PTR_LAB_00046868 + 0x1824);\n  }\n  else {\n    unaff_s0 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;\n    if (*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U) {\n      return;\n    }\n  }\n  iVar1 = (*(code *)PTR_realloc_00046cb8)();\n  *(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1;\n  if (iVar1 == 0) {\n    puVar5 = PTR_LAB_00046868 + 0x1824;\n    puVar7 = PTR_00046864 + 0x3cc4;\n    FUN_00013cc4();\n    FUN_00013d14();\n    iVar1 = *(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14);\n    iVar3 = *(int *)(puVar7 + 0x32a20);\n    if (iVar1 == 0) {\n      if (puVar5 == (undefined *)0x0) {\n        return;\n      }\n    }\n    else {\n      piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);\n      if ((undefined *)*piVar4 == puVar5) {\n        return;\n      }\n      if ((undefined *)*piVar4 != (undefined *)0x0) {\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }\n      iVar3 = *(int *)(puVar7 + 0x32a20);\n    }\n    *(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4) = puVar5;\n    FUN_00013c5c();\n    *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc) = 1;\n    return;\n  }\n  puVar2 = (undefined4 *)(iVar1 + unaff_s0 * 4 + -0x20);\n  *puVar2 = 0;\n  puVar2[1] = 0;\n  puVar2[2] = 0;\n  puVar2[3] = 0;\n  puVar2[4] = 0;\n  puVar2[5] = 0;\n  puVar2[6] = 0;\n  puVar2[7] = 0;\n  *(int *)(PTR_DAT_00046858 + 0x6e18) = unaff_s0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int unaff_s0;" primitive_type identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (if_statement "if (*(int *)(PTR_DAT_00046858 + 0x6e14) == 0) {\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4);\n    *(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2;\n    if (puVar2 != (undefined4 *)0x0) {\n      *puVar2 = 0;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;\n      return;\n    }\n    FUN_00013cc4(PTR_LAB_00046868 + 0x1824);\n  }\n  else {\n    unaff_s0 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;\n    if (*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U) {\n      return;\n    }\n  }" if (parenthesized_expression "(*(int *)(PTR_DAT_00046858 + 0x6e14) == 0)" ( (binary_expression "*(int *)(PTR_DAT_00046858 + 0x6e14) == 0" (pointer_expression "*(int *)(PTR_DAT_00046858 + 0x6e14)" * (cast_expression "(int *)(PTR_DAT_00046858 + 0x6e14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e14)" ( (binary_expression "PTR_DAT_00046858 + 0x6e14" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4);\n    *(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2;\n    if (puVar2 != (undefined4 *)0x0) {\n      *puVar2 = 0;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;\n      return;\n    }\n    FUN_00013cc4(PTR_LAB_00046868 + 0x1824);\n  }" { (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_malloc_00046cb4)(4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_00046cb4)(4)" (parenthesized_expression "(*(code *)PTR_malloc_00046cb4)" ( (pointer_expression "*(code *)PTR_malloc_00046cb4" * (cast_expression "(code *)PTR_malloc_00046cb4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "*(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2;" (assignment_expression "*(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2" (pointer_expression "*(undefined4 **)(PTR_DAT_00046858 + 0x6e14)" * (cast_expression "(undefined4 **)(PTR_DAT_00046858 + 0x6e14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e14)" ( (binary_expression "PTR_DAT_00046858 + 0x6e14" identifier + number_literal) )))) = identifier) ;) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n      *puVar2 = 0;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;\n      return;\n    }" if (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *puVar2 = 0;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;\n      return;\n    }" { (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "*(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;" (assignment_expression "*(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1" (pointer_expression "*(undefined4 *)(PTR_DAT_00046858 + 0x6e18)" * (cast_expression "(undefined4 *)(PTR_DAT_00046858 + 0x6e18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e18)" ( (binary_expression "PTR_DAT_00046858 + 0x6e18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;" (assignment_expression "*(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0" (pointer_expression "*(undefined4 *)(PTR_DAT_00046858 + 0x6e1c)" * (cast_expression "(undefined4 *)(PTR_DAT_00046858 + 0x6e1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e1c)" ( (binary_expression "PTR_DAT_00046858 + 0x6e1c" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00013cc4(PTR_LAB_00046868 + 0x1824);" (call_expression "FUN_00013cc4(PTR_LAB_00046868 + 0x1824)" identifier (argument_list "(PTR_LAB_00046868 + 0x1824)" ( (binary_expression "PTR_LAB_00046868 + 0x1824" identifier + number_literal) ))) ;) }) (else_clause "else {\n    unaff_s0 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;\n    if (*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U) {\n      return;\n    }\n  }" else (compound_statement "{\n    unaff_s0 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;\n    if (*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U) {\n      return;\n    }\n  }" { (expression_statement "unaff_s0 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;" (assignment_expression "unaff_s0 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8" identifier = (binary_expression "*(int *)(PTR_DAT_00046858 + 0x6e18) + 8" (pointer_expression "*(int *)(PTR_DAT_00046858 + 0x6e18)" * (cast_expression "(int *)(PTR_DAT_00046858 + 0x6e18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e18)" ( (binary_expression "PTR_DAT_00046858 + 0x6e18" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U) {\n      return;\n    }" if (parenthesized_expression "(*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U)" ( (binary_expression "*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U" (pointer_expression "*(uint *)(PTR_DAT_00046858 + 0x6e1c)" * (cast_expression "(uint *)(PTR_DAT_00046858 + 0x6e1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e1c)" ( (binary_expression "PTR_DAT_00046858 + 0x6e1c" identifier + number_literal) )))) < (binary_expression "*(int *)(PTR_DAT_00046858 + 0x6e18) - 1U" (pointer_expression "*(int *)(PTR_DAT_00046858 + 0x6e18)" * (cast_expression "(int *)(PTR_DAT_00046858 + 0x6e18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e18)" ( (binary_expression "PTR_DAT_00046858 + 0x6e18" identifier + number_literal) )))) - number_literal)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }))) (expression_statement "iVar1 = (*(code *)PTR_realloc_00046cb8)();" (assignment_expression "iVar1 = (*(code *)PTR_realloc_00046cb8)()" identifier = (call_expression "(*(code *)PTR_realloc_00046cb8)()" (parenthesized_expression "(*(code *)PTR_realloc_00046cb8)" ( (pointer_expression "*(code *)PTR_realloc_00046cb8" * (cast_expression "(code *)PTR_realloc_00046cb8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "*(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1;" (assignment_expression "*(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1" (pointer_expression "*(int *)(PTR_DAT_00046858 + 0x6e14)" * (cast_expression "(int *)(PTR_DAT_00046858 + 0x6e14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e14)" ( (binary_expression "PTR_DAT_00046858 + 0x6e14" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 == 0) {\n    puVar5 = PTR_LAB_00046868 + 0x1824;\n    puVar7 = PTR_00046864 + 0x3cc4;\n    FUN_00013cc4();\n    FUN_00013d14();\n    iVar1 = *(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14);\n    iVar3 = *(int *)(puVar7 + 0x32a20);\n    if (iVar1 == 0) {\n      if (puVar5 == (undefined *)0x0) {\n        return;\n      }\n    }\n    else {\n      piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);\n      if ((undefined *)*piVar4 == puVar5) {\n        return;\n      }\n      if ((undefined *)*piVar4 != (undefined *)0x0) {\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }\n      iVar3 = *(int *)(puVar7 + 0x32a20);\n    }\n    *(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4) = puVar5;\n    FUN_00013c5c();\n    *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc) = 1;\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar5 = PTR_LAB_00046868 + 0x1824;\n    puVar7 = PTR_00046864 + 0x3cc4;\n    FUN_00013cc4();\n    FUN_00013d14();\n    iVar1 = *(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14);\n    iVar3 = *(int *)(puVar7 + 0x32a20);\n    if (iVar1 == 0) {\n      if (puVar5 == (undefined *)0x0) {\n        return;\n      }\n    }\n    else {\n      piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);\n      if ((undefined *)*piVar4 == puVar5) {\n        return;\n      }\n      if ((undefined *)*piVar4 != (undefined *)0x0) {\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }\n      iVar3 = *(int *)(puVar7 + 0x32a20);\n    }\n    *(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4) = puVar5;\n    FUN_00013c5c();\n    *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc) = 1;\n    return;\n  }" { (expression_statement "puVar5 = PTR_LAB_00046868 + 0x1824;" (assignment_expression "puVar5 = PTR_LAB_00046868 + 0x1824" identifier = (binary_expression "PTR_LAB_00046868 + 0x1824" identifier + number_literal)) ;) (expression_statement "puVar7 = PTR_00046864 + 0x3cc4;" (assignment_expression "puVar7 = PTR_00046864 + 0x3cc4" identifier = (binary_expression "PTR_00046864 + 0x3cc4" identifier + number_literal)) ;) (expression_statement "FUN_00013cc4();" (call_expression "FUN_00013cc4()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00013d14();" (call_expression "FUN_00013d14()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14);" (assignment_expression "iVar1 = *(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14)" identifier = (pointer_expression "*(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14)" * (cast_expression "(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar7 + 0x32a20) + 0x6e14)" ( (binary_expression "*(int *)(puVar7 + 0x32a20) + 0x6e14" (pointer_expression "*(int *)(puVar7 + 0x32a20)" * (cast_expression "(int *)(puVar7 + 0x32a20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x32a20)" ( (binary_expression "puVar7 + 0x32a20" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(puVar7 + 0x32a20);" (assignment_expression "iVar3 = *(int *)(puVar7 + 0x32a20)" identifier = (pointer_expression "*(int *)(puVar7 + 0x32a20)" * (cast_expression "(int *)(puVar7 + 0x32a20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x32a20)" ( (binary_expression "puVar7 + 0x32a20" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 == 0) {\n      if (puVar5 == (undefined *)0x0) {\n        return;\n      }\n    }\n    else {\n      piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);\n      if ((undefined *)*piVar4 == puVar5) {\n        return;\n      }\n      if ((undefined *)*piVar4 != (undefined *)0x0) {\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }\n      iVar3 = *(int *)(puVar7 + 0x32a20);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      if (puVar5 == (undefined *)0x0) {\n        return;\n      }\n    }" { (if_statement "if (puVar5 == (undefined *)0x0) {\n        return;\n      }" if (parenthesized_expression "(puVar5 == (undefined *)0x0)" ( (binary_expression "puVar5 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) }) (else_clause "else {\n      piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);\n      if ((undefined *)*piVar4 == puVar5) {\n        return;\n      }\n      if ((undefined *)*piVar4 != (undefined *)0x0) {\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }\n      iVar3 = *(int *)(puVar7 + 0x32a20);\n    }" else (compound_statement "{\n      piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);\n      if ((undefined *)*piVar4 == puVar5) {\n        return;\n      }\n      if ((undefined *)*piVar4 != (undefined *)0x0) {\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }\n      iVar3 = *(int *)(puVar7 + 0x32a20);\n    }" { (expression_statement "piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);" (assignment_expression "piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4)" identifier = (cast_expression "(int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4)" ( (binary_expression "iVar1 + *(int *)(iVar3 + 0x6e1c) * 4" identifier + (binary_expression "*(int *)(iVar3 + 0x6e1c) * 4" (pointer_expression "*(int *)(iVar3 + 0x6e1c)" * (cast_expression "(int *)(iVar3 + 0x6e1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x6e1c)" ( (binary_expression "iVar3 + 0x6e1c" identifier + number_literal) )))) * number_literal)) )))) ;) (if_statement "if ((undefined *)*piVar4 == puVar5) {\n        return;\n      }" if (parenthesized_expression "((undefined *)*piVar4 == puVar5)" ( (binary_expression "(undefined *)*piVar4 == puVar5" (cast_expression "(undefined *)*piVar4" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier)) == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (if_statement "if ((undefined *)*piVar4 != (undefined *)0x0) {\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }" if (parenthesized_expression "((undefined *)*piVar4 != (undefined *)0x0)" ( (binary_expression "(undefined *)*piVar4 != (undefined *)0x0" (cast_expression "(undefined *)*piVar4" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier)) != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }" { (expression_statement "puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);" (assignment_expression "puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08)" identifier = (pointer_expression "*(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08)" * (cast_expression "(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(puVar7 + 0x32a20) + 0x6e08)" ( (binary_expression "*(int *)(puVar7 + 0x32a20) + 0x6e08" (pointer_expression "*(int *)(puVar7 + 0x32a20)" * (cast_expression "(int *)(puVar7 + 0x32a20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x32a20)" ( (binary_expression "puVar7 + 0x32a20" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "*puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);" (assignment_expression "*puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10)" (pointer_expression "*puVar6" * identifier) = (pointer_expression "*(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10)" * (cast_expression "(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar7 + 0x32a20) + 0x6e10)" ( (binary_expression "*(int *)(puVar7 + 0x32a20) + 0x6e10" (pointer_expression "*(int *)(puVar7 + 0x32a20)" * (cast_expression "(int *)(puVar7 + 0x32a20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x32a20)" ( (binary_expression "puVar7 + 0x32a20" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "*(undefined1 **)(*piVar4 + 8) = puVar6;" (assignment_expression "*(undefined1 **)(*piVar4 + 8) = puVar6" (pointer_expression "*(undefined1 **)(*piVar4 + 8)" * (cast_expression "(undefined1 **)(*piVar4 + 8)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 8)" ( (binary_expression "*piVar4 + 8" (pointer_expression "*piVar4" * identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);" (assignment_expression "*(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c)" (pointer_expression "*(undefined4 *)(*piVar4 + 0x10)" * (cast_expression "(undefined4 *)(*piVar4 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar4 + 0x10)" ( (binary_expression "*piVar4 + 0x10" (pointer_expression "*piVar4" * identifier) + number_literal) )))) = (pointer_expression "*(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c)" * (cast_expression "(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar7 + 0x32a20) + 0x6e0c)" ( (binary_expression "*(int *)(puVar7 + 0x32a20) + 0x6e0c" (pointer_expression "*(int *)(puVar7 + 0x32a20)" * (cast_expression "(int *)(puVar7 + 0x32a20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x32a20)" ( (binary_expression "puVar7 + 0x32a20" identifier + number_literal) )))) + number_literal) ))))) ;) })) (expression_statement "iVar3 = *(int *)(puVar7 + 0x32a20);" (assignment_expression "iVar3 = *(int *)(puVar7 + 0x32a20)" identifier = (pointer_expression "*(int *)(puVar7 + 0x32a20)" * (cast_expression "(int *)(puVar7 + 0x32a20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x32a20)" ( (binary_expression "puVar7 + 0x32a20" identifier + number_literal) ))))) ;) }))) (expression_statement "*(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4) = puVar5;" (assignment_expression "*(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4) = puVar5" (pointer_expression "*(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4)" * (cast_expression "(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4)" ( (binary_expression "iVar1 + *(int *)(iVar3 + 0x6e1c) * 4" identifier + (binary_expression "*(int *)(iVar3 + 0x6e1c) * 4" (pointer_expression "*(int *)(iVar3 + 0x6e1c)" * (cast_expression "(int *)(iVar3 + 0x6e1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x6e1c)" ( (binary_expression "iVar3 + 0x6e1c" identifier + number_literal) )))) * number_literal)) )))) = identifier) ;) (expression_statement "FUN_00013c5c();" (call_expression "FUN_00013c5c()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc) = 1;" (assignment_expression "*(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc) = 1" (pointer_expression "*(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc)" * (cast_expression "(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar7 + 0x32a20) + 0x6dfc)" ( (binary_expression "*(int *)(puVar7 + 0x32a20) + 0x6dfc" (pointer_expression "*(int *)(puVar7 + 0x32a20)" * (cast_expression "(int *)(puVar7 + 0x32a20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x32a20)" ( (binary_expression "puVar7 + 0x32a20" identifier + number_literal) )))) + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "puVar2 = (undefined4 *)(iVar1 + unaff_s0 * 4 + -0x20);" (assignment_expression "puVar2 = (undefined4 *)(iVar1 + unaff_s0 * 4 + -0x20)" identifier = (cast_expression "(undefined4 *)(iVar1 + unaff_s0 * 4 + -0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + unaff_s0 * 4 + -0x20)" ( (binary_expression "iVar1 + unaff_s0 * 4 + -0x20" (binary_expression "iVar1 + unaff_s0 * 4" identifier + (binary_expression "unaff_s0 * 4" identifier * number_literal)) + number_literal) )))) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[3] = 0;" (assignment_expression "puVar2[3] = 0" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[4] = 0;" (assignment_expression "puVar2[4] = 0" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[5] = 0;" (assignment_expression "puVar2[5] = 0" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[6] = 0;" (assignment_expression "puVar2[6] = 0" (subscript_expression "puVar2[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[7] = 0;" (assignment_expression "puVar2[7] = 0" (subscript_expression "puVar2[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(int *)(PTR_DAT_00046858 + 0x6e18) = unaff_s0;" (assignment_expression "*(int *)(PTR_DAT_00046858 + 0x6e18) = unaff_s0" (pointer_expression "*(int *)(PTR_DAT_00046858 + 0x6e18)" * (cast_expression "(int *)(PTR_DAT_00046858 + 0x6e18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e18)" ( (binary_expression "PTR_DAT_00046858 + 0x6e18" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid yyensure_buffer_stack(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (*(int *)(PTR_DAT_00046858 + 0x6e14) == 0) {\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4);\n    *(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2;\n    if (puVar2 == (undefined4 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      yy_fatal_error(PTR_LAB_00046868 + 0x1824);\n    }\n    *puVar2 = 0;\n    *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;\n    *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;\n  }\n  else {\n    iVar3 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;\n    if (*(int *)(PTR_DAT_00046858 + 0x6e18) - 1U <= *(uint *)(PTR_DAT_00046858 + 0x6e1c)) {\n      iVar4 = iVar3 * 4;\n      iVar1 = (*(code *)PTR_realloc_00046cb8)(*(int *)(PTR_DAT_00046858 + 0x6e14),iVar4);\n      *(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1;\n      if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n        yy_fatal_error(PTR_LAB_00046868 + 0x1824);\n      }\n      puVar2 = (undefined4 *)(iVar1 + iVar4 + -0x20);\n      *puVar2 = 0;\n      puVar2[1] = 0;\n      puVar2[2] = 0;\n      puVar2[3] = 0;\n      puVar2[4] = 0;\n      puVar2[5] = 0;\n      puVar2[6] = 0;\n      puVar2[7] = 0;\n      *(int *)(PTR_DAT_00046858 + 0x6e18) = iVar3;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void yyensure_buffer_stack(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (*(int *)(PTR_DAT_00046858 + 0x6e14) == 0) {\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4);\n    *(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2;\n    if (puVar2 == (undefined4 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      yy_fatal_error(PTR_LAB_00046868 + 0x1824);\n    }\n    *puVar2 = 0;\n    *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;\n    *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;\n  }\n  else {\n    iVar3 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;\n    if (*(int *)(PTR_DAT_00046858 + 0x6e18) - 1U <= *(uint *)(PTR_DAT_00046858 + 0x6e1c)) {\n      iVar4 = iVar3 * 4;\n      iVar1 = (*(code *)PTR_realloc_00046cb8)(*(int *)(PTR_DAT_00046858 + 0x6e14),iVar4);\n      *(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1;\n      if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n        yy_fatal_error(PTR_LAB_00046868 + 0x1824);\n      }\n      puVar2 = (undefined4 *)(iVar1 + iVar4 + -0x20);\n      *puVar2 = 0;\n      puVar2[1] = 0;\n      puVar2[2] = 0;\n      puVar2[3] = 0;\n      puVar2[4] = 0;\n      puVar2[5] = 0;\n      puVar2[6] = 0;\n      puVar2[7] = 0;\n      *(int *)(PTR_DAT_00046858 + 0x6e18) = iVar3;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "yyensure_buffer_stack(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (*(int *)(PTR_DAT_00046858 + 0x6e14) == 0) {\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4);\n    *(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2;\n    if (puVar2 == (undefined4 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      yy_fatal_error(PTR_LAB_00046868 + 0x1824);\n    }\n    *puVar2 = 0;\n    *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;\n    *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;\n  }\n  else {\n    iVar3 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;\n    if (*(int *)(PTR_DAT_00046858 + 0x6e18) - 1U <= *(uint *)(PTR_DAT_00046858 + 0x6e1c)) {\n      iVar4 = iVar3 * 4;\n      iVar1 = (*(code *)PTR_realloc_00046cb8)(*(int *)(PTR_DAT_00046858 + 0x6e14),iVar4);\n      *(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1;\n      if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n        yy_fatal_error(PTR_LAB_00046868 + 0x1824);\n      }\n      puVar2 = (undefined4 *)(iVar1 + iVar4 + -0x20);\n      *puVar2 = 0;\n      puVar2[1] = 0;\n      puVar2[2] = 0;\n      puVar2[3] = 0;\n      puVar2[4] = 0;\n      puVar2[5] = 0;\n      puVar2[6] = 0;\n      puVar2[7] = 0;\n      *(int *)(PTR_DAT_00046858 + 0x6e18) = iVar3;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if (*(int *)(PTR_DAT_00046858 + 0x6e14) == 0) {\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4);\n    *(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2;\n    if (puVar2 == (undefined4 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      yy_fatal_error(PTR_LAB_00046868 + 0x1824);\n    }\n    *puVar2 = 0;\n    *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;\n    *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;\n  }\n  else {\n    iVar3 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;\n    if (*(int *)(PTR_DAT_00046858 + 0x6e18) - 1U <= *(uint *)(PTR_DAT_00046858 + 0x6e1c)) {\n      iVar4 = iVar3 * 4;\n      iVar1 = (*(code *)PTR_realloc_00046cb8)(*(int *)(PTR_DAT_00046858 + 0x6e14),iVar4);\n      *(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1;\n      if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n        yy_fatal_error(PTR_LAB_00046868 + 0x1824);\n      }\n      puVar2 = (undefined4 *)(iVar1 + iVar4 + -0x20);\n      *puVar2 = 0;\n      puVar2[1] = 0;\n      puVar2[2] = 0;\n      puVar2[3] = 0;\n      puVar2[4] = 0;\n      puVar2[5] = 0;\n      puVar2[6] = 0;\n      puVar2[7] = 0;\n      *(int *)(PTR_DAT_00046858 + 0x6e18) = iVar3;\n    }\n  }" if (parenthesized_expression "(*(int *)(PTR_DAT_00046858 + 0x6e14) == 0)" ( (binary_expression "*(int *)(PTR_DAT_00046858 + 0x6e14) == 0" (pointer_expression "*(int *)(PTR_DAT_00046858 + 0x6e14)" * (cast_expression "(int *)(PTR_DAT_00046858 + 0x6e14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e14)" ( (binary_expression "PTR_DAT_00046858 + 0x6e14" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4);\n    *(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2;\n    if (puVar2 == (undefined4 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      yy_fatal_error(PTR_LAB_00046868 + 0x1824);\n    }\n    *puVar2 = 0;\n    *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;\n    *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;\n  }" { (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_malloc_00046cb4)(4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_00046cb4)(4)" (parenthesized_expression "(*(code *)PTR_malloc_00046cb4)" ( (pointer_expression "*(code *)PTR_malloc_00046cb4" * (cast_expression "(code *)PTR_malloc_00046cb4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "*(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2;" (assignment_expression "*(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2" (pointer_expression "*(undefined4 **)(PTR_DAT_00046858 + 0x6e14)" * (cast_expression "(undefined4 **)(PTR_DAT_00046858 + 0x6e14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e14)" ( (binary_expression "PTR_DAT_00046858 + 0x6e14" identifier + number_literal) )))) = identifier) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      yy_fatal_error(PTR_LAB_00046868 + 0x1824);\n    }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      yy_fatal_error(PTR_LAB_00046868 + 0x1824);\n    }" { comment (expression_statement "yy_fatal_error(PTR_LAB_00046868 + 0x1824);" (call_expression "yy_fatal_error(PTR_LAB_00046868 + 0x1824)" identifier (argument_list "(PTR_LAB_00046868 + 0x1824)" ( (binary_expression "PTR_LAB_00046868 + 0x1824" identifier + number_literal) ))) ;) })) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "*(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;" (assignment_expression "*(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1" (pointer_expression "*(undefined4 *)(PTR_DAT_00046858 + 0x6e18)" * (cast_expression "(undefined4 *)(PTR_DAT_00046858 + 0x6e18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e18)" ( (binary_expression "PTR_DAT_00046858 + 0x6e18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;" (assignment_expression "*(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0" (pointer_expression "*(undefined4 *)(PTR_DAT_00046858 + 0x6e1c)" * (cast_expression "(undefined4 *)(PTR_DAT_00046858 + 0x6e1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e1c)" ( (binary_expression "PTR_DAT_00046858 + 0x6e1c" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    iVar3 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;\n    if (*(int *)(PTR_DAT_00046858 + 0x6e18) - 1U <= *(uint *)(PTR_DAT_00046858 + 0x6e1c)) {\n      iVar4 = iVar3 * 4;\n      iVar1 = (*(code *)PTR_realloc_00046cb8)(*(int *)(PTR_DAT_00046858 + 0x6e14),iVar4);\n      *(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1;\n      if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n        yy_fatal_error(PTR_LAB_00046868 + 0x1824);\n      }\n      puVar2 = (undefined4 *)(iVar1 + iVar4 + -0x20);\n      *puVar2 = 0;\n      puVar2[1] = 0;\n      puVar2[2] = 0;\n      puVar2[3] = 0;\n      puVar2[4] = 0;\n      puVar2[5] = 0;\n      puVar2[6] = 0;\n      puVar2[7] = 0;\n      *(int *)(PTR_DAT_00046858 + 0x6e18) = iVar3;\n    }\n  }" else (compound_statement "{\n    iVar3 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;\n    if (*(int *)(PTR_DAT_00046858 + 0x6e18) - 1U <= *(uint *)(PTR_DAT_00046858 + 0x6e1c)) {\n      iVar4 = iVar3 * 4;\n      iVar1 = (*(code *)PTR_realloc_00046cb8)(*(int *)(PTR_DAT_00046858 + 0x6e14),iVar4);\n      *(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1;\n      if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n        yy_fatal_error(PTR_LAB_00046868 + 0x1824);\n      }\n      puVar2 = (undefined4 *)(iVar1 + iVar4 + -0x20);\n      *puVar2 = 0;\n      puVar2[1] = 0;\n      puVar2[2] = 0;\n      puVar2[3] = 0;\n      puVar2[4] = 0;\n      puVar2[5] = 0;\n      puVar2[6] = 0;\n      puVar2[7] = 0;\n      *(int *)(PTR_DAT_00046858 + 0x6e18) = iVar3;\n    }\n  }" { (expression_statement "iVar3 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;" (assignment_expression "iVar3 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8" identifier = (binary_expression "*(int *)(PTR_DAT_00046858 + 0x6e18) + 8" (pointer_expression "*(int *)(PTR_DAT_00046858 + 0x6e18)" * (cast_expression "(int *)(PTR_DAT_00046858 + 0x6e18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e18)" ( (binary_expression "PTR_DAT_00046858 + 0x6e18" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (*(int *)(PTR_DAT_00046858 + 0x6e18) - 1U <= *(uint *)(PTR_DAT_00046858 + 0x6e1c)) {\n      iVar4 = iVar3 * 4;\n      iVar1 = (*(code *)PTR_realloc_00046cb8)(*(int *)(PTR_DAT_00046858 + 0x6e14),iVar4);\n      *(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1;\n      if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n        yy_fatal_error(PTR_LAB_00046868 + 0x1824);\n      }\n      puVar2 = (undefined4 *)(iVar1 + iVar4 + -0x20);\n      *puVar2 = 0;\n      puVar2[1] = 0;\n      puVar2[2] = 0;\n      puVar2[3] = 0;\n      puVar2[4] = 0;\n      puVar2[5] = 0;\n      puVar2[6] = 0;\n      puVar2[7] = 0;\n      *(int *)(PTR_DAT_00046858 + 0x6e18) = iVar3;\n    }" if (parenthesized_expression "(*(int *)(PTR_DAT_00046858 + 0x6e18) - 1U <= *(uint *)(PTR_DAT_00046858 + 0x6e1c))" ( (binary_expression "*(int *)(PTR_DAT_00046858 + 0x6e18) - 1U <= *(uint *)(PTR_DAT_00046858 + 0x6e1c)" (binary_expression "*(int *)(PTR_DAT_00046858 + 0x6e18) - 1U" (pointer_expression "*(int *)(PTR_DAT_00046858 + 0x6e18)" * (cast_expression "(int *)(PTR_DAT_00046858 + 0x6e18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e18)" ( (binary_expression "PTR_DAT_00046858 + 0x6e18" identifier + number_literal) )))) - number_literal) <= (pointer_expression "*(uint *)(PTR_DAT_00046858 + 0x6e1c)" * (cast_expression "(uint *)(PTR_DAT_00046858 + 0x6e1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e1c)" ( (binary_expression "PTR_DAT_00046858 + 0x6e1c" identifier + number_literal) ))))) )) (compound_statement "{\n      iVar4 = iVar3 * 4;\n      iVar1 = (*(code *)PTR_realloc_00046cb8)(*(int *)(PTR_DAT_00046858 + 0x6e14),iVar4);\n      *(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1;\n      if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n        yy_fatal_error(PTR_LAB_00046868 + 0x1824);\n      }\n      puVar2 = (undefined4 *)(iVar1 + iVar4 + -0x20);\n      *puVar2 = 0;\n      puVar2[1] = 0;\n      puVar2[2] = 0;\n      puVar2[3] = 0;\n      puVar2[4] = 0;\n      puVar2[5] = 0;\n      puVar2[6] = 0;\n      puVar2[7] = 0;\n      *(int *)(PTR_DAT_00046858 + 0x6e18) = iVar3;\n    }" { (expression_statement "iVar4 = iVar3 * 4;" (assignment_expression "iVar4 = iVar3 * 4" identifier = (binary_expression "iVar3 * 4" identifier * number_literal)) ;) (expression_statement "iVar1 = (*(code *)PTR_realloc_00046cb8)(*(int *)(PTR_DAT_00046858 + 0x6e14),iVar4);" (assignment_expression "iVar1 = (*(code *)PTR_realloc_00046cb8)(*(int *)(PTR_DAT_00046858 + 0x6e14),iVar4)" identifier = (call_expression "(*(code *)PTR_realloc_00046cb8)(*(int *)(PTR_DAT_00046858 + 0x6e14),iVar4)" (parenthesized_expression "(*(code *)PTR_realloc_00046cb8)" ( (pointer_expression "*(code *)PTR_realloc_00046cb8" * (cast_expression "(code *)PTR_realloc_00046cb8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(int *)(PTR_DAT_00046858 + 0x6e14),iVar4)" ( (pointer_expression "*(int *)(PTR_DAT_00046858 + 0x6e14)" * (cast_expression "(int *)(PTR_DAT_00046858 + 0x6e14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e14)" ( (binary_expression "PTR_DAT_00046858 + 0x6e14" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "*(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1;" (assignment_expression "*(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1" (pointer_expression "*(int *)(PTR_DAT_00046858 + 0x6e14)" * (cast_expression "(int *)(PTR_DAT_00046858 + 0x6e14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e14)" ( (binary_expression "PTR_DAT_00046858 + 0x6e14" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n        yy_fatal_error(PTR_LAB_00046868 + 0x1824);\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        yy_fatal_error(PTR_LAB_00046868 + 0x1824);\n      }" { comment (expression_statement "yy_fatal_error(PTR_LAB_00046868 + 0x1824);" (call_expression "yy_fatal_error(PTR_LAB_00046868 + 0x1824)" identifier (argument_list "(PTR_LAB_00046868 + 0x1824)" ( (binary_expression "PTR_LAB_00046868 + 0x1824" identifier + number_literal) ))) ;) })) (expression_statement "puVar2 = (undefined4 *)(iVar1 + iVar4 + -0x20);" (assignment_expression "puVar2 = (undefined4 *)(iVar1 + iVar4 + -0x20)" identifier = (cast_expression "(undefined4 *)(iVar1 + iVar4 + -0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar4 + -0x20)" ( (binary_expression "iVar1 + iVar4 + -0x20" (binary_expression "iVar1 + iVar4" identifier + identifier) + number_literal) )))) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[3] = 0;" (assignment_expression "puVar2[3] = 0" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[4] = 0;" (assignment_expression "puVar2[4] = 0" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[5] = 0;" (assignment_expression "puVar2[5] = 0" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[6] = 0;" (assignment_expression "puVar2[6] = 0" (subscript_expression "puVar2[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[7] = 0;" (assignment_expression "puVar2[7] = 0" (subscript_expression "puVar2[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(int *)(PTR_DAT_00046858 + 0x6e18) = iVar3;" (assignment_expression "*(int *)(PTR_DAT_00046858 + 0x6e18) = iVar3" (pointer_expression "*(int *)(PTR_DAT_00046858 + 0x6e18)" * (cast_expression "(int *)(PTR_DAT_00046858 + 0x6e18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e18)" ( (binary_expression "PTR_DAT_00046858 + 0x6e18" identifier + number_literal) )))) = identifier) ;) })) }))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00013d14(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined *puVar5;\n  undefined1 *puVar6;\n  int unaff_s0;\n  undefined *puVar7;\n  \n  if (*(int *)(PTR_DAT_00046858 + 0x6e14) == 0) {\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4);\n    *(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2;\n    if (puVar2 != (undefined4 *)0x0) {\n      *puVar2 = 0;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;\n      return;\n    }\n    FUN_00013cc4(PTR_LAB_00046868 + 0x1824);\n  }\n  else {\n    unaff_s0 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;\n    if (*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U) {\n      return;\n    }\n  }\n  iVar1 = (*(code *)PTR_realloc_00046cb8)();\n  *(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1;\n  if (iVar1 == 0) {\n    puVar5 = PTR_LAB_00046868 + 0x1824;\n    puVar7 = PTR_00046864 + 0x3cc4;\n    FUN_00013cc4();\n    FUN_00013d14();\n    iVar1 = *(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14);\n    iVar3 = *(int *)(puVar7 + 0x32a20);\n    if (iVar1 == 0) {\n      if (puVar5 == (undefined *)0x0) {\n        return;\n      }\n    }\n    else {\n      piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);\n      if ((undefined *)*piVar4 == puVar5) {\n        return;\n      }\n      if ((undefined *)*piVar4 != (undefined *)0x0) {\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }\n      iVar3 = *(int *)(puVar7 + 0x32a20);\n    }\n    *(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4) = puVar5;\n    FUN_00013c5c();\n    *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc) = 1;\n    return;\n  }\n  puVar2 = (undefined4 *)(iVar1 + unaff_s0 * 4 + -0x20);\n  *puVar2 = 0;\n  puVar2[1] = 0;\n  puVar2[2] = 0;\n  puVar2[3] = 0;\n  puVar2[4] = 0;\n  puVar2[5] = 0;\n  puVar2[6] = 0;\n  puVar2[7] = 0;\n  *(int *)(PTR_DAT_00046858 + 0x6e18) = unaff_s0;\n  return;\n}\n\n" (function_definition "void FUN_00013d14(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined *puVar5;\n  undefined1 *puVar6;\n  int unaff_s0;\n  undefined *puVar7;\n  \n  if (*(int *)(PTR_DAT_00046858 + 0x6e14) == 0) {\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4);\n    *(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2;\n    if (puVar2 != (undefined4 *)0x0) {\n      *puVar2 = 0;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;\n      return;\n    }\n    FUN_00013cc4(PTR_LAB_00046868 + 0x1824);\n  }\n  else {\n    unaff_s0 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;\n    if (*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U) {\n      return;\n    }\n  }\n  iVar1 = (*(code *)PTR_realloc_00046cb8)();\n  *(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1;\n  if (iVar1 == 0) {\n    puVar5 = PTR_LAB_00046868 + 0x1824;\n    puVar7 = PTR_00046864 + 0x3cc4;\n    FUN_00013cc4();\n    FUN_00013d14();\n    iVar1 = *(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14);\n    iVar3 = *(int *)(puVar7 + 0x32a20);\n    if (iVar1 == 0) {\n      if (puVar5 == (undefined *)0x0) {\n        return;\n      }\n    }\n    else {\n      piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);\n      if ((undefined *)*piVar4 == puVar5) {\n        return;\n      }\n      if ((undefined *)*piVar4 != (undefined *)0x0) {\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }\n      iVar3 = *(int *)(puVar7 + 0x32a20);\n    }\n    *(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4) = puVar5;\n    FUN_00013c5c();\n    *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc) = 1;\n    return;\n  }\n  puVar2 = (undefined4 *)(iVar1 + unaff_s0 * 4 + -0x20);\n  *puVar2 = 0;\n  puVar2[1] = 0;\n  puVar2[2] = 0;\n  puVar2[3] = 0;\n  puVar2[4] = 0;\n  puVar2[5] = 0;\n  puVar2[6] = 0;\n  puVar2[7] = 0;\n  *(int *)(PTR_DAT_00046858 + 0x6e18) = unaff_s0;\n  return;\n}" primitive_type (function_declarator "FUN_00013d14(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined *puVar5;\n  undefined1 *puVar6;\n  int unaff_s0;\n  undefined *puVar7;\n  \n  if (*(int *)(PTR_DAT_00046858 + 0x6e14) == 0) {\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4);\n    *(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2;\n    if (puVar2 != (undefined4 *)0x0) {\n      *puVar2 = 0;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;\n      return;\n    }\n    FUN_00013cc4(PTR_LAB_00046868 + 0x1824);\n  }\n  else {\n    unaff_s0 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;\n    if (*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U) {\n      return;\n    }\n  }\n  iVar1 = (*(code *)PTR_realloc_00046cb8)();\n  *(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1;\n  if (iVar1 == 0) {\n    puVar5 = PTR_LAB_00046868 + 0x1824;\n    puVar7 = PTR_00046864 + 0x3cc4;\n    FUN_00013cc4();\n    FUN_00013d14();\n    iVar1 = *(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14);\n    iVar3 = *(int *)(puVar7 + 0x32a20);\n    if (iVar1 == 0) {\n      if (puVar5 == (undefined *)0x0) {\n        return;\n      }\n    }\n    else {\n      piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);\n      if ((undefined *)*piVar4 == puVar5) {\n        return;\n      }\n      if ((undefined *)*piVar4 != (undefined *)0x0) {\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }\n      iVar3 = *(int *)(puVar7 + 0x32a20);\n    }\n    *(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4) = puVar5;\n    FUN_00013c5c();\n    *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc) = 1;\n    return;\n  }\n  puVar2 = (undefined4 *)(iVar1 + unaff_s0 * 4 + -0x20);\n  *puVar2 = 0;\n  puVar2[1] = 0;\n  puVar2[2] = 0;\n  puVar2[3] = 0;\n  puVar2[4] = 0;\n  puVar2[5] = 0;\n  puVar2[6] = 0;\n  puVar2[7] = 0;\n  *(int *)(PTR_DAT_00046858 + 0x6e18) = unaff_s0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int unaff_s0;" primitive_type identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (if_statement "if (*(int *)(PTR_DAT_00046858 + 0x6e14) == 0) {\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4);\n    *(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2;\n    if (puVar2 != (undefined4 *)0x0) {\n      *puVar2 = 0;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;\n      return;\n    }\n    FUN_00013cc4(PTR_LAB_00046868 + 0x1824);\n  }\n  else {\n    unaff_s0 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;\n    if (*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U) {\n      return;\n    }\n  }" if (parenthesized_expression "(*(int *)(PTR_DAT_00046858 + 0x6e14) == 0)" ( (binary_expression "*(int *)(PTR_DAT_00046858 + 0x6e14) == 0" (pointer_expression "*(int *)(PTR_DAT_00046858 + 0x6e14)" * (cast_expression "(int *)(PTR_DAT_00046858 + 0x6e14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e14)" ( (binary_expression "PTR_DAT_00046858 + 0x6e14" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4);\n    *(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2;\n    if (puVar2 != (undefined4 *)0x0) {\n      *puVar2 = 0;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;\n      return;\n    }\n    FUN_00013cc4(PTR_LAB_00046868 + 0x1824);\n  }" { (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_malloc_00046cb4)(4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_00046cb4)(4)" (parenthesized_expression "(*(code *)PTR_malloc_00046cb4)" ( (pointer_expression "*(code *)PTR_malloc_00046cb4" * (cast_expression "(code *)PTR_malloc_00046cb4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "*(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2;" (assignment_expression "*(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2" (pointer_expression "*(undefined4 **)(PTR_DAT_00046858 + 0x6e14)" * (cast_expression "(undefined4 **)(PTR_DAT_00046858 + 0x6e14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e14)" ( (binary_expression "PTR_DAT_00046858 + 0x6e14" identifier + number_literal) )))) = identifier) ;) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n      *puVar2 = 0;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;\n      return;\n    }" if (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *puVar2 = 0;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;\n      return;\n    }" { (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "*(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;" (assignment_expression "*(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1" (pointer_expression "*(undefined4 *)(PTR_DAT_00046858 + 0x6e18)" * (cast_expression "(undefined4 *)(PTR_DAT_00046858 + 0x6e18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e18)" ( (binary_expression "PTR_DAT_00046858 + 0x6e18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;" (assignment_expression "*(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0" (pointer_expression "*(undefined4 *)(PTR_DAT_00046858 + 0x6e1c)" * (cast_expression "(undefined4 *)(PTR_DAT_00046858 + 0x6e1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e1c)" ( (binary_expression "PTR_DAT_00046858 + 0x6e1c" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00013cc4(PTR_LAB_00046868 + 0x1824);" (call_expression "FUN_00013cc4(PTR_LAB_00046868 + 0x1824)" identifier (argument_list "(PTR_LAB_00046868 + 0x1824)" ( (binary_expression "PTR_LAB_00046868 + 0x1824" identifier + number_literal) ))) ;) }) (else_clause "else {\n    unaff_s0 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;\n    if (*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U) {\n      return;\n    }\n  }" else (compound_statement "{\n    unaff_s0 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;\n    if (*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U) {\n      return;\n    }\n  }" { (expression_statement "unaff_s0 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;" (assignment_expression "unaff_s0 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8" identifier = (binary_expression "*(int *)(PTR_DAT_00046858 + 0x6e18) + 8" (pointer_expression "*(int *)(PTR_DAT_00046858 + 0x6e18)" * (cast_expression "(int *)(PTR_DAT_00046858 + 0x6e18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e18)" ( (binary_expression "PTR_DAT_00046858 + 0x6e18" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U) {\n      return;\n    }" if (parenthesized_expression "(*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U)" ( (binary_expression "*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U" (pointer_expression "*(uint *)(PTR_DAT_00046858 + 0x6e1c)" * (cast_expression "(uint *)(PTR_DAT_00046858 + 0x6e1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e1c)" ( (binary_expression "PTR_DAT_00046858 + 0x6e1c" identifier + number_literal) )))) < (binary_expression "*(int *)(PTR_DAT_00046858 + 0x6e18) - 1U" (pointer_expression "*(int *)(PTR_DAT_00046858 + 0x6e18)" * (cast_expression "(int *)(PTR_DAT_00046858 + 0x6e18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e18)" ( (binary_expression "PTR_DAT_00046858 + 0x6e18" identifier + number_literal) )))) - number_literal)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }))) (expression_statement "iVar1 = (*(code *)PTR_realloc_00046cb8)();" (assignment_expression "iVar1 = (*(code *)PTR_realloc_00046cb8)()" identifier = (call_expression "(*(code *)PTR_realloc_00046cb8)()" (parenthesized_expression "(*(code *)PTR_realloc_00046cb8)" ( (pointer_expression "*(code *)PTR_realloc_00046cb8" * (cast_expression "(code *)PTR_realloc_00046cb8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "*(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1;" (assignment_expression "*(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1" (pointer_expression "*(int *)(PTR_DAT_00046858 + 0x6e14)" * (cast_expression "(int *)(PTR_DAT_00046858 + 0x6e14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e14)" ( (binary_expression "PTR_DAT_00046858 + 0x6e14" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 == 0) {\n    puVar5 = PTR_LAB_00046868 + 0x1824;\n    puVar7 = PTR_00046864 + 0x3cc4;\n    FUN_00013cc4();\n    FUN_00013d14();\n    iVar1 = *(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14);\n    iVar3 = *(int *)(puVar7 + 0x32a20);\n    if (iVar1 == 0) {\n      if (puVar5 == (undefined *)0x0) {\n        return;\n      }\n    }\n    else {\n      piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);\n      if ((undefined *)*piVar4 == puVar5) {\n        return;\n      }\n      if ((undefined *)*piVar4 != (undefined *)0x0) {\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }\n      iVar3 = *(int *)(puVar7 + 0x32a20);\n    }\n    *(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4) = puVar5;\n    FUN_00013c5c();\n    *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc) = 1;\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar5 = PTR_LAB_00046868 + 0x1824;\n    puVar7 = PTR_00046864 + 0x3cc4;\n    FUN_00013cc4();\n    FUN_00013d14();\n    iVar1 = *(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14);\n    iVar3 = *(int *)(puVar7 + 0x32a20);\n    if (iVar1 == 0) {\n      if (puVar5 == (undefined *)0x0) {\n        return;\n      }\n    }\n    else {\n      piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);\n      if ((undefined *)*piVar4 == puVar5) {\n        return;\n      }\n      if ((undefined *)*piVar4 != (undefined *)0x0) {\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }\n      iVar3 = *(int *)(puVar7 + 0x32a20);\n    }\n    *(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4) = puVar5;\n    FUN_00013c5c();\n    *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc) = 1;\n    return;\n  }" { (expression_statement "puVar5 = PTR_LAB_00046868 + 0x1824;" (assignment_expression "puVar5 = PTR_LAB_00046868 + 0x1824" identifier = (binary_expression "PTR_LAB_00046868 + 0x1824" identifier + number_literal)) ;) (expression_statement "puVar7 = PTR_00046864 + 0x3cc4;" (assignment_expression "puVar7 = PTR_00046864 + 0x3cc4" identifier = (binary_expression "PTR_00046864 + 0x3cc4" identifier + number_literal)) ;) (expression_statement "FUN_00013cc4();" (call_expression "FUN_00013cc4()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00013d14();" (call_expression "FUN_00013d14()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14);" (assignment_expression "iVar1 = *(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14)" identifier = (pointer_expression "*(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14)" * (cast_expression "(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar7 + 0x32a20) + 0x6e14)" ( (binary_expression "*(int *)(puVar7 + 0x32a20) + 0x6e14" (pointer_expression "*(int *)(puVar7 + 0x32a20)" * (cast_expression "(int *)(puVar7 + 0x32a20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x32a20)" ( (binary_expression "puVar7 + 0x32a20" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(puVar7 + 0x32a20);" (assignment_expression "iVar3 = *(int *)(puVar7 + 0x32a20)" identifier = (pointer_expression "*(int *)(puVar7 + 0x32a20)" * (cast_expression "(int *)(puVar7 + 0x32a20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x32a20)" ( (binary_expression "puVar7 + 0x32a20" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 == 0) {\n      if (puVar5 == (undefined *)0x0) {\n        return;\n      }\n    }\n    else {\n      piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);\n      if ((undefined *)*piVar4 == puVar5) {\n        return;\n      }\n      if ((undefined *)*piVar4 != (undefined *)0x0) {\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }\n      iVar3 = *(int *)(puVar7 + 0x32a20);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      if (puVar5 == (undefined *)0x0) {\n        return;\n      }\n    }" { (if_statement "if (puVar5 == (undefined *)0x0) {\n        return;\n      }" if (parenthesized_expression "(puVar5 == (undefined *)0x0)" ( (binary_expression "puVar5 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) }) (else_clause "else {\n      piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);\n      if ((undefined *)*piVar4 == puVar5) {\n        return;\n      }\n      if ((undefined *)*piVar4 != (undefined *)0x0) {\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }\n      iVar3 = *(int *)(puVar7 + 0x32a20);\n    }" else (compound_statement "{\n      piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);\n      if ((undefined *)*piVar4 == puVar5) {\n        return;\n      }\n      if ((undefined *)*piVar4 != (undefined *)0x0) {\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }\n      iVar3 = *(int *)(puVar7 + 0x32a20);\n    }" { (expression_statement "piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);" (assignment_expression "piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4)" identifier = (cast_expression "(int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4)" ( (binary_expression "iVar1 + *(int *)(iVar3 + 0x6e1c) * 4" identifier + (binary_expression "*(int *)(iVar3 + 0x6e1c) * 4" (pointer_expression "*(int *)(iVar3 + 0x6e1c)" * (cast_expression "(int *)(iVar3 + 0x6e1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x6e1c)" ( (binary_expression "iVar3 + 0x6e1c" identifier + number_literal) )))) * number_literal)) )))) ;) (if_statement "if ((undefined *)*piVar4 == puVar5) {\n        return;\n      }" if (parenthesized_expression "((undefined *)*piVar4 == puVar5)" ( (binary_expression "(undefined *)*piVar4 == puVar5" (cast_expression "(undefined *)*piVar4" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier)) == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (if_statement "if ((undefined *)*piVar4 != (undefined *)0x0) {\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }" if (parenthesized_expression "((undefined *)*piVar4 != (undefined *)0x0)" ( (binary_expression "(undefined *)*piVar4 != (undefined *)0x0" (cast_expression "(undefined *)*piVar4" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier)) != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }" { (expression_statement "puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);" (assignment_expression "puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08)" identifier = (pointer_expression "*(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08)" * (cast_expression "(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(puVar7 + 0x32a20) + 0x6e08)" ( (binary_expression "*(int *)(puVar7 + 0x32a20) + 0x6e08" (pointer_expression "*(int *)(puVar7 + 0x32a20)" * (cast_expression "(int *)(puVar7 + 0x32a20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x32a20)" ( (binary_expression "puVar7 + 0x32a20" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "*puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);" (assignment_expression "*puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10)" (pointer_expression "*puVar6" * identifier) = (pointer_expression "*(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10)" * (cast_expression "(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar7 + 0x32a20) + 0x6e10)" ( (binary_expression "*(int *)(puVar7 + 0x32a20) + 0x6e10" (pointer_expression "*(int *)(puVar7 + 0x32a20)" * (cast_expression "(int *)(puVar7 + 0x32a20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x32a20)" ( (binary_expression "puVar7 + 0x32a20" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "*(undefined1 **)(*piVar4 + 8) = puVar6;" (assignment_expression "*(undefined1 **)(*piVar4 + 8) = puVar6" (pointer_expression "*(undefined1 **)(*piVar4 + 8)" * (cast_expression "(undefined1 **)(*piVar4 + 8)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 8)" ( (binary_expression "*piVar4 + 8" (pointer_expression "*piVar4" * identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);" (assignment_expression "*(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c)" (pointer_expression "*(undefined4 *)(*piVar4 + 0x10)" * (cast_expression "(undefined4 *)(*piVar4 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar4 + 0x10)" ( (binary_expression "*piVar4 + 0x10" (pointer_expression "*piVar4" * identifier) + number_literal) )))) = (pointer_expression "*(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c)" * (cast_expression "(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar7 + 0x32a20) + 0x6e0c)" ( (binary_expression "*(int *)(puVar7 + 0x32a20) + 0x6e0c" (pointer_expression "*(int *)(puVar7 + 0x32a20)" * (cast_expression "(int *)(puVar7 + 0x32a20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x32a20)" ( (binary_expression "puVar7 + 0x32a20" identifier + number_literal) )))) + number_literal) ))))) ;) })) (expression_statement "iVar3 = *(int *)(puVar7 + 0x32a20);" (assignment_expression "iVar3 = *(int *)(puVar7 + 0x32a20)" identifier = (pointer_expression "*(int *)(puVar7 + 0x32a20)" * (cast_expression "(int *)(puVar7 + 0x32a20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x32a20)" ( (binary_expression "puVar7 + 0x32a20" identifier + number_literal) ))))) ;) }))) (expression_statement "*(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4) = puVar5;" (assignment_expression "*(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4) = puVar5" (pointer_expression "*(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4)" * (cast_expression "(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4)" ( (binary_expression "iVar1 + *(int *)(iVar3 + 0x6e1c) * 4" identifier + (binary_expression "*(int *)(iVar3 + 0x6e1c) * 4" (pointer_expression "*(int *)(iVar3 + 0x6e1c)" * (cast_expression "(int *)(iVar3 + 0x6e1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x6e1c)" ( (binary_expression "iVar3 + 0x6e1c" identifier + number_literal) )))) * number_literal)) )))) = identifier) ;) (expression_statement "FUN_00013c5c();" (call_expression "FUN_00013c5c()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc) = 1;" (assignment_expression "*(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc) = 1" (pointer_expression "*(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc)" * (cast_expression "(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar7 + 0x32a20) + 0x6dfc)" ( (binary_expression "*(int *)(puVar7 + 0x32a20) + 0x6dfc" (pointer_expression "*(int *)(puVar7 + 0x32a20)" * (cast_expression "(int *)(puVar7 + 0x32a20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x32a20)" ( (binary_expression "puVar7 + 0x32a20" identifier + number_literal) )))) + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "puVar2 = (undefined4 *)(iVar1 + unaff_s0 * 4 + -0x20);" (assignment_expression "puVar2 = (undefined4 *)(iVar1 + unaff_s0 * 4 + -0x20)" identifier = (cast_expression "(undefined4 *)(iVar1 + unaff_s0 * 4 + -0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + unaff_s0 * 4 + -0x20)" ( (binary_expression "iVar1 + unaff_s0 * 4 + -0x20" (binary_expression "iVar1 + unaff_s0 * 4" identifier + (binary_expression "unaff_s0 * 4" identifier * number_literal)) + number_literal) )))) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[3] = 0;" (assignment_expression "puVar2[3] = 0" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[4] = 0;" (assignment_expression "puVar2[4] = 0" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[5] = 0;" (assignment_expression "puVar2[5] = 0" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[6] = 0;" (assignment_expression "puVar2[6] = 0" (subscript_expression "puVar2[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[7] = 0;" (assignment_expression "puVar2[7] = 0" (subscript_expression "puVar2[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(int *)(PTR_DAT_00046858 + 0x6e18) = unaff_s0;" (assignment_expression "*(int *)(PTR_DAT_00046858 + 0x6e18) = unaff_s0" (pointer_expression "*(int *)(PTR_DAT_00046858 + 0x6e18)" * (cast_expression "(int *)(PTR_DAT_00046858 + 0x6e18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00046858 + 0x6e18)" ( (binary_expression "PTR_DAT_00046858 + 0x6e18" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * 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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (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 ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) }) (else_clause else (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) )))) + LIT)) ;) (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 = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (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 IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) == IDENT) )) (compound_statement { (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT)) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = LIT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + 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) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_00013d14(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined *puVar5;\n  undefined1 *puVar6;\n  int unaff_s0;\n  undefined *puVar7;\n  \n  if (*(int *)(PTR_DAT_00046858 + 0x6e14) == 0) {\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4);\n    *(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2;\n    if (puVar2 != (undefined4 *)0x0) {\n      *puVar2 = 0;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;\n      return;\n    }\n    FUN_00013cc4(PTR_LAB_00046868 + 0x1824);\n  }\n  else {\n    unaff_s0 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;\n    if (*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U) {\n      return;\n    }\n  }\n  iVar1 = (*(code *)PTR_realloc_00046cb8)();\n  *(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1;\n  if (iVar1 == 0) {\n    puVar5 = PTR_LAB_00046868 + 0x1824;\n    puVar7 = PTR_00046864 + 0x3cc4;\n    FUN_00013cc4();\n    FUN_00013d14();\n    iVar1 = *(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14);\n    iVar3 = *(int *)(puVar7 + 0x32a20);\n    if (iVar1 == 0) {\n      if (puVar5 == (undefined *)0x0) {\n        return;\n      }\n    }\n    else {\n      piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);\n      if ((undefined *)*piVar4 == puVar5) {\n        return;\n      }\n      if ((undefined *)*piVar4 != (undefined *)0x0) {\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }\n      iVar3 = *(int *)(puVar7 + 0x32a20);\n    }\n    *(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4) = puVar5;\n    FUN_00013c5c();\n    *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc) = 1;\n    return;\n  }\n  puVar2 = (undefined4 *)(iVar1 + unaff_s0 * 4 + -0x20);\n  *puVar2 = 0;\n  puVar2[1] = 0;\n  puVar2[2] = 0;\n  puVar2[3] = 0;\n  puVar2[4] = 0;\n  puVar2[5] = 0;\n  puVar2[6] = 0;\n  puVar2[7] = 0;\n  *(int *)(PTR_DAT_00046858 + 0x6e18) = unaff_s0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00013d14(void)" (identifier "FUN_00013d14") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined *puVar5;\n  undefined1 *puVar6;\n  int unaff_s0;\n  undefined *puVar7;\n  \n  if (*(int *)(PTR_DAT_00046858 + 0x6e14) == 0) {\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4);\n    *(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2;\n    if (puVar2 != (undefined4 *)0x0) {\n      *puVar2 = 0;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;\n      return;\n    }\n    FUN_00013cc4(PTR_LAB_00046868 + 0x1824);\n  }\n  else {\n    unaff_s0 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;\n    if (*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U) {\n      return;\n    }\n  }\n  iVar1 = (*(code *)PTR_realloc_00046cb8)();\n  *(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1;\n  if (iVar1 == 0) {\n    puVar5 = PTR_LAB_00046868 + 0x1824;\n    puVar7 = PTR_00046864 + 0x3cc4;\n    FUN_00013cc4();\n    FUN_00013d14();\n    iVar1 = *(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14);\n    iVar3 = *(int *)(puVar7 + 0x32a20);\n    if (iVar1 == 0) {\n      if (puVar5 == (undefined *)0x0) {\n        return;\n      }\n    }\n    else {\n      piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);\n      if ((undefined *)*piVar4 == puVar5) {\n        return;\n      }\n      if ((undefined *)*piVar4 != (undefined *)0x0) {\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }\n      iVar3 = *(int *)(puVar7 + 0x32a20);\n    }\n    *(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4) = puVar5;\n    FUN_00013c5c();\n    *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc) = 1;\n    return;\n  }\n  puVar2 = (undefined4 *)(iVar1 + unaff_s0 * 4 + -0x20);\n  *puVar2 = 0;\n  puVar2[1] = 0;\n  puVar2[2] = 0;\n  puVar2[3] = 0;\n  puVar2[4] = 0;\n  puVar2[5] = 0;\n  puVar2[6] = 0;\n  puVar2[7] = 0;\n  *(int *)(PTR_DAT_00046858 + 0x6e18) = unaff_s0;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined1 *puVar6;" (type_identifier "undefined1") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int unaff_s0;" (primitive_type "int") (identifier "unaff_s0") (; ";")) (declaration "undefined *puVar7;" (type_identifier "undefined") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (if_statement "if (*(int *)(PTR_DAT_00046858 + 0x6e14) == 0) {\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4);\n    *(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2;\n    if (puVar2 != (undefined4 *)0x0) {\n      *puVar2 = 0;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;\n      return;\n    }\n    FUN_00013cc4(PTR_LAB_00046868 + 0x1824);\n  }\n  else {\n    unaff_s0 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;\n    if (*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U) {\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)(PTR_DAT_00046858 + 0x6e14) == 0)" (( "(") (binary_expression "*(int *)(PTR_DAT_00046858 + 0x6e14) == 0" (pointer_expression "*(int *)(PTR_DAT_00046858 + 0x6e14)" (* "*") (cast_expression "(int *)(PTR_DAT_00046858 + 0x6e14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_00046858 + 0x6e14)" (( "(") (binary_expression "PTR_DAT_00046858 + 0x6e14" (identifier "PTR_DAT_00046858") (+ "+") (number_literal "0x6e14")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4);\n    *(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2;\n    if (puVar2 != (undefined4 *)0x0) {\n      *puVar2 = 0;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;\n      return;\n    }\n    FUN_00013cc4(PTR_LAB_00046868 + 0x1824);\n  }" ({ "{") (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR_malloc_00046cb4)(4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_malloc_00046cb4)(4)" (parenthesized_expression "(*(code *)PTR_malloc_00046cb4)" (( "(") (pointer_expression "*(code *)PTR_malloc_00046cb4" (* "*") (cast_expression "(code *)PTR_malloc_00046cb4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_malloc_00046cb4"))) () ")")) (argument_list "(4)" (( "(") (number_literal "4") () ")"))))) (; ";")) (expression_statement "*(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2;" (assignment_expression "*(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2" (pointer_expression "*(undefined4 **)(PTR_DAT_00046858 + 0x6e14)" (* "*") (cast_expression "(undefined4 **)(PTR_DAT_00046858 + 0x6e14)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_00046858 + 0x6e14)" (( "(") (binary_expression "PTR_DAT_00046858 + 0x6e14" (identifier "PTR_DAT_00046858") (+ "+") (number_literal "0x6e14")) () ")")))) (= "=") (identifier "puVar2")) (; ";")) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n      *puVar2 = 0;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;\n      return;\n    }" (if "if") (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 != (undefined4 *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *puVar2 = 0;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;\n      *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;\n      return;\n    }" ({ "{") (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;" (assignment_expression "*(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1" (pointer_expression "*(undefined4 *)(PTR_DAT_00046858 + 0x6e18)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_00046858 + 0x6e18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_00046858 + 0x6e18)" (( "(") (binary_expression "PTR_DAT_00046858 + 0x6e18" (identifier "PTR_DAT_00046858") (+ "+") (number_literal "0x6e18")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;" (assignment_expression "*(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0" (pointer_expression "*(undefined4 *)(PTR_DAT_00046858 + 0x6e1c)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_00046858 + 0x6e1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_00046858 + 0x6e1c)" (( "(") (binary_expression "PTR_DAT_00046858 + 0x6e1c" (identifier "PTR_DAT_00046858") (+ "+") (number_literal "0x6e1c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00013cc4(PTR_LAB_00046868 + 0x1824);" (call_expression "FUN_00013cc4(PTR_LAB_00046868 + 0x1824)" (identifier "FUN_00013cc4") (argument_list "(PTR_LAB_00046868 + 0x1824)" (( "(") (binary_expression "PTR_LAB_00046868 + 0x1824" (identifier "PTR_LAB_00046868") (+ "+") (number_literal "0x1824")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n    unaff_s0 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;\n    if (*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U) {\n      return;\n    }\n  }" (else "else") (compound_statement "{\n    unaff_s0 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;\n    if (*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U) {\n      return;\n    }\n  }" ({ "{") (expression_statement "unaff_s0 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;" (assignment_expression "unaff_s0 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8" (identifier "unaff_s0") (= "=") (binary_expression "*(int *)(PTR_DAT_00046858 + 0x6e18) + 8" (pointer_expression "*(int *)(PTR_DAT_00046858 + 0x6e18)" (* "*") (cast_expression "(int *)(PTR_DAT_00046858 + 0x6e18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_00046858 + 0x6e18)" (( "(") (binary_expression "PTR_DAT_00046858 + 0x6e18" (identifier "PTR_DAT_00046858") (+ "+") (number_literal "0x6e18")) () ")")))) (+ "+") (number_literal "8"))) (; ";")) (if_statement "if (*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U) {\n      return;\n    }" (if "if") (parenthesized_expression "(*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U)" (( "(") (binary_expression "*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U" (pointer_expression "*(uint *)(PTR_DAT_00046858 + 0x6e1c)" (* "*") (cast_expression "(uint *)(PTR_DAT_00046858 + 0x6e1c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_00046858 + 0x6e1c)" (( "(") (binary_expression "PTR_DAT_00046858 + 0x6e1c" (identifier "PTR_DAT_00046858") (+ "+") (number_literal "0x6e1c")) () ")")))) (< "<") (binary_expression "*(int *)(PTR_DAT_00046858 + 0x6e18) - 1U" (pointer_expression "*(int *)(PTR_DAT_00046858 + 0x6e18)" (* "*") (cast_expression "(int *)(PTR_DAT_00046858 + 0x6e18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_00046858 + 0x6e18)" (( "(") (binary_expression "PTR_DAT_00046858 + 0x6e18" (identifier "PTR_DAT_00046858") (+ "+") (number_literal "0x6e18")) () ")")))) (- "-") (number_literal "1U"))) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar1 = (*(code *)PTR_realloc_00046cb8)();" (assignment_expression "iVar1 = (*(code *)PTR_realloc_00046cb8)()" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_realloc_00046cb8)()" (parenthesized_expression "(*(code *)PTR_realloc_00046cb8)" (( "(") (pointer_expression "*(code *)PTR_realloc_00046cb8" (* "*") (cast_expression "(code *)PTR_realloc_00046cb8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_realloc_00046cb8"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1;" (assignment_expression "*(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1" (pointer_expression "*(int *)(PTR_DAT_00046858 + 0x6e14)" (* "*") (cast_expression "(int *)(PTR_DAT_00046858 + 0x6e14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_00046858 + 0x6e14)" (( "(") (binary_expression "PTR_DAT_00046858 + 0x6e14" (identifier "PTR_DAT_00046858") (+ "+") (number_literal "0x6e14")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar1 == 0) {\n    puVar5 = PTR_LAB_00046868 + 0x1824;\n    puVar7 = PTR_00046864 + 0x3cc4;\n    FUN_00013cc4();\n    FUN_00013d14();\n    iVar1 = *(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14);\n    iVar3 = *(int *)(puVar7 + 0x32a20);\n    if (iVar1 == 0) {\n      if (puVar5 == (undefined *)0x0) {\n        return;\n      }\n    }\n    else {\n      piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);\n      if ((undefined *)*piVar4 == puVar5) {\n        return;\n      }\n      if ((undefined *)*piVar4 != (undefined *)0x0) {\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }\n      iVar3 = *(int *)(puVar7 + 0x32a20);\n    }\n    *(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4) = puVar5;\n    FUN_00013c5c();\n    *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc) = 1;\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar5 = PTR_LAB_00046868 + 0x1824;\n    puVar7 = PTR_00046864 + 0x3cc4;\n    FUN_00013cc4();\n    FUN_00013d14();\n    iVar1 = *(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14);\n    iVar3 = *(int *)(puVar7 + 0x32a20);\n    if (iVar1 == 0) {\n      if (puVar5 == (undefined *)0x0) {\n        return;\n      }\n    }\n    else {\n      piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);\n      if ((undefined *)*piVar4 == puVar5) {\n        return;\n      }\n      if ((undefined *)*piVar4 != (undefined *)0x0) {\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }\n      iVar3 = *(int *)(puVar7 + 0x32a20);\n    }\n    *(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4) = puVar5;\n    FUN_00013c5c();\n    *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc) = 1;\n    return;\n  }" ({ "{") (expression_statement "puVar5 = PTR_LAB_00046868 + 0x1824;" (assignment_expression "puVar5 = PTR_LAB_00046868 + 0x1824" (identifier "puVar5") (= "=") (binary_expression "PTR_LAB_00046868 + 0x1824" (identifier "PTR_LAB_00046868") (+ "+") (number_literal "0x1824"))) (; ";")) (expression_statement "puVar7 = PTR_00046864 + 0x3cc4;" (assignment_expression "puVar7 = PTR_00046864 + 0x3cc4" (identifier "puVar7") (= "=") (binary_expression "PTR_00046864 + 0x3cc4" (identifier "PTR_00046864") (+ "+") (number_literal "0x3cc4"))) (; ";")) (expression_statement "FUN_00013cc4();" (call_expression "FUN_00013cc4()" (identifier "FUN_00013cc4") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00013d14();" (call_expression "FUN_00013d14()" (identifier "FUN_00013d14") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14);" (assignment_expression "iVar1 = *(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14)" (* "*") (cast_expression "(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar7 + 0x32a20) + 0x6e14)" (( "(") (binary_expression "*(int *)(puVar7 + 0x32a20) + 0x6e14" (pointer_expression "*(int *)(puVar7 + 0x32a20)" (* "*") (cast_expression "(int *)(puVar7 + 0x32a20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 0x32a20)" (( "(") (binary_expression "puVar7 + 0x32a20" (identifier "puVar7") (+ "+") (number_literal "0x32a20")) () ")")))) (+ "+") (number_literal "0x6e14")) () ")"))))) (; ";")) (expression_statement "iVar3 = *(int *)(puVar7 + 0x32a20);" (assignment_expression "iVar3 = *(int *)(puVar7 + 0x32a20)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(puVar7 + 0x32a20)" (* "*") (cast_expression "(int *)(puVar7 + 0x32a20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 0x32a20)" (( "(") (binary_expression "puVar7 + 0x32a20" (identifier "puVar7") (+ "+") (number_literal "0x32a20")) () ")"))))) (; ";")) (if_statement "if (iVar1 == 0) {\n      if (puVar5 == (undefined *)0x0) {\n        return;\n      }\n    }\n    else {\n      piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);\n      if ((undefined *)*piVar4 == puVar5) {\n        return;\n      }\n      if ((undefined *)*piVar4 != (undefined *)0x0) {\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }\n      iVar3 = *(int *)(puVar7 + 0x32a20);\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (puVar5 == (undefined *)0x0) {\n        return;\n      }\n    }" ({ "{") (if_statement "if (puVar5 == (undefined *)0x0) {\n        return;\n      }" (if "if") (parenthesized_expression "(puVar5 == (undefined *)0x0)" (( "(") (binary_expression "puVar5 == (undefined *)0x0" (identifier "puVar5") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);\n      if ((undefined *)*piVar4 == puVar5) {\n        return;\n      }\n      if ((undefined *)*piVar4 != (undefined *)0x0) {\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }\n      iVar3 = *(int *)(puVar7 + 0x32a20);\n    }" (else "else") (compound_statement "{\n      piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);\n      if ((undefined *)*piVar4 == puVar5) {\n        return;\n      }\n      if ((undefined *)*piVar4 != (undefined *)0x0) {\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }\n      iVar3 = *(int *)(puVar7 + 0x32a20);\n    }" ({ "{") (expression_statement "piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);" (assignment_expression "piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4)" (identifier "piVar4") (= "=") (cast_expression "(int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4)" (( "(") (binary_expression "iVar1 + *(int *)(iVar3 + 0x6e1c) * 4" (identifier "iVar1") (+ "+") (binary_expression "*(int *)(iVar3 + 0x6e1c) * 4" (pointer_expression "*(int *)(iVar3 + 0x6e1c)" (* "*") (cast_expression "(int *)(iVar3 + 0x6e1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x6e1c)" (( "(") (binary_expression "iVar3 + 0x6e1c" (identifier "iVar3") (+ "+") (number_literal "0x6e1c")) () ")")))) (* "*") (number_literal "4"))) () ")")))) (; ";")) (if_statement "if ((undefined *)*piVar4 == puVar5) {\n        return;\n      }" (if "if") (parenthesized_expression "((undefined *)*piVar4 == puVar5)" (( "(") (binary_expression "(undefined *)*piVar4 == puVar5" (cast_expression "(undefined *)*piVar4" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (== "==") (identifier "puVar5")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if ((undefined *)*piVar4 != (undefined *)0x0) {\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }" (if "if") (parenthesized_expression "((undefined *)*piVar4 != (undefined *)0x0)" (( "(") (binary_expression "(undefined *)*piVar4 != (undefined *)0x0" (cast_expression "(undefined *)*piVar4" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);\n        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);\n        *(undefined1 **)(*piVar4 + 8) = puVar6;\n        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);\n      }" ({ "{") (expression_statement "puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);" (assignment_expression "puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08)" (identifier "puVar6") (= "=") (pointer_expression "*(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08)" (* "*") (cast_expression "(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(puVar7 + 0x32a20) + 0x6e08)" (( "(") (binary_expression "*(int *)(puVar7 + 0x32a20) + 0x6e08" (pointer_expression "*(int *)(puVar7 + 0x32a20)" (* "*") (cast_expression "(int *)(puVar7 + 0x32a20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 0x32a20)" (( "(") (binary_expression "puVar7 + 0x32a20" (identifier "puVar7") (+ "+") (number_literal "0x32a20")) () ")")))) (+ "+") (number_literal "0x6e08")) () ")"))))) (; ";")) (expression_statement "*puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);" (assignment_expression "*puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10)" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (pointer_expression "*(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10)" (* "*") (cast_expression "(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar7 + 0x32a20) + 0x6e10)" (( "(") (binary_expression "*(int *)(puVar7 + 0x32a20) + 0x6e10" (pointer_expression "*(int *)(puVar7 + 0x32a20)" (* "*") (cast_expression "(int *)(puVar7 + 0x32a20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 0x32a20)" (( "(") (binary_expression "puVar7 + 0x32a20" (identifier "puVar7") (+ "+") (number_literal "0x32a20")) () ")")))) (+ "+") (number_literal "0x6e10")) () ")"))))) (; ";")) (expression_statement "*(undefined1 **)(*piVar4 + 8) = puVar6;" (assignment_expression "*(undefined1 **)(*piVar4 + 8) = puVar6" (pointer_expression "*(undefined1 **)(*piVar4 + 8)" (* "*") (cast_expression "(undefined1 **)(*piVar4 + 8)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar4 + 8)" (( "(") (binary_expression "*piVar4 + 8" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "puVar6")) (; ";")) (expression_statement "*(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);" (assignment_expression "*(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c)" (pointer_expression "*(undefined4 *)(*piVar4 + 0x10)" (* "*") (cast_expression "(undefined4 *)(*piVar4 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar4 + 0x10)" (( "(") (binary_expression "*piVar4 + 0x10" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "0x10")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c)" (* "*") (cast_expression "(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar7 + 0x32a20) + 0x6e0c)" (( "(") (binary_expression "*(int *)(puVar7 + 0x32a20) + 0x6e0c" (pointer_expression "*(int *)(puVar7 + 0x32a20)" (* "*") (cast_expression "(int *)(puVar7 + 0x32a20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 0x32a20)" (( "(") (binary_expression "puVar7 + 0x32a20" (identifier "puVar7") (+ "+") (number_literal "0x32a20")) () ")")))) (+ "+") (number_literal "0x6e0c")) () ")"))))) (; ";")) (} "}"))) (expression_statement "iVar3 = *(int *)(puVar7 + 0x32a20);" (assignment_expression "iVar3 = *(int *)(puVar7 + 0x32a20)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(puVar7 + 0x32a20)" (* "*") (cast_expression "(int *)(puVar7 + 0x32a20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 0x32a20)" (( "(") (binary_expression "puVar7 + 0x32a20" (identifier "puVar7") (+ "+") (number_literal "0x32a20")) () ")"))))) (; ";")) (} "}")))) (expression_statement "*(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4) = puVar5;" (assignment_expression "*(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4) = puVar5" (pointer_expression "*(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4)" (* "*") (cast_expression "(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4)" (( "(") (binary_expression "iVar1 + *(int *)(iVar3 + 0x6e1c) * 4" (identifier "iVar1") (+ "+") (binary_expression "*(int *)(iVar3 + 0x6e1c) * 4" (pointer_expression "*(int *)(iVar3 + 0x6e1c)" (* "*") (cast_expression "(int *)(iVar3 + 0x6e1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x6e1c)" (( "(") (binary_expression "iVar3 + 0x6e1c" (identifier "iVar3") (+ "+") (number_literal "0x6e1c")) () ")")))) (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "puVar5")) (; ";")) (expression_statement "FUN_00013c5c();" (call_expression "FUN_00013c5c()" (identifier "FUN_00013c5c") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc) = 1;" (assignment_expression "*(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc) = 1" (pointer_expression "*(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc)" (* "*") (cast_expression "(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar7 + 0x32a20) + 0x6dfc)" (( "(") (binary_expression "*(int *)(puVar7 + 0x32a20) + 0x6dfc" (pointer_expression "*(int *)(puVar7 + 0x32a20)" (* "*") (cast_expression "(int *)(puVar7 + 0x32a20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 0x32a20)" (( "(") (binary_expression "puVar7 + 0x32a20" (identifier "puVar7") (+ "+") (number_literal "0x32a20")) () ")")))) (+ "+") (number_literal "0x6dfc")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined4 *)(iVar1 + unaff_s0 * 4 + -0x20);" (assignment_expression "puVar2 = (undefined4 *)(iVar1 + unaff_s0 * 4 + -0x20)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(iVar1 + unaff_s0 * 4 + -0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + unaff_s0 * 4 + -0x20)" (( "(") (binary_expression "iVar1 + unaff_s0 * 4 + -0x20" (binary_expression "iVar1 + unaff_s0 * 4" (identifier "iVar1") (+ "+") (binary_expression "unaff_s0 * 4" (identifier "unaff_s0") (* "*") (number_literal "4"))) (+ "+") (number_literal "-0x20")) () ")")))) (; ";")) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[3] = 0;" (assignment_expression "puVar2[3] = 0" (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[4] = 0;" (assignment_expression "puVar2[4] = 0" (subscript_expression "puVar2[4]" (identifier "puVar2") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[5] = 0;" (assignment_expression "puVar2[5] = 0" (subscript_expression "puVar2[5]" (identifier "puVar2") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[6] = 0;" (assignment_expression "puVar2[6] = 0" (subscript_expression "puVar2[6]" (identifier "puVar2") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[7] = 0;" (assignment_expression "puVar2[7] = 0" (subscript_expression "puVar2[7]" (identifier "puVar2") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int *)(PTR_DAT_00046858 + 0x6e18) = unaff_s0;" (assignment_expression "*(int *)(PTR_DAT_00046858 + 0x6e18) = unaff_s0" (pointer_expression "*(int *)(PTR_DAT_00046858 + 0x6e18)" (* "*") (cast_expression "(int *)(PTR_DAT_00046858 + 0x6e18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_00046858 + 0x6e18)" (( "(") (binary_expression "PTR_DAT_00046858 + 0x6e18" (identifier "PTR_DAT_00046858") (+ "+") (number_literal "0x6e18")) () ")")))) (= "=") (identifier "unaff_s0")) (; ";")) (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: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator 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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) 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))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) alternative: (else_clause (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: (number_literal)))) (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: (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)))) (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: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement)))) alternative: (else_clause (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: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) right: (identifier))) consequence: (compound_statement (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_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)))))) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (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: (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))))) right: (number_literal))) (return_statement))) (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: (binary_expression left: (identifier) right: (number_literal))) 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))) (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))))

void MASKED(void)

{
  int iVar1;
  undefined4 *puVar2;
  int iVar3;
  int *piVar4;
  undefined *puVar5;
  undefined1 *puVar6;
  int unaff_s0;
  undefined *puVar7;
  
  if (*(int *)(PTR_DAT_00046858 + 0x6e14) == 0) {
    puVar2 = (undefined4 *)(*(code *)PTR_malloc_00046cb4)(4);
    *(undefined4 **)(PTR_DAT_00046858 + 0x6e14) = puVar2;
    if (puVar2 != (undefined4 *)0x0) {
      *puVar2 = 0;
      *(undefined4 *)(PTR_DAT_00046858 + 0x6e18) = 1;
      *(undefined4 *)(PTR_DAT_00046858 + 0x6e1c) = 0;
      return;
    }
    FUN_00013cc4(PTR_LAB_00046868 + 0x1824);
  }
  else {
    unaff_s0 = *(int *)(PTR_DAT_00046858 + 0x6e18) + 8;
    if (*(uint *)(PTR_DAT_00046858 + 0x6e1c) < *(int *)(PTR_DAT_00046858 + 0x6e18) - 1U) {
      return;
    }
  }
  iVar1 = (*(code *)PTR_realloc_00046cb8)();
  *(int *)(PTR_DAT_00046858 + 0x6e14) = iVar1;
  if (iVar1 == 0) {
    puVar5 = PTR_LAB_00046868 + 0x1824;
    puVar7 = PTR_00046864 + 0x3cc4;
    FUN_00013cc4();
    MASKED();
    iVar1 = *(int *)(*(int *)(puVar7 + 0x32a20) + 0x6e14);
    iVar3 = *(int *)(puVar7 + 0x32a20);
    if (iVar1 == 0) {
      if (puVar5 == (undefined *)0x0) {
        return;
      }
    }
    else {
      piVar4 = (int *)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4);
      if ((undefined *)*piVar4 == puVar5) {
        return;
      }
      if ((undefined *)*piVar4 != (undefined *)0x0) {
        puVar6 = *(undefined1 **)(*(int *)(puVar7 + 0x32a20) + 0x6e08);
        *puVar6 = *(undefined1 *)(*(int *)(puVar7 + 0x32a20) + 0x6e10);
        *(undefined1 **)(*piVar4 + 8) = puVar6;
        *(undefined4 *)(*piVar4 + 0x10) = *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6e0c);
      }
      iVar3 = *(int *)(puVar7 + 0x32a20);
    }
    *(undefined **)(iVar1 + *(int *)(iVar3 + 0x6e1c) * 4) = puVar5;
    FUN_00013c5c();
    *(undefined4 *)(*(int *)(puVar7 + 0x32a20) + 0x6dfc) = 1;
    return;
  }
  puVar2 = (undefined4 *)(iVar1 + unaff_s0 * 4 + -0x20);
  *puVar2 = 0;
  puVar2[1] = 0;
  puVar2[2] = 0;
  puVar2[3] = 0;
  puVar2[4] = 0;
  puVar2[5] = 0;
  puVar2[6] = 0;
  puVar2[7] = 0;
  *(int *)(PTR_DAT_00046858 + 0x6e18) = unaff_s0;
  return;
}

