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

void close_stdout(void)

{
  int iVar1;
  int *piVar2;
  undefined8 uVar3;
  char *pcVar4;
  
  iVar1 = close_stream(*(FILE **)PTR_stdout_0010cfa0);
  if (iVar1 != 0) {
    if (ignore_EPIPE != false) {
      piVar2 = __errno_location();
      if (*piVar2 == 0x20) goto LAB_001048d6;
    }
    uVar3 = dcgettext(0,"write error",5);
    if (file_name == (char *)0x0) {
      piVar2 = __errno_location();
      error(0,*piVar2,"%s",uVar3);
    }
    else {
      pcVar4 = quotearg_colon(file_name);
      piVar2 = __errno_location();
      error(0,*piVar2,"%s: %s",pcVar4,uVar3);
    }
                    /* WARNING: Subroutine does not return */
    _exit(exit_failure);
  }
LAB_001048d6:
  iVar1 = close_stream(*(FILE **)PTR_stderr_0010cff0);
  if (iVar1 == 0) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  _exit(exit_failure);
}



void FUN_001048aa(void)

{
  int iVar1;
  int *piVar2;
  undefined8 uVar3;
  undefined8 uVar4;
  
  iVar1 = FUN_00107c58(*(undefined8 *)PTR_stdout_0010cfa0);
  if (iVar1 != 0) {
    if (DAT_0010d428 != '\0') {
      piVar2 = __errno_location();
      if (*piVar2 == 0x20) goto LAB_001048d6;
    }
    uVar3 = dcgettext(0,"write error",5);
    if (DAT_0010d430 == 0) {
      piVar2 = __errno_location();
      error(0,*piVar2,"%s",uVar3);
    }
    else {
      uVar4 = FUN_001063a2();
      piVar2 = __errno_location();
      error(0,*piVar2,"%s: %s",uVar4,uVar3);
    }
                    /* WARNING: Subroutine does not return */
    _exit(DAT_0010d260);
  }
LAB_001048d6:
  iVar1 = FUN_00107c58(*(undefined8 *)PTR_stderr_0010cff0);
  if (iVar1 == 0) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  _exit(DAT_0010d260);
}


PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RAX,qword ptr [0x0010cfa0]
MOV RDI,qword ptr [RAX]
CALL 0x00107c58
TEST EAX,EAX
JZ 0x001048d6
CMP byte ptr [0x0010d428],0x0
JZ 0x001048f4
CALL 0x00102080
CMP dword ptr [RAX],0x20
JNZ 0x001048f4
MOV RAX,qword ptr [0x0010cff0]
MOV RDI,qword ptr [RAX]
CALL 0x00107c58
TEST EAX,EAX
JNZ 0x00104974
ADD RSP,0x8
POP RBX
POP RBP
RET
MOV EDX,0x5
LEA RSI,[0x108b91]
MOV EDI,0x0
CALL 0x00102140
MOV RBX,RAX
MOV RDI,qword ptr [0x0010d430]
TEST RDI,RDI
JZ 0x00104952
CALL 0x001063a2
MOV RBP,RAX
CALL 0x00102080
MOV R8,RBX
MOV RCX,RBP
LEA RDX,[0x108b9d]
MOV ESI,dword ptr [RAX]
MOV EDI,0x0
MOV EAX,0x0
CALL 0x00102360
LEA RAX,[0x10d260]
MOV EDI,dword ptr [RAX]
CALL 0x001020b0
CALL 0x00102080
MOV RCX,RBX
LEA RDX,[0x108ba1]
MOV ESI,dword ptr [RAX]
MOV EDI,0x0
MOV EAX,0x0
CALL 0x00102360
JMP 0x00104944
LEA RAX,[0x10d260]
MOV EDI,dword ptr [RAX]
CALL 0x001020b0
(translation_unit "void FUN_001048aa(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  iVar1 = FUN_00107c58(*(undefined8 *)PTR_stdout_0010cfa0);\n  if (iVar1 != 0) {\n    if (DAT_0010d428 != '\0') {\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }\n    uVar3 = dcgettext(0,"write error",5);\n    if (DAT_0010d430 == 0) {\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }\n    else {\n      uVar4 = FUN_001063a2();\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",uVar4,uVar3);\n    }\n                    /* WARNING: Subroutine does not return */\n    _exit(DAT_0010d260);\n  }\nLAB_001048d6:\n  iVar1 = FUN_00107c58(*(undefined8 *)PTR_stderr_0010cff0);\n  if (iVar1 == 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  _exit(DAT_0010d260);\n}\n\n" (function_definition "void FUN_001048aa(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  iVar1 = FUN_00107c58(*(undefined8 *)PTR_stdout_0010cfa0);\n  if (iVar1 != 0) {\n    if (DAT_0010d428 != '\0') {\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }\n    uVar3 = dcgettext(0,"write error",5);\n    if (DAT_0010d430 == 0) {\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }\n    else {\n      uVar4 = FUN_001063a2();\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",uVar4,uVar3);\n    }\n                    /* WARNING: Subroutine does not return */\n    _exit(DAT_0010d260);\n  }\nLAB_001048d6:\n  iVar1 = FUN_00107c58(*(undefined8 *)PTR_stderr_0010cff0);\n  if (iVar1 == 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  _exit(DAT_0010d260);\n}" primitive_type (function_declarator "FUN_001048aa(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  iVar1 = FUN_00107c58(*(undefined8 *)PTR_stdout_0010cfa0);\n  if (iVar1 != 0) {\n    if (DAT_0010d428 != '\0') {\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }\n    uVar3 = dcgettext(0,"write error",5);\n    if (DAT_0010d430 == 0) {\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }\n    else {\n      uVar4 = FUN_001063a2();\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",uVar4,uVar3);\n    }\n                    /* WARNING: Subroutine does not return */\n    _exit(DAT_0010d260);\n  }\nLAB_001048d6:\n  iVar1 = FUN_00107c58(*(undefined8 *)PTR_stderr_0010cff0);\n  if (iVar1 == 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  _exit(DAT_0010d260);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (expression_statement "iVar1 = FUN_00107c58(*(undefined8 *)PTR_stdout_0010cfa0);" (assignment_expression "iVar1 = FUN_00107c58(*(undefined8 *)PTR_stdout_0010cfa0)" identifier = (call_expression "FUN_00107c58(*(undefined8 *)PTR_stdout_0010cfa0)" identifier (argument_list "(*(undefined8 *)PTR_stdout_0010cfa0)" ( (pointer_expression "*(undefined8 *)PTR_stdout_0010cfa0" * (cast_expression "(undefined8 *)PTR_stdout_0010cfa0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (if_statement "if (iVar1 != 0) {\n    if (DAT_0010d428 != '\0') {\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }\n    uVar3 = dcgettext(0,"write error",5);\n    if (DAT_0010d430 == 0) {\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }\n    else {\n      uVar4 = FUN_001063a2();\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",uVar4,uVar3);\n    }\n                    /* WARNING: Subroutine does not return */\n    _exit(DAT_0010d260);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (DAT_0010d428 != '\0') {\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }\n    uVar3 = dcgettext(0,"write error",5);\n    if (DAT_0010d430 == 0) {\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }\n    else {\n      uVar4 = FUN_001063a2();\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",uVar4,uVar3);\n    }\n                    /* WARNING: Subroutine does not return */\n    _exit(DAT_0010d260);\n  }" { (if_statement "if (DAT_0010d428 != '\0') {\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }" if (parenthesized_expression "(DAT_0010d428 != '\0')" ( (binary_expression "DAT_0010d428 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*piVar2 == 0x20) goto LAB_001048d6;" if (parenthesized_expression "(*piVar2 == 0x20)" ( (binary_expression "*piVar2 == 0x20" (pointer_expression "*piVar2" * identifier) == number_literal) )) (goto_statement "goto LAB_001048d6;" goto statement_identifier ;)) })) (expression_statement "uVar3 = dcgettext(0,"write error",5);" (assignment_expression "uVar3 = dcgettext(0,"write error",5)" identifier = (call_expression "dcgettext(0,"write error",5)" identifier (argument_list "(0,"write error",5)" ( number_literal , (string_literal ""write error"" " string_content ") , number_literal )))) ;) (if_statement "if (DAT_0010d430 == 0) {\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }\n    else {\n      uVar4 = FUN_001063a2();\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",uVar4,uVar3);\n    }" if (parenthesized_expression "(DAT_0010d430 == 0)" ( (binary_expression "DAT_0010d430 == 0" identifier == number_literal) )) (compound_statement "{\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "error(0,*piVar2,"%s",uVar3);" (call_expression "error(0,*piVar2,"%s",uVar3)" identifier (argument_list "(0,*piVar2,"%s",uVar3)" ( number_literal , (pointer_expression "*piVar2" * identifier) , (string_literal ""%s"" " string_content ") , identifier ))) ;) }) (else_clause "else {\n      uVar4 = FUN_001063a2();\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",uVar4,uVar3);\n    }" else (compound_statement "{\n      uVar4 = FUN_001063a2();\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",uVar4,uVar3);\n    }" { (expression_statement "uVar4 = FUN_001063a2();" (assignment_expression "uVar4 = FUN_001063a2()" identifier = (call_expression "FUN_001063a2()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "error(0,*piVar2,"%s: %s",uVar4,uVar3);" (call_expression "error(0,*piVar2,"%s: %s",uVar4,uVar3)" identifier (argument_list "(0,*piVar2,"%s: %s",uVar4,uVar3)" ( number_literal , (pointer_expression "*piVar2" * identifier) , (string_literal ""%s: %s"" " string_content ") , identifier , identifier ))) ;) }))) comment (expression_statement "_exit(DAT_0010d260);" (call_expression "_exit(DAT_0010d260)" identifier (argument_list "(DAT_0010d260)" ( identifier ))) ;) })) (labeled_statement "LAB_001048d6:\n  iVar1 = FUN_00107c58(*(undefined8 *)PTR_stderr_0010cff0);" statement_identifier : (expression_statement "iVar1 = FUN_00107c58(*(undefined8 *)PTR_stderr_0010cff0);" (assignment_expression "iVar1 = FUN_00107c58(*(undefined8 *)PTR_stderr_0010cff0)" identifier = (call_expression "FUN_00107c58(*(undefined8 *)PTR_stderr_0010cff0)" identifier (argument_list "(*(undefined8 *)PTR_stderr_0010cff0)" ( (pointer_expression "*(undefined8 *)PTR_stderr_0010cff0" * (cast_expression "(undefined8 *)PTR_stderr_0010cff0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;)) (if_statement "if (iVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "_exit(DAT_0010d260);" (call_expression "_exit(DAT_0010d260)" identifier (argument_list "(DAT_0010d260)" ( identifier ))) ;) })))
(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  undefined8 uVar3;\n  char *pcVar4;\n  \n  iVar1 = close_stream(*(FILE **)PTR_stdout_0010cfa0);\n  if (iVar1 != 0) {\n    if (ignore_EPIPE != false) {\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }\n    uVar3 = dcgettext(0,"write error",5);\n    if (file_name == (char *)0x0) {\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }\n    else {\n      pcVar4 = quotearg_colon(file_name);\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",pcVar4,uVar3);\n    }\n                    /* WARNING: Subroutine does not return */\n    _exit(exit_failure);\n  }\nLAB_001048d6:\n  iVar1 = close_stream(*(FILE **)PTR_stderr_0010cff0);\n  if (iVar1 == 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  _exit(exit_failure);\n}\n\n" comment (function_definition "void close_stdout(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  char *pcVar4;\n  \n  iVar1 = close_stream(*(FILE **)PTR_stdout_0010cfa0);\n  if (iVar1 != 0) {\n    if (ignore_EPIPE != false) {\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }\n    uVar3 = dcgettext(0,"write error",5);\n    if (file_name == (char *)0x0) {\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }\n    else {\n      pcVar4 = quotearg_colon(file_name);\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",pcVar4,uVar3);\n    }\n                    /* WARNING: Subroutine does not return */\n    _exit(exit_failure);\n  }\nLAB_001048d6:\n  iVar1 = close_stream(*(FILE **)PTR_stderr_0010cff0);\n  if (iVar1 == 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  _exit(exit_failure);\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  undefined8 uVar3;\n  char *pcVar4;\n  \n  iVar1 = close_stream(*(FILE **)PTR_stdout_0010cfa0);\n  if (iVar1 != 0) {\n    if (ignore_EPIPE != false) {\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }\n    uVar3 = dcgettext(0,"write error",5);\n    if (file_name == (char *)0x0) {\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }\n    else {\n      pcVar4 = quotearg_colon(file_name);\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",pcVar4,uVar3);\n    }\n                    /* WARNING: Subroutine does not return */\n    _exit(exit_failure);\n  }\nLAB_001048d6:\n  iVar1 = close_stream(*(FILE **)PTR_stderr_0010cff0);\n  if (iVar1 == 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  _exit(exit_failure);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (expression_statement "iVar1 = close_stream(*(FILE **)PTR_stdout_0010cfa0);" (assignment_expression "iVar1 = close_stream(*(FILE **)PTR_stdout_0010cfa0)" identifier = (call_expression "close_stream(*(FILE **)PTR_stdout_0010cfa0)" identifier (argument_list "(*(FILE **)PTR_stdout_0010cfa0)" ( (pointer_expression "*(FILE **)PTR_stdout_0010cfa0" * (cast_expression "(FILE **)PTR_stdout_0010cfa0" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) )))) ;) (if_statement "if (iVar1 != 0) {\n    if (ignore_EPIPE != false) {\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }\n    uVar3 = dcgettext(0,"write error",5);\n    if (file_name == (char *)0x0) {\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }\n    else {\n      pcVar4 = quotearg_colon(file_name);\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",pcVar4,uVar3);\n    }\n                    /* WARNING: Subroutine does not return */\n    _exit(exit_failure);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (ignore_EPIPE != false) {\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }\n    uVar3 = dcgettext(0,"write error",5);\n    if (file_name == (char *)0x0) {\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }\n    else {\n      pcVar4 = quotearg_colon(file_name);\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",pcVar4,uVar3);\n    }\n                    /* WARNING: Subroutine does not return */\n    _exit(exit_failure);\n  }" { (if_statement "if (ignore_EPIPE != false) {\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }" if (parenthesized_expression "(ignore_EPIPE != false)" ( (binary_expression "ignore_EPIPE != false" identifier != false) )) (compound_statement "{\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*piVar2 == 0x20) goto LAB_001048d6;" if (parenthesized_expression "(*piVar2 == 0x20)" ( (binary_expression "*piVar2 == 0x20" (pointer_expression "*piVar2" * identifier) == number_literal) )) (goto_statement "goto LAB_001048d6;" goto statement_identifier ;)) })) (expression_statement "uVar3 = dcgettext(0,"write error",5);" (assignment_expression "uVar3 = dcgettext(0,"write error",5)" identifier = (call_expression "dcgettext(0,"write error",5)" identifier (argument_list "(0,"write error",5)" ( number_literal , (string_literal ""write error"" " string_content ") , number_literal )))) ;) (if_statement "if (file_name == (char *)0x0) {\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }\n    else {\n      pcVar4 = quotearg_colon(file_name);\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",pcVar4,uVar3);\n    }" if (parenthesized_expression "(file_name == (char *)0x0)" ( (binary_expression "file_name == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "error(0,*piVar2,"%s",uVar3);" (call_expression "error(0,*piVar2,"%s",uVar3)" identifier (argument_list "(0,*piVar2,"%s",uVar3)" ( number_literal , (pointer_expression "*piVar2" * identifier) , (string_literal ""%s"" " string_content ") , identifier ))) ;) }) (else_clause "else {\n      pcVar4 = quotearg_colon(file_name);\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",pcVar4,uVar3);\n    }" else (compound_statement "{\n      pcVar4 = quotearg_colon(file_name);\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",pcVar4,uVar3);\n    }" { (expression_statement "pcVar4 = quotearg_colon(file_name);" (assignment_expression "pcVar4 = quotearg_colon(file_name)" identifier = (call_expression "quotearg_colon(file_name)" identifier (argument_list "(file_name)" ( identifier )))) ;) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "error(0,*piVar2,"%s: %s",pcVar4,uVar3);" (call_expression "error(0,*piVar2,"%s: %s",pcVar4,uVar3)" identifier (argument_list "(0,*piVar2,"%s: %s",pcVar4,uVar3)" ( number_literal , (pointer_expression "*piVar2" * identifier) , (string_literal ""%s: %s"" " string_content ") , identifier , identifier ))) ;) }))) comment (expression_statement "_exit(exit_failure);" (call_expression "_exit(exit_failure)" identifier (argument_list "(exit_failure)" ( identifier ))) ;) })) (labeled_statement "LAB_001048d6:\n  iVar1 = close_stream(*(FILE **)PTR_stderr_0010cff0);" statement_identifier : (expression_statement "iVar1 = close_stream(*(FILE **)PTR_stderr_0010cff0);" (assignment_expression "iVar1 = close_stream(*(FILE **)PTR_stderr_0010cff0)" identifier = (call_expression "close_stream(*(FILE **)PTR_stderr_0010cff0)" identifier (argument_list "(*(FILE **)PTR_stderr_0010cff0)" ( (pointer_expression "*(FILE **)PTR_stderr_0010cff0" * (cast_expression "(FILE **)PTR_stderr_0010cff0" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) )))) ;)) (if_statement "if (iVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "_exit(exit_failure);" (call_expression "_exit(exit_failure)" identifier (argument_list "(exit_failure)" ( identifier ))) ;) })))
(translation_unit "void FUN_001048aa(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  iVar1 = FUN_00107c58(*(undefined8 *)PTR_stdout_0010cfa0);\n  if (iVar1 != 0) {\n    if (DAT_0010d428 != '\0') {\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }\n    uVar3 = dcgettext(0,"write error",5);\n    if (DAT_0010d430 == 0) {\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }\n    else {\n      uVar4 = FUN_001063a2();\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",uVar4,uVar3);\n    }\n                    \n    _exit(DAT_0010d260);\n  }\nLAB_001048d6:\n  iVar1 = FUN_00107c58(*(undefined8 *)PTR_stderr_0010cff0);\n  if (iVar1 == 0) {\n    return;\n  }\n                    \n  _exit(DAT_0010d260);\n}\n\n" (function_definition "void FUN_001048aa(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  iVar1 = FUN_00107c58(*(undefined8 *)PTR_stdout_0010cfa0);\n  if (iVar1 != 0) {\n    if (DAT_0010d428 != '\0') {\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }\n    uVar3 = dcgettext(0,"write error",5);\n    if (DAT_0010d430 == 0) {\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }\n    else {\n      uVar4 = FUN_001063a2();\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",uVar4,uVar3);\n    }\n                    \n    _exit(DAT_0010d260);\n  }\nLAB_001048d6:\n  iVar1 = FUN_00107c58(*(undefined8 *)PTR_stderr_0010cff0);\n  if (iVar1 == 0) {\n    return;\n  }\n                    \n  _exit(DAT_0010d260);\n}" primitive_type (function_declarator "FUN_001048aa(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  iVar1 = FUN_00107c58(*(undefined8 *)PTR_stdout_0010cfa0);\n  if (iVar1 != 0) {\n    if (DAT_0010d428 != '\0') {\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }\n    uVar3 = dcgettext(0,"write error",5);\n    if (DAT_0010d430 == 0) {\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }\n    else {\n      uVar4 = FUN_001063a2();\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",uVar4,uVar3);\n    }\n                    \n    _exit(DAT_0010d260);\n  }\nLAB_001048d6:\n  iVar1 = FUN_00107c58(*(undefined8 *)PTR_stderr_0010cff0);\n  if (iVar1 == 0) {\n    return;\n  }\n                    \n  _exit(DAT_0010d260);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (expression_statement "iVar1 = FUN_00107c58(*(undefined8 *)PTR_stdout_0010cfa0);" (assignment_expression "iVar1 = FUN_00107c58(*(undefined8 *)PTR_stdout_0010cfa0)" identifier = (call_expression "FUN_00107c58(*(undefined8 *)PTR_stdout_0010cfa0)" identifier (argument_list "(*(undefined8 *)PTR_stdout_0010cfa0)" ( (pointer_expression "*(undefined8 *)PTR_stdout_0010cfa0" * (cast_expression "(undefined8 *)PTR_stdout_0010cfa0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (if_statement "if (iVar1 != 0) {\n    if (DAT_0010d428 != '\0') {\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }\n    uVar3 = dcgettext(0,"write error",5);\n    if (DAT_0010d430 == 0) {\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }\n    else {\n      uVar4 = FUN_001063a2();\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",uVar4,uVar3);\n    }\n                    \n    _exit(DAT_0010d260);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (DAT_0010d428 != '\0') {\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }\n    uVar3 = dcgettext(0,"write error",5);\n    if (DAT_0010d430 == 0) {\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }\n    else {\n      uVar4 = FUN_001063a2();\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",uVar4,uVar3);\n    }\n                    \n    _exit(DAT_0010d260);\n  }" { (if_statement "if (DAT_0010d428 != '\0') {\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }" if (parenthesized_expression "(DAT_0010d428 != '\0')" ( (binary_expression "DAT_0010d428 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*piVar2 == 0x20) goto LAB_001048d6;" if (parenthesized_expression "(*piVar2 == 0x20)" ( (binary_expression "*piVar2 == 0x20" (pointer_expression "*piVar2" * identifier) == number_literal) )) (goto_statement "goto LAB_001048d6;" goto statement_identifier ;)) })) (expression_statement "uVar3 = dcgettext(0,"write error",5);" (assignment_expression "uVar3 = dcgettext(0,"write error",5)" identifier = (call_expression "dcgettext(0,"write error",5)" identifier (argument_list "(0,"write error",5)" ( number_literal , (string_literal ""write error"" " string_content ") , number_literal )))) ;) (if_statement "if (DAT_0010d430 == 0) {\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }\n    else {\n      uVar4 = FUN_001063a2();\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",uVar4,uVar3);\n    }" if (parenthesized_expression "(DAT_0010d430 == 0)" ( (binary_expression "DAT_0010d430 == 0" identifier == number_literal) )) (compound_statement "{\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "error(0,*piVar2,"%s",uVar3);" (call_expression "error(0,*piVar2,"%s",uVar3)" identifier (argument_list "(0,*piVar2,"%s",uVar3)" ( number_literal , (pointer_expression "*piVar2" * identifier) , (string_literal ""%s"" " string_content ") , identifier ))) ;) }) (else_clause "else {\n      uVar4 = FUN_001063a2();\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",uVar4,uVar3);\n    }" else (compound_statement "{\n      uVar4 = FUN_001063a2();\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",uVar4,uVar3);\n    }" { (expression_statement "uVar4 = FUN_001063a2();" (assignment_expression "uVar4 = FUN_001063a2()" identifier = (call_expression "FUN_001063a2()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "error(0,*piVar2,"%s: %s",uVar4,uVar3);" (call_expression "error(0,*piVar2,"%s: %s",uVar4,uVar3)" identifier (argument_list "(0,*piVar2,"%s: %s",uVar4,uVar3)" ( number_literal , (pointer_expression "*piVar2" * identifier) , (string_literal ""%s: %s"" " string_content ") , identifier , identifier ))) ;) }))) (expression_statement "_exit(DAT_0010d260);" (call_expression "_exit(DAT_0010d260)" identifier (argument_list "(DAT_0010d260)" ( identifier ))) ;) })) (labeled_statement "LAB_001048d6:\n  iVar1 = FUN_00107c58(*(undefined8 *)PTR_stderr_0010cff0);" statement_identifier : (expression_statement "iVar1 = FUN_00107c58(*(undefined8 *)PTR_stderr_0010cff0);" (assignment_expression "iVar1 = FUN_00107c58(*(undefined8 *)PTR_stderr_0010cff0)" identifier = (call_expression "FUN_00107c58(*(undefined8 *)PTR_stderr_0010cff0)" identifier (argument_list "(*(undefined8 *)PTR_stderr_0010cff0)" ( (pointer_expression "*(undefined8 *)PTR_stderr_0010cff0" * (cast_expression "(undefined8 *)PTR_stderr_0010cff0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;)) (if_statement "if (iVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "_exit(DAT_0010d260);" (call_expression "_exit(DAT_0010d260)" identifier (argument_list "(DAT_0010d260)" ( identifier ))) ;) })))
(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 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 IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression * IDENT) , (string_literal " string_content ") , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression * IDENT) , (string_literal " string_content ") , IDENT , IDENT ))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (labeled_statement statement_identifier : (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 { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })))
(function_definition "void FUN_001048aa(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  iVar1 = FUN_00107c58(*(undefined8 *)PTR_stdout_0010cfa0);\n  if (iVar1 != 0) {\n    if (DAT_0010d428 != '\0') {\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }\n    uVar3 = dcgettext(0,"write error",5);\n    if (DAT_0010d430 == 0) {\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }\n    else {\n      uVar4 = FUN_001063a2();\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",uVar4,uVar3);\n    }\n                    \n    _exit(DAT_0010d260);\n  }\nLAB_001048d6:\n  iVar1 = FUN_00107c58(*(undefined8 *)PTR_stderr_0010cff0);\n  if (iVar1 == 0) {\n    return;\n  }\n                    \n  _exit(DAT_0010d260);\n}" (primitive_type "void") (function_declarator "FUN_001048aa(void)" (identifier "FUN_001048aa") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  iVar1 = FUN_00107c58(*(undefined8 *)PTR_stdout_0010cfa0);\n  if (iVar1 != 0) {\n    if (DAT_0010d428 != '\0') {\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }\n    uVar3 = dcgettext(0,"write error",5);\n    if (DAT_0010d430 == 0) {\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }\n    else {\n      uVar4 = FUN_001063a2();\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",uVar4,uVar3);\n    }\n                    \n    _exit(DAT_0010d260);\n  }\nLAB_001048d6:\n  iVar1 = FUN_00107c58(*(undefined8 *)PTR_stderr_0010cff0);\n  if (iVar1 == 0) {\n    return;\n  }\n                    \n  _exit(DAT_0010d260);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (expression_statement "iVar1 = FUN_00107c58(*(undefined8 *)PTR_stdout_0010cfa0);" (assignment_expression "iVar1 = FUN_00107c58(*(undefined8 *)PTR_stdout_0010cfa0)" (identifier "iVar1") (= "=") (call_expression "FUN_00107c58(*(undefined8 *)PTR_stdout_0010cfa0)" (identifier "FUN_00107c58") (argument_list "(*(undefined8 *)PTR_stdout_0010cfa0)" (( "(") (pointer_expression "*(undefined8 *)PTR_stdout_0010cfa0" (* "*") (cast_expression "(undefined8 *)PTR_stdout_0010cfa0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stdout_0010cfa0"))) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    if (DAT_0010d428 != '\0') {\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }\n    uVar3 = dcgettext(0,"write error",5);\n    if (DAT_0010d430 == 0) {\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }\n    else {\n      uVar4 = FUN_001063a2();\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",uVar4,uVar3);\n    }\n                    \n    _exit(DAT_0010d260);\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (DAT_0010d428 != '\0') {\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }\n    uVar3 = dcgettext(0,"write error",5);\n    if (DAT_0010d430 == 0) {\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }\n    else {\n      uVar4 = FUN_001063a2();\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",uVar4,uVar3);\n    }\n                    \n    _exit(DAT_0010d260);\n  }" ({ "{") (if_statement "if (DAT_0010d428 != '\0') {\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }" (if "if") (parenthesized_expression "(DAT_0010d428 != '\0')" (( "(") (binary_expression "DAT_0010d428 != '\0'" (identifier "DAT_0010d428") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      piVar2 = __errno_location();\n      if (*piVar2 == 0x20) goto LAB_001048d6;\n    }" ({ "{") (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (*piVar2 == 0x20) goto LAB_001048d6;" (if "if") (parenthesized_expression "(*piVar2 == 0x20)" (( "(") (binary_expression "*piVar2 == 0x20" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (== "==") (number_literal "0x20")) () ")")) (goto_statement "goto LAB_001048d6;" (goto "goto") (statement_identifier "LAB_001048d6") (; ";"))) (} "}"))) (expression_statement "uVar3 = dcgettext(0,"write error",5);" (assignment_expression "uVar3 = dcgettext(0,"write error",5)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,"write error",5)" (identifier "dcgettext") (argument_list "(0,"write error",5)" (( "(") (number_literal "0") (, ",") (string_literal ""write error"" (" """) (string_content "write error") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (if_statement "if (DAT_0010d430 == 0) {\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }\n    else {\n      uVar4 = FUN_001063a2();\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",uVar4,uVar3);\n    }" (if "if") (parenthesized_expression "(DAT_0010d430 == 0)" (( "(") (binary_expression "DAT_0010d430 == 0" (identifier "DAT_0010d430") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s",uVar3);\n    }" ({ "{") (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "error(0,*piVar2,"%s",uVar3);" (call_expression "error(0,*piVar2,"%s",uVar3)" (identifier "error") (argument_list "(0,*piVar2,"%s",uVar3)" (( "(") (number_literal "0") (, ",") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (, ",") (string_literal ""%s"" (" """) (string_content "%s") (" """)) (, ",") (identifier "uVar3") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      uVar4 = FUN_001063a2();\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",uVar4,uVar3);\n    }" (else "else") (compound_statement "{\n      uVar4 = FUN_001063a2();\n      piVar2 = __errno_location();\n      error(0,*piVar2,"%s: %s",uVar4,uVar3);\n    }" ({ "{") (expression_statement "uVar4 = FUN_001063a2();" (assignment_expression "uVar4 = FUN_001063a2()" (identifier "uVar4") (= "=") (call_expression "FUN_001063a2()" (identifier "FUN_001063a2") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "error(0,*piVar2,"%s: %s",uVar4,uVar3);" (call_expression "error(0,*piVar2,"%s: %s",uVar4,uVar3)" (identifier "error") (argument_list "(0,*piVar2,"%s: %s",uVar4,uVar3)" (( "(") (number_literal "0") (, ",") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (, ",") (string_literal ""%s: %s"" (" """) (string_content "%s: %s") (" """)) (, ",") (identifier "uVar4") (, ",") (identifier "uVar3") () ")"))) (; ";")) (} "}")))) (expression_statement "_exit(DAT_0010d260);" (call_expression "_exit(DAT_0010d260)" (identifier "_exit") (argument_list "(DAT_0010d260)" (( "(") (identifier "DAT_0010d260") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_001048d6:\n  iVar1 = FUN_00107c58(*(undefined8 *)PTR_stderr_0010cff0);" (statement_identifier "LAB_001048d6") (: ":") (expression_statement "iVar1 = FUN_00107c58(*(undefined8 *)PTR_stderr_0010cff0);" (assignment_expression "iVar1 = FUN_00107c58(*(undefined8 *)PTR_stderr_0010cff0)" (identifier "iVar1") (= "=") (call_expression "FUN_00107c58(*(undefined8 *)PTR_stderr_0010cff0)" (identifier "FUN_00107c58") (argument_list "(*(undefined8 *)PTR_stderr_0010cff0)" (( "(") (pointer_expression "*(undefined8 *)PTR_stderr_0010cff0" (* "*") (cast_expression "(undefined8 *)PTR_stderr_0010cff0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stderr_0010cff0"))) () ")")))) (; ";"))) (if_statement "if (iVar1 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "_exit(DAT_0010d260);" (call_expression "_exit(DAT_0010d260)" (identifier "_exit") (argument_list "(DAT_0010d260)" (( "(") (identifier "DAT_0010d260") () ")"))) (; ";")) (} "}")))

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

void function_1(void)

{
  int var_2;
  int *piVar2;
  type_1 uVar3;
  char *pcVar4;
  
  var_2 = var_1(*(type_2 **)PTR_stdout_0010cfa0);
  if (var_2 != 0) {
    if (var_3 != false) {
      piVar2 = var_4();
      if (*piVar2 == 0x20) goto LAB_001048d6;
    }
    uVar3 = var_5(0,"write error",5);
    if (var_6 == (char *)0x0) {
      piVar2 = var_4();
      var_7(0,*piVar2,"%s",uVar3);
    }
    else {
      pcVar4 = var_8(var_6);
      piVar2 = var_4();
      var_7(0,*piVar2,"%s: %s",pcVar4,uVar3);
    }
                    /* WARNING: Subroutine does not return */
    var_9(exit_failure);
  }
LAB_001048d6:
  var_2 = var_1(*(type_2 **)PTR_stderr_0010cff0);
  if (var_2 == 0) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_9(exit_failure);
}


(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: (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: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (pointer_expression argument: (identifier)) (string_literal (string_content)) (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (pointer_expression argument: (identifier)) (string_literal (string_content)) (identifier) (identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (labeled_statement label: (statement_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: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))))

void MASKED(void)

{
  int iVar1;
  int *piVar2;
  undefined8 uVar3;
  undefined8 uVar4;
  
  iVar1 = FUN_00107c58(*(undefined8 *)PTR_stdout_0010cfa0);
  if (iVar1 != 0) {
    if (DAT_0010d428 != '\0') {
      piVar2 = __errno_location();
      if (*piVar2 == 0x20) goto LAB_001048d6;
    }
    uVar3 = dcgettext(0,"write error",5);
    if (DAT_0010d430 == 0) {
      piVar2 = __errno_location();
      error(0,*piVar2,"%s",uVar3);
    }
    else {
      uVar4 = FUN_001063a2();
      piVar2 = __errno_location();
      error(0,*piVar2,"%s: %s",uVar4,uVar3);
    }
                    /* WARNING: Subroutine does not return */
    _exit(DAT_0010d260);
  }
LAB_001048d6:
  iVar1 = FUN_00107c58(*(undefined8 *)PTR_stderr_0010cff0);
  if (iVar1 == 0) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  _exit(DAT_0010d260);
}

