
/* 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_000312d8);
  if ((iVar1 != 0) &&
     ((PTR_DAT_000310f8[0x13d0] == '\0' ||
      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)))) {
    uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5);
    pcVar5 = *(char **)(PTR_DAT_000310f8 + 0x13d4);
    if (pcVar5 == (char *)0x0) {
      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();
      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);
    }
    else {
      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();
      uVar6 = *puVar4;
      pcVar5 = quotearg_colon(pcVar5);
      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,pcVar5,uVar3);
    }
    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);
    return;
  }
  iVar1 = close_stream(*(FILE **)PTR_stderr_00031370);
  if (iVar1 != 0) {
    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);
    return;
  }
  return;
}



void close_stdout(void)

{
  int iVar1;
  int *piVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  
  iVar1 = close_stream(*(undefined4 *)PTR_stdout_000312d8);
  if ((iVar1 != 0) &&
     ((PTR_DAT_000310f8[0x13d0] == '\0' ||
      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)))) {
    uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5);
    iVar1 = *(int *)(PTR_DAT_000310f8 + 0x13d4);
    if (iVar1 == 0) {
      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();
      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);
    }
    else {
      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();
      uVar6 = *puVar4;
      uVar5 = quotearg_colon(iVar1);
      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);
    }
    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);
    return;
  }
  iVar1 = close_stream(*(undefined4 *)PTR_stderr_00031370);
  if (iVar1 != 0) {
    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);
    return;
  }
  return;
}


lui gp,0x2
addiu gp,gp,0x5800
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,-0x7df8(gp)
lw a0,0x0(v0)
lw t9,-0x7f60(gp)
bal 0x0001bd40
_nop
lw gp,0x18(sp)
beq v0,zero,0x0001393c
_lw v0,-0x7fd8(gp)
lbu v0,0x13d0(v0)
beq v0,zero,0x00013970
_lw t9,-0x7df0(gp)
jalr t9
_nop
lw gp,0x18(sp)
lw v1,0x0(v0)
li v0,0x20
bne v1,v0,0x00013974
_li a2,0x5
lw v0,-0x7d60(gp)
lw a0,0x0(v0)
lw t9,-0x7f60(gp)
bal 0x0001bd40
_nop
lw gp,0x18(sp)
bne v0,zero,0x00013a3c
_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,-0xca8
or a0,zero,zero
lw t9,-0x7d84(gp)
jalr t9
_nop
lw gp,0x18(sp)
or s1,v0,zero
lw v0,-0x7fd8(gp)
lw s0,0x13d4(v0)
beq s0,zero,0x00013a04
_lw t9,-0x7df0(gp)
jalr t9
_nop
lw gp,0x18(sp)
lw s2,0x0(v0)
or a0,s0,zero
lw t9,-0x7f5c(gp)
bal 0x0001652c
_nop
lw gp,0x18(sp)
sw s1,0x10(sp)
or a3,v0,zero
lw a2,-0x7fc8(gp)
addiu a2,a2,-0xc9c
or a1,s2,zero
or a0,zero,zero
lw t9,-0x7db0(gp)
jalr t9
_nop
lw gp,0x18(sp)
lw v0,-0x7f58(gp)
lw a0,0x0(v0)
lw t9,-0x7d64(gp)
jalr t9
_nop
jalr t9
_nop
lw gp,0x18(sp)
or a3,s1,zero
lw a2,-0x7fc8(gp)
addiu a2,a2,-0xc98
lw a1,0x0(v0)
or a0,zero,zero
lw t9,-0x7db0(gp)
jalr t9
_nop
lw gp,0x18(sp)
b 0x000139f4
_lw v0,-0x7f58(gp)
lw v0,-0x7f58(gp)
lw a0,0x0(v0)
lw t9,-0x7d64(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_000312d8);\n  if ((iVar1 != 0) &&\n     ((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5);\n    iVar1 = *(int *)(PTR_DAT_000310f8 + 0x13d4);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }\n  iVar1 = close_stream(*(undefined4 *)PTR_stderr_00031370);\n  if (iVar1 != 0) {\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\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_000312d8);\n  if ((iVar1 != 0) &&\n     ((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5);\n    iVar1 = *(int *)(PTR_DAT_000310f8 + 0x13d4);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }\n  iVar1 = close_stream(*(undefined4 *)PTR_stderr_00031370);\n  if (iVar1 != 0) {\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\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_000312d8);\n  if ((iVar1 != 0) &&\n     ((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5);\n    iVar1 = *(int *)(PTR_DAT_000310f8 + 0x13d4);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }\n  iVar1 = close_stream(*(undefined4 *)PTR_stderr_00031370);\n  if (iVar1 != 0) {\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\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_000312d8);" (assignment_expression "iVar1 = close_stream(*(undefined4 *)PTR_stdout_000312d8)" identifier = (call_expression "close_stream(*(undefined4 *)PTR_stdout_000312d8)" identifier (argument_list "(*(undefined4 *)PTR_stdout_000312d8)" ( (pointer_expression "*(undefined4 *)PTR_stdout_000312d8" * (cast_expression "(undefined4 *)PTR_stdout_000312d8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (if_statement "if ((iVar1 != 0) &&\n     ((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5);\n    iVar1 = *(int *)(PTR_DAT_000310f8 + 0x13d4);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }" if (parenthesized_expression "((iVar1 != 0) &&\n     ((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20))))" ( (binary_expression "(iVar1 != 0) &&\n     ((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)))" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)))" ( (parenthesized_expression "(PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20))" ( (binary_expression "PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)" (binary_expression "PTR_DAT_000310f8[0x13d0] == '\0'" (subscript_expression "PTR_DAT_000310f8[0x13d0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) || (parenthesized_expression "(piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)" ( (comma_expression "piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_000312e0)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000312e0)()" (parenthesized_expression "(*(code *)PTR___errno_location_000312e0)" ( (pointer_expression "*(code *)PTR___errno_location_000312e0" * (cast_expression "(code *)PTR___errno_location_000312e0" ( (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_0003134c)(0,PTR_UINT_00031108 + -0xca8,5);\n    iVar1 = *(int *)(PTR_DAT_000310f8 + 0x13d4);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }" { (expression_statement "uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_0003134c)" ( (pointer_expression "*(code *)PTR_dcgettext_0003134c" * (cast_expression "(code *)PTR_dcgettext_0003134c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_UINT_00031108 + -0xca8,5)" ( number_literal , (binary_expression "PTR_UINT_00031108 + -0xca8" identifier + number_literal) , number_literal )))) ;) (expression_statement "iVar1 = *(int *)(PTR_DAT_000310f8 + 0x13d4);" (assignment_expression "iVar1 = *(int *)(PTR_DAT_000310f8 + 0x13d4)" identifier = (pointer_expression "*(int *)(PTR_DAT_000310f8 + 0x13d4)" * (cast_expression "(int *)(PTR_DAT_000310f8 + 0x13d4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x13d4)" ( (binary_expression "PTR_DAT_000310f8 + 0x13d4" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }" { (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000312e0)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000312e0)()" (parenthesized_expression "(*(code *)PTR___errno_location_000312e0)" ( (pointer_expression "*(code *)PTR___errno_location_000312e0" * (cast_expression "(code *)PTR___errno_location_000312e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "(*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);" (call_expression "(*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3)" (parenthesized_expression "(*(code *)PTR_error_00031320)" ( (pointer_expression "*(code *)PTR_error_00031320" * (cast_expression "(code *)PTR_error_00031320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3)" ( number_literal , (pointer_expression "*puVar4" * identifier) , (binary_expression "PTR_UINT_00031108 + -0xc98" identifier + number_literal) , identifier ))) ;) }) (else_clause "else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);\n    }" else (compound_statement "{\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);\n    }" { (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000312e0)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000312e0)()" (parenthesized_expression "(*(code *)PTR___errno_location_000312e0)" ( (pointer_expression "*(code *)PTR___errno_location_000312e0" * (cast_expression "(code *)PTR___errno_location_000312e0" ( (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_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);" (call_expression "(*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3)" (parenthesized_expression "(*(code *)PTR_error_00031320)" ( (pointer_expression "*(code *)PTR_error_00031320" * (cast_expression "(code *)PTR_error_00031320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3)" ( number_literal , identifier , (binary_expression "PTR_UINT_00031108 + -0xc9c" identifier + number_literal) , identifier , identifier ))) ;) }))) (expression_statement "(*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);" (call_expression "(*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178)" (parenthesized_expression "(*(code *)PTR__exit_0003136c)" ( (pointer_expression "*(code *)PTR__exit_0003136c" * (cast_expression "(code *)PTR__exit_0003136c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_exit_failure_00031178)" ( (pointer_expression "*(undefined4 *)PTR_exit_failure_00031178" * (cast_expression "(undefined4 *)PTR_exit_failure_00031178" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = close_stream(*(undefined4 *)PTR_stderr_00031370);" (assignment_expression "iVar1 = close_stream(*(undefined4 *)PTR_stderr_00031370)" identifier = (call_expression "close_stream(*(undefined4 *)PTR_stderr_00031370)" identifier (argument_list "(*(undefined4 *)PTR_stderr_00031370)" ( (pointer_expression "*(undefined4 *)PTR_stderr_00031370" * (cast_expression "(undefined4 *)PTR_stderr_00031370" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (if_statement "if (iVar1 != 0) {\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }" { (expression_statement "(*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);" (call_expression "(*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178)" (parenthesized_expression "(*(code *)PTR__exit_0003136c)" ( (pointer_expression "*(code *)PTR__exit_0003136c" * (cast_expression "(code *)PTR__exit_0003136c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_exit_failure_00031178)" ( (pointer_expression "*(undefined4 *)PTR_exit_failure_00031178" * (cast_expression "(undefined4 *)PTR_exit_failure_00031178" ( (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_000312d8);\n  if ((iVar1 != 0) &&\n     ((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5);\n    pcVar5 = *(char **)(PTR_DAT_000310f8 + 0x13d4);\n    if (pcVar5 == (char *)0x0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      pcVar5 = quotearg_colon(pcVar5);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,pcVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }\n  iVar1 = close_stream(*(FILE **)PTR_stderr_00031370);\n  if (iVar1 != 0) {\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\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_000312d8);\n  if ((iVar1 != 0) &&\n     ((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5);\n    pcVar5 = *(char **)(PTR_DAT_000310f8 + 0x13d4);\n    if (pcVar5 == (char *)0x0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      pcVar5 = quotearg_colon(pcVar5);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,pcVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }\n  iVar1 = close_stream(*(FILE **)PTR_stderr_00031370);\n  if (iVar1 != 0) {\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\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_000312d8);\n  if ((iVar1 != 0) &&\n     ((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5);\n    pcVar5 = *(char **)(PTR_DAT_000310f8 + 0x13d4);\n    if (pcVar5 == (char *)0x0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      pcVar5 = quotearg_colon(pcVar5);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,pcVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }\n  iVar1 = close_stream(*(FILE **)PTR_stderr_00031370);\n  if (iVar1 != 0) {\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\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_000312d8);" (assignment_expression "iVar1 = close_stream(*(FILE **)PTR_stdout_000312d8)" identifier = (call_expression "close_stream(*(FILE **)PTR_stdout_000312d8)" identifier (argument_list "(*(FILE **)PTR_stdout_000312d8)" ( (pointer_expression "*(FILE **)PTR_stdout_000312d8" * (cast_expression "(FILE **)PTR_stdout_000312d8" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) )))) ;) (if_statement "if ((iVar1 != 0) &&\n     ((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5);\n    pcVar5 = *(char **)(PTR_DAT_000310f8 + 0x13d4);\n    if (pcVar5 == (char *)0x0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      pcVar5 = quotearg_colon(pcVar5);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,pcVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }" if (parenthesized_expression "((iVar1 != 0) &&\n     ((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20))))" ( (binary_expression "(iVar1 != 0) &&\n     ((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)))" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)))" ( (parenthesized_expression "(PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20))" ( (binary_expression "PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)" (binary_expression "PTR_DAT_000310f8[0x13d0] == '\0'" (subscript_expression "PTR_DAT_000310f8[0x13d0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) || (parenthesized_expression "(piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)" ( (comma_expression "piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_000312e0)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000312e0)()" (parenthesized_expression "(*(code *)PTR___errno_location_000312e0)" ( (pointer_expression "*(code *)PTR___errno_location_000312e0" * (cast_expression "(code *)PTR___errno_location_000312e0" ( (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_0003134c)(0,PTR_UINT_00031108 + -0xca8,5);\n    pcVar5 = *(char **)(PTR_DAT_000310f8 + 0x13d4);\n    if (pcVar5 == (char *)0x0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      pcVar5 = quotearg_colon(pcVar5);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,pcVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }" { (expression_statement "uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_0003134c)" ( (pointer_expression "*(code *)PTR_dcgettext_0003134c" * (cast_expression "(code *)PTR_dcgettext_0003134c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_UINT_00031108 + -0xca8,5)" ( number_literal , (binary_expression "PTR_UINT_00031108 + -0xca8" identifier + number_literal) , number_literal )))) ;) (expression_statement "pcVar5 = *(char **)(PTR_DAT_000310f8 + 0x13d4);" (assignment_expression "pcVar5 = *(char **)(PTR_DAT_000310f8 + 0x13d4)" identifier = (pointer_expression "*(char **)(PTR_DAT_000310f8 + 0x13d4)" * (cast_expression "(char **)(PTR_DAT_000310f8 + 0x13d4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x13d4)" ( (binary_expression "PTR_DAT_000310f8 + 0x13d4" identifier + number_literal) ))))) ;) (if_statement "if (pcVar5 == (char *)0x0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      pcVar5 = quotearg_colon(pcVar5);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,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_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }" { (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000312e0)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000312e0)()" (parenthesized_expression "(*(code *)PTR___errno_location_000312e0)" ( (pointer_expression "*(code *)PTR___errno_location_000312e0" * (cast_expression "(code *)PTR___errno_location_000312e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "(*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);" (call_expression "(*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3)" (parenthesized_expression "(*(code *)PTR_error_00031320)" ( (pointer_expression "*(code *)PTR_error_00031320" * (cast_expression "(code *)PTR_error_00031320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3)" ( number_literal , (pointer_expression "*puVar4" * identifier) , (binary_expression "PTR_UINT_00031108 + -0xc98" identifier + number_literal) , identifier ))) ;) }) (else_clause "else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      pcVar5 = quotearg_colon(pcVar5);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,pcVar5,uVar3);\n    }" else (compound_statement "{\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      pcVar5 = quotearg_colon(pcVar5);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,pcVar5,uVar3);\n    }" { (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000312e0)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000312e0)()" (parenthesized_expression "(*(code *)PTR___errno_location_000312e0)" ( (pointer_expression "*(code *)PTR___errno_location_000312e0" * (cast_expression "(code *)PTR___errno_location_000312e0" ( (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_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,pcVar5,uVar3);" (call_expression "(*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,pcVar5,uVar3)" (parenthesized_expression "(*(code *)PTR_error_00031320)" ( (pointer_expression "*(code *)PTR_error_00031320" * (cast_expression "(code *)PTR_error_00031320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,uVar6,PTR_UINT_00031108 + -0xc9c,pcVar5,uVar3)" ( number_literal , identifier , (binary_expression "PTR_UINT_00031108 + -0xc9c" identifier + number_literal) , identifier , identifier ))) ;) }))) (expression_statement "(*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);" (call_expression "(*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178)" (parenthesized_expression "(*(code *)PTR__exit_0003136c)" ( (pointer_expression "*(code *)PTR__exit_0003136c" * (cast_expression "(code *)PTR__exit_0003136c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_exit_failure_00031178)" ( (pointer_expression "*(undefined4 *)PTR_exit_failure_00031178" * (cast_expression "(undefined4 *)PTR_exit_failure_00031178" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = close_stream(*(FILE **)PTR_stderr_00031370);" (assignment_expression "iVar1 = close_stream(*(FILE **)PTR_stderr_00031370)" identifier = (call_expression "close_stream(*(FILE **)PTR_stderr_00031370)" identifier (argument_list "(*(FILE **)PTR_stderr_00031370)" ( (pointer_expression "*(FILE **)PTR_stderr_00031370" * (cast_expression "(FILE **)PTR_stderr_00031370" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) )))) ;) (if_statement "if (iVar1 != 0) {\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }" { (expression_statement "(*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);" (call_expression "(*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178)" (parenthesized_expression "(*(code *)PTR__exit_0003136c)" ( (pointer_expression "*(code *)PTR__exit_0003136c" * (cast_expression "(code *)PTR__exit_0003136c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_exit_failure_00031178)" ( (pointer_expression "*(undefined4 *)PTR_exit_failure_00031178" * (cast_expression "(undefined4 *)PTR_exit_failure_00031178" ( (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_000312d8);\n  if ((iVar1 != 0) &&\n     ((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5);\n    iVar1 = *(int *)(PTR_DAT_000310f8 + 0x13d4);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }\n  iVar1 = close_stream(*(undefined4 *)PTR_stderr_00031370);\n  if (iVar1 != 0) {\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\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_000312d8);\n  if ((iVar1 != 0) &&\n     ((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5);\n    iVar1 = *(int *)(PTR_DAT_000310f8 + 0x13d4);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }\n  iVar1 = close_stream(*(undefined4 *)PTR_stderr_00031370);\n  if (iVar1 != 0) {\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\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_000312d8);\n  if ((iVar1 != 0) &&\n     ((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5);\n    iVar1 = *(int *)(PTR_DAT_000310f8 + 0x13d4);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }\n  iVar1 = close_stream(*(undefined4 *)PTR_stderr_00031370);\n  if (iVar1 != 0) {\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\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_000312d8);" (assignment_expression "iVar1 = close_stream(*(undefined4 *)PTR_stdout_000312d8)" identifier = (call_expression "close_stream(*(undefined4 *)PTR_stdout_000312d8)" identifier (argument_list "(*(undefined4 *)PTR_stdout_000312d8)" ( (pointer_expression "*(undefined4 *)PTR_stdout_000312d8" * (cast_expression "(undefined4 *)PTR_stdout_000312d8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (if_statement "if ((iVar1 != 0) &&\n     ((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5);\n    iVar1 = *(int *)(PTR_DAT_000310f8 + 0x13d4);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }" if (parenthesized_expression "((iVar1 != 0) &&\n     ((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20))))" ( (binary_expression "(iVar1 != 0) &&\n     ((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)))" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)))" ( (parenthesized_expression "(PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20))" ( (binary_expression "PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)" (binary_expression "PTR_DAT_000310f8[0x13d0] == '\0'" (subscript_expression "PTR_DAT_000310f8[0x13d0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) || (parenthesized_expression "(piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)" ( (comma_expression "piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_000312e0)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000312e0)()" (parenthesized_expression "(*(code *)PTR___errno_location_000312e0)" ( (pointer_expression "*(code *)PTR___errno_location_000312e0" * (cast_expression "(code *)PTR___errno_location_000312e0" ( (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_0003134c)(0,PTR_UINT_00031108 + -0xca8,5);\n    iVar1 = *(int *)(PTR_DAT_000310f8 + 0x13d4);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }" { (expression_statement "uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_0003134c)" ( (pointer_expression "*(code *)PTR_dcgettext_0003134c" * (cast_expression "(code *)PTR_dcgettext_0003134c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_UINT_00031108 + -0xca8,5)" ( number_literal , (binary_expression "PTR_UINT_00031108 + -0xca8" identifier + number_literal) , number_literal )))) ;) (expression_statement "iVar1 = *(int *)(PTR_DAT_000310f8 + 0x13d4);" (assignment_expression "iVar1 = *(int *)(PTR_DAT_000310f8 + 0x13d4)" identifier = (pointer_expression "*(int *)(PTR_DAT_000310f8 + 0x13d4)" * (cast_expression "(int *)(PTR_DAT_000310f8 + 0x13d4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x13d4)" ( (binary_expression "PTR_DAT_000310f8 + 0x13d4" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }" { (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000312e0)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000312e0)()" (parenthesized_expression "(*(code *)PTR___errno_location_000312e0)" ( (pointer_expression "*(code *)PTR___errno_location_000312e0" * (cast_expression "(code *)PTR___errno_location_000312e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "(*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);" (call_expression "(*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3)" (parenthesized_expression "(*(code *)PTR_error_00031320)" ( (pointer_expression "*(code *)PTR_error_00031320" * (cast_expression "(code *)PTR_error_00031320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3)" ( number_literal , (pointer_expression "*puVar4" * identifier) , (binary_expression "PTR_UINT_00031108 + -0xc98" identifier + number_literal) , identifier ))) ;) }) (else_clause "else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);\n    }" else (compound_statement "{\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);\n    }" { (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000312e0)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000312e0)()" (parenthesized_expression "(*(code *)PTR___errno_location_000312e0)" ( (pointer_expression "*(code *)PTR___errno_location_000312e0" * (cast_expression "(code *)PTR___errno_location_000312e0" ( (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_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);" (call_expression "(*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3)" (parenthesized_expression "(*(code *)PTR_error_00031320)" ( (pointer_expression "*(code *)PTR_error_00031320" * (cast_expression "(code *)PTR_error_00031320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3)" ( number_literal , identifier , (binary_expression "PTR_UINT_00031108 + -0xc9c" identifier + number_literal) , identifier , identifier ))) ;) }))) (expression_statement "(*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);" (call_expression "(*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178)" (parenthesized_expression "(*(code *)PTR__exit_0003136c)" ( (pointer_expression "*(code *)PTR__exit_0003136c" * (cast_expression "(code *)PTR__exit_0003136c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_exit_failure_00031178)" ( (pointer_expression "*(undefined4 *)PTR_exit_failure_00031178" * (cast_expression "(undefined4 *)PTR_exit_failure_00031178" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = close_stream(*(undefined4 *)PTR_stderr_00031370);" (assignment_expression "iVar1 = close_stream(*(undefined4 *)PTR_stderr_00031370)" identifier = (call_expression "close_stream(*(undefined4 *)PTR_stderr_00031370)" identifier (argument_list "(*(undefined4 *)PTR_stderr_00031370)" ( (pointer_expression "*(undefined4 *)PTR_stderr_00031370" * (cast_expression "(undefined4 *)PTR_stderr_00031370" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (if_statement "if (iVar1 != 0) {\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }" { (expression_statement "(*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);" (call_expression "(*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178)" (parenthesized_expression "(*(code *)PTR__exit_0003136c)" ( (pointer_expression "*(code *)PTR__exit_0003136c" * (cast_expression "(code *)PTR__exit_0003136c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_exit_failure_00031178)" ( (pointer_expression "*(undefined4 *)PTR_exit_failure_00031178" * (cast_expression "(undefined4 *)PTR_exit_failure_00031178" ( (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_000312d8);\n  if ((iVar1 != 0) &&\n     ((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5);\n    iVar1 = *(int *)(PTR_DAT_000310f8 + 0x13d4);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }\n  iVar1 = close_stream(*(undefined4 *)PTR_stderr_00031370);\n  if (iVar1 != 0) {\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\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_000312d8);\n  if ((iVar1 != 0) &&\n     ((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5);\n    iVar1 = *(int *)(PTR_DAT_000310f8 + 0x13d4);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }\n  iVar1 = close_stream(*(undefined4 *)PTR_stderr_00031370);\n  if (iVar1 != 0) {\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\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_000312d8);" (assignment_expression "iVar1 = close_stream(*(undefined4 *)PTR_stdout_000312d8)" (identifier "iVar1") (= "=") (call_expression "close_stream(*(undefined4 *)PTR_stdout_000312d8)" (identifier "close_stream") (argument_list "(*(undefined4 *)PTR_stdout_000312d8)" (( "(") (pointer_expression "*(undefined4 *)PTR_stdout_000312d8" (* "*") (cast_expression "(undefined4 *)PTR_stdout_000312d8" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stdout_000312d8"))) () ")")))) (; ";")) (if_statement "if ((iVar1 != 0) &&\n     ((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)))) {\n    uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5);\n    iVar1 = *(int *)(PTR_DAT_000310f8 + 0x13d4);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }" (if "if") (parenthesized_expression "((iVar1 != 0) &&\n     ((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20))))" (( "(") (binary_expression "(iVar1 != 0) &&\n     ((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)))" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)))" (( "(") (parenthesized_expression "(PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20))" (( "(") (binary_expression "PTR_DAT_000310f8[0x13d0] == '\0' ||\n      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)" (binary_expression "PTR_DAT_000310f8[0x13d0] == '\0'" (subscript_expression "PTR_DAT_000310f8[0x13d0]" (identifier "PTR_DAT_000310f8") ([ "[") (number_literal "0x13d0") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (|| "||") (parenthesized_expression "(piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)" (( "(") (comma_expression "piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)()" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_000312e0)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_000312e0)()" (parenthesized_expression "(*(code *)PTR___errno_location_000312e0)" (( "(") (pointer_expression "*(code *)PTR___errno_location_000312e0" (* "*") (cast_expression "(code *)PTR___errno_location_000312e0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_000312e0"))) () ")")) (argument_list "()" (( "(") () ")"))))) (, ",") (binary_expression "*piVar2 != 0x20" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (!= "!=") (number_literal "0x20"))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5);\n    iVar1 = *(int *)(PTR_DAT_000310f8 + 0x13d4);\n    if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);\n    }\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }" ({ "{") (expression_statement "uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_0003134c)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_0003134c" (* "*") (cast_expression "(code *)PTR_dcgettext_0003134c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_0003134c"))) () ")")) (argument_list "(0,PTR_UINT_00031108 + -0xca8,5)" (( "(") (number_literal "0") (, ",") (binary_expression "PTR_UINT_00031108 + -0xca8" (identifier "PTR_UINT_00031108") (+ "+") (number_literal "-0xca8")) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "iVar1 = *(int *)(PTR_DAT_000310f8 + 0x13d4);" (assignment_expression "iVar1 = *(int *)(PTR_DAT_000310f8 + 0x13d4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(PTR_DAT_000310f8 + 0x13d4)" (* "*") (cast_expression "(int *)(PTR_DAT_000310f8 + 0x13d4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000310f8 + 0x13d4)" (( "(") (binary_expression "PTR_DAT_000310f8 + 0x13d4" (identifier "PTR_DAT_000310f8") (+ "+") (number_literal "0x13d4")) () ")"))))) (; ";")) (if_statement "if (iVar1 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }\n    else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,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_000312e0)();\n      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);\n    }" ({ "{") (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)()" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000312e0)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_000312e0)()" (parenthesized_expression "(*(code *)PTR___errno_location_000312e0)" (( "(") (pointer_expression "*(code *)PTR___errno_location_000312e0" (* "*") (cast_expression "(code *)PTR___errno_location_000312e0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_000312e0"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "(*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);" (call_expression "(*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3)" (parenthesized_expression "(*(code *)PTR_error_00031320)" (( "(") (pointer_expression "*(code *)PTR_error_00031320" (* "*") (cast_expression "(code *)PTR_error_00031320" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_error_00031320"))) () ")")) (argument_list "(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3)" (( "(") (number_literal "0") (, ",") (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (, ",") (binary_expression "PTR_UINT_00031108 + -0xc98" (identifier "PTR_UINT_00031108") (+ "+") (number_literal "-0xc98")) (, ",") (identifier "uVar3") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);\n    }" (else "else") (compound_statement "{\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();\n      uVar6 = *puVar4;\n      uVar5 = quotearg_colon(iVar1);\n      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);\n    }" ({ "{") (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)()" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000312e0)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_000312e0)()" (parenthesized_expression "(*(code *)PTR___errno_location_000312e0)" (( "(") (pointer_expression "*(code *)PTR___errno_location_000312e0" (* "*") (cast_expression "(code *)PTR___errno_location_000312e0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_000312e0"))) () ")")) (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_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);" (call_expression "(*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3)" (parenthesized_expression "(*(code *)PTR_error_00031320)" (( "(") (pointer_expression "*(code *)PTR_error_00031320" (* "*") (cast_expression "(code *)PTR_error_00031320" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_error_00031320"))) () ")")) (argument_list "(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3)" (( "(") (number_literal "0") (, ",") (identifier "uVar6") (, ",") (binary_expression "PTR_UINT_00031108 + -0xc9c" (identifier "PTR_UINT_00031108") (+ "+") (number_literal "-0xc9c")) (, ",") (identifier "uVar5") (, ",") (identifier "uVar3") () ")"))) (; ";")) (} "}")))) (expression_statement "(*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);" (call_expression "(*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178)" (parenthesized_expression "(*(code *)PTR__exit_0003136c)" (( "(") (pointer_expression "*(code *)PTR__exit_0003136c" (* "*") (cast_expression "(code *)PTR__exit_0003136c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__exit_0003136c"))) () ")")) (argument_list "(*(undefined4 *)PTR_exit_failure_00031178)" (( "(") (pointer_expression "*(undefined4 *)PTR_exit_failure_00031178" (* "*") (cast_expression "(undefined4 *)PTR_exit_failure_00031178" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_exit_failure_00031178"))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = close_stream(*(undefined4 *)PTR_stderr_00031370);" (assignment_expression "iVar1 = close_stream(*(undefined4 *)PTR_stderr_00031370)" (identifier "iVar1") (= "=") (call_expression "close_stream(*(undefined4 *)PTR_stderr_00031370)" (identifier "close_stream") (argument_list "(*(undefined4 *)PTR_stderr_00031370)" (( "(") (pointer_expression "*(undefined4 *)PTR_stderr_00031370" (* "*") (cast_expression "(undefined4 *)PTR_stderr_00031370" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stderr_00031370"))) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);\n    return;\n  }" ({ "{") (expression_statement "(*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);" (call_expression "(*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178)" (parenthesized_expression "(*(code *)PTR__exit_0003136c)" (( "(") (pointer_expression "*(code *)PTR__exit_0003136c" (* "*") (cast_expression "(code *)PTR__exit_0003136c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__exit_0003136c"))) () ")")) (argument_list "(*(undefined4 *)PTR_exit_failure_00031178)" (( "(") (pointer_expression "*(undefined4 *)PTR_exit_failure_00031178" (* "*") (cast_expression "(undefined4 *)PTR_exit_failure_00031178" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_exit_failure_00031178"))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (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_000312d8);
  if ((iVar1 != 0) &&
     ((PTR_DAT_000310f8[0x13d0] == '\0' ||
      (piVar2 = (int *)(*(code *)PTR___errno_location_000312e0)(), *piVar2 != 0x20)))) {
    uVar3 = (*(code *)PTR_dcgettext_0003134c)(0,PTR_UINT_00031108 + -0xca8,5);
    iVar1 = *(int *)(PTR_DAT_000310f8 + 0x13d4);
    if (iVar1 == 0) {
      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();
      (*(code *)PTR_error_00031320)(0,*puVar4,PTR_UINT_00031108 + -0xc98,uVar3);
    }
    else {
      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000312e0)();
      uVar6 = *puVar4;
      uVar5 = quotearg_colon(iVar1);
      (*(code *)PTR_error_00031320)(0,uVar6,PTR_UINT_00031108 + -0xc9c,uVar5,uVar3);
    }
    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);
    return;
  }
  iVar1 = close_stream(*(undefined4 *)PTR_stderr_00031370);
  if (iVar1 != 0) {
    (*(code *)PTR__exit_0003136c)(*(undefined4 *)PTR_exit_failure_00031178);
    return;
  }
  return;
}

