
FILE * stream_open(char *file,char *how)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  char *pcVar4;
  FILE *fp;
  char *file_00;
  undefined *puVar5;
  
  if (*how == 'r') {
    iVar1 = (*(code *)PTR_strcmp_0003e580)(file,PTR_DAT_0003e1b8 + -0x56f8);
    if (iVar1 == 0) {
      PTR_DAT_0003e1a8[-0x1904] = 1;
      fp = *(FILE **)PTR_stdin_0003e470;
      goto LAB_00018b88;
    }
    iVar1 = (*(code *)PTR_open64_0003e474)(file,0x80000);
    if (iVar1 < 0) {
      fp = (FILE *)0x0;
      goto LAB_00018b88;
    }
  }
  else {
    if (*how != 'w') {
      file_00 = PTR_DAT_0003e1b8 + -0x56d0;
      puVar5 = PTR___assert_fail_0003e3a8;
      (*(code *)PTR___assert_fail_0003e3a8)
                (file_00,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);
      pcVar4 = (char *)(**(code **)(puVar5 + 0x258ac))(0,*(int *)(puVar5 + 0x25548) + -0x56a4,5);
                    /* WARNING: Subroutine does not return */
      sort_die(pcVar4,file_00);
    }
    if (file == (char *)0x0) {
LAB_00018b3c:
      return *(FILE **)PTR_stdout_0003e440;
    }
    iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,how,0,0);
    if (iVar1 == 0) goto LAB_00018b3c;
    puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();
    how = (char *)*puVar2;
    uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);
    pcVar4 = quotearg_n_style_colon(0,shell_escape_quoting_style,file);
    iVar1 = (*(code *)PTR_error_0003e4b8)(2,how,uVar3,pcVar4);
  }
  fp = (FILE *)(*(code *)PTR_fdopen_0003e584)(iVar1,how);
LAB_00018b88:
  fadvise(fp,FADVISE_SEQUENTIAL);
  return fp;
}



undefined4 FUN_00018ae0(int param_1,char *param_2)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  undefined *puVar5;
  undefined *puVar6;
  
  if (*param_2 == 'r') {
    iVar1 = (*(code *)PTR_strcmp_0003e580)(param_1,PTR_DAT_0003e1b8 + -0x56f8);
    if (iVar1 == 0) {
      PTR_DAT_0003e1a8[-0x1904] = 1;
      uVar3 = *(undefined4 *)PTR_stdin_0003e470;
      goto LAB_00018b88;
    }
    iVar1 = (*(code *)PTR_open64_0003e474)(param_1,0x80000);
    if (iVar1 < 0) {
      uVar3 = 0;
      goto LAB_00018b88;
    }
  }
  else {
    if (*param_2 != 'w') {
      puVar5 = PTR_DAT_0003e1b8 + -0x56d0;
      puVar6 = PTR___assert_fail_0003e3a8;
      (*(code *)PTR___assert_fail_0003e3a8)
                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);
      uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);
                    /* WARNING: Subroutine does not return */
      FUN_0001666c(uVar3,puVar5);
    }
    if (param_1 == 0) {
LAB_00018b3c:
      return *(undefined4 *)PTR_stdout_0003e440;
    }
    iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0);
    if (iVar1 == 0) goto LAB_00018b3c;
    puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();
    param_2 = (char *)*puVar2;
    uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);
    uVar4 = quotearg_n_style_colon(0,3,param_1);
    iVar1 = (*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4);
  }
  uVar3 = (*(code *)PTR_fdopen_0003e584)(iVar1,param_2);
LAB_00018b88:
  fadvise(uVar3,2);
  return uVar3;
}


lui gp,0x3
addiu gp,gp,-0x2960
addu gp,gp,t9
addiu sp,sp,-0x30
li v1,0x72
sw s1,0x28(sp)
sw gp,0x10(sp)
sw ra,0x2c(sp)
sw s0,0x24(sp)
lb v0,0x0(a1)
beq v0,v1,0x00018b58
_or s1,a0,zero
li v1,0x77
bne v0,v1,0x00018c50
_lw a3,-0x7fc8(gp)
beq a0,zero,0x00018b3c
_lw t9,-0x7c58(gp)
or a3,zero,zero
or a2,zero,zero
jalr t9
_li a0,0x1
bne v0,zero,0x00018bd4
_lw gp,0x10(sp)
lw v0,-0x7d40(gp)
lw ra,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
lw v0,0x0(v0)
jr ra
_addiu sp,sp,0x30
or s0,a1,zero
lw a1,-0x7fc8(gp)
lw t9,-0x7c00(gp)
jalr t9
_addiu a1,a1,-0x56f8
bne v0,zero,0x00018bb4
_lw gp,0x10(sp)
lw v0,-0x7fd8(gp)
li v1,0x1
sb v1,-0x1904(v0)
lw v0,-0x7d10(gp)
lw v0,0x0(v0)
lw t9,-0x7f68(gp)
li a1,0x2
or a0,v0,zero
bal 0x0001dff8
_sw v0,0x1c(sp)
lw ra,0x2c(sp)
lw v0,0x1c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7d0c(gp)
lui a1,0x8
jalr t9
_or a0,s1,zero
bgez v0,0x00018c38
_lw gp,0x10(sp)
b 0x00018b88
_or v0,zero,zero
lw t9,-0x7d30(gp)
jalr t9
_nop
li a2,0x5
lw gp,0x10(sp)
or a0,zero,zero
lw s0,0x0(v0)
lw a1,-0x7fc8(gp)
lw t9,-0x7c64(gp)
jalr t9
_addiu a1,a1,-0x56f4
li a1,0x3
lw gp,0x10(sp)
or a0,zero,zero
or a2,s1,zero
lw t9,-0x7fc0(gp)
bal 0x000231f8
_or s1,v0,zero
li a0,0x2
lw gp,0x10(sp)
or a3,v0,zero
or a2,s1,zero
lw t9,-0x7cc8(gp)
jalr t9
_or a1,s0,zero
lw t9,-0x7bfc(gp)
or a1,s0,zero
jalr t9
_or a0,v0,zero
b 0x00018b88
_lw gp,0x10(sp)
li a2,0x3cc
lw a1,-0x7fc8(gp)
lw a0,-0x7fc8(gp)
lw t9,-0x7dd8(gp)
addiu a3,a3,-0x59ac
addiu a1,a1,-0x56dc
jalr t9
_addiu a0,a0,-0x56d0
(translation_unit "undefined4 FUN_00018ae0(int param_1,char *param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  \n  if (*param_2 == 'r') {\n    iVar1 = (*(code *)PTR_strcmp_0003e580)(param_1,PTR_DAT_0003e1b8 + -0x56f8);\n    if (iVar1 == 0) {\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      uVar3 = *(undefined4 *)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }\n    iVar1 = (*(code *)PTR_open64_0003e474)(param_1,0x80000);\n    if (iVar1 < 0) {\n      uVar3 = 0;\n      goto LAB_00018b88;\n    }\n  }\n  else {\n    if (*param_2 != 'w') {\n      puVar5 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar6 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);\n                    /* WARNING: Subroutine does not return */\n      FUN_0001666c(uVar3,puVar5);\n    }\n    if (param_1 == 0) {\nLAB_00018b3c:\n      return *(undefined4 *)PTR_stdout_0003e440;\n    }\n    iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0);\n    if (iVar1 == 0) goto LAB_00018b3c;\n    puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();\n    param_2 = (char *)*puVar2;\n    uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);\n    uVar4 = quotearg_n_style_colon(0,3,param_1);\n    iVar1 = (*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4);\n  }\n  uVar3 = (*(code *)PTR_fdopen_0003e584)(iVar1,param_2);\nLAB_00018b88:\n  fadvise(uVar3,2);\n  return uVar3;\n}\n\n" (function_definition "undefined4 FUN_00018ae0(int param_1,char *param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  \n  if (*param_2 == 'r') {\n    iVar1 = (*(code *)PTR_strcmp_0003e580)(param_1,PTR_DAT_0003e1b8 + -0x56f8);\n    if (iVar1 == 0) {\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      uVar3 = *(undefined4 *)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }\n    iVar1 = (*(code *)PTR_open64_0003e474)(param_1,0x80000);\n    if (iVar1 < 0) {\n      uVar3 = 0;\n      goto LAB_00018b88;\n    }\n  }\n  else {\n    if (*param_2 != 'w') {\n      puVar5 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar6 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);\n                    /* WARNING: Subroutine does not return */\n      FUN_0001666c(uVar3,puVar5);\n    }\n    if (param_1 == 0) {\nLAB_00018b3c:\n      return *(undefined4 *)PTR_stdout_0003e440;\n    }\n    iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0);\n    if (iVar1 == 0) goto LAB_00018b3c;\n    puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();\n    param_2 = (char *)*puVar2;\n    uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);\n    uVar4 = quotearg_n_style_colon(0,3,param_1);\n    iVar1 = (*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4);\n  }\n  uVar3 = (*(code *)PTR_fdopen_0003e584)(iVar1,param_2);\nLAB_00018b88:\n  fadvise(uVar3,2);\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00018ae0(int param_1,char *param_2)" identifier (parameter_list "(int param_1,char *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  \n  if (*param_2 == 'r') {\n    iVar1 = (*(code *)PTR_strcmp_0003e580)(param_1,PTR_DAT_0003e1b8 + -0x56f8);\n    if (iVar1 == 0) {\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      uVar3 = *(undefined4 *)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }\n    iVar1 = (*(code *)PTR_open64_0003e474)(param_1,0x80000);\n    if (iVar1 < 0) {\n      uVar3 = 0;\n      goto LAB_00018b88;\n    }\n  }\n  else {\n    if (*param_2 != 'w') {\n      puVar5 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar6 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);\n                    /* WARNING: Subroutine does not return */\n      FUN_0001666c(uVar3,puVar5);\n    }\n    if (param_1 == 0) {\nLAB_00018b3c:\n      return *(undefined4 *)PTR_stdout_0003e440;\n    }\n    iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0);\n    if (iVar1 == 0) goto LAB_00018b3c;\n    puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();\n    param_2 = (char *)*puVar2;\n    uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);\n    uVar4 = quotearg_n_style_colon(0,3,param_1);\n    iVar1 = (*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4);\n  }\n  uVar3 = (*(code *)PTR_fdopen_0003e584)(iVar1,param_2);\nLAB_00018b88:\n  fadvise(uVar3,2);\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (if_statement "if (*param_2 == 'r') {\n    iVar1 = (*(code *)PTR_strcmp_0003e580)(param_1,PTR_DAT_0003e1b8 + -0x56f8);\n    if (iVar1 == 0) {\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      uVar3 = *(undefined4 *)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }\n    iVar1 = (*(code *)PTR_open64_0003e474)(param_1,0x80000);\n    if (iVar1 < 0) {\n      uVar3 = 0;\n      goto LAB_00018b88;\n    }\n  }\n  else {\n    if (*param_2 != 'w') {\n      puVar5 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar6 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);\n                    /* WARNING: Subroutine does not return */\n      FUN_0001666c(uVar3,puVar5);\n    }\n    if (param_1 == 0) {\nLAB_00018b3c:\n      return *(undefined4 *)PTR_stdout_0003e440;\n    }\n    iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0);\n    if (iVar1 == 0) goto LAB_00018b3c;\n    puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();\n    param_2 = (char *)*puVar2;\n    uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);\n    uVar4 = quotearg_n_style_colon(0,3,param_1);\n    iVar1 = (*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4);\n  }" if (parenthesized_expression "(*param_2 == 'r')" ( (binary_expression "*param_2 == 'r'" (pointer_expression "*param_2" * identifier) == (char_literal "'r'" ' character ')) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_strcmp_0003e580)(param_1,PTR_DAT_0003e1b8 + -0x56f8);\n    if (iVar1 == 0) {\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      uVar3 = *(undefined4 *)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }\n    iVar1 = (*(code *)PTR_open64_0003e474)(param_1,0x80000);\n    if (iVar1 < 0) {\n      uVar3 = 0;\n      goto LAB_00018b88;\n    }\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strcmp_0003e580)(param_1,PTR_DAT_0003e1b8 + -0x56f8);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_0003e580)(param_1,PTR_DAT_0003e1b8 + -0x56f8)" identifier = (call_expression "(*(code *)PTR_strcmp_0003e580)(param_1,PTR_DAT_0003e1b8 + -0x56f8)" (parenthesized_expression "(*(code *)PTR_strcmp_0003e580)" ( (pointer_expression "*(code *)PTR_strcmp_0003e580" * (cast_expression "(code *)PTR_strcmp_0003e580" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,PTR_DAT_0003e1b8 + -0x56f8)" ( identifier , (binary_expression "PTR_DAT_0003e1b8 + -0x56f8" identifier + number_literal) )))) ;) (if_statement "if (iVar1 == 0) {\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      uVar3 = *(undefined4 *)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      uVar3 = *(undefined4 *)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }" { (expression_statement "PTR_DAT_0003e1a8[-0x1904] = 1;" (assignment_expression "PTR_DAT_0003e1a8[-0x1904] = 1" (subscript_expression "PTR_DAT_0003e1a8[-0x1904]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar3 = *(undefined4 *)PTR_stdin_0003e470;" (assignment_expression "uVar3 = *(undefined4 *)PTR_stdin_0003e470" identifier = (pointer_expression "*(undefined4 *)PTR_stdin_0003e470" * (cast_expression "(undefined4 *)PTR_stdin_0003e470" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (goto_statement "goto LAB_00018b88;" goto statement_identifier ;) })) (expression_statement "iVar1 = (*(code *)PTR_open64_0003e474)(param_1,0x80000);" (assignment_expression "iVar1 = (*(code *)PTR_open64_0003e474)(param_1,0x80000)" identifier = (call_expression "(*(code *)PTR_open64_0003e474)(param_1,0x80000)" (parenthesized_expression "(*(code *)PTR_open64_0003e474)" ( (pointer_expression "*(code *)PTR_open64_0003e474" * (cast_expression "(code *)PTR_open64_0003e474" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0x80000)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 < 0) {\n      uVar3 = 0;\n      goto LAB_00018b88;\n    }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n      uVar3 = 0;\n      goto LAB_00018b88;\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00018b88;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (*param_2 != 'w') {\n      puVar5 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar6 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);\n                    /* WARNING: Subroutine does not return */\n      FUN_0001666c(uVar3,puVar5);\n    }\n    if (param_1 == 0) {\nLAB_00018b3c:\n      return *(undefined4 *)PTR_stdout_0003e440;\n    }\n    iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0);\n    if (iVar1 == 0) goto LAB_00018b3c;\n    puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();\n    param_2 = (char *)*puVar2;\n    uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);\n    uVar4 = quotearg_n_style_colon(0,3,param_1);\n    iVar1 = (*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4);\n  }" else (compound_statement "{\n    if (*param_2 != 'w') {\n      puVar5 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar6 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);\n                    /* WARNING: Subroutine does not return */\n      FUN_0001666c(uVar3,puVar5);\n    }\n    if (param_1 == 0) {\nLAB_00018b3c:\n      return *(undefined4 *)PTR_stdout_0003e440;\n    }\n    iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0);\n    if (iVar1 == 0) goto LAB_00018b3c;\n    puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();\n    param_2 = (char *)*puVar2;\n    uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);\n    uVar4 = quotearg_n_style_colon(0,3,param_1);\n    iVar1 = (*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4);\n  }" { (if_statement "if (*param_2 != 'w') {\n      puVar5 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar6 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);\n                    /* WARNING: Subroutine does not return */\n      FUN_0001666c(uVar3,puVar5);\n    }" if (parenthesized_expression "(*param_2 != 'w')" ( (binary_expression "*param_2 != 'w'" (pointer_expression "*param_2" * identifier) != (char_literal "'w'" ' character ')) )) (compound_statement "{\n      puVar5 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar6 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);\n                    /* WARNING: Subroutine does not return */\n      FUN_0001666c(uVar3,puVar5);\n    }" { (expression_statement "puVar5 = PTR_DAT_0003e1b8 + -0x56d0;" (assignment_expression "puVar5 = PTR_DAT_0003e1b8 + -0x56d0" identifier = (binary_expression "PTR_DAT_0003e1b8 + -0x56d0" identifier + number_literal)) ;) (expression_statement "puVar6 = PTR___assert_fail_0003e3a8;" (assignment_expression "puVar6 = PTR___assert_fail_0003e3a8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);" (call_expression "(*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003e3a8)" ( (pointer_expression "*(code *)PTR___assert_fail_0003e3a8" * (cast_expression "(code *)PTR___assert_fail_0003e3a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac)" ( identifier , (binary_expression "PTR_DAT_0003e1b8 + -0x56dc" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_0003e1b8 + -0x59ac" identifier + number_literal) ))) ;) (expression_statement "uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);" (assignment_expression "uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5)" identifier = (call_expression "(**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5)" (parenthesized_expression "(**(code **)(puVar6 + 0x258ac))" ( (pointer_expression "**(code **)(puVar6 + 0x258ac)" * (pointer_expression "*(code **)(puVar6 + 0x258ac)" * (cast_expression "(code **)(puVar6 + 0x258ac)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x258ac)" ( (binary_expression "puVar6 + 0x258ac" identifier + number_literal) ))))) )) (argument_list "(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5)" ( number_literal , (binary_expression "*(int *)(puVar6 + 0x25548) + -0x56a4" (pointer_expression "*(int *)(puVar6 + 0x25548)" * (cast_expression "(int *)(puVar6 + 0x25548)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x25548)" ( (binary_expression "puVar6 + 0x25548" identifier + number_literal) )))) + number_literal) , number_literal )))) ;) comment (expression_statement "FUN_0001666c(uVar3,puVar5);" (call_expression "FUN_0001666c(uVar3,puVar5)" identifier (argument_list "(uVar3,puVar5)" ( identifier , identifier ))) ;) })) (if_statement "if (param_1 == 0) {\nLAB_00018b3c:\n      return *(undefined4 *)PTR_stdout_0003e440;\n    }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00018b3c:\n      return *(undefined4 *)PTR_stdout_0003e440;\n    }" { (labeled_statement "LAB_00018b3c:\n      return *(undefined4 *)PTR_stdout_0003e440;" statement_identifier : (return_statement "return *(undefined4 *)PTR_stdout_0003e440;" return (pointer_expression "*(undefined4 *)PTR_stdout_0003e440" * (cast_expression "(undefined4 *)PTR_stdout_0003e440" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;)) })) (expression_statement "iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0);" (assignment_expression "iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0)" identifier = (call_expression "(*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0)" (parenthesized_expression "(*(code *)PTR_ftruncate64_0003e528)" ( (pointer_expression "*(code *)PTR_ftruncate64_0003e528" * (cast_expression "(code *)PTR_ftruncate64_0003e528" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,param_2,0,0)" ( number_literal , identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar1 == 0) goto LAB_00018b3c;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00018b3c;" goto statement_identifier ;)) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0003e450)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0003e450)()" (parenthesized_expression "(*(code *)PTR___errno_location_0003e450)" ( (pointer_expression "*(code *)PTR___errno_location_0003e450" * (cast_expression "(code *)PTR___errno_location_0003e450" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "param_2 = (char *)*puVar2;" (assignment_expression "param_2 = (char *)*puVar2" identifier = (cast_expression "(char *)*puVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) ;) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_0003e51c)" ( (pointer_expression "*(code *)PTR_dcgettext_0003e51c" * (cast_expression "(code *)PTR_dcgettext_0003e51c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_DAT_0003e1b8 + -0x56f4,5)" ( number_literal , (binary_expression "PTR_DAT_0003e1b8 + -0x56f4" identifier + number_literal) , number_literal )))) ;) (expression_statement "uVar4 = quotearg_n_style_colon(0,3,param_1);" (assignment_expression "uVar4 = quotearg_n_style_colon(0,3,param_1)" identifier = (call_expression "quotearg_n_style_colon(0,3,param_1)" identifier (argument_list "(0,3,param_1)" ( number_literal , number_literal , identifier )))) ;) (expression_statement "iVar1 = (*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4);" (assignment_expression "iVar1 = (*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4)" identifier = (call_expression "(*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4)" (parenthesized_expression "(*(code *)PTR_error_0003e4b8)" ( (pointer_expression "*(code *)PTR_error_0003e4b8" * (cast_expression "(code *)PTR_error_0003e4b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(2,param_2,uVar3,uVar4)" ( number_literal , identifier , identifier , identifier )))) ;) }))) (expression_statement "uVar3 = (*(code *)PTR_fdopen_0003e584)(iVar1,param_2);" (assignment_expression "uVar3 = (*(code *)PTR_fdopen_0003e584)(iVar1,param_2)" identifier = (call_expression "(*(code *)PTR_fdopen_0003e584)(iVar1,param_2)" (parenthesized_expression "(*(code *)PTR_fdopen_0003e584)" ( (pointer_expression "*(code *)PTR_fdopen_0003e584" * (cast_expression "(code *)PTR_fdopen_0003e584" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,param_2)" ( identifier , identifier )))) ;) (labeled_statement "LAB_00018b88:\n  fadvise(uVar3,2);" statement_identifier : (expression_statement "fadvise(uVar3,2);" (call_expression "fadvise(uVar3,2)" identifier (argument_list "(uVar3,2)" ( identifier , number_literal ))) ;)) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "FILE * stream_open(char *file,char *how)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  FILE *fp;\n  char *file_00;\n  undefined *puVar5;\n  \n  if (*how == 'r') {\n    iVar1 = (*(code *)PTR_strcmp_0003e580)(file,PTR_DAT_0003e1b8 + -0x56f8);\n    if (iVar1 == 0) {\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      fp = *(FILE **)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }\n    iVar1 = (*(code *)PTR_open64_0003e474)(file,0x80000);\n    if (iVar1 < 0) {\n      fp = (FILE *)0x0;\n      goto LAB_00018b88;\n    }\n  }\n  else {\n    if (*how != 'w') {\n      file_00 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar5 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (file_00,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      pcVar4 = (char *)(**(code **)(puVar5 + 0x258ac))(0,*(int *)(puVar5 + 0x25548) + -0x56a4,5);\n                    /* WARNING: Subroutine does not return */\n      sort_die(pcVar4,file_00);\n    }\n    if (file == (char *)0x0) {\nLAB_00018b3c:\n      return *(FILE **)PTR_stdout_0003e440;\n    }\n    iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,how,0,0);\n    if (iVar1 == 0) goto LAB_00018b3c;\n    puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();\n    how = (char *)*puVar2;\n    uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);\n    pcVar4 = quotearg_n_style_colon(0,shell_escape_quoting_style,file);\n    iVar1 = (*(code *)PTR_error_0003e4b8)(2,how,uVar3,pcVar4);\n  }\n  fp = (FILE *)(*(code *)PTR_fdopen_0003e584)(iVar1,how);\nLAB_00018b88:\n  fadvise(fp,FADVISE_SEQUENTIAL);\n  return fp;\n}\n\n" (function_definition "FILE * stream_open(char *file,char *how)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  FILE *fp;\n  char *file_00;\n  undefined *puVar5;\n  \n  if (*how == 'r') {\n    iVar1 = (*(code *)PTR_strcmp_0003e580)(file,PTR_DAT_0003e1b8 + -0x56f8);\n    if (iVar1 == 0) {\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      fp = *(FILE **)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }\n    iVar1 = (*(code *)PTR_open64_0003e474)(file,0x80000);\n    if (iVar1 < 0) {\n      fp = (FILE *)0x0;\n      goto LAB_00018b88;\n    }\n  }\n  else {\n    if (*how != 'w') {\n      file_00 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar5 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (file_00,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      pcVar4 = (char *)(**(code **)(puVar5 + 0x258ac))(0,*(int *)(puVar5 + 0x25548) + -0x56a4,5);\n                    /* WARNING: Subroutine does not return */\n      sort_die(pcVar4,file_00);\n    }\n    if (file == (char *)0x0) {\nLAB_00018b3c:\n      return *(FILE **)PTR_stdout_0003e440;\n    }\n    iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,how,0,0);\n    if (iVar1 == 0) goto LAB_00018b3c;\n    puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();\n    how = (char *)*puVar2;\n    uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);\n    pcVar4 = quotearg_n_style_colon(0,shell_escape_quoting_style,file);\n    iVar1 = (*(code *)PTR_error_0003e4b8)(2,how,uVar3,pcVar4);\n  }\n  fp = (FILE *)(*(code *)PTR_fdopen_0003e584)(iVar1,how);\nLAB_00018b88:\n  fadvise(fp,FADVISE_SEQUENTIAL);\n  return fp;\n}" type_identifier (pointer_declarator "* stream_open(char *file,char *how)" * (function_declarator "stream_open(char *file,char *how)" identifier (parameter_list "(char *file,char *how)" ( (parameter_declaration "char *file" primitive_type (pointer_declarator "*file" * identifier)) , (parameter_declaration "char *how" primitive_type (pointer_declarator "*how" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  FILE *fp;\n  char *file_00;\n  undefined *puVar5;\n  \n  if (*how == 'r') {\n    iVar1 = (*(code *)PTR_strcmp_0003e580)(file,PTR_DAT_0003e1b8 + -0x56f8);\n    if (iVar1 == 0) {\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      fp = *(FILE **)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }\n    iVar1 = (*(code *)PTR_open64_0003e474)(file,0x80000);\n    if (iVar1 < 0) {\n      fp = (FILE *)0x0;\n      goto LAB_00018b88;\n    }\n  }\n  else {\n    if (*how != 'w') {\n      file_00 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar5 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (file_00,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      pcVar4 = (char *)(**(code **)(puVar5 + 0x258ac))(0,*(int *)(puVar5 + 0x25548) + -0x56a4,5);\n                    /* WARNING: Subroutine does not return */\n      sort_die(pcVar4,file_00);\n    }\n    if (file == (char *)0x0) {\nLAB_00018b3c:\n      return *(FILE **)PTR_stdout_0003e440;\n    }\n    iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,how,0,0);\n    if (iVar1 == 0) goto LAB_00018b3c;\n    puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();\n    how = (char *)*puVar2;\n    uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);\n    pcVar4 = quotearg_n_style_colon(0,shell_escape_quoting_style,file);\n    iVar1 = (*(code *)PTR_error_0003e4b8)(2,how,uVar3,pcVar4);\n  }\n  fp = (FILE *)(*(code *)PTR_fdopen_0003e584)(iVar1,how);\nLAB_00018b88:\n  fadvise(fp,FADVISE_SEQUENTIAL);\n  return fp;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "FILE *fp;" type_identifier (pointer_declarator "*fp" * identifier) ;) (declaration "char *file_00;" primitive_type (pointer_declarator "*file_00" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (if_statement "if (*how == 'r') {\n    iVar1 = (*(code *)PTR_strcmp_0003e580)(file,PTR_DAT_0003e1b8 + -0x56f8);\n    if (iVar1 == 0) {\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      fp = *(FILE **)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }\n    iVar1 = (*(code *)PTR_open64_0003e474)(file,0x80000);\n    if (iVar1 < 0) {\n      fp = (FILE *)0x0;\n      goto LAB_00018b88;\n    }\n  }\n  else {\n    if (*how != 'w') {\n      file_00 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar5 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (file_00,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      pcVar4 = (char *)(**(code **)(puVar5 + 0x258ac))(0,*(int *)(puVar5 + 0x25548) + -0x56a4,5);\n                    /* WARNING: Subroutine does not return */\n      sort_die(pcVar4,file_00);\n    }\n    if (file == (char *)0x0) {\nLAB_00018b3c:\n      return *(FILE **)PTR_stdout_0003e440;\n    }\n    iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,how,0,0);\n    if (iVar1 == 0) goto LAB_00018b3c;\n    puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();\n    how = (char *)*puVar2;\n    uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);\n    pcVar4 = quotearg_n_style_colon(0,shell_escape_quoting_style,file);\n    iVar1 = (*(code *)PTR_error_0003e4b8)(2,how,uVar3,pcVar4);\n  }" if (parenthesized_expression "(*how == 'r')" ( (binary_expression "*how == 'r'" (pointer_expression "*how" * identifier) == (char_literal "'r'" ' character ')) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_strcmp_0003e580)(file,PTR_DAT_0003e1b8 + -0x56f8);\n    if (iVar1 == 0) {\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      fp = *(FILE **)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }\n    iVar1 = (*(code *)PTR_open64_0003e474)(file,0x80000);\n    if (iVar1 < 0) {\n      fp = (FILE *)0x0;\n      goto LAB_00018b88;\n    }\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strcmp_0003e580)(file,PTR_DAT_0003e1b8 + -0x56f8);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_0003e580)(file,PTR_DAT_0003e1b8 + -0x56f8)" identifier = (call_expression "(*(code *)PTR_strcmp_0003e580)(file,PTR_DAT_0003e1b8 + -0x56f8)" (parenthesized_expression "(*(code *)PTR_strcmp_0003e580)" ( (pointer_expression "*(code *)PTR_strcmp_0003e580" * (cast_expression "(code *)PTR_strcmp_0003e580" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(file,PTR_DAT_0003e1b8 + -0x56f8)" ( identifier , (binary_expression "PTR_DAT_0003e1b8 + -0x56f8" identifier + number_literal) )))) ;) (if_statement "if (iVar1 == 0) {\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      fp = *(FILE **)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      fp = *(FILE **)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }" { (expression_statement "PTR_DAT_0003e1a8[-0x1904] = 1;" (assignment_expression "PTR_DAT_0003e1a8[-0x1904] = 1" (subscript_expression "PTR_DAT_0003e1a8[-0x1904]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "fp = *(FILE **)PTR_stdin_0003e470;" (assignment_expression "fp = *(FILE **)PTR_stdin_0003e470" identifier = (pointer_expression "*(FILE **)PTR_stdin_0003e470" * (cast_expression "(FILE **)PTR_stdin_0003e470" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (goto_statement "goto LAB_00018b88;" goto statement_identifier ;) })) (expression_statement "iVar1 = (*(code *)PTR_open64_0003e474)(file,0x80000);" (assignment_expression "iVar1 = (*(code *)PTR_open64_0003e474)(file,0x80000)" identifier = (call_expression "(*(code *)PTR_open64_0003e474)(file,0x80000)" (parenthesized_expression "(*(code *)PTR_open64_0003e474)" ( (pointer_expression "*(code *)PTR_open64_0003e474" * (cast_expression "(code *)PTR_open64_0003e474" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(file,0x80000)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 < 0) {\n      fp = (FILE *)0x0;\n      goto LAB_00018b88;\n    }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n      fp = (FILE *)0x0;\n      goto LAB_00018b88;\n    }" { (expression_statement "fp = (FILE *)0x0;" (assignment_expression "fp = (FILE *)0x0" identifier = (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_00018b88;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (*how != 'w') {\n      file_00 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar5 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (file_00,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      pcVar4 = (char *)(**(code **)(puVar5 + 0x258ac))(0,*(int *)(puVar5 + 0x25548) + -0x56a4,5);\n                    /* WARNING: Subroutine does not return */\n      sort_die(pcVar4,file_00);\n    }\n    if (file == (char *)0x0) {\nLAB_00018b3c:\n      return *(FILE **)PTR_stdout_0003e440;\n    }\n    iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,how,0,0);\n    if (iVar1 == 0) goto LAB_00018b3c;\n    puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();\n    how = (char *)*puVar2;\n    uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);\n    pcVar4 = quotearg_n_style_colon(0,shell_escape_quoting_style,file);\n    iVar1 = (*(code *)PTR_error_0003e4b8)(2,how,uVar3,pcVar4);\n  }" else (compound_statement "{\n    if (*how != 'w') {\n      file_00 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar5 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (file_00,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      pcVar4 = (char *)(**(code **)(puVar5 + 0x258ac))(0,*(int *)(puVar5 + 0x25548) + -0x56a4,5);\n                    /* WARNING: Subroutine does not return */\n      sort_die(pcVar4,file_00);\n    }\n    if (file == (char *)0x0) {\nLAB_00018b3c:\n      return *(FILE **)PTR_stdout_0003e440;\n    }\n    iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,how,0,0);\n    if (iVar1 == 0) goto LAB_00018b3c;\n    puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();\n    how = (char *)*puVar2;\n    uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);\n    pcVar4 = quotearg_n_style_colon(0,shell_escape_quoting_style,file);\n    iVar1 = (*(code *)PTR_error_0003e4b8)(2,how,uVar3,pcVar4);\n  }" { (if_statement "if (*how != 'w') {\n      file_00 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar5 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (file_00,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      pcVar4 = (char *)(**(code **)(puVar5 + 0x258ac))(0,*(int *)(puVar5 + 0x25548) + -0x56a4,5);\n                    /* WARNING: Subroutine does not return */\n      sort_die(pcVar4,file_00);\n    }" if (parenthesized_expression "(*how != 'w')" ( (binary_expression "*how != 'w'" (pointer_expression "*how" * identifier) != (char_literal "'w'" ' character ')) )) (compound_statement "{\n      file_00 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar5 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (file_00,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      pcVar4 = (char *)(**(code **)(puVar5 + 0x258ac))(0,*(int *)(puVar5 + 0x25548) + -0x56a4,5);\n                    /* WARNING: Subroutine does not return */\n      sort_die(pcVar4,file_00);\n    }" { (expression_statement "file_00 = PTR_DAT_0003e1b8 + -0x56d0;" (assignment_expression "file_00 = PTR_DAT_0003e1b8 + -0x56d0" identifier = (binary_expression "PTR_DAT_0003e1b8 + -0x56d0" identifier + number_literal)) ;) (expression_statement "puVar5 = PTR___assert_fail_0003e3a8;" (assignment_expression "puVar5 = PTR___assert_fail_0003e3a8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___assert_fail_0003e3a8)\n                (file_00,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);" (call_expression "(*(code *)PTR___assert_fail_0003e3a8)\n                (file_00,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003e3a8)" ( (pointer_expression "*(code *)PTR___assert_fail_0003e3a8" * (cast_expression "(code *)PTR___assert_fail_0003e3a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(file_00,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac)" ( identifier , (binary_expression "PTR_DAT_0003e1b8 + -0x56dc" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_0003e1b8 + -0x59ac" identifier + number_literal) ))) ;) (expression_statement "pcVar4 = (char *)(**(code **)(puVar5 + 0x258ac))(0,*(int *)(puVar5 + 0x25548) + -0x56a4,5);" (assignment_expression "pcVar4 = (char *)(**(code **)(puVar5 + 0x258ac))(0,*(int *)(puVar5 + 0x25548) + -0x56a4,5)" identifier = (cast_expression "(char *)(**(code **)(puVar5 + 0x258ac))(0,*(int *)(puVar5 + 0x25548) + -0x56a4,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar5 + 0x258ac))(0,*(int *)(puVar5 + 0x25548) + -0x56a4,5)" (parenthesized_expression "(**(code **)(puVar5 + 0x258ac))" ( (pointer_expression "**(code **)(puVar5 + 0x258ac)" * (pointer_expression "*(code **)(puVar5 + 0x258ac)" * (cast_expression "(code **)(puVar5 + 0x258ac)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x258ac)" ( (binary_expression "puVar5 + 0x258ac" identifier + number_literal) ))))) )) (argument_list "(0,*(int *)(puVar5 + 0x25548) + -0x56a4,5)" ( number_literal , (binary_expression "*(int *)(puVar5 + 0x25548) + -0x56a4" (pointer_expression "*(int *)(puVar5 + 0x25548)" * (cast_expression "(int *)(puVar5 + 0x25548)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x25548)" ( (binary_expression "puVar5 + 0x25548" identifier + number_literal) )))) + number_literal) , number_literal ))))) ;) comment (expression_statement "sort_die(pcVar4,file_00);" (call_expression "sort_die(pcVar4,file_00)" identifier (argument_list "(pcVar4,file_00)" ( identifier , identifier ))) ;) })) (if_statement "if (file == (char *)0x0) {\nLAB_00018b3c:\n      return *(FILE **)PTR_stdout_0003e440;\n    }" if (parenthesized_expression "(file == (char *)0x0)" ( (binary_expression "file == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00018b3c:\n      return *(FILE **)PTR_stdout_0003e440;\n    }" { (labeled_statement "LAB_00018b3c:\n      return *(FILE **)PTR_stdout_0003e440;" statement_identifier : (return_statement "return *(FILE **)PTR_stdout_0003e440;" return (pointer_expression "*(FILE **)PTR_stdout_0003e440" * (cast_expression "(FILE **)PTR_stdout_0003e440" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ;)) })) (expression_statement "iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,how,0,0);" (assignment_expression "iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,how,0,0)" identifier = (call_expression "(*(code *)PTR_ftruncate64_0003e528)(1,how,0,0)" (parenthesized_expression "(*(code *)PTR_ftruncate64_0003e528)" ( (pointer_expression "*(code *)PTR_ftruncate64_0003e528" * (cast_expression "(code *)PTR_ftruncate64_0003e528" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,how,0,0)" ( number_literal , identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar1 == 0) goto LAB_00018b3c;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00018b3c;" goto statement_identifier ;)) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0003e450)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0003e450)()" (parenthesized_expression "(*(code *)PTR___errno_location_0003e450)" ( (pointer_expression "*(code *)PTR___errno_location_0003e450" * (cast_expression "(code *)PTR___errno_location_0003e450" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "how = (char *)*puVar2;" (assignment_expression "how = (char *)*puVar2" identifier = (cast_expression "(char *)*puVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) ;) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_0003e51c)" ( (pointer_expression "*(code *)PTR_dcgettext_0003e51c" * (cast_expression "(code *)PTR_dcgettext_0003e51c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_DAT_0003e1b8 + -0x56f4,5)" ( number_literal , (binary_expression "PTR_DAT_0003e1b8 + -0x56f4" identifier + number_literal) , number_literal )))) ;) (expression_statement "pcVar4 = quotearg_n_style_colon(0,shell_escape_quoting_style,file);" (assignment_expression "pcVar4 = quotearg_n_style_colon(0,shell_escape_quoting_style,file)" identifier = (call_expression "quotearg_n_style_colon(0,shell_escape_quoting_style,file)" identifier (argument_list "(0,shell_escape_quoting_style,file)" ( number_literal , identifier , identifier )))) ;) (expression_statement "iVar1 = (*(code *)PTR_error_0003e4b8)(2,how,uVar3,pcVar4);" (assignment_expression "iVar1 = (*(code *)PTR_error_0003e4b8)(2,how,uVar3,pcVar4)" identifier = (call_expression "(*(code *)PTR_error_0003e4b8)(2,how,uVar3,pcVar4)" (parenthesized_expression "(*(code *)PTR_error_0003e4b8)" ( (pointer_expression "*(code *)PTR_error_0003e4b8" * (cast_expression "(code *)PTR_error_0003e4b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(2,how,uVar3,pcVar4)" ( number_literal , identifier , identifier , identifier )))) ;) }))) (expression_statement "fp = (FILE *)(*(code *)PTR_fdopen_0003e584)(iVar1,how);" (assignment_expression "fp = (FILE *)(*(code *)PTR_fdopen_0003e584)(iVar1,how)" identifier = (cast_expression "(FILE *)(*(code *)PTR_fdopen_0003e584)(iVar1,how)" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_fdopen_0003e584)(iVar1,how)" (parenthesized_expression "(*(code *)PTR_fdopen_0003e584)" ( (pointer_expression "*(code *)PTR_fdopen_0003e584" * (cast_expression "(code *)PTR_fdopen_0003e584" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,how)" ( identifier , identifier ))))) ;) (labeled_statement "LAB_00018b88:\n  fadvise(fp,FADVISE_SEQUENTIAL);" statement_identifier : (expression_statement "fadvise(fp,FADVISE_SEQUENTIAL);" (call_expression "fadvise(fp,FADVISE_SEQUENTIAL)" identifier (argument_list "(fp,FADVISE_SEQUENTIAL)" ( identifier , identifier ))) ;)) (return_statement "return fp;" return identifier ;) })))
(translation_unit "undefined4 FUN_00018ae0(int param_1,char *param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  \n  if (*param_2 == 'r') {\n    iVar1 = (*(code *)PTR_strcmp_0003e580)(param_1,PTR_DAT_0003e1b8 + -0x56f8);\n    if (iVar1 == 0) {\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      uVar3 = *(undefined4 *)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }\n    iVar1 = (*(code *)PTR_open64_0003e474)(param_1,0x80000);\n    if (iVar1 < 0) {\n      uVar3 = 0;\n      goto LAB_00018b88;\n    }\n  }\n  else {\n    if (*param_2 != 'w') {\n      puVar5 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar6 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);\n                    \n      FUN_0001666c(uVar3,puVar5);\n    }\n    if (param_1 == 0) {\nLAB_00018b3c:\n      return *(undefined4 *)PTR_stdout_0003e440;\n    }\n    iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0);\n    if (iVar1 == 0) goto LAB_00018b3c;\n    puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();\n    param_2 = (char *)*puVar2;\n    uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);\n    uVar4 = quotearg_n_style_colon(0,3,param_1);\n    iVar1 = (*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4);\n  }\n  uVar3 = (*(code *)PTR_fdopen_0003e584)(iVar1,param_2);\nLAB_00018b88:\n  fadvise(uVar3,2);\n  return uVar3;\n}\n\n" (function_definition "undefined4 FUN_00018ae0(int param_1,char *param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  \n  if (*param_2 == 'r') {\n    iVar1 = (*(code *)PTR_strcmp_0003e580)(param_1,PTR_DAT_0003e1b8 + -0x56f8);\n    if (iVar1 == 0) {\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      uVar3 = *(undefined4 *)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }\n    iVar1 = (*(code *)PTR_open64_0003e474)(param_1,0x80000);\n    if (iVar1 < 0) {\n      uVar3 = 0;\n      goto LAB_00018b88;\n    }\n  }\n  else {\n    if (*param_2 != 'w') {\n      puVar5 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar6 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);\n                    \n      FUN_0001666c(uVar3,puVar5);\n    }\n    if (param_1 == 0) {\nLAB_00018b3c:\n      return *(undefined4 *)PTR_stdout_0003e440;\n    }\n    iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0);\n    if (iVar1 == 0) goto LAB_00018b3c;\n    puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();\n    param_2 = (char *)*puVar2;\n    uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);\n    uVar4 = quotearg_n_style_colon(0,3,param_1);\n    iVar1 = (*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4);\n  }\n  uVar3 = (*(code *)PTR_fdopen_0003e584)(iVar1,param_2);\nLAB_00018b88:\n  fadvise(uVar3,2);\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00018ae0(int param_1,char *param_2)" identifier (parameter_list "(int param_1,char *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  \n  if (*param_2 == 'r') {\n    iVar1 = (*(code *)PTR_strcmp_0003e580)(param_1,PTR_DAT_0003e1b8 + -0x56f8);\n    if (iVar1 == 0) {\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      uVar3 = *(undefined4 *)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }\n    iVar1 = (*(code *)PTR_open64_0003e474)(param_1,0x80000);\n    if (iVar1 < 0) {\n      uVar3 = 0;\n      goto LAB_00018b88;\n    }\n  }\n  else {\n    if (*param_2 != 'w') {\n      puVar5 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar6 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);\n                    \n      FUN_0001666c(uVar3,puVar5);\n    }\n    if (param_1 == 0) {\nLAB_00018b3c:\n      return *(undefined4 *)PTR_stdout_0003e440;\n    }\n    iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0);\n    if (iVar1 == 0) goto LAB_00018b3c;\n    puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();\n    param_2 = (char *)*puVar2;\n    uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);\n    uVar4 = quotearg_n_style_colon(0,3,param_1);\n    iVar1 = (*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4);\n  }\n  uVar3 = (*(code *)PTR_fdopen_0003e584)(iVar1,param_2);\nLAB_00018b88:\n  fadvise(uVar3,2);\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (if_statement "if (*param_2 == 'r') {\n    iVar1 = (*(code *)PTR_strcmp_0003e580)(param_1,PTR_DAT_0003e1b8 + -0x56f8);\n    if (iVar1 == 0) {\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      uVar3 = *(undefined4 *)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }\n    iVar1 = (*(code *)PTR_open64_0003e474)(param_1,0x80000);\n    if (iVar1 < 0) {\n      uVar3 = 0;\n      goto LAB_00018b88;\n    }\n  }\n  else {\n    if (*param_2 != 'w') {\n      puVar5 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar6 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);\n                    \n      FUN_0001666c(uVar3,puVar5);\n    }\n    if (param_1 == 0) {\nLAB_00018b3c:\n      return *(undefined4 *)PTR_stdout_0003e440;\n    }\n    iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0);\n    if (iVar1 == 0) goto LAB_00018b3c;\n    puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();\n    param_2 = (char *)*puVar2;\n    uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);\n    uVar4 = quotearg_n_style_colon(0,3,param_1);\n    iVar1 = (*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4);\n  }" if (parenthesized_expression "(*param_2 == 'r')" ( (binary_expression "*param_2 == 'r'" (pointer_expression "*param_2" * identifier) == (char_literal "'r'" ' character ')) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_strcmp_0003e580)(param_1,PTR_DAT_0003e1b8 + -0x56f8);\n    if (iVar1 == 0) {\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      uVar3 = *(undefined4 *)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }\n    iVar1 = (*(code *)PTR_open64_0003e474)(param_1,0x80000);\n    if (iVar1 < 0) {\n      uVar3 = 0;\n      goto LAB_00018b88;\n    }\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strcmp_0003e580)(param_1,PTR_DAT_0003e1b8 + -0x56f8);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_0003e580)(param_1,PTR_DAT_0003e1b8 + -0x56f8)" identifier = (call_expression "(*(code *)PTR_strcmp_0003e580)(param_1,PTR_DAT_0003e1b8 + -0x56f8)" (parenthesized_expression "(*(code *)PTR_strcmp_0003e580)" ( (pointer_expression "*(code *)PTR_strcmp_0003e580" * (cast_expression "(code *)PTR_strcmp_0003e580" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,PTR_DAT_0003e1b8 + -0x56f8)" ( identifier , (binary_expression "PTR_DAT_0003e1b8 + -0x56f8" identifier + number_literal) )))) ;) (if_statement "if (iVar1 == 0) {\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      uVar3 = *(undefined4 *)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      uVar3 = *(undefined4 *)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }" { (expression_statement "PTR_DAT_0003e1a8[-0x1904] = 1;" (assignment_expression "PTR_DAT_0003e1a8[-0x1904] = 1" (subscript_expression "PTR_DAT_0003e1a8[-0x1904]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar3 = *(undefined4 *)PTR_stdin_0003e470;" (assignment_expression "uVar3 = *(undefined4 *)PTR_stdin_0003e470" identifier = (pointer_expression "*(undefined4 *)PTR_stdin_0003e470" * (cast_expression "(undefined4 *)PTR_stdin_0003e470" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (goto_statement "goto LAB_00018b88;" goto statement_identifier ;) })) (expression_statement "iVar1 = (*(code *)PTR_open64_0003e474)(param_1,0x80000);" (assignment_expression "iVar1 = (*(code *)PTR_open64_0003e474)(param_1,0x80000)" identifier = (call_expression "(*(code *)PTR_open64_0003e474)(param_1,0x80000)" (parenthesized_expression "(*(code *)PTR_open64_0003e474)" ( (pointer_expression "*(code *)PTR_open64_0003e474" * (cast_expression "(code *)PTR_open64_0003e474" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0x80000)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 < 0) {\n      uVar3 = 0;\n      goto LAB_00018b88;\n    }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n      uVar3 = 0;\n      goto LAB_00018b88;\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00018b88;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (*param_2 != 'w') {\n      puVar5 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar6 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);\n                    \n      FUN_0001666c(uVar3,puVar5);\n    }\n    if (param_1 == 0) {\nLAB_00018b3c:\n      return *(undefined4 *)PTR_stdout_0003e440;\n    }\n    iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0);\n    if (iVar1 == 0) goto LAB_00018b3c;\n    puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();\n    param_2 = (char *)*puVar2;\n    uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);\n    uVar4 = quotearg_n_style_colon(0,3,param_1);\n    iVar1 = (*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4);\n  }" else (compound_statement "{\n    if (*param_2 != 'w') {\n      puVar5 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar6 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);\n                    \n      FUN_0001666c(uVar3,puVar5);\n    }\n    if (param_1 == 0) {\nLAB_00018b3c:\n      return *(undefined4 *)PTR_stdout_0003e440;\n    }\n    iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0);\n    if (iVar1 == 0) goto LAB_00018b3c;\n    puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();\n    param_2 = (char *)*puVar2;\n    uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);\n    uVar4 = quotearg_n_style_colon(0,3,param_1);\n    iVar1 = (*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4);\n  }" { (if_statement "if (*param_2 != 'w') {\n      puVar5 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar6 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);\n                    \n      FUN_0001666c(uVar3,puVar5);\n    }" if (parenthesized_expression "(*param_2 != 'w')" ( (binary_expression "*param_2 != 'w'" (pointer_expression "*param_2" * identifier) != (char_literal "'w'" ' character ')) )) (compound_statement "{\n      puVar5 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar6 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);\n                    \n      FUN_0001666c(uVar3,puVar5);\n    }" { (expression_statement "puVar5 = PTR_DAT_0003e1b8 + -0x56d0;" (assignment_expression "puVar5 = PTR_DAT_0003e1b8 + -0x56d0" identifier = (binary_expression "PTR_DAT_0003e1b8 + -0x56d0" identifier + number_literal)) ;) (expression_statement "puVar6 = PTR___assert_fail_0003e3a8;" (assignment_expression "puVar6 = PTR___assert_fail_0003e3a8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);" (call_expression "(*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003e3a8)" ( (pointer_expression "*(code *)PTR___assert_fail_0003e3a8" * (cast_expression "(code *)PTR___assert_fail_0003e3a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac)" ( identifier , (binary_expression "PTR_DAT_0003e1b8 + -0x56dc" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_0003e1b8 + -0x59ac" identifier + number_literal) ))) ;) (expression_statement "uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);" (assignment_expression "uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5)" identifier = (call_expression "(**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5)" (parenthesized_expression "(**(code **)(puVar6 + 0x258ac))" ( (pointer_expression "**(code **)(puVar6 + 0x258ac)" * (pointer_expression "*(code **)(puVar6 + 0x258ac)" * (cast_expression "(code **)(puVar6 + 0x258ac)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x258ac)" ( (binary_expression "puVar6 + 0x258ac" identifier + number_literal) ))))) )) (argument_list "(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5)" ( number_literal , (binary_expression "*(int *)(puVar6 + 0x25548) + -0x56a4" (pointer_expression "*(int *)(puVar6 + 0x25548)" * (cast_expression "(int *)(puVar6 + 0x25548)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x25548)" ( (binary_expression "puVar6 + 0x25548" identifier + number_literal) )))) + number_literal) , number_literal )))) ;) (expression_statement "FUN_0001666c(uVar3,puVar5);" (call_expression "FUN_0001666c(uVar3,puVar5)" identifier (argument_list "(uVar3,puVar5)" ( identifier , identifier ))) ;) })) (if_statement "if (param_1 == 0) {\nLAB_00018b3c:\n      return *(undefined4 *)PTR_stdout_0003e440;\n    }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00018b3c:\n      return *(undefined4 *)PTR_stdout_0003e440;\n    }" { (labeled_statement "LAB_00018b3c:\n      return *(undefined4 *)PTR_stdout_0003e440;" statement_identifier : (return_statement "return *(undefined4 *)PTR_stdout_0003e440;" return (pointer_expression "*(undefined4 *)PTR_stdout_0003e440" * (cast_expression "(undefined4 *)PTR_stdout_0003e440" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;)) })) (expression_statement "iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0);" (assignment_expression "iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0)" identifier = (call_expression "(*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0)" (parenthesized_expression "(*(code *)PTR_ftruncate64_0003e528)" ( (pointer_expression "*(code *)PTR_ftruncate64_0003e528" * (cast_expression "(code *)PTR_ftruncate64_0003e528" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,param_2,0,0)" ( number_literal , identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar1 == 0) goto LAB_00018b3c;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00018b3c;" goto statement_identifier ;)) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0003e450)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0003e450)()" (parenthesized_expression "(*(code *)PTR___errno_location_0003e450)" ( (pointer_expression "*(code *)PTR___errno_location_0003e450" * (cast_expression "(code *)PTR___errno_location_0003e450" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "param_2 = (char *)*puVar2;" (assignment_expression "param_2 = (char *)*puVar2" identifier = (cast_expression "(char *)*puVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) ;) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_0003e51c)" ( (pointer_expression "*(code *)PTR_dcgettext_0003e51c" * (cast_expression "(code *)PTR_dcgettext_0003e51c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_DAT_0003e1b8 + -0x56f4,5)" ( number_literal , (binary_expression "PTR_DAT_0003e1b8 + -0x56f4" identifier + number_literal) , number_literal )))) ;) (expression_statement "uVar4 = quotearg_n_style_colon(0,3,param_1);" (assignment_expression "uVar4 = quotearg_n_style_colon(0,3,param_1)" identifier = (call_expression "quotearg_n_style_colon(0,3,param_1)" identifier (argument_list "(0,3,param_1)" ( number_literal , number_literal , identifier )))) ;) (expression_statement "iVar1 = (*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4);" (assignment_expression "iVar1 = (*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4)" identifier = (call_expression "(*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4)" (parenthesized_expression "(*(code *)PTR_error_0003e4b8)" ( (pointer_expression "*(code *)PTR_error_0003e4b8" * (cast_expression "(code *)PTR_error_0003e4b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(2,param_2,uVar3,uVar4)" ( number_literal , identifier , identifier , identifier )))) ;) }))) (expression_statement "uVar3 = (*(code *)PTR_fdopen_0003e584)(iVar1,param_2);" (assignment_expression "uVar3 = (*(code *)PTR_fdopen_0003e584)(iVar1,param_2)" identifier = (call_expression "(*(code *)PTR_fdopen_0003e584)(iVar1,param_2)" (parenthesized_expression "(*(code *)PTR_fdopen_0003e584)" ( (pointer_expression "*(code *)PTR_fdopen_0003e584" * (cast_expression "(code *)PTR_fdopen_0003e584" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,param_2)" ( identifier , identifier )))) ;) (labeled_statement "LAB_00018b88:\n  fadvise(uVar3,2);" statement_identifier : (expression_statement "fadvise(uVar3,2);" (call_expression "fadvise(uVar3,2)" identifier (argument_list "(uVar3,2)" ( identifier , number_literal ))) ;)) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) (compound_statement { (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) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (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 , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( LIT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (return_statement return (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 ( LIT , IDENT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT , IDENT , IDENT )))) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT )))) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;)) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_00018ae0(int param_1,char *param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  \n  if (*param_2 == 'r') {\n    iVar1 = (*(code *)PTR_strcmp_0003e580)(param_1,PTR_DAT_0003e1b8 + -0x56f8);\n    if (iVar1 == 0) {\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      uVar3 = *(undefined4 *)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }\n    iVar1 = (*(code *)PTR_open64_0003e474)(param_1,0x80000);\n    if (iVar1 < 0) {\n      uVar3 = 0;\n      goto LAB_00018b88;\n    }\n  }\n  else {\n    if (*param_2 != 'w') {\n      puVar5 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar6 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);\n                    \n      FUN_0001666c(uVar3,puVar5);\n    }\n    if (param_1 == 0) {\nLAB_00018b3c:\n      return *(undefined4 *)PTR_stdout_0003e440;\n    }\n    iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0);\n    if (iVar1 == 0) goto LAB_00018b3c;\n    puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();\n    param_2 = (char *)*puVar2;\n    uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);\n    uVar4 = quotearg_n_style_colon(0,3,param_1);\n    iVar1 = (*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4);\n  }\n  uVar3 = (*(code *)PTR_fdopen_0003e584)(iVar1,param_2);\nLAB_00018b88:\n  fadvise(uVar3,2);\n  return uVar3;\n}" (type_identifier "undefined4") (function_declarator "FUN_00018ae0(int param_1,char *param_2)" (identifier "FUN_00018ae0") (parameter_list "(int param_1,char *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  \n  if (*param_2 == 'r') {\n    iVar1 = (*(code *)PTR_strcmp_0003e580)(param_1,PTR_DAT_0003e1b8 + -0x56f8);\n    if (iVar1 == 0) {\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      uVar3 = *(undefined4 *)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }\n    iVar1 = (*(code *)PTR_open64_0003e474)(param_1,0x80000);\n    if (iVar1 < 0) {\n      uVar3 = 0;\n      goto LAB_00018b88;\n    }\n  }\n  else {\n    if (*param_2 != 'w') {\n      puVar5 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar6 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);\n                    \n      FUN_0001666c(uVar3,puVar5);\n    }\n    if (param_1 == 0) {\nLAB_00018b3c:\n      return *(undefined4 *)PTR_stdout_0003e440;\n    }\n    iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0);\n    if (iVar1 == 0) goto LAB_00018b3c;\n    puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();\n    param_2 = (char *)*puVar2;\n    uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);\n    uVar4 = quotearg_n_style_colon(0,3,param_1);\n    iVar1 = (*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4);\n  }\n  uVar3 = (*(code *)PTR_fdopen_0003e584)(iVar1,param_2);\nLAB_00018b88:\n  fadvise(uVar3,2);\n  return uVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined *puVar6;" (type_identifier "undefined") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (if_statement "if (*param_2 == 'r') {\n    iVar1 = (*(code *)PTR_strcmp_0003e580)(param_1,PTR_DAT_0003e1b8 + -0x56f8);\n    if (iVar1 == 0) {\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      uVar3 = *(undefined4 *)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }\n    iVar1 = (*(code *)PTR_open64_0003e474)(param_1,0x80000);\n    if (iVar1 < 0) {\n      uVar3 = 0;\n      goto LAB_00018b88;\n    }\n  }\n  else {\n    if (*param_2 != 'w') {\n      puVar5 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar6 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);\n                    \n      FUN_0001666c(uVar3,puVar5);\n    }\n    if (param_1 == 0) {\nLAB_00018b3c:\n      return *(undefined4 *)PTR_stdout_0003e440;\n    }\n    iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0);\n    if (iVar1 == 0) goto LAB_00018b3c;\n    puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();\n    param_2 = (char *)*puVar2;\n    uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);\n    uVar4 = quotearg_n_style_colon(0,3,param_1);\n    iVar1 = (*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4);\n  }" (if "if") (parenthesized_expression "(*param_2 == 'r')" (( "(") (binary_expression "*param_2 == 'r'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (char_literal "'r'" (' "'") (character "r") (' "'"))) () ")")) (compound_statement "{\n    iVar1 = (*(code *)PTR_strcmp_0003e580)(param_1,PTR_DAT_0003e1b8 + -0x56f8);\n    if (iVar1 == 0) {\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      uVar3 = *(undefined4 *)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }\n    iVar1 = (*(code *)PTR_open64_0003e474)(param_1,0x80000);\n    if (iVar1 < 0) {\n      uVar3 = 0;\n      goto LAB_00018b88;\n    }\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_strcmp_0003e580)(param_1,PTR_DAT_0003e1b8 + -0x56f8);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_0003e580)(param_1,PTR_DAT_0003e1b8 + -0x56f8)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strcmp_0003e580)(param_1,PTR_DAT_0003e1b8 + -0x56f8)" (parenthesized_expression "(*(code *)PTR_strcmp_0003e580)" (( "(") (pointer_expression "*(code *)PTR_strcmp_0003e580" (* "*") (cast_expression "(code *)PTR_strcmp_0003e580" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_0003e580"))) () ")")) (argument_list "(param_1,PTR_DAT_0003e1b8 + -0x56f8)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_DAT_0003e1b8 + -0x56f8" (identifier "PTR_DAT_0003e1b8") (+ "+") (number_literal "-0x56f8")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      uVar3 = *(undefined4 *)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      PTR_DAT_0003e1a8[-0x1904] = 1;\n      uVar3 = *(undefined4 *)PTR_stdin_0003e470;\n      goto LAB_00018b88;\n    }" ({ "{") (expression_statement "PTR_DAT_0003e1a8[-0x1904] = 1;" (assignment_expression "PTR_DAT_0003e1a8[-0x1904] = 1" (subscript_expression "PTR_DAT_0003e1a8[-0x1904]" (identifier "PTR_DAT_0003e1a8") ([ "[") (number_literal "-0x1904") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar3 = *(undefined4 *)PTR_stdin_0003e470;" (assignment_expression "uVar3 = *(undefined4 *)PTR_stdin_0003e470" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)PTR_stdin_0003e470" (* "*") (cast_expression "(undefined4 *)PTR_stdin_0003e470" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stdin_0003e470")))) (; ";")) (goto_statement "goto LAB_00018b88;" (goto "goto") (statement_identifier "LAB_00018b88") (; ";")) (} "}"))) (expression_statement "iVar1 = (*(code *)PTR_open64_0003e474)(param_1,0x80000);" (assignment_expression "iVar1 = (*(code *)PTR_open64_0003e474)(param_1,0x80000)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_open64_0003e474)(param_1,0x80000)" (parenthesized_expression "(*(code *)PTR_open64_0003e474)" (( "(") (pointer_expression "*(code *)PTR_open64_0003e474" (* "*") (cast_expression "(code *)PTR_open64_0003e474" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_open64_0003e474"))) () ")")) (argument_list "(param_1,0x80000)" (( "(") (identifier "param_1") (, ",") (number_literal "0x80000") () ")")))) (; ";")) (if_statement "if (iVar1 < 0) {\n      uVar3 = 0;\n      goto LAB_00018b88;\n    }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = 0;\n      goto LAB_00018b88;\n    }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00018b88;" (goto "goto") (statement_identifier "LAB_00018b88") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (*param_2 != 'w') {\n      puVar5 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar6 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);\n                    \n      FUN_0001666c(uVar3,puVar5);\n    }\n    if (param_1 == 0) {\nLAB_00018b3c:\n      return *(undefined4 *)PTR_stdout_0003e440;\n    }\n    iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0);\n    if (iVar1 == 0) goto LAB_00018b3c;\n    puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();\n    param_2 = (char *)*puVar2;\n    uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);\n    uVar4 = quotearg_n_style_colon(0,3,param_1);\n    iVar1 = (*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4);\n  }" (else "else") (compound_statement "{\n    if (*param_2 != 'w') {\n      puVar5 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar6 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);\n                    \n      FUN_0001666c(uVar3,puVar5);\n    }\n    if (param_1 == 0) {\nLAB_00018b3c:\n      return *(undefined4 *)PTR_stdout_0003e440;\n    }\n    iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0);\n    if (iVar1 == 0) goto LAB_00018b3c;\n    puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();\n    param_2 = (char *)*puVar2;\n    uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);\n    uVar4 = quotearg_n_style_colon(0,3,param_1);\n    iVar1 = (*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4);\n  }" ({ "{") (if_statement "if (*param_2 != 'w') {\n      puVar5 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar6 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);\n                    \n      FUN_0001666c(uVar3,puVar5);\n    }" (if "if") (parenthesized_expression "(*param_2 != 'w')" (( "(") (binary_expression "*param_2 != 'w'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (!= "!=") (char_literal "'w'" (' "'") (character "w") (' "'"))) () ")")) (compound_statement "{\n      puVar5 = PTR_DAT_0003e1b8 + -0x56d0;\n      puVar6 = PTR___assert_fail_0003e3a8;\n      (*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);\n      uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);\n                    \n      FUN_0001666c(uVar3,puVar5);\n    }" ({ "{") (expression_statement "puVar5 = PTR_DAT_0003e1b8 + -0x56d0;" (assignment_expression "puVar5 = PTR_DAT_0003e1b8 + -0x56d0" (identifier "puVar5") (= "=") (binary_expression "PTR_DAT_0003e1b8 + -0x56d0" (identifier "PTR_DAT_0003e1b8") (+ "+") (number_literal "-0x56d0"))) (; ";")) (expression_statement "puVar6 = PTR___assert_fail_0003e3a8;" (assignment_expression "puVar6 = PTR___assert_fail_0003e3a8" (identifier "puVar6") (= "=") (identifier "PTR___assert_fail_0003e3a8")) (; ";")) (expression_statement "(*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);" (call_expression "(*(code *)PTR___assert_fail_0003e3a8)\n                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003e3a8)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_0003e3a8" (* "*") (cast_expression "(code *)PTR___assert_fail_0003e3a8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_0003e3a8"))) () ")")) (argument_list "(puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac)" (( "(") (identifier "puVar5") (, ",") (binary_expression "PTR_DAT_0003e1b8 + -0x56dc" (identifier "PTR_DAT_0003e1b8") (+ "+") (number_literal "-0x56dc")) (, ",") (number_literal "0x3cc") (, ",") (binary_expression "PTR_DAT_0003e1b8 + -0x59ac" (identifier "PTR_DAT_0003e1b8") (+ "+") (number_literal "-0x59ac")) () ")"))) (; ";")) (expression_statement "uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);" (assignment_expression "uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5)" (identifier "uVar3") (= "=") (call_expression "(**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5)" (parenthesized_expression "(**(code **)(puVar6 + 0x258ac))" (( "(") (pointer_expression "**(code **)(puVar6 + 0x258ac)" (* "*") (pointer_expression "*(code **)(puVar6 + 0x258ac)" (* "*") (cast_expression "(code **)(puVar6 + 0x258ac)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0x258ac)" (( "(") (binary_expression "puVar6 + 0x258ac" (identifier "puVar6") (+ "+") (number_literal "0x258ac")) () ")"))))) () ")")) (argument_list "(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5)" (( "(") (number_literal "0") (, ",") (binary_expression "*(int *)(puVar6 + 0x25548) + -0x56a4" (pointer_expression "*(int *)(puVar6 + 0x25548)" (* "*") (cast_expression "(int *)(puVar6 + 0x25548)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar6 + 0x25548)" (( "(") (binary_expression "puVar6 + 0x25548" (identifier "puVar6") (+ "+") (number_literal "0x25548")) () ")")))) (+ "+") (number_literal "-0x56a4")) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_0001666c(uVar3,puVar5);" (call_expression "FUN_0001666c(uVar3,puVar5)" (identifier "FUN_0001666c") (argument_list "(uVar3,puVar5)" (( "(") (identifier "uVar3") (, ",") (identifier "puVar5") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_1 == 0) {\nLAB_00018b3c:\n      return *(undefined4 *)PTR_stdout_0003e440;\n    }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00018b3c:\n      return *(undefined4 *)PTR_stdout_0003e440;\n    }" ({ "{") (labeled_statement "LAB_00018b3c:\n      return *(undefined4 *)PTR_stdout_0003e440;" (statement_identifier "LAB_00018b3c") (: ":") (return_statement "return *(undefined4 *)PTR_stdout_0003e440;" (return "return") (pointer_expression "*(undefined4 *)PTR_stdout_0003e440" (* "*") (cast_expression "(undefined4 *)PTR_stdout_0003e440" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stdout_0003e440"))) (; ";"))) (} "}"))) (expression_statement "iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0);" (assignment_expression "iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0)" (parenthesized_expression "(*(code *)PTR_ftruncate64_0003e528)" (( "(") (pointer_expression "*(code *)PTR_ftruncate64_0003e528" (* "*") (cast_expression "(code *)PTR_ftruncate64_0003e528" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ftruncate64_0003e528"))) () ")")) (argument_list "(1,param_2,0,0)" (( "(") (number_literal "1") (, ",") (identifier "param_2") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) goto LAB_00018b3c;" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00018b3c;" (goto "goto") (statement_identifier "LAB_00018b3c") (; ";"))) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)()" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0003e450)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_0003e450)()" (parenthesized_expression "(*(code *)PTR___errno_location_0003e450)" (( "(") (pointer_expression "*(code *)PTR___errno_location_0003e450" (* "*") (cast_expression "(code *)PTR___errno_location_0003e450" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_0003e450"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "param_2 = (char *)*puVar2;" (assignment_expression "param_2 = (char *)*puVar2" (identifier "param_2") (= "=") (cast_expression "(char *)*puVar2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")))) (; ";")) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_0003e51c)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_0003e51c" (* "*") (cast_expression "(code *)PTR_dcgettext_0003e51c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_0003e51c"))) () ")")) (argument_list "(0,PTR_DAT_0003e1b8 + -0x56f4,5)" (( "(") (number_literal "0") (, ",") (binary_expression "PTR_DAT_0003e1b8 + -0x56f4" (identifier "PTR_DAT_0003e1b8") (+ "+") (number_literal "-0x56f4")) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "uVar4 = quotearg_n_style_colon(0,3,param_1);" (assignment_expression "uVar4 = quotearg_n_style_colon(0,3,param_1)" (identifier "uVar4") (= "=") (call_expression "quotearg_n_style_colon(0,3,param_1)" (identifier "quotearg_n_style_colon") (argument_list "(0,3,param_1)" (( "(") (number_literal "0") (, ",") (number_literal "3") (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4);" (assignment_expression "iVar1 = (*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4)" (parenthesized_expression "(*(code *)PTR_error_0003e4b8)" (( "(") (pointer_expression "*(code *)PTR_error_0003e4b8" (* "*") (cast_expression "(code *)PTR_error_0003e4b8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_error_0003e4b8"))) () ")")) (argument_list "(2,param_2,uVar3,uVar4)" (( "(") (number_literal "2") (, ",") (identifier "param_2") (, ",") (identifier "uVar3") (, ",") (identifier "uVar4") () ")")))) (; ";")) (} "}")))) (expression_statement "uVar3 = (*(code *)PTR_fdopen_0003e584)(iVar1,param_2);" (assignment_expression "uVar3 = (*(code *)PTR_fdopen_0003e584)(iVar1,param_2)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_fdopen_0003e584)(iVar1,param_2)" (parenthesized_expression "(*(code *)PTR_fdopen_0003e584)" (( "(") (pointer_expression "*(code *)PTR_fdopen_0003e584" (* "*") (cast_expression "(code *)PTR_fdopen_0003e584" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fdopen_0003e584"))) () ")")) (argument_list "(iVar1,param_2)" (( "(") (identifier "iVar1") (, ",") (identifier "param_2") () ")")))) (; ";")) (labeled_statement "LAB_00018b88:\n  fadvise(uVar3,2);" (statement_identifier "LAB_00018b88") (: ":") (expression_statement "fadvise(uVar3,2);" (call_expression "fadvise(uVar3,2)" (identifier "fadvise") (argument_list "(uVar3,2)" (( "(") (identifier "uVar3") (, ",") (number_literal "2") () ")"))) (; ";"))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) 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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) 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 (identifier) (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (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) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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)) (number_literal) (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (number_literal) (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) 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 (number_literal) (identifier) (number_literal) (number_literal))))) (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (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 (number_literal) (binary_expression left: (identifier) right: (number_literal)) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal) (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 (number_literal) (identifier) (identifier) (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) (identifier))))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (return_statement (identifier)))))

undefined4 MASKED(int param_1,char *param_2)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  undefined *puVar5;
  undefined *puVar6;
  
  if (*param_2 == 'r') {
    iVar1 = (*(code *)PTR_strcmp_0003e580)(param_1,PTR_DAT_0003e1b8 + -0x56f8);
    if (iVar1 == 0) {
      PTR_DAT_0003e1a8[-0x1904] = 1;
      uVar3 = *(undefined4 *)PTR_stdin_0003e470;
      goto LAB_00018b88;
    }
    iVar1 = (*(code *)PTR_open64_0003e474)(param_1,0x80000);
    if (iVar1 < 0) {
      uVar3 = 0;
      goto LAB_00018b88;
    }
  }
  else {
    if (*param_2 != 'w') {
      puVar5 = PTR_DAT_0003e1b8 + -0x56d0;
      puVar6 = PTR___assert_fail_0003e3a8;
      (*(code *)PTR___assert_fail_0003e3a8)
                (puVar5,PTR_DAT_0003e1b8 + -0x56dc,0x3cc,PTR_DAT_0003e1b8 + -0x59ac);
      uVar3 = (**(code **)(puVar6 + 0x258ac))(0,*(int *)(puVar6 + 0x25548) + -0x56a4,5);
                    /* WARNING: Subroutine does not return */
      FUN_0001666c(uVar3,puVar5);
    }
    if (param_1 == 0) {
LAB_00018b3c:
      return *(undefined4 *)PTR_stdout_0003e440;
    }
    iVar1 = (*(code *)PTR_ftruncate64_0003e528)(1,param_2,0,0);
    if (iVar1 == 0) goto LAB_00018b3c;
    puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0003e450)();
    param_2 = (char *)*puVar2;
    uVar3 = (*(code *)PTR_dcgettext_0003e51c)(0,PTR_DAT_0003e1b8 + -0x56f4,5);
    uVar4 = quotearg_n_style_colon(0,3,param_1);
    iVar1 = (*(code *)PTR_error_0003e4b8)(2,param_2,uVar3,uVar4);
  }
  uVar3 = (*(code *)PTR_fdopen_0003e584)(iVar1,param_2);
LAB_00018b88:
  fadvise(uVar3,2);
  return uVar3;
}

