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

void close_stdout(void)

{
  int iVar1;
  int *piVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  char *pcVar5;
  undefined4 uVar6;
  
  iVar1 = close_stream(*(FILE **)PTR_stdout_0002f274);
  if ((iVar1 != 0) &&
     ((PTR___progname_0002f0f8[-0xca0] == '\0' ||
      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))) {
    uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5);
    pcVar5 = *(char **)(PTR___progname_0002f0f8 + -0xc9c);
    if (pcVar5 == (char *)0x0) {
      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();
      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);
    }
    else {
      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();
      uVar6 = *puVar4;
      pcVar5 = quotearg_colon(pcVar5);
      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,pcVar5,uVar3);
    }
    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);
    return;
  }
  iVar1 = close_stream(*(FILE **)PTR_stderr_0002f300);
  if (iVar1 != 0) {
    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);
    return;
  }
  return;
}



void close_stdout(void)

{
  int iVar1;
  int *piVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  
  iVar1 = close_stream(*(undefined4 *)PTR_stdout_0002f274);
  if ((iVar1 != 0) &&
     ((PTR___progname_0002f0f8[-0xca0] == '\0' ||
      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))) {
    uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5);
    iVar1 = *(int *)(PTR___progname_0002f0f8 + -0xc9c);
    if (iVar1 == 0) {
      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();
      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);
    }
    else {
      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();
      uVar6 = *puVar4;
      uVar5 = quotearg_colon(iVar1);
      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);
    }
    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);
    return;
  }
  iVar1 = close_stream(*(undefined4 *)PTR_stderr_0002f300);
  if (iVar1 != 0) {
    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);
    return;
  }
  return;
}


lui gp,0x2
addiu gp,gp,0x3020
addu gp,gp,t9
addiu sp,sp,-0x30
sw ra,0x2c(sp)
sw s2,0x28(sp)
sw s1,0x24(sp)
sw s0,0x20(sp)
sw gp,0x18(sp)
lw v0,-0x7e5c(gp)
lw a0,0x0(v0)
lw t9,-0x7f88(gp)
bal 0x0001c150
_nop
lw gp,0x18(sp)
beq v0,zero,0x0001411c
_lw v0,-0x7fd8(gp)
lbu v0,-0xca0(v0)
beq v0,zero,0x00014150
_lw t9,-0x7e54(gp)
jalr t9
_nop
lw gp,0x18(sp)
lw v1,0x0(v0)
li v0,0x20
bne v1,v0,0x00014154
_li a2,0x5
lw v0,-0x7dd0(gp)
lw a0,0x0(v0)
lw t9,-0x7f88(gp)
bal 0x0001c150
_nop
lw gp,0x18(sp)
bne v0,zero,0x0001421c
_lw ra,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x30
li a2,0x5
lw a1,-0x7fc8(gp)
addiu a1,a1,-0x27a8
or a0,zero,zero
lw t9,-0x7df0(gp)
jalr t9
_nop
lw gp,0x18(sp)
or s1,v0,zero
lw v0,-0x7fd8(gp)
lw s0,-0xc9c(v0)
beq s0,zero,0x000141e4
_lw t9,-0x7e54(gp)
jalr t9
_nop
lw gp,0x18(sp)
lw s2,0x0(v0)
or a0,s0,zero
lw t9,-0x7f84(gp)
bal 0x0001985c
_nop
lw gp,0x18(sp)
sw s1,0x10(sp)
or a3,v0,zero
lw a2,-0x7fc8(gp)
addiu a2,a2,-0x279c
or a1,s2,zero
or a0,zero,zero
lw t9,-0x7e18(gp)
jalr t9
_nop
lw gp,0x18(sp)
lw v0,-0x7f80(gp)
lw a0,0x0(v0)
lw t9,-0x7dd4(gp)
jalr t9
_nop
jalr t9
_nop
lw gp,0x18(sp)
or a3,s1,zero
lw a2,-0x7fc8(gp)
addiu a2,a2,-0x2798
lw a1,0x0(v0)
or a0,zero,zero
lw t9,-0x7e18(gp)
jalr t9
_nop
lw gp,0x18(sp)
b 0x000141d4
_lw v0,-0x7f80(gp)
lw v0,-0x7f80(gp)
lw a0,0x0(v0)
lw t9,-0x7dd4(gp)
jalr t9
_nop
(translation_unit "void close_stdout(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  iVar1 = close_stream(*(undefined4 *)PTR_stdout_0002f274);\n  if ((iVar1 != 0) &&\n     ((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5);\n    iVar1 = *(int *)(PTR___progname_0002f0f8 + -0xc9c);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }\n  iVar1 = close_stream(*(undefined4 *)PTR_stderr_0002f300);\n  if (iVar1 != 0) {\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void close_stdout(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  iVar1 = close_stream(*(undefined4 *)PTR_stdout_0002f274);\n  if ((iVar1 != 0) &&\n     ((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5);\n    iVar1 = *(int *)(PTR___progname_0002f0f8 + -0xc9c);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }\n  iVar1 = close_stream(*(undefined4 *)PTR_stderr_0002f300);\n  if (iVar1 != 0) {\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "close_stdout(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  iVar1 = close_stream(*(undefined4 *)PTR_stdout_0002f274);\n  if ((iVar1 != 0) &&\n     ((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5);\n    iVar1 = *(int *)(PTR___progname_0002f0f8 + -0xc9c);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }\n  iVar1 = close_stream(*(undefined4 *)PTR_stderr_0002f300);\n  if (iVar1 != 0) {\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "iVar1 = close_stream(*(undefined4 *)PTR_stdout_0002f274);" (assignment_expression "iVar1 = close_stream(*(undefined4 *)PTR_stdout_0002f274)" identifier = (call_expression "close_stream(*(undefined4 *)PTR_stdout_0002f274)" identifier (argument_list "(*(undefined4 *)PTR_stdout_0002f274)" ( (pointer_expression "*(undefined4 *)PTR_stdout_0002f274" * (cast_expression "(undefined4 *)PTR_stdout_0002f274" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (if_statement "if ((iVar1 != 0) &&\n     ((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5);\n    iVar1 = *(int *)(PTR___progname_0002f0f8 + -0xc9c);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }" if (parenthesized_expression "((iVar1 != 0) &&\n     ((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20))))" ( (binary_expression "(iVar1 != 0) &&\n     ((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))" ( (parenthesized_expression "(PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20))" ( (binary_expression "PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)" (binary_expression "PTR___progname_0002f0f8[-0xca0] == '\0'" (subscript_expression "PTR___progname_0002f0f8[-0xca0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) || (parenthesized_expression "(piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)" ( (comma_expression "piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0002f27c)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0002f27c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002f27c)" ( (pointer_expression "*(code *)PTR___errno_location_0002f27c" * (cast_expression "(code *)PTR___errno_location_0002f27c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) , (binary_expression "*piVar2 != 0x20" (pointer_expression "*piVar2" * identifier) != number_literal)) ))) )) ))) )) (compound_statement "{\n    uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5);\n    iVar1 = *(int *)(PTR___progname_0002f0f8 + -0xc9c);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }" { (expression_statement "uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_0002f2e0)" ( (pointer_expression "*(code *)PTR_dcgettext_0002f2e0" * (cast_expression "(code *)PTR_dcgettext_0002f2e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_DAT_0002f108 + -0x27a8,5)" ( number_literal , (binary_expression "PTR_DAT_0002f108 + -0x27a8" identifier + number_literal) , number_literal )))) ;) (expression_statement "iVar1 = *(int *)(PTR___progname_0002f0f8 + -0xc9c);" (assignment_expression "iVar1 = *(int *)(PTR___progname_0002f0f8 + -0xc9c)" identifier = (pointer_expression "*(int *)(PTR___progname_0002f0f8 + -0xc9c)" * (cast_expression "(int *)(PTR___progname_0002f0f8 + -0xc9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___progname_0002f0f8 + -0xc9c)" ( (binary_expression "PTR___progname_0002f0f8 + -0xc9c" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }" { (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0002f27c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0002f27c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002f27c)" ( (pointer_expression "*(code *)PTR___errno_location_0002f27c" * (cast_expression "(code *)PTR___errno_location_0002f27c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "(*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);" (call_expression "(*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3)" (parenthesized_expression "(*(code *)PTR_error_0002f2b8)" ( (pointer_expression "*(code *)PTR_error_0002f2b8" * (cast_expression "(code *)PTR_error_0002f2b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3)" ( number_literal , (pointer_expression "*puVar4" * identifier) , (binary_expression "PTR_DAT_0002f108 + -0x2798" identifier + number_literal) , identifier ))) ;) }) (else_clause "else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);\n    }" else (compound_statement "{\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);\n    }" { (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0002f27c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0002f27c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002f27c)" ( (pointer_expression "*(code *)PTR___errno_location_0002f27c" * (cast_expression "(code *)PTR___errno_location_0002f27c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar6 = *puVar4;" (assignment_expression "uVar6 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "uVar5 = quotearg_colon(iVar1);" (assignment_expression "uVar5 = quotearg_colon(iVar1)" identifier = (call_expression "quotearg_colon(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (expression_statement "(*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);" (call_expression "(*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3)" (parenthesized_expression "(*(code *)PTR_error_0002f2b8)" ( (pointer_expression "*(code *)PTR_error_0002f2b8" * (cast_expression "(code *)PTR_error_0002f2b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3)" ( number_literal , identifier , (binary_expression "PTR_DAT_0002f108 + -0x279c" identifier + number_literal) , identifier , identifier ))) ;) }))) (expression_statement "(*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);" (call_expression "(*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150)" (parenthesized_expression "(*(code *)PTR__exit_0002f2fc)" ( (pointer_expression "*(code *)PTR__exit_0002f2fc" * (cast_expression "(code *)PTR__exit_0002f2fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_exit_failure_0002f150)" ( (pointer_expression "*(undefined4 *)PTR_exit_failure_0002f150" * (cast_expression "(undefined4 *)PTR_exit_failure_0002f150" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = close_stream(*(undefined4 *)PTR_stderr_0002f300);" (assignment_expression "iVar1 = close_stream(*(undefined4 *)PTR_stderr_0002f300)" identifier = (call_expression "close_stream(*(undefined4 *)PTR_stderr_0002f300)" identifier (argument_list "(*(undefined4 *)PTR_stderr_0002f300)" ( (pointer_expression "*(undefined4 *)PTR_stderr_0002f300" * (cast_expression "(undefined4 *)PTR_stderr_0002f300" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (if_statement "if (iVar1 != 0) {\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }" { (expression_statement "(*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);" (call_expression "(*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150)" (parenthesized_expression "(*(code *)PTR__exit_0002f2fc)" ( (pointer_expression "*(code *)PTR__exit_0002f2fc" * (cast_expression "(code *)PTR__exit_0002f2fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_exit_failure_0002f150)" ( (pointer_expression "*(undefined4 *)PTR_exit_failure_0002f150" * (cast_expression "(undefined4 *)PTR_exit_failure_0002f150" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid close_stdout(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  \n  iVar1 = close_stream(*(FILE **)PTR_stdout_0002f274);\n  if ((iVar1 != 0) &&\n     ((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5);\n    pcVar5 = *(char **)(PTR___progname_0002f0f8 + -0xc9c);\n    if (pcVar5 == (char *)0x0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      pcVar5 = quotearg_colon(pcVar5);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,pcVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }\n  iVar1 = close_stream(*(FILE **)PTR_stderr_0002f300);\n  if (iVar1 != 0) {\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }\n  return;\n}\n\n" comment (function_definition "void close_stdout(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  \n  iVar1 = close_stream(*(FILE **)PTR_stdout_0002f274);\n  if ((iVar1 != 0) &&\n     ((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5);\n    pcVar5 = *(char **)(PTR___progname_0002f0f8 + -0xc9c);\n    if (pcVar5 == (char *)0x0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      pcVar5 = quotearg_colon(pcVar5);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,pcVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }\n  iVar1 = close_stream(*(FILE **)PTR_stderr_0002f300);\n  if (iVar1 != 0) {\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "close_stdout(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  \n  iVar1 = close_stream(*(FILE **)PTR_stdout_0002f274);\n  if ((iVar1 != 0) &&\n     ((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5);\n    pcVar5 = *(char **)(PTR___progname_0002f0f8 + -0xc9c);\n    if (pcVar5 == (char *)0x0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      pcVar5 = quotearg_colon(pcVar5);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,pcVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }\n  iVar1 = close_stream(*(FILE **)PTR_stderr_0002f300);\n  if (iVar1 != 0) {\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "iVar1 = close_stream(*(FILE **)PTR_stdout_0002f274);" (assignment_expression "iVar1 = close_stream(*(FILE **)PTR_stdout_0002f274)" identifier = (call_expression "close_stream(*(FILE **)PTR_stdout_0002f274)" identifier (argument_list "(*(FILE **)PTR_stdout_0002f274)" ( (pointer_expression "*(FILE **)PTR_stdout_0002f274" * (cast_expression "(FILE **)PTR_stdout_0002f274" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) )))) ;) (if_statement "if ((iVar1 != 0) &&\n     ((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5);\n    pcVar5 = *(char **)(PTR___progname_0002f0f8 + -0xc9c);\n    if (pcVar5 == (char *)0x0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      pcVar5 = quotearg_colon(pcVar5);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,pcVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }" if (parenthesized_expression "((iVar1 != 0) &&\n     ((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20))))" ( (binary_expression "(iVar1 != 0) &&\n     ((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))" ( (parenthesized_expression "(PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20))" ( (binary_expression "PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)" (binary_expression "PTR___progname_0002f0f8[-0xca0] == '\0'" (subscript_expression "PTR___progname_0002f0f8[-0xca0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) || (parenthesized_expression "(piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)" ( (comma_expression "piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0002f27c)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0002f27c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002f27c)" ( (pointer_expression "*(code *)PTR___errno_location_0002f27c" * (cast_expression "(code *)PTR___errno_location_0002f27c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) , (binary_expression "*piVar2 != 0x20" (pointer_expression "*piVar2" * identifier) != number_literal)) ))) )) ))) )) (compound_statement "{\n    uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5);\n    pcVar5 = *(char **)(PTR___progname_0002f0f8 + -0xc9c);\n    if (pcVar5 == (char *)0x0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      pcVar5 = quotearg_colon(pcVar5);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,pcVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }" { (expression_statement "uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_0002f2e0)" ( (pointer_expression "*(code *)PTR_dcgettext_0002f2e0" * (cast_expression "(code *)PTR_dcgettext_0002f2e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_DAT_0002f108 + -0x27a8,5)" ( number_literal , (binary_expression "PTR_DAT_0002f108 + -0x27a8" identifier + number_literal) , number_literal )))) ;) (expression_statement "pcVar5 = *(char **)(PTR___progname_0002f0f8 + -0xc9c);" (assignment_expression "pcVar5 = *(char **)(PTR___progname_0002f0f8 + -0xc9c)" identifier = (pointer_expression "*(char **)(PTR___progname_0002f0f8 + -0xc9c)" * (cast_expression "(char **)(PTR___progname_0002f0f8 + -0xc9c)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR___progname_0002f0f8 + -0xc9c)" ( (binary_expression "PTR___progname_0002f0f8 + -0xc9c" identifier + number_literal) ))))) ;) (if_statement "if (pcVar5 == (char *)0x0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      pcVar5 = quotearg_colon(pcVar5);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,pcVar5,uVar3);\n    }" if (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }" { (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0002f27c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0002f27c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002f27c)" ( (pointer_expression "*(code *)PTR___errno_location_0002f27c" * (cast_expression "(code *)PTR___errno_location_0002f27c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "(*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);" (call_expression "(*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3)" (parenthesized_expression "(*(code *)PTR_error_0002f2b8)" ( (pointer_expression "*(code *)PTR_error_0002f2b8" * (cast_expression "(code *)PTR_error_0002f2b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3)" ( number_literal , (pointer_expression "*puVar4" * identifier) , (binary_expression "PTR_DAT_0002f108 + -0x2798" identifier + number_literal) , identifier ))) ;) }) (else_clause "else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      pcVar5 = quotearg_colon(pcVar5);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,pcVar5,uVar3);\n    }" else (compound_statement "{\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      pcVar5 = quotearg_colon(pcVar5);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,pcVar5,uVar3);\n    }" { (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0002f27c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0002f27c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002f27c)" ( (pointer_expression "*(code *)PTR___errno_location_0002f27c" * (cast_expression "(code *)PTR___errno_location_0002f27c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar6 = *puVar4;" (assignment_expression "uVar6 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "pcVar5 = quotearg_colon(pcVar5);" (assignment_expression "pcVar5 = quotearg_colon(pcVar5)" identifier = (call_expression "quotearg_colon(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (expression_statement "(*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,pcVar5,uVar3);" (call_expression "(*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,pcVar5,uVar3)" (parenthesized_expression "(*(code *)PTR_error_0002f2b8)" ( (pointer_expression "*(code *)PTR_error_0002f2b8" * (cast_expression "(code *)PTR_error_0002f2b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,uVar6,PTR_DAT_0002f108 + -0x279c,pcVar5,uVar3)" ( number_literal , identifier , (binary_expression "PTR_DAT_0002f108 + -0x279c" identifier + number_literal) , identifier , identifier ))) ;) }))) (expression_statement "(*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);" (call_expression "(*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150)" (parenthesized_expression "(*(code *)PTR__exit_0002f2fc)" ( (pointer_expression "*(code *)PTR__exit_0002f2fc" * (cast_expression "(code *)PTR__exit_0002f2fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_exit_failure_0002f150)" ( (pointer_expression "*(undefined4 *)PTR_exit_failure_0002f150" * (cast_expression "(undefined4 *)PTR_exit_failure_0002f150" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = close_stream(*(FILE **)PTR_stderr_0002f300);" (assignment_expression "iVar1 = close_stream(*(FILE **)PTR_stderr_0002f300)" identifier = (call_expression "close_stream(*(FILE **)PTR_stderr_0002f300)" identifier (argument_list "(*(FILE **)PTR_stderr_0002f300)" ( (pointer_expression "*(FILE **)PTR_stderr_0002f300" * (cast_expression "(FILE **)PTR_stderr_0002f300" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) )))) ;) (if_statement "if (iVar1 != 0) {\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }" { (expression_statement "(*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);" (call_expression "(*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150)" (parenthesized_expression "(*(code *)PTR__exit_0002f2fc)" ( (pointer_expression "*(code *)PTR__exit_0002f2fc" * (cast_expression "(code *)PTR__exit_0002f2fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_exit_failure_0002f150)" ( (pointer_expression "*(undefined4 *)PTR_exit_failure_0002f150" * (cast_expression "(undefined4 *)PTR_exit_failure_0002f150" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void close_stdout(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  iVar1 = close_stream(*(undefined4 *)PTR_stdout_0002f274);\n  if ((iVar1 != 0) &&\n     ((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5);\n    iVar1 = *(int *)(PTR___progname_0002f0f8 + -0xc9c);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }\n  iVar1 = close_stream(*(undefined4 *)PTR_stderr_0002f300);\n  if (iVar1 != 0) {\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void close_stdout(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  iVar1 = close_stream(*(undefined4 *)PTR_stdout_0002f274);\n  if ((iVar1 != 0) &&\n     ((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5);\n    iVar1 = *(int *)(PTR___progname_0002f0f8 + -0xc9c);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }\n  iVar1 = close_stream(*(undefined4 *)PTR_stderr_0002f300);\n  if (iVar1 != 0) {\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "close_stdout(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  iVar1 = close_stream(*(undefined4 *)PTR_stdout_0002f274);\n  if ((iVar1 != 0) &&\n     ((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5);\n    iVar1 = *(int *)(PTR___progname_0002f0f8 + -0xc9c);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }\n  iVar1 = close_stream(*(undefined4 *)PTR_stderr_0002f300);\n  if (iVar1 != 0) {\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "iVar1 = close_stream(*(undefined4 *)PTR_stdout_0002f274);" (assignment_expression "iVar1 = close_stream(*(undefined4 *)PTR_stdout_0002f274)" identifier = (call_expression "close_stream(*(undefined4 *)PTR_stdout_0002f274)" identifier (argument_list "(*(undefined4 *)PTR_stdout_0002f274)" ( (pointer_expression "*(undefined4 *)PTR_stdout_0002f274" * (cast_expression "(undefined4 *)PTR_stdout_0002f274" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (if_statement "if ((iVar1 != 0) &&\n     ((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5);\n    iVar1 = *(int *)(PTR___progname_0002f0f8 + -0xc9c);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }" if (parenthesized_expression "((iVar1 != 0) &&\n     ((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20))))" ( (binary_expression "(iVar1 != 0) &&\n     ((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))" ( (parenthesized_expression "(PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20))" ( (binary_expression "PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)" (binary_expression "PTR___progname_0002f0f8[-0xca0] == '\0'" (subscript_expression "PTR___progname_0002f0f8[-0xca0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) || (parenthesized_expression "(piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)" ( (comma_expression "piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0002f27c)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0002f27c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002f27c)" ( (pointer_expression "*(code *)PTR___errno_location_0002f27c" * (cast_expression "(code *)PTR___errno_location_0002f27c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) , (binary_expression "*piVar2 != 0x20" (pointer_expression "*piVar2" * identifier) != number_literal)) ))) )) ))) )) (compound_statement "{\n    uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5);\n    iVar1 = *(int *)(PTR___progname_0002f0f8 + -0xc9c);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }" { (expression_statement "uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_0002f2e0)" ( (pointer_expression "*(code *)PTR_dcgettext_0002f2e0" * (cast_expression "(code *)PTR_dcgettext_0002f2e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_DAT_0002f108 + -0x27a8,5)" ( number_literal , (binary_expression "PTR_DAT_0002f108 + -0x27a8" identifier + number_literal) , number_literal )))) ;) (expression_statement "iVar1 = *(int *)(PTR___progname_0002f0f8 + -0xc9c);" (assignment_expression "iVar1 = *(int *)(PTR___progname_0002f0f8 + -0xc9c)" identifier = (pointer_expression "*(int *)(PTR___progname_0002f0f8 + -0xc9c)" * (cast_expression "(int *)(PTR___progname_0002f0f8 + -0xc9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___progname_0002f0f8 + -0xc9c)" ( (binary_expression "PTR___progname_0002f0f8 + -0xc9c" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }" { (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0002f27c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0002f27c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002f27c)" ( (pointer_expression "*(code *)PTR___errno_location_0002f27c" * (cast_expression "(code *)PTR___errno_location_0002f27c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "(*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);" (call_expression "(*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3)" (parenthesized_expression "(*(code *)PTR_error_0002f2b8)" ( (pointer_expression "*(code *)PTR_error_0002f2b8" * (cast_expression "(code *)PTR_error_0002f2b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3)" ( number_literal , (pointer_expression "*puVar4" * identifier) , (binary_expression "PTR_DAT_0002f108 + -0x2798" identifier + number_literal) , identifier ))) ;) }) (else_clause "else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);\n    }" else (compound_statement "{\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);\n    }" { (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0002f27c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0002f27c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002f27c)" ( (pointer_expression "*(code *)PTR___errno_location_0002f27c" * (cast_expression "(code *)PTR___errno_location_0002f27c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar6 = *puVar4;" (assignment_expression "uVar6 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "uVar5 = quotearg_colon(iVar1);" (assignment_expression "uVar5 = quotearg_colon(iVar1)" identifier = (call_expression "quotearg_colon(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (expression_statement "(*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);" (call_expression "(*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3)" (parenthesized_expression "(*(code *)PTR_error_0002f2b8)" ( (pointer_expression "*(code *)PTR_error_0002f2b8" * (cast_expression "(code *)PTR_error_0002f2b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3)" ( number_literal , identifier , (binary_expression "PTR_DAT_0002f108 + -0x279c" identifier + number_literal) , identifier , identifier ))) ;) }))) (expression_statement "(*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);" (call_expression "(*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150)" (parenthesized_expression "(*(code *)PTR__exit_0002f2fc)" ( (pointer_expression "*(code *)PTR__exit_0002f2fc" * (cast_expression "(code *)PTR__exit_0002f2fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_exit_failure_0002f150)" ( (pointer_expression "*(undefined4 *)PTR_exit_failure_0002f150" * (cast_expression "(undefined4 *)PTR_exit_failure_0002f150" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = close_stream(*(undefined4 *)PTR_stderr_0002f300);" (assignment_expression "iVar1 = close_stream(*(undefined4 *)PTR_stderr_0002f300)" identifier = (call_expression "close_stream(*(undefined4 *)PTR_stderr_0002f300)" identifier (argument_list "(*(undefined4 *)PTR_stderr_0002f300)" ( (pointer_expression "*(undefined4 *)PTR_stderr_0002f300" * (cast_expression "(undefined4 *)PTR_stderr_0002f300" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (if_statement "if (iVar1 != 0) {\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }" { (expression_statement "(*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);" (call_expression "(*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150)" (parenthesized_expression "(*(code *)PTR__exit_0002f2fc)" ( (pointer_expression "*(code *)PTR__exit_0002f2fc" * (cast_expression "(code *)PTR__exit_0002f2fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_exit_failure_0002f150)" ( (pointer_expression "*(undefined4 *)PTR_exit_failure_0002f150" * (cast_expression "(undefined4 *)PTR_exit_failure_0002f150" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) || (parenthesized_expression ( (comma_expression (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 ( ))))) , (binary_expression (pointer_expression * IDENT) != LIT)) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (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 (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (pointer_expression * IDENT) , (binary_expression IDENT + LIT) , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT , (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void close_stdout(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  iVar1 = close_stream(*(undefined4 *)PTR_stdout_0002f274);\n  if ((iVar1 != 0) &&\n     ((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5);\n    iVar1 = *(int *)(PTR___progname_0002f0f8 + -0xc9c);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }\n  iVar1 = close_stream(*(undefined4 *)PTR_stderr_0002f300);\n  if (iVar1 != 0) {\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "close_stdout(void)" (identifier "close_stdout") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  iVar1 = close_stream(*(undefined4 *)PTR_stdout_0002f274);\n  if ((iVar1 != 0) &&\n     ((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5);\n    iVar1 = *(int *)(PTR___progname_0002f0f8 + -0xc9c);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }\n  iVar1 = close_stream(*(undefined4 *)PTR_stderr_0002f300);\n  if (iVar1 != 0) {\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (expression_statement "iVar1 = close_stream(*(undefined4 *)PTR_stdout_0002f274);" (assignment_expression "iVar1 = close_stream(*(undefined4 *)PTR_stdout_0002f274)" (identifier "iVar1") (= "=") (call_expression "close_stream(*(undefined4 *)PTR_stdout_0002f274)" (identifier "close_stream") (argument_list "(*(undefined4 *)PTR_stdout_0002f274)" (( "(") (pointer_expression "*(undefined4 *)PTR_stdout_0002f274" (* "*") (cast_expression "(undefined4 *)PTR_stdout_0002f274" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stdout_0002f274"))) () ")")))) (; ";")) (if_statement "if ((iVar1 != 0) &&\n     ((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5);\n    iVar1 = *(int *)(PTR___progname_0002f0f8 + -0xc9c);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }" (if "if") (parenthesized_expression "((iVar1 != 0) &&\n     ((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20))))" (( "(") (binary_expression "(iVar1 != 0) &&\n     ((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))" (( "(") (parenthesized_expression "(PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20))" (( "(") (binary_expression "PTR___progname_0002f0f8[-0xca0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)" (binary_expression "PTR___progname_0002f0f8[-0xca0] == '\0'" (subscript_expression "PTR___progname_0002f0f8[-0xca0]" (identifier "PTR___progname_0002f0f8") ([ "[") (number_literal "-0xca0") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (|| "||") (parenthesized_expression "(piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)" (( "(") (comma_expression "piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)()" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_0002f27c)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_0002f27c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002f27c)" (( "(") (pointer_expression "*(code *)PTR___errno_location_0002f27c" (* "*") (cast_expression "(code *)PTR___errno_location_0002f27c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_0002f27c"))) () ")")) (argument_list "()" (( "(") () ")"))))) (, ",") (binary_expression "*piVar2 != 0x20" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (!= "!=") (number_literal "0x20"))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5);\n    iVar1 = *(int *)(PTR___progname_0002f0f8 + -0xc9c);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }" ({ "{") (expression_statement "uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_0002f2e0)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_0002f2e0" (* "*") (cast_expression "(code *)PTR_dcgettext_0002f2e0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_0002f2e0"))) () ")")) (argument_list "(0,PTR_DAT_0002f108 + -0x27a8,5)" (( "(") (number_literal "0") (, ",") (binary_expression "PTR_DAT_0002f108 + -0x27a8" (identifier "PTR_DAT_0002f108") (+ "+") (number_literal "-0x27a8")) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "iVar1 = *(int *)(PTR___progname_0002f0f8 + -0xc9c);" (assignment_expression "iVar1 = *(int *)(PTR___progname_0002f0f8 + -0xc9c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(PTR___progname_0002f0f8 + -0xc9c)" (* "*") (cast_expression "(int *)(PTR___progname_0002f0f8 + -0xc9c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR___progname_0002f0f8 + -0xc9c)" (( "(") (binary_expression "PTR___progname_0002f0f8 + -0xc9c" (identifier "PTR___progname_0002f0f8") (+ "+") (number_literal "-0xc9c")) () ")"))))) (; ";")) (if_statement "if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);\n    }" ({ "{") (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)()" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0002f27c)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_0002f27c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002f27c)" (( "(") (pointer_expression "*(code *)PTR___errno_location_0002f27c" (* "*") (cast_expression "(code *)PTR___errno_location_0002f27c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_0002f27c"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "(*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);" (call_expression "(*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3)" (parenthesized_expression "(*(code *)PTR_error_0002f2b8)" (( "(") (pointer_expression "*(code *)PTR_error_0002f2b8" (* "*") (cast_expression "(code *)PTR_error_0002f2b8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_error_0002f2b8"))) () ")")) (argument_list "(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3)" (( "(") (number_literal "0") (, ",") (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (, ",") (binary_expression "PTR_DAT_0002f108 + -0x2798" (identifier "PTR_DAT_0002f108") (+ "+") (number_literal "-0x2798")) (, ",") (identifier "uVar3") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);\n    }" (else "else") (compound_statement "{\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);\n    }" ({ "{") (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)()" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0002f27c)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_0002f27c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002f27c)" (( "(") (pointer_expression "*(code *)PTR___errno_location_0002f27c" (* "*") (cast_expression "(code *)PTR___errno_location_0002f27c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_0002f27c"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar6 = *puVar4;" (assignment_expression "uVar6 = *puVar4" (identifier "uVar6") (= "=") (pointer_expression "*puVar4" (* "*") (identifier "puVar4"))) (; ";")) (expression_statement "uVar5 = quotearg_colon(iVar1);" (assignment_expression "uVar5 = quotearg_colon(iVar1)" (identifier "uVar5") (= "=") (call_expression "quotearg_colon(iVar1)" (identifier "quotearg_colon") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);" (call_expression "(*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3)" (parenthesized_expression "(*(code *)PTR_error_0002f2b8)" (( "(") (pointer_expression "*(code *)PTR_error_0002f2b8" (* "*") (cast_expression "(code *)PTR_error_0002f2b8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_error_0002f2b8"))) () ")")) (argument_list "(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3)" (( "(") (number_literal "0") (, ",") (identifier "uVar6") (, ",") (binary_expression "PTR_DAT_0002f108 + -0x279c" (identifier "PTR_DAT_0002f108") (+ "+") (number_literal "-0x279c")) (, ",") (identifier "uVar5") (, ",") (identifier "uVar3") () ")"))) (; ";")) (} "}")))) (expression_statement "(*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);" (call_expression "(*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150)" (parenthesized_expression "(*(code *)PTR__exit_0002f2fc)" (( "(") (pointer_expression "*(code *)PTR__exit_0002f2fc" (* "*") (cast_expression "(code *)PTR__exit_0002f2fc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__exit_0002f2fc"))) () ")")) (argument_list "(*(undefined4 *)PTR_exit_failure_0002f150)" (( "(") (pointer_expression "*(undefined4 *)PTR_exit_failure_0002f150" (* "*") (cast_expression "(undefined4 *)PTR_exit_failure_0002f150" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_exit_failure_0002f150"))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = close_stream(*(undefined4 *)PTR_stderr_0002f300);" (assignment_expression "iVar1 = close_stream(*(undefined4 *)PTR_stderr_0002f300)" (identifier "iVar1") (= "=") (call_expression "close_stream(*(undefined4 *)PTR_stderr_0002f300)" (identifier "close_stream") (argument_list "(*(undefined4 *)PTR_stderr_0002f300)" (( "(") (pointer_expression "*(undefined4 *)PTR_stderr_0002f300" (* "*") (cast_expression "(undefined4 *)PTR_stderr_0002f300" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stderr_0002f300"))) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);\n    return;\n  }" ({ "{") (expression_statement "(*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);" (call_expression "(*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150)" (parenthesized_expression "(*(code *)PTR__exit_0002f2fc)" (( "(") (pointer_expression "*(code *)PTR__exit_0002f2fc" (* "*") (cast_expression "(code *)PTR__exit_0002f2fc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__exit_0002f2fc"))) () ")")) (argument_list "(*(undefined4 *)PTR_exit_failure_0002f150)" (( "(") (pointer_expression "*(undefined4 *)PTR_exit_failure_0002f150" (* "*") (cast_expression "(undefined4 *)PTR_exit_failure_0002f150" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_exit_failure_0002f150"))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(void)

{
  int var_2;
  int *piVar2;
  type_1 uVar3;
  type_1 *puVar4;
  char *var_5;
  type_1 uVar6;
  
  var_2 = var_1(*(type_2 **)PTR_stdout_0002f274);
  if ((var_2 != 0) &&
     ((var_4[-0xca0] == '\0' ||
      (piVar2 = (int *)(*(type_3 *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))) {
    uVar3 = (*(type_3 *)PTR_dcgettext_0002f2e0)(0,var_3 + -0x27a8,5);
    var_5 = *(char **)(var_4 + -0xc9c);
    if (var_5 == (char *)0x0) {
      puVar4 = (type_1 *)(*(type_3 *)PTR___errno_location_0002f27c)();
      (*(type_3 *)PTR_error_0002f2b8)(0,*puVar4,var_3 + -0x2798,uVar3);
    }
    else {
      puVar4 = (type_1 *)(*(type_3 *)PTR___errno_location_0002f27c)();
      uVar6 = *puVar4;
      var_5 = var_6(var_5);
      (*(type_3 *)PTR_error_0002f2b8)(0,uVar6,var_3 + -0x279c,var_5,uVar3);
    }
    (*(type_3 *)PTR__exit_0002f2fc)(*(type_1 *)PTR_exit_failure_0002f150);
    return;
  }
  var_2 = var_1(*(type_2 **)PTR_stderr_0002f300);
  if (var_2 != 0) {
    (*(type_3 *)PTR__exit_0002f2fc)(*(type_1 *)PTR_exit_failure_0002f150);
    return;
  }
  return;
}


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

void MASKED(void)

{
  int iVar1;
  int *piVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  
  iVar1 = close_stream(*(undefined4 *)PTR_stdout_0002f274);
  if ((iVar1 != 0) &&
     ((PTR___progname_0002f0f8[-0xca0] == '\0' ||
      (piVar2 = (int *)(*(code *)PTR___errno_location_0002f27c)(), *piVar2 != 0x20)))) {
    uVar3 = (*(code *)PTR_dcgettext_0002f2e0)(0,PTR_DAT_0002f108 + -0x27a8,5);
    iVar1 = *(int *)(PTR___progname_0002f0f8 + -0xc9c);
    if (iVar1 == 0) {
      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();
      (*(code *)PTR_error_0002f2b8)(0,*puVar4,PTR_DAT_0002f108 + -0x2798,uVar3);
    }
    else {
      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0002f27c)();
      uVar6 = *puVar4;
      uVar5 = quotearg_colon(iVar1);
      (*(code *)PTR_error_0002f2b8)(0,uVar6,PTR_DAT_0002f108 + -0x279c,uVar5,uVar3);
    }
    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);
    return;
  }
  iVar1 = close_stream(*(undefined4 *)PTR_stderr_0002f300);
  if (iVar1 != 0) {
    (*(code *)PTR__exit_0002f2fc)(*(undefined4 *)PTR_exit_failure_0002f150);
    return;
  }
  return;
}

