
int truncate_main(int argc,char **argv)

{
  undefined *puVar1;
  undefined *puVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  char *pcVar6;
  char **ppcVar7;
  int iVar8;
  undefined *puVar9;
  undefined *puVar10;
  undefined4 uVar11;
  char *size_str;
  int iStack_2c;
  
  puVar2 = PTR___stack_chk_guard_0012b14c;
  uVar11 = 0x81;
  iVar8 = 0;
  iStack_2c = *(int *)PTR___stack_chk_guard_0012b14c;
  uVar3 = (*(code *)PTR_getopt32_0012a30c)(argv,PTR_UINT_0012a18c + -0x1350,&size_str);
  if ((uVar3 & 1) == 0) {
    uVar11 = 0x181;
  }
  (*(code *)PTR_xatoull_sfx_0012a8f0)(size_str,PTR_cwbkMG_suffixes_0012a8ec + 0x18);
  puVar1 = PTR_xclose_0012a6a0;
  ppcVar7 = argv + *(int *)PTR_optind_0012b0ec;
  pcVar6 = *ppcVar7;
  if (pcVar6 != (char *)0x0) {
    puVar10 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x38c8;
    puVar9 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x38d4;
    do {
      while (iVar4 = (*(code *)PTR_open64_0012af00)(pcVar6,uVar11,0x1b6), iVar4 < 0) {
        if (**(int **)PTR_bb_errno_0012a214 == 2) {
          if ((uVar3 & 1) == 0) {
            iVar8 = 1;
            (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);
          }
        }
        else {
          iVar8 = 1;
          (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);
        }
        ppcVar7 = ppcVar7 + 1;
        pcVar6 = *ppcVar7;
        if (pcVar6 == (char *)0x0) goto LAB_000c6c94;
      }
      iVar5 = (*(code *)PTR_ftruncate64_0012b110)(iVar4);
      if (iVar5 == -1) {
        iVar8 = 1;
        (*(code *)PTR_bb_perror_msg_0012a238)(puVar10,*ppcVar7);
      }
      ppcVar7 = ppcVar7 + 1;
      (*(code *)puVar1)(iVar4);
      pcVar6 = *ppcVar7;
    } while (pcVar6 != (char *)0x0);
  }
LAB_000c6c94:
  if (iStack_2c != *(int *)puVar2) {
    iVar8 = (*(code *)PTR___stack_chk_fail_0012b0c8)();
    return iVar8;
  }
  return iVar8;
}



undefined4 FUN_000c6b6c(undefined4 param_1,int param_2)

{
  undefined *puVar1;
  undefined *puVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  int *piVar6;
  undefined4 uVar7;
  undefined *puVar8;
  undefined *puVar9;
  undefined4 uVar10;
  undefined4 local_30;
  int local_2c;
  
  puVar2 = PTR___stack_chk_guard_0012b14c;
  uVar10 = 0x81;
  uVar7 = 0;
  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;
  uVar3 = (*(code *)PTR_FUN_0012a30c)(param_2,PTR_UINT_0012a18c + -0x1350,&local_30);
  if ((uVar3 & 1) == 0) {
    uVar10 = 0x181;
  }
  (*(code *)PTR_FUN_0012a8f0)(local_30,PTR_DAT_0012a8ec + 0x18);
  puVar1 = PTR_FUN_0012a6a0;
  piVar6 = (int *)(param_2 + *(int *)PTR_optind_0012b0ec * 4);
  iVar5 = *piVar6;
  if (iVar5 != 0) {
    puVar9 = PTR_FUN_0012a1a8 + -0x38c8;
    puVar8 = PTR_FUN_0012a1a8 + -0x38d4;
    do {
      while (iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0) {
        if (**(int **)PTR_DAT_0012a214 == 2) {
          if ((uVar3 & 1) == 0) {
            uVar7 = 1;
            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);
          }
        }
        else {
          uVar7 = 1;
          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);
        }
        piVar6 = piVar6 + 1;
        iVar5 = *piVar6;
        if (iVar5 == 0) goto LAB_000c6c94;
      }
      iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5);
      if (iVar4 == -1) {
        uVar7 = 1;
        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);
      }
      piVar6 = piVar6 + 1;
      (*(code *)puVar1)(iVar5);
      iVar5 = *piVar6;
    } while (iVar5 != 0);
  }
LAB_000c6c94:
  if (local_2c != *(int *)puVar2) {
    uVar7 = (*(code *)PTR___stack_chk_fail_0012b0c8)();
    return uVar7;
  }
  return uVar7;
}


lui gp,0x7
addiu gp,gp,-0x4a1c
addu gp,gp,t9
addiu sp,sp,-0x50
lw t9,-0x7e44(gp)
or a0,a1,zero
addiu a2,sp,0x20
sw s5,0x3c(sp)
sw s0,0x28(sp)
or s0,a1,zero
lw s5,-0x7004(gp)
lw a1,-0x7fc4(gp)
sw gp,0x10(sp)
sw ra,0x4c(sp)
sw s6,0x40(sp)
addiu a1,a1,-0x1350
sw s4,0x38(sp)
li s4,0x81
sw s1,0x2c(sp)
or s1,zero,zero
sw s8,0x48(sp)
sw s7,0x44(sp)
sw s3,0x34(sp)
sw s2,0x30(sp)
lw v0,0x0(s5)
sw v0,0x24(sp)
jalr t9
_nop
lw gp,0x10(sp)
andi s6,v0,0x1
lw a0,0x20(sp)
li v0,0x181
movz s4,v0,s6
lw a1,-0x7864(gp)
lw t9,-0x7860(gp)
jalr t9
_addiu a1,a1,0x18
lw gp,0x10(sp)
sw v0,0x18(sp)
sw v1,0x1c(sp)
lw v0,-0x7064(gp)
lw v0,0x0(v0)
sll v0,v0,0x2
addu s0,s0,v0
lw a0,0x0(s0)
beq a0,zero,0x000c6c94
_nop
lw s3,-0x7fa8(gp)
lw s2,-0x7fa8(gp)
lw s7,-0x7ab0(gp)
addiu s3,s3,-0x38c8
addiu s2,s2,-0x38d4
lw t9,-0x7250(gp)
li a2,0x1b6
jalr t9
_or a1,s4,zero
lw gp,0x10(sp)
bgez v0,0x000c6ce0
_or s8,v0,zero
lw v1,-0x7f3c(gp)
li v0,0x2
lw v1,0x0(v1)
lw v1,0x0(v1)
beq v1,v0,0x000c6d38
_lw t9,-0x7f18(gp)
or a0,s2,zero
lw a1,0x0(s0)
jalr t9
_li s1,0x1
lw gp,0x10(sp)
addiu s0,s0,0x4
lw a0,0x0(s0)
bne a0,zero,0x000c6c40
_lw t9,-0x7250(gp)
lw a0,0x24(sp)
or v0,s1,zero
lw v1,0x0(s5)
bne a0,v1,0x000c6cd4
_lw ra,0x4c(sp)
lw s8,0x48(sp)
lw s7,0x44(sp)
lw s6,0x40(sp)
lw s5,0x3c(sp)
lw s4,0x38(sp)
lw s3,0x34(sp)
lw s2,0x30(sp)
lw s1,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x50
lw t9,-0x7088(gp)
jalr t9
_nop
lw t9,-0x7040(gp)
or a0,v0,zero
lw a3,0x1c(sp)
jalr t9
_lw a2,0x18(sp)
li v1,-0x1
bne v0,v1,0x000c6d14
_lw gp,0x10(sp)
lw a1,0x0(s0)
li s1,0x1
lw t9,-0x7f18(gp)
jalr t9
_or a0,s3,zero
addiu s0,s0,0x4
or t9,s7,zero
jalr t9
_or a0,s8,zero
lw a0,0x0(s0)
bne a0,zero,0x000c6c3c
_lw gp,0x10(sp)
b 0x000c6c94
_nop
bne s6,zero,0x000c6c84
_or a0,s2,zero
lw a1,0x0(s0)
jalr t9
_li s1,0x1
b 0x000c6c84
_lw gp,0x10(sp)
(translation_unit "undefined4 FUN_000c6b6c(undefined4 param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  undefined4 uVar10;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_0012b14c;\n  uVar10 = 0x81;\n  uVar7 = 0;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  uVar3 = (*(code *)PTR_FUN_0012a30c)(param_2,PTR_UINT_0012a18c + -0x1350,&local_30);\n  if ((uVar3 & 1) == 0) {\n    uVar10 = 0x181;\n  }\n  (*(code *)PTR_FUN_0012a8f0)(local_30,PTR_DAT_0012a8ec + 0x18);\n  puVar1 = PTR_FUN_0012a6a0;\n  piVar6 = (int *)(param_2 + *(int *)PTR_optind_0012b0ec * 4);\n  iVar5 = *piVar6;\n  if (iVar5 != 0) {\n    puVar9 = PTR_FUN_0012a1a8 + -0x38c8;\n    puVar8 = PTR_FUN_0012a1a8 + -0x38d4;\n    do {\n      while (iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0) {\n        if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }\n        piVar6 = piVar6 + 1;\n        iVar5 = *piVar6;\n        if (iVar5 == 0) goto LAB_000c6c94;\n      }\n      iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5);\n      if (iVar4 == -1) {\n        uVar7 = 1;\n        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);\n      }\n      piVar6 = piVar6 + 1;\n      (*(code *)puVar1)(iVar5);\n      iVar5 = *piVar6;\n    } while (iVar5 != 0);\n  }\nLAB_000c6c94:\n  if (local_2c != *(int *)puVar2) {\n    uVar7 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return uVar7;\n  }\n  return uVar7;\n}\n\n" (function_definition "undefined4 FUN_000c6b6c(undefined4 param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  undefined4 uVar10;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_0012b14c;\n  uVar10 = 0x81;\n  uVar7 = 0;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  uVar3 = (*(code *)PTR_FUN_0012a30c)(param_2,PTR_UINT_0012a18c + -0x1350,&local_30);\n  if ((uVar3 & 1) == 0) {\n    uVar10 = 0x181;\n  }\n  (*(code *)PTR_FUN_0012a8f0)(local_30,PTR_DAT_0012a8ec + 0x18);\n  puVar1 = PTR_FUN_0012a6a0;\n  piVar6 = (int *)(param_2 + *(int *)PTR_optind_0012b0ec * 4);\n  iVar5 = *piVar6;\n  if (iVar5 != 0) {\n    puVar9 = PTR_FUN_0012a1a8 + -0x38c8;\n    puVar8 = PTR_FUN_0012a1a8 + -0x38d4;\n    do {\n      while (iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0) {\n        if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }\n        piVar6 = piVar6 + 1;\n        iVar5 = *piVar6;\n        if (iVar5 == 0) goto LAB_000c6c94;\n      }\n      iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5);\n      if (iVar4 == -1) {\n        uVar7 = 1;\n        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);\n      }\n      piVar6 = piVar6 + 1;\n      (*(code *)puVar1)(iVar5);\n      iVar5 = *piVar6;\n    } while (iVar5 != 0);\n  }\nLAB_000c6c94:\n  if (local_2c != *(int *)puVar2) {\n    uVar7 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return uVar7;\n  }\n  return uVar7;\n}" type_identifier (function_declarator "FUN_000c6b6c(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  undefined4 uVar10;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_0012b14c;\n  uVar10 = 0x81;\n  uVar7 = 0;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  uVar3 = (*(code *)PTR_FUN_0012a30c)(param_2,PTR_UINT_0012a18c + -0x1350,&local_30);\n  if ((uVar3 & 1) == 0) {\n    uVar10 = 0x181;\n  }\n  (*(code *)PTR_FUN_0012a8f0)(local_30,PTR_DAT_0012a8ec + 0x18);\n  puVar1 = PTR_FUN_0012a6a0;\n  piVar6 = (int *)(param_2 + *(int *)PTR_optind_0012b0ec * 4);\n  iVar5 = *piVar6;\n  if (iVar5 != 0) {\n    puVar9 = PTR_FUN_0012a1a8 + -0x38c8;\n    puVar8 = PTR_FUN_0012a1a8 + -0x38d4;\n    do {\n      while (iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0) {\n        if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }\n        piVar6 = piVar6 + 1;\n        iVar5 = *piVar6;\n        if (iVar5 == 0) goto LAB_000c6c94;\n      }\n      iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5);\n      if (iVar4 == -1) {\n        uVar7 = 1;\n        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);\n      }\n      piVar6 = piVar6 + 1;\n      (*(code *)puVar1)(iVar5);\n      iVar5 = *piVar6;\n    } while (iVar5 != 0);\n  }\nLAB_000c6c94:\n  if (local_2c != *(int *)puVar2) {\n    uVar7 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return uVar7;\n  }\n  return uVar7;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar2 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar2 = PTR___stack_chk_guard_0012b14c" identifier = identifier) ;) (expression_statement "uVar10 = 0x81;" (assignment_expression "uVar10 = 0x81" identifier = number_literal) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0012b14c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" * (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar3 = (*(code *)PTR_FUN_0012a30c)(param_2,PTR_UINT_0012a18c + -0x1350,&local_30);" (assignment_expression "uVar3 = (*(code *)PTR_FUN_0012a30c)(param_2,PTR_UINT_0012a18c + -0x1350,&local_30)" identifier = (call_expression "(*(code *)PTR_FUN_0012a30c)(param_2,PTR_UINT_0012a18c + -0x1350,&local_30)" (parenthesized_expression "(*(code *)PTR_FUN_0012a30c)" ( (pointer_expression "*(code *)PTR_FUN_0012a30c" * (cast_expression "(code *)PTR_FUN_0012a30c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,PTR_UINT_0012a18c + -0x1350,&local_30)" ( identifier , (binary_expression "PTR_UINT_0012a18c + -0x1350" identifier + number_literal) , (pointer_expression "&local_30" & identifier) )))) ;) (if_statement "if ((uVar3 & 1) == 0) {\n    uVar10 = 0x181;\n  }" if (parenthesized_expression "((uVar3 & 1) == 0)" ( (binary_expression "(uVar3 & 1) == 0" (parenthesized_expression "(uVar3 & 1)" ( (binary_expression "uVar3 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar10 = 0x181;\n  }" { (expression_statement "uVar10 = 0x181;" (assignment_expression "uVar10 = 0x181" identifier = number_literal) ;) })) (expression_statement "(*(code *)PTR_FUN_0012a8f0)(local_30,PTR_DAT_0012a8ec + 0x18);" (call_expression "(*(code *)PTR_FUN_0012a8f0)(local_30,PTR_DAT_0012a8ec + 0x18)" (parenthesized_expression "(*(code *)PTR_FUN_0012a8f0)" ( (pointer_expression "*(code *)PTR_FUN_0012a8f0" * (cast_expression "(code *)PTR_FUN_0012a8f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30,PTR_DAT_0012a8ec + 0x18)" ( identifier , (binary_expression "PTR_DAT_0012a8ec + 0x18" identifier + number_literal) ))) ;) (expression_statement "puVar1 = PTR_FUN_0012a6a0;" (assignment_expression "puVar1 = PTR_FUN_0012a6a0" identifier = identifier) ;) (expression_statement "piVar6 = (int *)(param_2 + *(int *)PTR_optind_0012b0ec * 4);" (assignment_expression "piVar6 = (int *)(param_2 + *(int *)PTR_optind_0012b0ec * 4)" identifier = (cast_expression "(int *)(param_2 + *(int *)PTR_optind_0012b0ec * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + *(int *)PTR_optind_0012b0ec * 4)" ( (binary_expression "param_2 + *(int *)PTR_optind_0012b0ec * 4" identifier + (binary_expression "*(int *)PTR_optind_0012b0ec * 4" (pointer_expression "*(int *)PTR_optind_0012b0ec" * (cast_expression "(int *)PTR_optind_0012b0ec" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) * number_literal)) )))) ;) (expression_statement "iVar5 = *piVar6;" (assignment_expression "iVar5 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) (if_statement "if (iVar5 != 0) {\n    puVar9 = PTR_FUN_0012a1a8 + -0x38c8;\n    puVar8 = PTR_FUN_0012a1a8 + -0x38d4;\n    do {\n      while (iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0) {\n        if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }\n        piVar6 = piVar6 + 1;\n        iVar5 = *piVar6;\n        if (iVar5 == 0) goto LAB_000c6c94;\n      }\n      iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5);\n      if (iVar4 == -1) {\n        uVar7 = 1;\n        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);\n      }\n      piVar6 = piVar6 + 1;\n      (*(code *)puVar1)(iVar5);\n      iVar5 = *piVar6;\n    } while (iVar5 != 0);\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar9 = PTR_FUN_0012a1a8 + -0x38c8;\n    puVar8 = PTR_FUN_0012a1a8 + -0x38d4;\n    do {\n      while (iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0) {\n        if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }\n        piVar6 = piVar6 + 1;\n        iVar5 = *piVar6;\n        if (iVar5 == 0) goto LAB_000c6c94;\n      }\n      iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5);\n      if (iVar4 == -1) {\n        uVar7 = 1;\n        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);\n      }\n      piVar6 = piVar6 + 1;\n      (*(code *)puVar1)(iVar5);\n      iVar5 = *piVar6;\n    } while (iVar5 != 0);\n  }" { (expression_statement "puVar9 = PTR_FUN_0012a1a8 + -0x38c8;" (assignment_expression "puVar9 = PTR_FUN_0012a1a8 + -0x38c8" identifier = (binary_expression "PTR_FUN_0012a1a8 + -0x38c8" identifier + number_literal)) ;) (expression_statement "puVar8 = PTR_FUN_0012a1a8 + -0x38d4;" (assignment_expression "puVar8 = PTR_FUN_0012a1a8 + -0x38d4" identifier = (binary_expression "PTR_FUN_0012a1a8 + -0x38d4" identifier + number_literal)) ;) (do_statement "do {\n      while (iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0) {\n        if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }\n        piVar6 = piVar6 + 1;\n        iVar5 = *piVar6;\n        if (iVar5 == 0) goto LAB_000c6c94;\n      }\n      iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5);\n      if (iVar4 == -1) {\n        uVar7 = 1;\n        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);\n      }\n      piVar6 = piVar6 + 1;\n      (*(code *)puVar1)(iVar5);\n      iVar5 = *piVar6;\n    } while (iVar5 != 0);" do (compound_statement "{\n      while (iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0) {\n        if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }\n        piVar6 = piVar6 + 1;\n        iVar5 = *piVar6;\n        if (iVar5 == 0) goto LAB_000c6c94;\n      }\n      iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5);\n      if (iVar4 == -1) {\n        uVar7 = 1;\n        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);\n      }\n      piVar6 = piVar6 + 1;\n      (*(code *)puVar1)(iVar5);\n      iVar5 = *piVar6;\n    }" { (while_statement "while (iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0) {\n        if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }\n        piVar6 = piVar6 + 1;\n        iVar5 = *piVar6;\n        if (iVar5 == 0) goto LAB_000c6c94;\n      }" while (parenthesized_expression "(iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0)" ( (comma_expression "iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0" (assignment_expression "iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6)" identifier = (call_expression "(*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6)" (parenthesized_expression "(*(code *)PTR_open64_0012af00)" ( (pointer_expression "*(code *)PTR_open64_0012af00" * (cast_expression "(code *)PTR_open64_0012af00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5,uVar10,0x1b6)" ( identifier , identifier , number_literal )))) , (binary_expression "iVar5 < 0" identifier < number_literal)) )) (compound_statement "{\n        if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }\n        piVar6 = piVar6 + 1;\n        iVar5 = *piVar6;\n        if (iVar5 == 0) goto LAB_000c6c94;\n      }" { (if_statement "if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }" if (parenthesized_expression "(**(int **)PTR_DAT_0012a214 == 2)" ( (binary_expression "**(int **)PTR_DAT_0012a214 == 2" (pointer_expression "**(int **)PTR_DAT_0012a214" * (pointer_expression "*(int **)PTR_DAT_0012a214" * (cast_expression "(int **)PTR_DAT_0012a214" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) == number_literal) )) (compound_statement "{\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }" { (if_statement "if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }" if (parenthesized_expression "((uVar3 & 1) == 0)" ( (binary_expression "(uVar3 & 1) == 0" (parenthesized_expression "(uVar3 & 1)" ( (binary_expression "uVar3 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }" { (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);" (call_expression "(*(code *)PTR_FUN_0012a238)(puVar8,*piVar6)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" ( (pointer_expression "*(code *)PTR_FUN_0012a238" * (cast_expression "(code *)PTR_FUN_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar8,*piVar6)" ( identifier , (pointer_expression "*piVar6" * identifier) ))) ;) })) }) (else_clause "else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }" else (compound_statement "{\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }" { (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);" (call_expression "(*(code *)PTR_FUN_0012a238)(puVar8,*piVar6)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" ( (pointer_expression "*(code *)PTR_FUN_0012a238" * (cast_expression "(code *)PTR_FUN_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar8,*piVar6)" ( identifier , (pointer_expression "*piVar6" * identifier) ))) ;) }))) (expression_statement "piVar6 = piVar6 + 1;" (assignment_expression "piVar6 = piVar6 + 1" identifier = (binary_expression "piVar6 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = *piVar6;" (assignment_expression "iVar5 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) (if_statement "if (iVar5 == 0) goto LAB_000c6c94;" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000c6c94;" goto statement_identifier ;)) })) (expression_statement "iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5);" (assignment_expression "iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5)" identifier = (call_expression "(*(code *)PTR_ftruncate64_0012b110)(iVar5)" (parenthesized_expression "(*(code *)PTR_ftruncate64_0012b110)" ( (pointer_expression "*(code *)PTR_ftruncate64_0012b110" * (cast_expression "(code *)PTR_ftruncate64_0012b110" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5)" ( identifier )))) ;) (if_statement "if (iVar4 == -1) {\n        uVar7 = 1;\n        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);\n      }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n        uVar7 = 1;\n        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);\n      }" { (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);" (call_expression "(*(code *)PTR_FUN_0012a238)(puVar9,*piVar6)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" ( (pointer_expression "*(code *)PTR_FUN_0012a238" * (cast_expression "(code *)PTR_FUN_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9,*piVar6)" ( identifier , (pointer_expression "*piVar6" * identifier) ))) ;) })) (expression_statement "piVar6 = piVar6 + 1;" (assignment_expression "piVar6 = piVar6 + 1" identifier = (binary_expression "piVar6 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar1)(iVar5);" (call_expression "(*(code *)puVar1)(iVar5)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5)" ( identifier ))) ;) (expression_statement "iVar5 = *piVar6;" (assignment_expression "iVar5 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) }) while (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) ;) })) (labeled_statement "LAB_000c6c94:\n  if (local_2c != *(int *)puVar2) {\n    uVar7 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return uVar7;\n  }" statement_identifier : (if_statement "if (local_2c != *(int *)puVar2) {\n    uVar7 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return uVar7;\n  }" if (parenthesized_expression "(local_2c != *(int *)puVar2)" ( (binary_expression "local_2c != *(int *)puVar2" identifier != (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    uVar7 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return uVar7;\n  }" { (expression_statement "uVar7 = (*(code *)PTR___stack_chk_fail_0012b0c8)();" (assignment_expression "uVar7 = (*(code *)PTR___stack_chk_fail_0012b0c8)()" identifier = (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" * (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (return_statement "return uVar7;" return identifier ;) }))) (return_statement "return uVar7;" return identifier ;) })))
(translation_unit "int truncate_main(int argc,char **argv)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  char *pcVar6;\n  char **ppcVar7;\n  int iVar8;\n  undefined *puVar9;\n  undefined *puVar10;\n  undefined4 uVar11;\n  char *size_str;\n  int iStack_2c;\n  \n  puVar2 = PTR___stack_chk_guard_0012b14c;\n  uVar11 = 0x81;\n  iVar8 = 0;\n  iStack_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  uVar3 = (*(code *)PTR_getopt32_0012a30c)(argv,PTR_UINT_0012a18c + -0x1350,&size_str);\n  if ((uVar3 & 1) == 0) {\n    uVar11 = 0x181;\n  }\n  (*(code *)PTR_xatoull_sfx_0012a8f0)(size_str,PTR_cwbkMG_suffixes_0012a8ec + 0x18);\n  puVar1 = PTR_xclose_0012a6a0;\n  ppcVar7 = argv + *(int *)PTR_optind_0012b0ec;\n  pcVar6 = *ppcVar7;\n  if (pcVar6 != (char *)0x0) {\n    puVar10 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x38c8;\n    puVar9 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x38d4;\n    do {\n      while (iVar4 = (*(code *)PTR_open64_0012af00)(pcVar6,uVar11,0x1b6), iVar4 < 0) {\n        if (**(int **)PTR_bb_errno_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            iVar8 = 1;\n            (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);\n          }\n        }\n        else {\n          iVar8 = 1;\n          (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);\n        }\n        ppcVar7 = ppcVar7 + 1;\n        pcVar6 = *ppcVar7;\n        if (pcVar6 == (char *)0x0) goto LAB_000c6c94;\n      }\n      iVar5 = (*(code *)PTR_ftruncate64_0012b110)(iVar4);\n      if (iVar5 == -1) {\n        iVar8 = 1;\n        (*(code *)PTR_bb_perror_msg_0012a238)(puVar10,*ppcVar7);\n      }\n      ppcVar7 = ppcVar7 + 1;\n      (*(code *)puVar1)(iVar4);\n      pcVar6 = *ppcVar7;\n    } while (pcVar6 != (char *)0x0);\n  }\nLAB_000c6c94:\n  if (iStack_2c != *(int *)puVar2) {\n    iVar8 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return iVar8;\n  }\n  return iVar8;\n}\n\n" (function_definition "int truncate_main(int argc,char **argv)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  char *pcVar6;\n  char **ppcVar7;\n  int iVar8;\n  undefined *puVar9;\n  undefined *puVar10;\n  undefined4 uVar11;\n  char *size_str;\n  int iStack_2c;\n  \n  puVar2 = PTR___stack_chk_guard_0012b14c;\n  uVar11 = 0x81;\n  iVar8 = 0;\n  iStack_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  uVar3 = (*(code *)PTR_getopt32_0012a30c)(argv,PTR_UINT_0012a18c + -0x1350,&size_str);\n  if ((uVar3 & 1) == 0) {\n    uVar11 = 0x181;\n  }\n  (*(code *)PTR_xatoull_sfx_0012a8f0)(size_str,PTR_cwbkMG_suffixes_0012a8ec + 0x18);\n  puVar1 = PTR_xclose_0012a6a0;\n  ppcVar7 = argv + *(int *)PTR_optind_0012b0ec;\n  pcVar6 = *ppcVar7;\n  if (pcVar6 != (char *)0x0) {\n    puVar10 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x38c8;\n    puVar9 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x38d4;\n    do {\n      while (iVar4 = (*(code *)PTR_open64_0012af00)(pcVar6,uVar11,0x1b6), iVar4 < 0) {\n        if (**(int **)PTR_bb_errno_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            iVar8 = 1;\n            (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);\n          }\n        }\n        else {\n          iVar8 = 1;\n          (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);\n        }\n        ppcVar7 = ppcVar7 + 1;\n        pcVar6 = *ppcVar7;\n        if (pcVar6 == (char *)0x0) goto LAB_000c6c94;\n      }\n      iVar5 = (*(code *)PTR_ftruncate64_0012b110)(iVar4);\n      if (iVar5 == -1) {\n        iVar8 = 1;\n        (*(code *)PTR_bb_perror_msg_0012a238)(puVar10,*ppcVar7);\n      }\n      ppcVar7 = ppcVar7 + 1;\n      (*(code *)puVar1)(iVar4);\n      pcVar6 = *ppcVar7;\n    } while (pcVar6 != (char *)0x0);\n  }\nLAB_000c6c94:\n  if (iStack_2c != *(int *)puVar2) {\n    iVar8 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return iVar8;\n  }\n  return iVar8;\n}" primitive_type (function_declarator "truncate_main(int argc,char **argv)" identifier (parameter_list "(int argc,char **argv)" ( (parameter_declaration "int argc" primitive_type identifier) , (parameter_declaration "char **argv" primitive_type (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  char *pcVar6;\n  char **ppcVar7;\n  int iVar8;\n  undefined *puVar9;\n  undefined *puVar10;\n  undefined4 uVar11;\n  char *size_str;\n  int iStack_2c;\n  \n  puVar2 = PTR___stack_chk_guard_0012b14c;\n  uVar11 = 0x81;\n  iVar8 = 0;\n  iStack_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  uVar3 = (*(code *)PTR_getopt32_0012a30c)(argv,PTR_UINT_0012a18c + -0x1350,&size_str);\n  if ((uVar3 & 1) == 0) {\n    uVar11 = 0x181;\n  }\n  (*(code *)PTR_xatoull_sfx_0012a8f0)(size_str,PTR_cwbkMG_suffixes_0012a8ec + 0x18);\n  puVar1 = PTR_xclose_0012a6a0;\n  ppcVar7 = argv + *(int *)PTR_optind_0012b0ec;\n  pcVar6 = *ppcVar7;\n  if (pcVar6 != (char *)0x0) {\n    puVar10 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x38c8;\n    puVar9 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x38d4;\n    do {\n      while (iVar4 = (*(code *)PTR_open64_0012af00)(pcVar6,uVar11,0x1b6), iVar4 < 0) {\n        if (**(int **)PTR_bb_errno_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            iVar8 = 1;\n            (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);\n          }\n        }\n        else {\n          iVar8 = 1;\n          (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);\n        }\n        ppcVar7 = ppcVar7 + 1;\n        pcVar6 = *ppcVar7;\n        if (pcVar6 == (char *)0x0) goto LAB_000c6c94;\n      }\n      iVar5 = (*(code *)PTR_ftruncate64_0012b110)(iVar4);\n      if (iVar5 == -1) {\n        iVar8 = 1;\n        (*(code *)PTR_bb_perror_msg_0012a238)(puVar10,*ppcVar7);\n      }\n      ppcVar7 = ppcVar7 + 1;\n      (*(code *)puVar1)(iVar4);\n      pcVar6 = *ppcVar7;\n    } while (pcVar6 != (char *)0x0);\n  }\nLAB_000c6c94:\n  if (iStack_2c != *(int *)puVar2) {\n    iVar8 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return iVar8;\n  }\n  return iVar8;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char **ppcVar7;" primitive_type (pointer_declarator "**ppcVar7" * (pointer_declarator "*ppcVar7" * identifier)) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "undefined4 uVar11;" type_identifier identifier ;) (declaration "char *size_str;" primitive_type (pointer_declarator "*size_str" * identifier) ;) (declaration "int iStack_2c;" primitive_type identifier ;) (expression_statement "puVar2 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar2 = PTR___stack_chk_guard_0012b14c" identifier = identifier) ;) (expression_statement "uVar11 = 0x81;" (assignment_expression "uVar11 = 0x81" identifier = number_literal) ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "iStack_2c = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "iStack_2c = *(int *)PTR___stack_chk_guard_0012b14c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" * (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar3 = (*(code *)PTR_getopt32_0012a30c)(argv,PTR_UINT_0012a18c + -0x1350,&size_str);" (assignment_expression "uVar3 = (*(code *)PTR_getopt32_0012a30c)(argv,PTR_UINT_0012a18c + -0x1350,&size_str)" identifier = (call_expression "(*(code *)PTR_getopt32_0012a30c)(argv,PTR_UINT_0012a18c + -0x1350,&size_str)" (parenthesized_expression "(*(code *)PTR_getopt32_0012a30c)" ( (pointer_expression "*(code *)PTR_getopt32_0012a30c" * (cast_expression "(code *)PTR_getopt32_0012a30c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(argv,PTR_UINT_0012a18c + -0x1350,&size_str)" ( identifier , (binary_expression "PTR_UINT_0012a18c + -0x1350" identifier + number_literal) , (pointer_expression "&size_str" & identifier) )))) ;) (if_statement "if ((uVar3 & 1) == 0) {\n    uVar11 = 0x181;\n  }" if (parenthesized_expression "((uVar3 & 1) == 0)" ( (binary_expression "(uVar3 & 1) == 0" (parenthesized_expression "(uVar3 & 1)" ( (binary_expression "uVar3 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar11 = 0x181;\n  }" { (expression_statement "uVar11 = 0x181;" (assignment_expression "uVar11 = 0x181" identifier = number_literal) ;) })) (expression_statement "(*(code *)PTR_xatoull_sfx_0012a8f0)(size_str,PTR_cwbkMG_suffixes_0012a8ec + 0x18);" (call_expression "(*(code *)PTR_xatoull_sfx_0012a8f0)(size_str,PTR_cwbkMG_suffixes_0012a8ec + 0x18)" (parenthesized_expression "(*(code *)PTR_xatoull_sfx_0012a8f0)" ( (pointer_expression "*(code *)PTR_xatoull_sfx_0012a8f0" * (cast_expression "(code *)PTR_xatoull_sfx_0012a8f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(size_str,PTR_cwbkMG_suffixes_0012a8ec + 0x18)" ( identifier , (binary_expression "PTR_cwbkMG_suffixes_0012a8ec + 0x18" identifier + number_literal) ))) ;) (expression_statement "puVar1 = PTR_xclose_0012a6a0;" (assignment_expression "puVar1 = PTR_xclose_0012a6a0" identifier = identifier) ;) (expression_statement "ppcVar7 = argv + *(int *)PTR_optind_0012b0ec;" (assignment_expression "ppcVar7 = argv + *(int *)PTR_optind_0012b0ec" identifier = (binary_expression "argv + *(int *)PTR_optind_0012b0ec" identifier + (pointer_expression "*(int *)PTR_optind_0012b0ec" * (cast_expression "(int *)PTR_optind_0012b0ec" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)))) ;) (expression_statement "pcVar6 = *ppcVar7;" (assignment_expression "pcVar6 = *ppcVar7" identifier = (pointer_expression "*ppcVar7" * identifier)) ;) (if_statement "if (pcVar6 != (char *)0x0) {\n    puVar10 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x38c8;\n    puVar9 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x38d4;\n    do {\n      while (iVar4 = (*(code *)PTR_open64_0012af00)(pcVar6,uVar11,0x1b6), iVar4 < 0) {\n        if (**(int **)PTR_bb_errno_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            iVar8 = 1;\n            (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);\n          }\n        }\n        else {\n          iVar8 = 1;\n          (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);\n        }\n        ppcVar7 = ppcVar7 + 1;\n        pcVar6 = *ppcVar7;\n        if (pcVar6 == (char *)0x0) goto LAB_000c6c94;\n      }\n      iVar5 = (*(code *)PTR_ftruncate64_0012b110)(iVar4);\n      if (iVar5 == -1) {\n        iVar8 = 1;\n        (*(code *)PTR_bb_perror_msg_0012a238)(puVar10,*ppcVar7);\n      }\n      ppcVar7 = ppcVar7 + 1;\n      (*(code *)puVar1)(iVar4);\n      pcVar6 = *ppcVar7;\n    } while (pcVar6 != (char *)0x0);\n  }" if (parenthesized_expression "(pcVar6 != (char *)0x0)" ( (binary_expression "pcVar6 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar10 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x38c8;\n    puVar9 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x38d4;\n    do {\n      while (iVar4 = (*(code *)PTR_open64_0012af00)(pcVar6,uVar11,0x1b6), iVar4 < 0) {\n        if (**(int **)PTR_bb_errno_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            iVar8 = 1;\n            (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);\n          }\n        }\n        else {\n          iVar8 = 1;\n          (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);\n        }\n        ppcVar7 = ppcVar7 + 1;\n        pcVar6 = *ppcVar7;\n        if (pcVar6 == (char *)0x0) goto LAB_000c6c94;\n      }\n      iVar5 = (*(code *)PTR_ftruncate64_0012b110)(iVar4);\n      if (iVar5 == -1) {\n        iVar8 = 1;\n        (*(code *)PTR_bb_perror_msg_0012a238)(puVar10,*ppcVar7);\n      }\n      ppcVar7 = ppcVar7 + 1;\n      (*(code *)puVar1)(iVar4);\n      pcVar6 = *ppcVar7;\n    } while (pcVar6 != (char *)0x0);\n  }" { (expression_statement "puVar10 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x38c8;" (binary_expression "puVar10 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x38c8" (assignment_expression "puVar10 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" identifier = (binary_expression "PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" (binary_expression "PTR_s_<_W_q_v1_HxLJ_" identifier < identifier) & identifier)) (ERROR ")9__f_l_0012a1a8" ) number_literal identifier) + number_literal) ;) (expression_statement "puVar9 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x38d4;" (binary_expression "puVar9 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x38d4" (assignment_expression "puVar9 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" identifier = (binary_expression "PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" (binary_expression "PTR_s_<_W_q_v1_HxLJ_" identifier < identifier) & identifier)) (ERROR ")9__f_l_0012a1a8" ) number_literal identifier) + number_literal) ;) (do_statement "do {\n      while (iVar4 = (*(code *)PTR_open64_0012af00)(pcVar6,uVar11,0x1b6), iVar4 < 0) {\n        if (**(int **)PTR_bb_errno_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            iVar8 = 1;\n            (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);\n          }\n        }\n        else {\n          iVar8 = 1;\n          (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);\n        }\n        ppcVar7 = ppcVar7 + 1;\n        pcVar6 = *ppcVar7;\n        if (pcVar6 == (char *)0x0) goto LAB_000c6c94;\n      }\n      iVar5 = (*(code *)PTR_ftruncate64_0012b110)(iVar4);\n      if (iVar5 == -1) {\n        iVar8 = 1;\n        (*(code *)PTR_bb_perror_msg_0012a238)(puVar10,*ppcVar7);\n      }\n      ppcVar7 = ppcVar7 + 1;\n      (*(code *)puVar1)(iVar4);\n      pcVar6 = *ppcVar7;\n    } while (pcVar6 != (char *)0x0);" do (compound_statement "{\n      while (iVar4 = (*(code *)PTR_open64_0012af00)(pcVar6,uVar11,0x1b6), iVar4 < 0) {\n        if (**(int **)PTR_bb_errno_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            iVar8 = 1;\n            (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);\n          }\n        }\n        else {\n          iVar8 = 1;\n          (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);\n        }\n        ppcVar7 = ppcVar7 + 1;\n        pcVar6 = *ppcVar7;\n        if (pcVar6 == (char *)0x0) goto LAB_000c6c94;\n      }\n      iVar5 = (*(code *)PTR_ftruncate64_0012b110)(iVar4);\n      if (iVar5 == -1) {\n        iVar8 = 1;\n        (*(code *)PTR_bb_perror_msg_0012a238)(puVar10,*ppcVar7);\n      }\n      ppcVar7 = ppcVar7 + 1;\n      (*(code *)puVar1)(iVar4);\n      pcVar6 = *ppcVar7;\n    }" { (while_statement "while (iVar4 = (*(code *)PTR_open64_0012af00)(pcVar6,uVar11,0x1b6), iVar4 < 0) {\n        if (**(int **)PTR_bb_errno_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            iVar8 = 1;\n            (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);\n          }\n        }\n        else {\n          iVar8 = 1;\n          (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);\n        }\n        ppcVar7 = ppcVar7 + 1;\n        pcVar6 = *ppcVar7;\n        if (pcVar6 == (char *)0x0) goto LAB_000c6c94;\n      }" while (parenthesized_expression "(iVar4 = (*(code *)PTR_open64_0012af00)(pcVar6,uVar11,0x1b6), iVar4 < 0)" ( (comma_expression "iVar4 = (*(code *)PTR_open64_0012af00)(pcVar6,uVar11,0x1b6), iVar4 < 0" (assignment_expression "iVar4 = (*(code *)PTR_open64_0012af00)(pcVar6,uVar11,0x1b6)" identifier = (call_expression "(*(code *)PTR_open64_0012af00)(pcVar6,uVar11,0x1b6)" (parenthesized_expression "(*(code *)PTR_open64_0012af00)" ( (pointer_expression "*(code *)PTR_open64_0012af00" * (cast_expression "(code *)PTR_open64_0012af00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6,uVar11,0x1b6)" ( identifier , identifier , number_literal )))) , (binary_expression "iVar4 < 0" identifier < number_literal)) )) (compound_statement "{\n        if (**(int **)PTR_bb_errno_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            iVar8 = 1;\n            (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);\n          }\n        }\n        else {\n          iVar8 = 1;\n          (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);\n        }\n        ppcVar7 = ppcVar7 + 1;\n        pcVar6 = *ppcVar7;\n        if (pcVar6 == (char *)0x0) goto LAB_000c6c94;\n      }" { (if_statement "if (**(int **)PTR_bb_errno_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            iVar8 = 1;\n            (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);\n          }\n        }\n        else {\n          iVar8 = 1;\n          (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);\n        }" if (parenthesized_expression "(**(int **)PTR_bb_errno_0012a214 == 2)" ( (binary_expression "**(int **)PTR_bb_errno_0012a214 == 2" (pointer_expression "**(int **)PTR_bb_errno_0012a214" * (pointer_expression "*(int **)PTR_bb_errno_0012a214" * (cast_expression "(int **)PTR_bb_errno_0012a214" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) == number_literal) )) (compound_statement "{\n          if ((uVar3 & 1) == 0) {\n            iVar8 = 1;\n            (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);\n          }\n        }" { (if_statement "if ((uVar3 & 1) == 0) {\n            iVar8 = 1;\n            (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);\n          }" if (parenthesized_expression "((uVar3 & 1) == 0)" ( (binary_expression "(uVar3 & 1) == 0" (parenthesized_expression "(uVar3 & 1)" ( (binary_expression "uVar3 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n            iVar8 = 1;\n            (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);\n          }" { (expression_statement "iVar8 = 1;" (assignment_expression "iVar8 = 1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);" (call_expression "(*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7)" (parenthesized_expression "(*(code *)PTR_bb_perror_msg_0012a238)" ( (pointer_expression "*(code *)PTR_bb_perror_msg_0012a238" * (cast_expression "(code *)PTR_bb_perror_msg_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9,*ppcVar7)" ( identifier , (pointer_expression "*ppcVar7" * identifier) ))) ;) })) }) (else_clause "else {\n          iVar8 = 1;\n          (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);\n        }" else (compound_statement "{\n          iVar8 = 1;\n          (*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);\n        }" { (expression_statement "iVar8 = 1;" (assignment_expression "iVar8 = 1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7);" (call_expression "(*(code *)PTR_bb_perror_msg_0012a238)(puVar9,*ppcVar7)" (parenthesized_expression "(*(code *)PTR_bb_perror_msg_0012a238)" ( (pointer_expression "*(code *)PTR_bb_perror_msg_0012a238" * (cast_expression "(code *)PTR_bb_perror_msg_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9,*ppcVar7)" ( identifier , (pointer_expression "*ppcVar7" * identifier) ))) ;) }))) (expression_statement "ppcVar7 = ppcVar7 + 1;" (assignment_expression "ppcVar7 = ppcVar7 + 1" identifier = (binary_expression "ppcVar7 + 1" identifier + number_literal)) ;) (expression_statement "pcVar6 = *ppcVar7;" (assignment_expression "pcVar6 = *ppcVar7" identifier = (pointer_expression "*ppcVar7" * identifier)) ;) (if_statement "if (pcVar6 == (char *)0x0) goto LAB_000c6c94;" if (parenthesized_expression "(pcVar6 == (char *)0x0)" ( (binary_expression "pcVar6 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000c6c94;" goto statement_identifier ;)) })) (expression_statement "iVar5 = (*(code *)PTR_ftruncate64_0012b110)(iVar4);" (assignment_expression "iVar5 = (*(code *)PTR_ftruncate64_0012b110)(iVar4)" identifier = (call_expression "(*(code *)PTR_ftruncate64_0012b110)(iVar4)" (parenthesized_expression "(*(code *)PTR_ftruncate64_0012b110)" ( (pointer_expression "*(code *)PTR_ftruncate64_0012b110" * (cast_expression "(code *)PTR_ftruncate64_0012b110" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier )))) ;) (if_statement "if (iVar5 == -1) {\n        iVar8 = 1;\n        (*(code *)PTR_bb_perror_msg_0012a238)(puVar10,*ppcVar7);\n      }" if (parenthesized_expression "(iVar5 == -1)" ( (binary_expression "iVar5 == -1" identifier == number_literal) )) (compound_statement "{\n        iVar8 = 1;\n        (*(code *)PTR_bb_perror_msg_0012a238)(puVar10,*ppcVar7);\n      }" { (expression_statement "iVar8 = 1;" (assignment_expression "iVar8 = 1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_bb_perror_msg_0012a238)(puVar10,*ppcVar7);" (call_expression "(*(code *)PTR_bb_perror_msg_0012a238)(puVar10,*ppcVar7)" (parenthesized_expression "(*(code *)PTR_bb_perror_msg_0012a238)" ( (pointer_expression "*(code *)PTR_bb_perror_msg_0012a238" * (cast_expression "(code *)PTR_bb_perror_msg_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar10,*ppcVar7)" ( identifier , (pointer_expression "*ppcVar7" * identifier) ))) ;) })) (expression_statement "ppcVar7 = ppcVar7 + 1;" (assignment_expression "ppcVar7 = ppcVar7 + 1" identifier = (binary_expression "ppcVar7 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar1)(iVar4);" (call_expression "(*(code *)puVar1)(iVar4)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))) ;) (expression_statement "pcVar6 = *ppcVar7;" (assignment_expression "pcVar6 = *ppcVar7" identifier = (pointer_expression "*ppcVar7" * identifier)) ;) }) while (parenthesized_expression "(pcVar6 != (char *)0x0)" ( (binary_expression "pcVar6 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (labeled_statement "LAB_000c6c94:\n  if (iStack_2c != *(int *)puVar2) {\n    iVar8 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return iVar8;\n  }" statement_identifier : (if_statement "if (iStack_2c != *(int *)puVar2) {\n    iVar8 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return iVar8;\n  }" if (parenthesized_expression "(iStack_2c != *(int *)puVar2)" ( (binary_expression "iStack_2c != *(int *)puVar2" identifier != (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    iVar8 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return iVar8;\n  }" { (expression_statement "iVar8 = (*(code *)PTR___stack_chk_fail_0012b0c8)();" (assignment_expression "iVar8 = (*(code *)PTR___stack_chk_fail_0012b0c8)()" identifier = (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" * (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (return_statement "return iVar8;" return identifier ;) }))) (return_statement "return iVar8;" return identifier ;) })))
(translation_unit "undefined4 FUN_000c6b6c(undefined4 param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  undefined4 uVar10;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_0012b14c;\n  uVar10 = 0x81;\n  uVar7 = 0;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  uVar3 = (*(code *)PTR_FUN_0012a30c)(param_2,PTR_UINT_0012a18c + -0x1350,&local_30);\n  if ((uVar3 & 1) == 0) {\n    uVar10 = 0x181;\n  }\n  (*(code *)PTR_FUN_0012a8f0)(local_30,PTR_DAT_0012a8ec + 0x18);\n  puVar1 = PTR_FUN_0012a6a0;\n  piVar6 = (int *)(param_2 + *(int *)PTR_optind_0012b0ec * 4);\n  iVar5 = *piVar6;\n  if (iVar5 != 0) {\n    puVar9 = PTR_FUN_0012a1a8 + -0x38c8;\n    puVar8 = PTR_FUN_0012a1a8 + -0x38d4;\n    do {\n      while (iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0) {\n        if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }\n        piVar6 = piVar6 + 1;\n        iVar5 = *piVar6;\n        if (iVar5 == 0) goto LAB_000c6c94;\n      }\n      iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5);\n      if (iVar4 == -1) {\n        uVar7 = 1;\n        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);\n      }\n      piVar6 = piVar6 + 1;\n      (*(code *)puVar1)(iVar5);\n      iVar5 = *piVar6;\n    } while (iVar5 != 0);\n  }\nLAB_000c6c94:\n  if (local_2c != *(int *)puVar2) {\n    uVar7 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return uVar7;\n  }\n  return uVar7;\n}\n\n" (function_definition "undefined4 FUN_000c6b6c(undefined4 param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  undefined4 uVar10;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_0012b14c;\n  uVar10 = 0x81;\n  uVar7 = 0;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  uVar3 = (*(code *)PTR_FUN_0012a30c)(param_2,PTR_UINT_0012a18c + -0x1350,&local_30);\n  if ((uVar3 & 1) == 0) {\n    uVar10 = 0x181;\n  }\n  (*(code *)PTR_FUN_0012a8f0)(local_30,PTR_DAT_0012a8ec + 0x18);\n  puVar1 = PTR_FUN_0012a6a0;\n  piVar6 = (int *)(param_2 + *(int *)PTR_optind_0012b0ec * 4);\n  iVar5 = *piVar6;\n  if (iVar5 != 0) {\n    puVar9 = PTR_FUN_0012a1a8 + -0x38c8;\n    puVar8 = PTR_FUN_0012a1a8 + -0x38d4;\n    do {\n      while (iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0) {\n        if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }\n        piVar6 = piVar6 + 1;\n        iVar5 = *piVar6;\n        if (iVar5 == 0) goto LAB_000c6c94;\n      }\n      iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5);\n      if (iVar4 == -1) {\n        uVar7 = 1;\n        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);\n      }\n      piVar6 = piVar6 + 1;\n      (*(code *)puVar1)(iVar5);\n      iVar5 = *piVar6;\n    } while (iVar5 != 0);\n  }\nLAB_000c6c94:\n  if (local_2c != *(int *)puVar2) {\n    uVar7 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return uVar7;\n  }\n  return uVar7;\n}" type_identifier (function_declarator "FUN_000c6b6c(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  undefined4 uVar10;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_0012b14c;\n  uVar10 = 0x81;\n  uVar7 = 0;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  uVar3 = (*(code *)PTR_FUN_0012a30c)(param_2,PTR_UINT_0012a18c + -0x1350,&local_30);\n  if ((uVar3 & 1) == 0) {\n    uVar10 = 0x181;\n  }\n  (*(code *)PTR_FUN_0012a8f0)(local_30,PTR_DAT_0012a8ec + 0x18);\n  puVar1 = PTR_FUN_0012a6a0;\n  piVar6 = (int *)(param_2 + *(int *)PTR_optind_0012b0ec * 4);\n  iVar5 = *piVar6;\n  if (iVar5 != 0) {\n    puVar9 = PTR_FUN_0012a1a8 + -0x38c8;\n    puVar8 = PTR_FUN_0012a1a8 + -0x38d4;\n    do {\n      while (iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0) {\n        if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }\n        piVar6 = piVar6 + 1;\n        iVar5 = *piVar6;\n        if (iVar5 == 0) goto LAB_000c6c94;\n      }\n      iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5);\n      if (iVar4 == -1) {\n        uVar7 = 1;\n        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);\n      }\n      piVar6 = piVar6 + 1;\n      (*(code *)puVar1)(iVar5);\n      iVar5 = *piVar6;\n    } while (iVar5 != 0);\n  }\nLAB_000c6c94:\n  if (local_2c != *(int *)puVar2) {\n    uVar7 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return uVar7;\n  }\n  return uVar7;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar2 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar2 = PTR___stack_chk_guard_0012b14c" identifier = identifier) ;) (expression_statement "uVar10 = 0x81;" (assignment_expression "uVar10 = 0x81" identifier = number_literal) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0012b14c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" * (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar3 = (*(code *)PTR_FUN_0012a30c)(param_2,PTR_UINT_0012a18c + -0x1350,&local_30);" (assignment_expression "uVar3 = (*(code *)PTR_FUN_0012a30c)(param_2,PTR_UINT_0012a18c + -0x1350,&local_30)" identifier = (call_expression "(*(code *)PTR_FUN_0012a30c)(param_2,PTR_UINT_0012a18c + -0x1350,&local_30)" (parenthesized_expression "(*(code *)PTR_FUN_0012a30c)" ( (pointer_expression "*(code *)PTR_FUN_0012a30c" * (cast_expression "(code *)PTR_FUN_0012a30c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,PTR_UINT_0012a18c + -0x1350,&local_30)" ( identifier , (binary_expression "PTR_UINT_0012a18c + -0x1350" identifier + number_literal) , (pointer_expression "&local_30" & identifier) )))) ;) (if_statement "if ((uVar3 & 1) == 0) {\n    uVar10 = 0x181;\n  }" if (parenthesized_expression "((uVar3 & 1) == 0)" ( (binary_expression "(uVar3 & 1) == 0" (parenthesized_expression "(uVar3 & 1)" ( (binary_expression "uVar3 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar10 = 0x181;\n  }" { (expression_statement "uVar10 = 0x181;" (assignment_expression "uVar10 = 0x181" identifier = number_literal) ;) })) (expression_statement "(*(code *)PTR_FUN_0012a8f0)(local_30,PTR_DAT_0012a8ec + 0x18);" (call_expression "(*(code *)PTR_FUN_0012a8f0)(local_30,PTR_DAT_0012a8ec + 0x18)" (parenthesized_expression "(*(code *)PTR_FUN_0012a8f0)" ( (pointer_expression "*(code *)PTR_FUN_0012a8f0" * (cast_expression "(code *)PTR_FUN_0012a8f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30,PTR_DAT_0012a8ec + 0x18)" ( identifier , (binary_expression "PTR_DAT_0012a8ec + 0x18" identifier + number_literal) ))) ;) (expression_statement "puVar1 = PTR_FUN_0012a6a0;" (assignment_expression "puVar1 = PTR_FUN_0012a6a0" identifier = identifier) ;) (expression_statement "piVar6 = (int *)(param_2 + *(int *)PTR_optind_0012b0ec * 4);" (assignment_expression "piVar6 = (int *)(param_2 + *(int *)PTR_optind_0012b0ec * 4)" identifier = (cast_expression "(int *)(param_2 + *(int *)PTR_optind_0012b0ec * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + *(int *)PTR_optind_0012b0ec * 4)" ( (binary_expression "param_2 + *(int *)PTR_optind_0012b0ec * 4" identifier + (binary_expression "*(int *)PTR_optind_0012b0ec * 4" (pointer_expression "*(int *)PTR_optind_0012b0ec" * (cast_expression "(int *)PTR_optind_0012b0ec" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) * number_literal)) )))) ;) (expression_statement "iVar5 = *piVar6;" (assignment_expression "iVar5 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) (if_statement "if (iVar5 != 0) {\n    puVar9 = PTR_FUN_0012a1a8 + -0x38c8;\n    puVar8 = PTR_FUN_0012a1a8 + -0x38d4;\n    do {\n      while (iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0) {\n        if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }\n        piVar6 = piVar6 + 1;\n        iVar5 = *piVar6;\n        if (iVar5 == 0) goto LAB_000c6c94;\n      }\n      iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5);\n      if (iVar4 == -1) {\n        uVar7 = 1;\n        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);\n      }\n      piVar6 = piVar6 + 1;\n      (*(code *)puVar1)(iVar5);\n      iVar5 = *piVar6;\n    } while (iVar5 != 0);\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar9 = PTR_FUN_0012a1a8 + -0x38c8;\n    puVar8 = PTR_FUN_0012a1a8 + -0x38d4;\n    do {\n      while (iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0) {\n        if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }\n        piVar6 = piVar6 + 1;\n        iVar5 = *piVar6;\n        if (iVar5 == 0) goto LAB_000c6c94;\n      }\n      iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5);\n      if (iVar4 == -1) {\n        uVar7 = 1;\n        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);\n      }\n      piVar6 = piVar6 + 1;\n      (*(code *)puVar1)(iVar5);\n      iVar5 = *piVar6;\n    } while (iVar5 != 0);\n  }" { (expression_statement "puVar9 = PTR_FUN_0012a1a8 + -0x38c8;" (assignment_expression "puVar9 = PTR_FUN_0012a1a8 + -0x38c8" identifier = (binary_expression "PTR_FUN_0012a1a8 + -0x38c8" identifier + number_literal)) ;) (expression_statement "puVar8 = PTR_FUN_0012a1a8 + -0x38d4;" (assignment_expression "puVar8 = PTR_FUN_0012a1a8 + -0x38d4" identifier = (binary_expression "PTR_FUN_0012a1a8 + -0x38d4" identifier + number_literal)) ;) (do_statement "do {\n      while (iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0) {\n        if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }\n        piVar6 = piVar6 + 1;\n        iVar5 = *piVar6;\n        if (iVar5 == 0) goto LAB_000c6c94;\n      }\n      iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5);\n      if (iVar4 == -1) {\n        uVar7 = 1;\n        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);\n      }\n      piVar6 = piVar6 + 1;\n      (*(code *)puVar1)(iVar5);\n      iVar5 = *piVar6;\n    } while (iVar5 != 0);" do (compound_statement "{\n      while (iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0) {\n        if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }\n        piVar6 = piVar6 + 1;\n        iVar5 = *piVar6;\n        if (iVar5 == 0) goto LAB_000c6c94;\n      }\n      iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5);\n      if (iVar4 == -1) {\n        uVar7 = 1;\n        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);\n      }\n      piVar6 = piVar6 + 1;\n      (*(code *)puVar1)(iVar5);\n      iVar5 = *piVar6;\n    }" { (while_statement "while (iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0) {\n        if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }\n        piVar6 = piVar6 + 1;\n        iVar5 = *piVar6;\n        if (iVar5 == 0) goto LAB_000c6c94;\n      }" while (parenthesized_expression "(iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0)" ( (comma_expression "iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0" (assignment_expression "iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6)" identifier = (call_expression "(*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6)" (parenthesized_expression "(*(code *)PTR_open64_0012af00)" ( (pointer_expression "*(code *)PTR_open64_0012af00" * (cast_expression "(code *)PTR_open64_0012af00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5,uVar10,0x1b6)" ( identifier , identifier , number_literal )))) , (binary_expression "iVar5 < 0" identifier < number_literal)) )) (compound_statement "{\n        if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }\n        piVar6 = piVar6 + 1;\n        iVar5 = *piVar6;\n        if (iVar5 == 0) goto LAB_000c6c94;\n      }" { (if_statement "if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }" if (parenthesized_expression "(**(int **)PTR_DAT_0012a214 == 2)" ( (binary_expression "**(int **)PTR_DAT_0012a214 == 2" (pointer_expression "**(int **)PTR_DAT_0012a214" * (pointer_expression "*(int **)PTR_DAT_0012a214" * (cast_expression "(int **)PTR_DAT_0012a214" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) == number_literal) )) (compound_statement "{\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }" { (if_statement "if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }" if (parenthesized_expression "((uVar3 & 1) == 0)" ( (binary_expression "(uVar3 & 1) == 0" (parenthesized_expression "(uVar3 & 1)" ( (binary_expression "uVar3 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }" { (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);" (call_expression "(*(code *)PTR_FUN_0012a238)(puVar8,*piVar6)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" ( (pointer_expression "*(code *)PTR_FUN_0012a238" * (cast_expression "(code *)PTR_FUN_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar8,*piVar6)" ( identifier , (pointer_expression "*piVar6" * identifier) ))) ;) })) }) (else_clause "else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }" else (compound_statement "{\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }" { (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);" (call_expression "(*(code *)PTR_FUN_0012a238)(puVar8,*piVar6)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" ( (pointer_expression "*(code *)PTR_FUN_0012a238" * (cast_expression "(code *)PTR_FUN_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar8,*piVar6)" ( identifier , (pointer_expression "*piVar6" * identifier) ))) ;) }))) (expression_statement "piVar6 = piVar6 + 1;" (assignment_expression "piVar6 = piVar6 + 1" identifier = (binary_expression "piVar6 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = *piVar6;" (assignment_expression "iVar5 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) (if_statement "if (iVar5 == 0) goto LAB_000c6c94;" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000c6c94;" goto statement_identifier ;)) })) (expression_statement "iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5);" (assignment_expression "iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5)" identifier = (call_expression "(*(code *)PTR_ftruncate64_0012b110)(iVar5)" (parenthesized_expression "(*(code *)PTR_ftruncate64_0012b110)" ( (pointer_expression "*(code *)PTR_ftruncate64_0012b110" * (cast_expression "(code *)PTR_ftruncate64_0012b110" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5)" ( identifier )))) ;) (if_statement "if (iVar4 == -1) {\n        uVar7 = 1;\n        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);\n      }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n        uVar7 = 1;\n        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);\n      }" { (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);" (call_expression "(*(code *)PTR_FUN_0012a238)(puVar9,*piVar6)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" ( (pointer_expression "*(code *)PTR_FUN_0012a238" * (cast_expression "(code *)PTR_FUN_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9,*piVar6)" ( identifier , (pointer_expression "*piVar6" * identifier) ))) ;) })) (expression_statement "piVar6 = piVar6 + 1;" (assignment_expression "piVar6 = piVar6 + 1" identifier = (binary_expression "piVar6 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar1)(iVar5);" (call_expression "(*(code *)puVar1)(iVar5)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5)" ( identifier ))) ;) (expression_statement "iVar5 = *piVar6;" (assignment_expression "iVar5 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) }) while (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) ;) })) (labeled_statement "LAB_000c6c94:\n  if (local_2c != *(int *)puVar2) {\n    uVar7 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return uVar7;\n  }" statement_identifier : (if_statement "if (local_2c != *(int *)puVar2) {\n    uVar7 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return uVar7;\n  }" if (parenthesized_expression "(local_2c != *(int *)puVar2)" ( (binary_expression "local_2c != *(int *)puVar2" identifier != (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    uVar7 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return uVar7;\n  }" { (expression_statement "uVar7 = (*(code *)PTR___stack_chk_fail_0012b0c8)();" (assignment_expression "uVar7 = (*(code *)PTR___stack_chk_fail_0012b0c8)()" identifier = (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" * (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (return_statement "return uVar7;" return identifier ;) }))) (return_statement "return uVar7;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 *)) ) IDENT)) * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * 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)) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , LIT )))) , (binary_expression IDENT < LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression * IDENT) ))) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression * IDENT) ))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression * IDENT) ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (return_statement return IDENT ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_000c6b6c(undefined4 param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  undefined4 uVar10;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_0012b14c;\n  uVar10 = 0x81;\n  uVar7 = 0;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  uVar3 = (*(code *)PTR_FUN_0012a30c)(param_2,PTR_UINT_0012a18c + -0x1350,&local_30);\n  if ((uVar3 & 1) == 0) {\n    uVar10 = 0x181;\n  }\n  (*(code *)PTR_FUN_0012a8f0)(local_30,PTR_DAT_0012a8ec + 0x18);\n  puVar1 = PTR_FUN_0012a6a0;\n  piVar6 = (int *)(param_2 + *(int *)PTR_optind_0012b0ec * 4);\n  iVar5 = *piVar6;\n  if (iVar5 != 0) {\n    puVar9 = PTR_FUN_0012a1a8 + -0x38c8;\n    puVar8 = PTR_FUN_0012a1a8 + -0x38d4;\n    do {\n      while (iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0) {\n        if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }\n        piVar6 = piVar6 + 1;\n        iVar5 = *piVar6;\n        if (iVar5 == 0) goto LAB_000c6c94;\n      }\n      iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5);\n      if (iVar4 == -1) {\n        uVar7 = 1;\n        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);\n      }\n      piVar6 = piVar6 + 1;\n      (*(code *)puVar1)(iVar5);\n      iVar5 = *piVar6;\n    } while (iVar5 != 0);\n  }\nLAB_000c6c94:\n  if (local_2c != *(int *)puVar2) {\n    uVar7 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return uVar7;\n  }\n  return uVar7;\n}" (type_identifier "undefined4") (function_declarator "FUN_000c6b6c(undefined4 param_1,int param_2)" (identifier "FUN_000c6b6c") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  undefined4 uVar10;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_0012b14c;\n  uVar10 = 0x81;\n  uVar7 = 0;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  uVar3 = (*(code *)PTR_FUN_0012a30c)(param_2,PTR_UINT_0012a18c + -0x1350,&local_30);\n  if ((uVar3 & 1) == 0) {\n    uVar10 = 0x181;\n  }\n  (*(code *)PTR_FUN_0012a8f0)(local_30,PTR_DAT_0012a8ec + 0x18);\n  puVar1 = PTR_FUN_0012a6a0;\n  piVar6 = (int *)(param_2 + *(int *)PTR_optind_0012b0ec * 4);\n  iVar5 = *piVar6;\n  if (iVar5 != 0) {\n    puVar9 = PTR_FUN_0012a1a8 + -0x38c8;\n    puVar8 = PTR_FUN_0012a1a8 + -0x38d4;\n    do {\n      while (iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0) {\n        if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }\n        piVar6 = piVar6 + 1;\n        iVar5 = *piVar6;\n        if (iVar5 == 0) goto LAB_000c6c94;\n      }\n      iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5);\n      if (iVar4 == -1) {\n        uVar7 = 1;\n        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);\n      }\n      piVar6 = piVar6 + 1;\n      (*(code *)puVar1)(iVar5);\n      iVar5 = *piVar6;\n    } while (iVar5 != 0);\n  }\nLAB_000c6c94:\n  if (local_2c != *(int *)puVar2) {\n    uVar7 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return uVar7;\n  }\n  return uVar7;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "undefined *puVar8;" (type_identifier "undefined") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "undefined *puVar9;" (type_identifier "undefined") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "undefined4 uVar10;" (type_identifier "undefined4") (identifier "uVar10") (; ";")) (declaration "undefined4 local_30;" (type_identifier "undefined4") (identifier "local_30") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar2 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar2 = PTR___stack_chk_guard_0012b14c" (identifier "puVar2") (= "=") (identifier "PTR___stack_chk_guard_0012b14c")) (; ";")) (expression_statement "uVar10 = 0x81;" (assignment_expression "uVar10 = 0x81" (identifier "uVar10") (= "=") (number_literal "0x81")) (; ";")) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0012b14c" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0012b14c")))) (; ";")) (expression_statement "uVar3 = (*(code *)PTR_FUN_0012a30c)(param_2,PTR_UINT_0012a18c + -0x1350,&local_30);" (assignment_expression "uVar3 = (*(code *)PTR_FUN_0012a30c)(param_2,PTR_UINT_0012a18c + -0x1350,&local_30)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_FUN_0012a30c)(param_2,PTR_UINT_0012a18c + -0x1350,&local_30)" (parenthesized_expression "(*(code *)PTR_FUN_0012a30c)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a30c" (* "*") (cast_expression "(code *)PTR_FUN_0012a30c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a30c"))) () ")")) (argument_list "(param_2,PTR_UINT_0012a18c + -0x1350,&local_30)" (( "(") (identifier "param_2") (, ",") (binary_expression "PTR_UINT_0012a18c + -0x1350" (identifier "PTR_UINT_0012a18c") (+ "+") (number_literal "-0x1350")) (, ",") (pointer_expression "&local_30" (& "&") (identifier "local_30")) () ")")))) (; ";")) (if_statement "if ((uVar3 & 1) == 0) {\n    uVar10 = 0x181;\n  }" (if "if") (parenthesized_expression "((uVar3 & 1) == 0)" (( "(") (binary_expression "(uVar3 & 1) == 0" (parenthesized_expression "(uVar3 & 1)" (( "(") (binary_expression "uVar3 & 1" (identifier "uVar3") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar10 = 0x181;\n  }" ({ "{") (expression_statement "uVar10 = 0x181;" (assignment_expression "uVar10 = 0x181" (identifier "uVar10") (= "=") (number_literal "0x181")) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_FUN_0012a8f0)(local_30,PTR_DAT_0012a8ec + 0x18);" (call_expression "(*(code *)PTR_FUN_0012a8f0)(local_30,PTR_DAT_0012a8ec + 0x18)" (parenthesized_expression "(*(code *)PTR_FUN_0012a8f0)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a8f0" (* "*") (cast_expression "(code *)PTR_FUN_0012a8f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a8f0"))) () ")")) (argument_list "(local_30,PTR_DAT_0012a8ec + 0x18)" (( "(") (identifier "local_30") (, ",") (binary_expression "PTR_DAT_0012a8ec + 0x18" (identifier "PTR_DAT_0012a8ec") (+ "+") (number_literal "0x18")) () ")"))) (; ";")) (expression_statement "puVar1 = PTR_FUN_0012a6a0;" (assignment_expression "puVar1 = PTR_FUN_0012a6a0" (identifier "puVar1") (= "=") (identifier "PTR_FUN_0012a6a0")) (; ";")) (expression_statement "piVar6 = (int *)(param_2 + *(int *)PTR_optind_0012b0ec * 4);" (assignment_expression "piVar6 = (int *)(param_2 + *(int *)PTR_optind_0012b0ec * 4)" (identifier "piVar6") (= "=") (cast_expression "(int *)(param_2 + *(int *)PTR_optind_0012b0ec * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + *(int *)PTR_optind_0012b0ec * 4)" (( "(") (binary_expression "param_2 + *(int *)PTR_optind_0012b0ec * 4" (identifier "param_2") (+ "+") (binary_expression "*(int *)PTR_optind_0012b0ec * 4" (pointer_expression "*(int *)PTR_optind_0012b0ec" (* "*") (cast_expression "(int *)PTR_optind_0012b0ec" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_optind_0012b0ec"))) (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "iVar5 = *piVar6;" (assignment_expression "iVar5 = *piVar6" (identifier "iVar5") (= "=") (pointer_expression "*piVar6" (* "*") (identifier "piVar6"))) (; ";")) (if_statement "if (iVar5 != 0) {\n    puVar9 = PTR_FUN_0012a1a8 + -0x38c8;\n    puVar8 = PTR_FUN_0012a1a8 + -0x38d4;\n    do {\n      while (iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0) {\n        if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }\n        piVar6 = piVar6 + 1;\n        iVar5 = *piVar6;\n        if (iVar5 == 0) goto LAB_000c6c94;\n      }\n      iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5);\n      if (iVar4 == -1) {\n        uVar7 = 1;\n        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);\n      }\n      piVar6 = piVar6 + 1;\n      (*(code *)puVar1)(iVar5);\n      iVar5 = *piVar6;\n    } while (iVar5 != 0);\n  }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    puVar9 = PTR_FUN_0012a1a8 + -0x38c8;\n    puVar8 = PTR_FUN_0012a1a8 + -0x38d4;\n    do {\n      while (iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0) {\n        if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }\n        piVar6 = piVar6 + 1;\n        iVar5 = *piVar6;\n        if (iVar5 == 0) goto LAB_000c6c94;\n      }\n      iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5);\n      if (iVar4 == -1) {\n        uVar7 = 1;\n        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);\n      }\n      piVar6 = piVar6 + 1;\n      (*(code *)puVar1)(iVar5);\n      iVar5 = *piVar6;\n    } while (iVar5 != 0);\n  }" ({ "{") (expression_statement "puVar9 = PTR_FUN_0012a1a8 + -0x38c8;" (assignment_expression "puVar9 = PTR_FUN_0012a1a8 + -0x38c8" (identifier "puVar9") (= "=") (binary_expression "PTR_FUN_0012a1a8 + -0x38c8" (identifier "PTR_FUN_0012a1a8") (+ "+") (number_literal "-0x38c8"))) (; ";")) (expression_statement "puVar8 = PTR_FUN_0012a1a8 + -0x38d4;" (assignment_expression "puVar8 = PTR_FUN_0012a1a8 + -0x38d4" (identifier "puVar8") (= "=") (binary_expression "PTR_FUN_0012a1a8 + -0x38d4" (identifier "PTR_FUN_0012a1a8") (+ "+") (number_literal "-0x38d4"))) (; ";")) (do_statement "do {\n      while (iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0) {\n        if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }\n        piVar6 = piVar6 + 1;\n        iVar5 = *piVar6;\n        if (iVar5 == 0) goto LAB_000c6c94;\n      }\n      iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5);\n      if (iVar4 == -1) {\n        uVar7 = 1;\n        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);\n      }\n      piVar6 = piVar6 + 1;\n      (*(code *)puVar1)(iVar5);\n      iVar5 = *piVar6;\n    } while (iVar5 != 0);" (do "do") (compound_statement "{\n      while (iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0) {\n        if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }\n        piVar6 = piVar6 + 1;\n        iVar5 = *piVar6;\n        if (iVar5 == 0) goto LAB_000c6c94;\n      }\n      iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5);\n      if (iVar4 == -1) {\n        uVar7 = 1;\n        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);\n      }\n      piVar6 = piVar6 + 1;\n      (*(code *)puVar1)(iVar5);\n      iVar5 = *piVar6;\n    }" ({ "{") (while_statement "while (iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0) {\n        if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }\n        piVar6 = piVar6 + 1;\n        iVar5 = *piVar6;\n        if (iVar5 == 0) goto LAB_000c6c94;\n      }" (while "while") (parenthesized_expression "(iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0)" (( "(") (comma_expression "iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0" (assignment_expression "iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6)" (parenthesized_expression "(*(code *)PTR_open64_0012af00)" (( "(") (pointer_expression "*(code *)PTR_open64_0012af00" (* "*") (cast_expression "(code *)PTR_open64_0012af00" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_open64_0012af00"))) () ")")) (argument_list "(iVar5,uVar10,0x1b6)" (( "(") (identifier "iVar5") (, ",") (identifier "uVar10") (, ",") (number_literal "0x1b6") () ")")))) (, ",") (binary_expression "iVar5 < 0" (identifier "iVar5") (< "<") (number_literal "0"))) () ")")) (compound_statement "{\n        if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }\n        piVar6 = piVar6 + 1;\n        iVar5 = *piVar6;\n        if (iVar5 == 0) goto LAB_000c6c94;\n      }" ({ "{") (if_statement "if (**(int **)PTR_DAT_0012a214 == 2) {\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }\n        else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }" (if "if") (parenthesized_expression "(**(int **)PTR_DAT_0012a214 == 2)" (( "(") (binary_expression "**(int **)PTR_DAT_0012a214 == 2" (pointer_expression "**(int **)PTR_DAT_0012a214" (* "*") (pointer_expression "*(int **)PTR_DAT_0012a214" (* "*") (cast_expression "(int **)PTR_DAT_0012a214" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_DAT_0012a214")))) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n          if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }\n        }" ({ "{") (if_statement "if ((uVar3 & 1) == 0) {\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }" (if "if") (parenthesized_expression "((uVar3 & 1) == 0)" (( "(") (binary_expression "(uVar3 & 1) == 0" (parenthesized_expression "(uVar3 & 1)" (( "(") (binary_expression "uVar3 & 1" (identifier "uVar3") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            uVar7 = 1;\n            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n          }" ({ "{") (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" (identifier "uVar7") (= "=") (number_literal "1")) (; ";")) (expression_statement "(*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);" (call_expression "(*(code *)PTR_FUN_0012a238)(puVar8,*piVar6)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a238" (* "*") (cast_expression "(code *)PTR_FUN_0012a238" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a238"))) () ")")) (argument_list "(puVar8,*piVar6)" (( "(") (identifier "puVar8") (, ",") (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }" (else "else") (compound_statement "{\n          uVar7 = 1;\n          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);\n        }" ({ "{") (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" (identifier "uVar7") (= "=") (number_literal "1")) (; ";")) (expression_statement "(*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);" (call_expression "(*(code *)PTR_FUN_0012a238)(puVar8,*piVar6)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a238" (* "*") (cast_expression "(code *)PTR_FUN_0012a238" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a238"))) () ")")) (argument_list "(puVar8,*piVar6)" (( "(") (identifier "puVar8") (, ",") (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) () ")"))) (; ";")) (} "}")))) (expression_statement "piVar6 = piVar6 + 1;" (assignment_expression "piVar6 = piVar6 + 1" (identifier "piVar6") (= "=") (binary_expression "piVar6 + 1" (identifier "piVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar5 = *piVar6;" (assignment_expression "iVar5 = *piVar6" (identifier "iVar5") (= "=") (pointer_expression "*piVar6" (* "*") (identifier "piVar6"))) (; ";")) (if_statement "if (iVar5 == 0) goto LAB_000c6c94;" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000c6c94;" (goto "goto") (statement_identifier "LAB_000c6c94") (; ";"))) (} "}"))) (expression_statement "iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5);" (assignment_expression "iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_ftruncate64_0012b110)(iVar5)" (parenthesized_expression "(*(code *)PTR_ftruncate64_0012b110)" (( "(") (pointer_expression "*(code *)PTR_ftruncate64_0012b110" (* "*") (cast_expression "(code *)PTR_ftruncate64_0012b110" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ftruncate64_0012b110"))) () ")")) (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")")))) (; ";")) (if_statement "if (iVar4 == -1) {\n        uVar7 = 1;\n        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);\n      }" (if "if") (parenthesized_expression "(iVar4 == -1)" (( "(") (binary_expression "iVar4 == -1" (identifier "iVar4") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n        uVar7 = 1;\n        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);\n      }" ({ "{") (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" (identifier "uVar7") (= "=") (number_literal "1")) (; ";")) (expression_statement "(*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);" (call_expression "(*(code *)PTR_FUN_0012a238)(puVar9,*piVar6)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a238" (* "*") (cast_expression "(code *)PTR_FUN_0012a238" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a238"))) () ")")) (argument_list "(puVar9,*piVar6)" (( "(") (identifier "puVar9") (, ",") (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) () ")"))) (; ";")) (} "}"))) (expression_statement "piVar6 = piVar6 + 1;" (assignment_expression "piVar6 = piVar6 + 1" (identifier "piVar6") (= "=") (binary_expression "piVar6 + 1" (identifier "piVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "(*(code *)puVar1)(iVar5);" (call_expression "(*(code *)puVar1)(iVar5)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")"))) (; ";")) (expression_statement "iVar5 = *piVar6;" (assignment_expression "iVar5 = *piVar6" (identifier "iVar5") (= "=") (pointer_expression "*piVar6" (* "*") (identifier "piVar6"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (labeled_statement "LAB_000c6c94:\n  if (local_2c != *(int *)puVar2) {\n    uVar7 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return uVar7;\n  }" (statement_identifier "LAB_000c6c94") (: ":") (if_statement "if (local_2c != *(int *)puVar2) {\n    uVar7 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return uVar7;\n  }" (if "if") (parenthesized_expression "(local_2c != *(int *)puVar2)" (( "(") (binary_expression "local_2c != *(int *)puVar2" (identifier "local_2c") (!= "!=") (pointer_expression "*(int *)puVar2" (* "*") (cast_expression "(int *)puVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2")))) () ")")) (compound_statement "{\n    uVar7 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return uVar7;\n  }" ({ "{") (expression_statement "uVar7 = (*(code *)PTR___stack_chk_fail_0012b0c8)();" (assignment_expression "uVar7 = (*(code *)PTR___stack_chk_fail_0012b0c8)()" (identifier "uVar7") (= "=") (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0012b0c8"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar7;" (return "return") (identifier "uVar7") (; ";")) (} "}")))) (return_statement "return uVar7;" (return "return") (identifier "uVar7") (; ";")) (} "}")))

int function_1(int argc,char **var_4)

{
  type_1 *puVar1;
  type_1 *puVar2;
  type_2 var_2;
  int var_9;
  int var_11;
  char *var_5;
  char **var_10;
  int iVar8;
  type_1 *puVar9;
  type_1 *puVar10;
  type_3 uVar11;
  char *size_str;
  int var_12;
  
  puVar2 = PTR___stack_chk_guard_0012b14c;
  uVar11 = 0x81;
  iVar8 = 0;
  var_12 = *(int *)PTR___stack_chk_guard_0012b14c;
  var_2 = (*(type_4 *)PTR_getopt32_0012a30c)(var_4,var_1 + -0x1350,&size_str);
  if ((var_2 & 1) == 0) {
    uVar11 = 0x181;
  }
  (*(type_4 *)PTR_xatoull_sfx_0012a8f0)(size_str,var_3 + 0x18);
  puVar1 = PTR_xclose_0012a6a0;
  var_10 = var_4 + *(int *)PTR_optind_0012b0ec;
  var_5 = *var_10;
  if (var_5 != (char *)0x0) {
    puVar10 = var_6<var_7&var_8)9__f_l_0012a1a8 + -0x38c8;
    puVar9 = var_6<var_7&var_8)9__f_l_0012a1a8 + -0x38d4;
    do {
      while (var_9 = (*(type_4 *)PTR_open64_0012af00)(var_5,uVar11,0x1b6), var_9 < 0) {
        if (**(int **)PTR_bb_errno_0012a214 == 2) {
          if ((var_2 & 1) == 0) {
            iVar8 = 1;
            (*(type_4 *)PTR_bb_perror_msg_0012a238)(puVar9,*var_10);
          }
        }
        else {
          iVar8 = 1;
          (*(type_4 *)PTR_bb_perror_msg_0012a238)(puVar9,*var_10);
        }
        var_10 = var_10 + 1;
        var_5 = *var_10;
        if (var_5 == (char *)0x0) goto LAB_000c6c94;
      }
      var_11 = (*(type_4 *)PTR_ftruncate64_0012b110)(var_9);
      if (var_11 == -1) {
        iVar8 = 1;
        (*(type_4 *)PTR_bb_perror_msg_0012a238)(puVar10,*var_10);
      }
      var_10 = var_10 + 1;
      (*(type_4 *)puVar1)(var_9);
      var_5 = *var_10;
    } while (var_5 != (char *)0x0);
  }
LAB_000c6c94:
  if (var_12 != *(int *)puVar2) {
    iVar8 = (*(type_4 *)PTR___stack_chk_fail_0012b0c8)();
    return iVar8;
  }
  return iVar8;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) 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: (identifier))))) (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 (identifier) (binary_expression left: (identifier) right: (number_literal)) (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (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 (identifier) (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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: (identifier))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (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)))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (comma_expression left: (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 (identifier) (identifier) (number_literal)))) right: (binary_expression left: (identifier) right: (number_literal)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier)))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (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 (identifier) (pointer_expression argument: (identifier)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (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 (identifier) (pointer_expression argument: (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))) (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 (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (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 (identifier) (pointer_expression argument: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (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 (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list)))) (return_statement (identifier))))) (return_statement (identifier)))))

undefined4 MASKED(undefined4 param_1,int param_2)

{
  undefined *puVar1;
  undefined *puVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  int *piVar6;
  undefined4 uVar7;
  undefined *puVar8;
  undefined *puVar9;
  undefined4 uVar10;
  undefined4 local_30;
  int local_2c;
  
  puVar2 = PTR___stack_chk_guard_0012b14c;
  uVar10 = 0x81;
  uVar7 = 0;
  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;
  uVar3 = (*(code *)PTR_FUN_0012a30c)(param_2,PTR_UINT_0012a18c + -0x1350,&local_30);
  if ((uVar3 & 1) == 0) {
    uVar10 = 0x181;
  }
  (*(code *)PTR_FUN_0012a8f0)(local_30,PTR_DAT_0012a8ec + 0x18);
  puVar1 = PTR_FUN_0012a6a0;
  piVar6 = (int *)(param_2 + *(int *)PTR_optind_0012b0ec * 4);
  iVar5 = *piVar6;
  if (iVar5 != 0) {
    puVar9 = PTR_FUN_0012a1a8 + -0x38c8;
    puVar8 = PTR_FUN_0012a1a8 + -0x38d4;
    do {
      while (iVar5 = (*(code *)PTR_open64_0012af00)(iVar5,uVar10,0x1b6), iVar5 < 0) {
        if (**(int **)PTR_DAT_0012a214 == 2) {
          if ((uVar3 & 1) == 0) {
            uVar7 = 1;
            (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);
          }
        }
        else {
          uVar7 = 1;
          (*(code *)PTR_FUN_0012a238)(puVar8,*piVar6);
        }
        piVar6 = piVar6 + 1;
        iVar5 = *piVar6;
        if (iVar5 == 0) goto LAB_000c6c94;
      }
      iVar4 = (*(code *)PTR_ftruncate64_0012b110)(iVar5);
      if (iVar4 == -1) {
        uVar7 = 1;
        (*(code *)PTR_FUN_0012a238)(puVar9,*piVar6);
      }
      piVar6 = piVar6 + 1;
      (*(code *)puVar1)(iVar5);
      iVar5 = *piVar6;
    } while (iVar5 != 0);
  }
LAB_000c6c94:
  if (local_2c != *(int *)puVar2) {
    uVar7 = (*(code *)PTR___stack_chk_fail_0012b0c8)();
    return uVar7;
  }
  return uVar7;
}

