
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

char * input_file_give_next_buffer(char *where)

{
  char *pcVar1;
  size_t sVar2;
  FILE *pFVar3;
  int iVar4;
  int *piVar5;
  undefined4 uVar6;
  char *format;
  
  pFVar3 = f_in;
  if (f_in != (FILE *)0x0) {
    if (preprocess == 0) {
      sVar2 = input_file_get(where,0x8000);
    }
    else {
      sVar2 = do_scrub_chars(input_file_get,where,0x8000);
    }
    if (sVar2 == 0) {
      iVar4 = fclose((FILE *)f_in);
      if (iVar4 != 0) {
        piVar5 = __errno_location();
        uVar6 = xstrerror(*piVar5);
        pcVar1 = file_name;
        format = (char *)dcgettext(0,"can\'t close %s: %s",5);
        as_warn(format,pcVar1,uVar6);
      }
      f_in = (FILE *)0x0;
      return (char *)0x0;
    }
    pFVar3 = (FILE *)(where + sVar2);
  }
  return (char *)pFVar3;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

FILE * FUN_00025b80(int param_1)

{
  undefined4 uVar1;
  int iVar2;
  FILE *pFVar3;
  int *piVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  
  pFVar3 = DAT_00088a14;
  if (DAT_00088a14 != (FILE *)0x0) {
    if (DAT_00088a0c == 0) {
      iVar2 = FUN_00025650(param_1,0x8000);
    }
    else {
      iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);
    }
    if (iVar2 == 0) {
      iVar2 = fclose(DAT_00088a14);
      if (iVar2 != 0) {
        piVar4 = __errno_location();
        uVar5 = xstrerror(*piVar4);
        uVar1 = DAT_00088a10;
        uVar6 = dcgettext(0,"can\'t close %s: %s",5);
        FUN_0002bc80(uVar6,uVar1,uVar5);
      }
      DAT_00088a14 = (FILE *)0x0;
      return (FILE *)0x0;
    }
    pFVar3 = (FILE *)(iVar2 + param_1);
  }
  return pFVar3;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x00016000
ADD EBX,0x5a474
MOV EAX,dword ptr [EBX + 0x8a14]
TEST EAX,EAX
JZ 0x00025bbd
MOV EAX,dword ptr [EBX + 0x8a0c]
TEST EAX,EAX
JNZ 0x00025bc8
SUB ESP,0x8
PUSH 0x8000
PUSH ESI
CALL 0x00025650
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00025be4
ADD EAX,ESI
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffa5650]
PUSH 0x8000
PUSH ESI
PUSH EAX
CALL 0x00016450
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00025bbb
SUB ESP,0xc
PUSH dword ptr [EBX + 0x8a14]
CALL 0x00014130
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00025c10
MOV dword ptr [EBX + 0x8a14],0x0
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
RET
CALL 0x000144e0
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x00014620
ADD ESP,0xc
MOV ESI,dword ptr [EBX + 0x8a10]
MOV EDI,EAX
LEA EAX,[EBX + 0xfffdeba7]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000141a0
ADD ESP,0xc
PUSH EDI
PUSH ESI
PUSH EAX
CALL 0x0002bc80
ADD ESP,0x10
JMP 0x00025bf9
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nFILE * FUN_00025b80(int param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  FILE *pFVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  pFVar3 = DAT_00088a14;\n  if (DAT_00088a14 != (FILE *)0x0) {\n    if (DAT_00088a0c == 0) {\n      iVar2 = FUN_00025650(param_1,0x8000);\n    }\n    else {\n      iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);\n    }\n    if (iVar2 == 0) {\n      iVar2 = fclose(DAT_00088a14);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n        uVar5 = xstrerror(*piVar4);\n        uVar1 = DAT_00088a10;\n        uVar6 = dcgettext(0,"can\'t close %s: %s",5);\n        FUN_0002bc80(uVar6,uVar1,uVar5);\n      }\n      DAT_00088a14 = (FILE *)0x0;\n      return (FILE *)0x0;\n    }\n    pFVar3 = (FILE *)(iVar2 + param_1);\n  }\n  return pFVar3;\n}\n\n" comment (function_definition "FILE * FUN_00025b80(int param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  FILE *pFVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  pFVar3 = DAT_00088a14;\n  if (DAT_00088a14 != (FILE *)0x0) {\n    if (DAT_00088a0c == 0) {\n      iVar2 = FUN_00025650(param_1,0x8000);\n    }\n    else {\n      iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);\n    }\n    if (iVar2 == 0) {\n      iVar2 = fclose(DAT_00088a14);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n        uVar5 = xstrerror(*piVar4);\n        uVar1 = DAT_00088a10;\n        uVar6 = dcgettext(0,"can\'t close %s: %s",5);\n        FUN_0002bc80(uVar6,uVar1,uVar5);\n      }\n      DAT_00088a14 = (FILE *)0x0;\n      return (FILE *)0x0;\n    }\n    pFVar3 = (FILE *)(iVar2 + param_1);\n  }\n  return pFVar3;\n}" type_identifier (pointer_declarator "* FUN_00025b80(int param_1)" * (function_declarator "FUN_00025b80(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  FILE *pFVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  pFVar3 = DAT_00088a14;\n  if (DAT_00088a14 != (FILE *)0x0) {\n    if (DAT_00088a0c == 0) {\n      iVar2 = FUN_00025650(param_1,0x8000);\n    }\n    else {\n      iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);\n    }\n    if (iVar2 == 0) {\n      iVar2 = fclose(DAT_00088a14);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n        uVar5 = xstrerror(*piVar4);\n        uVar1 = DAT_00088a10;\n        uVar6 = dcgettext(0,"can\'t close %s: %s",5);\n        FUN_0002bc80(uVar6,uVar1,uVar5);\n      }\n      DAT_00088a14 = (FILE *)0x0;\n      return (FILE *)0x0;\n    }\n    pFVar3 = (FILE *)(iVar2 + param_1);\n  }\n  return pFVar3;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "FILE *pFVar3;" type_identifier (pointer_declarator "*pFVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "pFVar3 = DAT_00088a14;" (assignment_expression "pFVar3 = DAT_00088a14" identifier = identifier) ;) (if_statement "if (DAT_00088a14 != (FILE *)0x0) {\n    if (DAT_00088a0c == 0) {\n      iVar2 = FUN_00025650(param_1,0x8000);\n    }\n    else {\n      iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);\n    }\n    if (iVar2 == 0) {\n      iVar2 = fclose(DAT_00088a14);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n        uVar5 = xstrerror(*piVar4);\n        uVar1 = DAT_00088a10;\n        uVar6 = dcgettext(0,"can\'t close %s: %s",5);\n        FUN_0002bc80(uVar6,uVar1,uVar5);\n      }\n      DAT_00088a14 = (FILE *)0x0;\n      return (FILE *)0x0;\n    }\n    pFVar3 = (FILE *)(iVar2 + param_1);\n  }" if (parenthesized_expression "(DAT_00088a14 != (FILE *)0x0)" ( (binary_expression "DAT_00088a14 != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (DAT_00088a0c == 0) {\n      iVar2 = FUN_00025650(param_1,0x8000);\n    }\n    else {\n      iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);\n    }\n    if (iVar2 == 0) {\n      iVar2 = fclose(DAT_00088a14);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n        uVar5 = xstrerror(*piVar4);\n        uVar1 = DAT_00088a10;\n        uVar6 = dcgettext(0,"can\'t close %s: %s",5);\n        FUN_0002bc80(uVar6,uVar1,uVar5);\n      }\n      DAT_00088a14 = (FILE *)0x0;\n      return (FILE *)0x0;\n    }\n    pFVar3 = (FILE *)(iVar2 + param_1);\n  }" { (if_statement "if (DAT_00088a0c == 0) {\n      iVar2 = FUN_00025650(param_1,0x8000);\n    }\n    else {\n      iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);\n    }" if (parenthesized_expression "(DAT_00088a0c == 0)" ( (binary_expression "DAT_00088a0c == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = FUN_00025650(param_1,0x8000);\n    }" { (expression_statement "iVar2 = FUN_00025650(param_1,0x8000);" (assignment_expression "iVar2 = FUN_00025650(param_1,0x8000)" identifier = (call_expression "FUN_00025650(param_1,0x8000)" identifier (argument_list "(param_1,0x8000)" ( identifier , number_literal )))) ;) }) (else_clause "else {\n      iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);\n    }" else (compound_statement "{\n      iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);\n    }" { (expression_statement "iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);" (assignment_expression "iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000)" identifier = (call_expression "FUN_00016450(FUN_00025650,param_1,0x8000)" identifier (argument_list "(FUN_00025650,param_1,0x8000)" ( identifier , identifier , number_literal )))) ;) }))) (if_statement "if (iVar2 == 0) {\n      iVar2 = fclose(DAT_00088a14);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n        uVar5 = xstrerror(*piVar4);\n        uVar1 = DAT_00088a10;\n        uVar6 = dcgettext(0,"can\'t close %s: %s",5);\n        FUN_0002bc80(uVar6,uVar1,uVar5);\n      }\n      DAT_00088a14 = (FILE *)0x0;\n      return (FILE *)0x0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = fclose(DAT_00088a14);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n        uVar5 = xstrerror(*piVar4);\n        uVar1 = DAT_00088a10;\n        uVar6 = dcgettext(0,"can\'t close %s: %s",5);\n        FUN_0002bc80(uVar6,uVar1,uVar5);\n      }\n      DAT_00088a14 = (FILE *)0x0;\n      return (FILE *)0x0;\n    }" { (expression_statement "iVar2 = fclose(DAT_00088a14);" (assignment_expression "iVar2 = fclose(DAT_00088a14)" identifier = (call_expression "fclose(DAT_00088a14)" identifier (argument_list "(DAT_00088a14)" ( identifier )))) ;) (if_statement "if (iVar2 != 0) {\n        piVar4 = __errno_location();\n        uVar5 = xstrerror(*piVar4);\n        uVar1 = DAT_00088a10;\n        uVar6 = dcgettext(0,"can\'t close %s: %s",5);\n        FUN_0002bc80(uVar6,uVar1,uVar5);\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar4 = __errno_location();\n        uVar5 = xstrerror(*piVar4);\n        uVar1 = DAT_00088a10;\n        uVar6 = dcgettext(0,"can\'t close %s: %s",5);\n        FUN_0002bc80(uVar6,uVar1,uVar5);\n      }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar5 = xstrerror(*piVar4);" (assignment_expression "uVar5 = xstrerror(*piVar4)" identifier = (call_expression "xstrerror(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "uVar1 = DAT_00088a10;" (assignment_expression "uVar1 = DAT_00088a10" identifier = identifier) ;) (expression_statement "uVar6 = dcgettext(0,"can\'t close %s: %s",5);" (assignment_expression "uVar6 = dcgettext(0,"can\'t close %s: %s",5)" identifier = (call_expression "dcgettext(0,"can\'t close %s: %s",5)" identifier (argument_list "(0,"can\'t close %s: %s",5)" ( number_literal , (string_literal ""can\'t close %s: %s"" " string_content escape_sequence string_content ") , number_literal )))) ;) (expression_statement "FUN_0002bc80(uVar6,uVar1,uVar5);" (call_expression "FUN_0002bc80(uVar6,uVar1,uVar5)" identifier (argument_list "(uVar6,uVar1,uVar5)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "DAT_00088a14 = (FILE *)0x0;" (assignment_expression "DAT_00088a14 = (FILE *)0x0" identifier = (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return (FILE *)0x0;" return (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "pFVar3 = (FILE *)(iVar2 + param_1);" (assignment_expression "pFVar3 = (FILE *)(iVar2 + param_1)" identifier = (cast_expression "(FILE *)(iVar2 + param_1)" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + param_1)" ( (binary_expression "iVar2 + param_1" identifier + identifier) )))) ;) })) (return_statement "return pFVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * input_file_give_next_buffer(char *where)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  FILE *pFVar3;\n  int iVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  char *format;\n  \n  pFVar3 = f_in;\n  if (f_in != (FILE *)0x0) {\n    if (preprocess == 0) {\n      sVar2 = input_file_get(where,0x8000);\n    }\n    else {\n      sVar2 = do_scrub_chars(input_file_get,where,0x8000);\n    }\n    if (sVar2 == 0) {\n      iVar4 = fclose((FILE *)f_in);\n      if (iVar4 != 0) {\n        piVar5 = __errno_location();\n        uVar6 = xstrerror(*piVar5);\n        pcVar1 = file_name;\n        format = (char *)dcgettext(0,"can\'t close %s: %s",5);\n        as_warn(format,pcVar1,uVar6);\n      }\n      f_in = (FILE *)0x0;\n      return (char *)0x0;\n    }\n    pFVar3 = (FILE *)(where + sVar2);\n  }\n  return (char *)pFVar3;\n}\n\n" comment (function_definition "char * input_file_give_next_buffer(char *where)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  FILE *pFVar3;\n  int iVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  char *format;\n  \n  pFVar3 = f_in;\n  if (f_in != (FILE *)0x0) {\n    if (preprocess == 0) {\n      sVar2 = input_file_get(where,0x8000);\n    }\n    else {\n      sVar2 = do_scrub_chars(input_file_get,where,0x8000);\n    }\n    if (sVar2 == 0) {\n      iVar4 = fclose((FILE *)f_in);\n      if (iVar4 != 0) {\n        piVar5 = __errno_location();\n        uVar6 = xstrerror(*piVar5);\n        pcVar1 = file_name;\n        format = (char *)dcgettext(0,"can\'t close %s: %s",5);\n        as_warn(format,pcVar1,uVar6);\n      }\n      f_in = (FILE *)0x0;\n      return (char *)0x0;\n    }\n    pFVar3 = (FILE *)(where + sVar2);\n  }\n  return (char *)pFVar3;\n}" primitive_type (pointer_declarator "* input_file_give_next_buffer(char *where)" * (function_declarator "input_file_give_next_buffer(char *where)" identifier (parameter_list "(char *where)" ( (parameter_declaration "char *where" primitive_type (pointer_declarator "*where" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  size_t sVar2;\n  FILE *pFVar3;\n  int iVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  char *format;\n  \n  pFVar3 = f_in;\n  if (f_in != (FILE *)0x0) {\n    if (preprocess == 0) {\n      sVar2 = input_file_get(where,0x8000);\n    }\n    else {\n      sVar2 = do_scrub_chars(input_file_get,where,0x8000);\n    }\n    if (sVar2 == 0) {\n      iVar4 = fclose((FILE *)f_in);\n      if (iVar4 != 0) {\n        piVar5 = __errno_location();\n        uVar6 = xstrerror(*piVar5);\n        pcVar1 = file_name;\n        format = (char *)dcgettext(0,"can\'t close %s: %s",5);\n        as_warn(format,pcVar1,uVar6);\n      }\n      f_in = (FILE *)0x0;\n      return (char *)0x0;\n    }\n    pFVar3 = (FILE *)(where + sVar2);\n  }\n  return (char *)pFVar3;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "FILE *pFVar3;" type_identifier (pointer_declarator "*pFVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (expression_statement "pFVar3 = f_in;" (assignment_expression "pFVar3 = f_in" identifier = identifier) ;) (if_statement "if (f_in != (FILE *)0x0) {\n    if (preprocess == 0) {\n      sVar2 = input_file_get(where,0x8000);\n    }\n    else {\n      sVar2 = do_scrub_chars(input_file_get,where,0x8000);\n    }\n    if (sVar2 == 0) {\n      iVar4 = fclose((FILE *)f_in);\n      if (iVar4 != 0) {\n        piVar5 = __errno_location();\n        uVar6 = xstrerror(*piVar5);\n        pcVar1 = file_name;\n        format = (char *)dcgettext(0,"can\'t close %s: %s",5);\n        as_warn(format,pcVar1,uVar6);\n      }\n      f_in = (FILE *)0x0;\n      return (char *)0x0;\n    }\n    pFVar3 = (FILE *)(where + sVar2);\n  }" if (parenthesized_expression "(f_in != (FILE *)0x0)" ( (binary_expression "f_in != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (preprocess == 0) {\n      sVar2 = input_file_get(where,0x8000);\n    }\n    else {\n      sVar2 = do_scrub_chars(input_file_get,where,0x8000);\n    }\n    if (sVar2 == 0) {\n      iVar4 = fclose((FILE *)f_in);\n      if (iVar4 != 0) {\n        piVar5 = __errno_location();\n        uVar6 = xstrerror(*piVar5);\n        pcVar1 = file_name;\n        format = (char *)dcgettext(0,"can\'t close %s: %s",5);\n        as_warn(format,pcVar1,uVar6);\n      }\n      f_in = (FILE *)0x0;\n      return (char *)0x0;\n    }\n    pFVar3 = (FILE *)(where + sVar2);\n  }" { (if_statement "if (preprocess == 0) {\n      sVar2 = input_file_get(where,0x8000);\n    }\n    else {\n      sVar2 = do_scrub_chars(input_file_get,where,0x8000);\n    }" if (parenthesized_expression "(preprocess == 0)" ( (binary_expression "preprocess == 0" identifier == number_literal) )) (compound_statement "{\n      sVar2 = input_file_get(where,0x8000);\n    }" { (expression_statement "sVar2 = input_file_get(where,0x8000);" (assignment_expression "sVar2 = input_file_get(where,0x8000)" identifier = (call_expression "input_file_get(where,0x8000)" identifier (argument_list "(where,0x8000)" ( identifier , number_literal )))) ;) }) (else_clause "else {\n      sVar2 = do_scrub_chars(input_file_get,where,0x8000);\n    }" else (compound_statement "{\n      sVar2 = do_scrub_chars(input_file_get,where,0x8000);\n    }" { (expression_statement "sVar2 = do_scrub_chars(input_file_get,where,0x8000);" (assignment_expression "sVar2 = do_scrub_chars(input_file_get,where,0x8000)" identifier = (call_expression "do_scrub_chars(input_file_get,where,0x8000)" identifier (argument_list "(input_file_get,where,0x8000)" ( identifier , identifier , number_literal )))) ;) }))) (if_statement "if (sVar2 == 0) {\n      iVar4 = fclose((FILE *)f_in);\n      if (iVar4 != 0) {\n        piVar5 = __errno_location();\n        uVar6 = xstrerror(*piVar5);\n        pcVar1 = file_name;\n        format = (char *)dcgettext(0,"can\'t close %s: %s",5);\n        as_warn(format,pcVar1,uVar6);\n      }\n      f_in = (FILE *)0x0;\n      return (char *)0x0;\n    }" if (parenthesized_expression "(sVar2 == 0)" ( (binary_expression "sVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar4 = fclose((FILE *)f_in);\n      if (iVar4 != 0) {\n        piVar5 = __errno_location();\n        uVar6 = xstrerror(*piVar5);\n        pcVar1 = file_name;\n        format = (char *)dcgettext(0,"can\'t close %s: %s",5);\n        as_warn(format,pcVar1,uVar6);\n      }\n      f_in = (FILE *)0x0;\n      return (char *)0x0;\n    }" { (expression_statement "iVar4 = fclose((FILE *)f_in);" (assignment_expression "iVar4 = fclose((FILE *)f_in)" identifier = (call_expression "fclose((FILE *)f_in)" identifier (argument_list "((FILE *)f_in)" ( (cast_expression "(FILE *)f_in" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (iVar4 != 0) {\n        piVar5 = __errno_location();\n        uVar6 = xstrerror(*piVar5);\n        pcVar1 = file_name;\n        format = (char *)dcgettext(0,"can\'t close %s: %s",5);\n        as_warn(format,pcVar1,uVar6);\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar5 = __errno_location();\n        uVar6 = xstrerror(*piVar5);\n        pcVar1 = file_name;\n        format = (char *)dcgettext(0,"can\'t close %s: %s",5);\n        as_warn(format,pcVar1,uVar6);\n      }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar6 = xstrerror(*piVar5);" (assignment_expression "uVar6 = xstrerror(*piVar5)" identifier = (call_expression "xstrerror(*piVar5)" identifier (argument_list "(*piVar5)" ( (pointer_expression "*piVar5" * identifier) )))) ;) (expression_statement "pcVar1 = file_name;" (assignment_expression "pcVar1 = file_name" identifier = identifier) ;) (expression_statement "format = (char *)dcgettext(0,"can\'t close %s: %s",5);" (assignment_expression "format = (char *)dcgettext(0,"can\'t close %s: %s",5)" identifier = (cast_expression "(char *)dcgettext(0,"can\'t close %s: %s",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"can\'t close %s: %s",5)" identifier (argument_list "(0,"can\'t close %s: %s",5)" ( number_literal , (string_literal ""can\'t close %s: %s"" " string_content escape_sequence string_content ") , number_literal ))))) ;) (expression_statement "as_warn(format,pcVar1,uVar6);" (call_expression "as_warn(format,pcVar1,uVar6)" identifier (argument_list "(format,pcVar1,uVar6)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "f_in = (FILE *)0x0;" (assignment_expression "f_in = (FILE *)0x0" identifier = (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "pFVar3 = (FILE *)(where + sVar2);" (assignment_expression "pFVar3 = (FILE *)(where + sVar2)" identifier = (cast_expression "(FILE *)(where + sVar2)" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(where + sVar2)" ( (binary_expression "where + sVar2" identifier + identifier) )))) ;) })) (return_statement "return (char *)pFVar3;" return (cast_expression "(char *)pFVar3" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ;) })))
(translation_unit "FILE * FUN_00025b80(int param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  FILE *pFVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  pFVar3 = DAT_00088a14;\n  if (DAT_00088a14 != (FILE *)0x0) {\n    if (DAT_00088a0c == 0) {\n      iVar2 = FUN_00025650(param_1,0x8000);\n    }\n    else {\n      iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);\n    }\n    if (iVar2 == 0) {\n      iVar2 = fclose(DAT_00088a14);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n        uVar5 = xstrerror(*piVar4);\n        uVar1 = DAT_00088a10;\n        uVar6 = dcgettext(0,"can\'t close %s: %s",5);\n        FUN_0002bc80(uVar6,uVar1,uVar5);\n      }\n      DAT_00088a14 = (FILE *)0x0;\n      return (FILE *)0x0;\n    }\n    pFVar3 = (FILE *)(iVar2 + param_1);\n  }\n  return pFVar3;\n}\n\n" (function_definition "FILE * FUN_00025b80(int param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  FILE *pFVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  pFVar3 = DAT_00088a14;\n  if (DAT_00088a14 != (FILE *)0x0) {\n    if (DAT_00088a0c == 0) {\n      iVar2 = FUN_00025650(param_1,0x8000);\n    }\n    else {\n      iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);\n    }\n    if (iVar2 == 0) {\n      iVar2 = fclose(DAT_00088a14);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n        uVar5 = xstrerror(*piVar4);\n        uVar1 = DAT_00088a10;\n        uVar6 = dcgettext(0,"can\'t close %s: %s",5);\n        FUN_0002bc80(uVar6,uVar1,uVar5);\n      }\n      DAT_00088a14 = (FILE *)0x0;\n      return (FILE *)0x0;\n    }\n    pFVar3 = (FILE *)(iVar2 + param_1);\n  }\n  return pFVar3;\n}" type_identifier (pointer_declarator "* FUN_00025b80(int param_1)" * (function_declarator "FUN_00025b80(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  FILE *pFVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  pFVar3 = DAT_00088a14;\n  if (DAT_00088a14 != (FILE *)0x0) {\n    if (DAT_00088a0c == 0) {\n      iVar2 = FUN_00025650(param_1,0x8000);\n    }\n    else {\n      iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);\n    }\n    if (iVar2 == 0) {\n      iVar2 = fclose(DAT_00088a14);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n        uVar5 = xstrerror(*piVar4);\n        uVar1 = DAT_00088a10;\n        uVar6 = dcgettext(0,"can\'t close %s: %s",5);\n        FUN_0002bc80(uVar6,uVar1,uVar5);\n      }\n      DAT_00088a14 = (FILE *)0x0;\n      return (FILE *)0x0;\n    }\n    pFVar3 = (FILE *)(iVar2 + param_1);\n  }\n  return pFVar3;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "FILE *pFVar3;" type_identifier (pointer_declarator "*pFVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "pFVar3 = DAT_00088a14;" (assignment_expression "pFVar3 = DAT_00088a14" identifier = identifier) ;) (if_statement "if (DAT_00088a14 != (FILE *)0x0) {\n    if (DAT_00088a0c == 0) {\n      iVar2 = FUN_00025650(param_1,0x8000);\n    }\n    else {\n      iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);\n    }\n    if (iVar2 == 0) {\n      iVar2 = fclose(DAT_00088a14);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n        uVar5 = xstrerror(*piVar4);\n        uVar1 = DAT_00088a10;\n        uVar6 = dcgettext(0,"can\'t close %s: %s",5);\n        FUN_0002bc80(uVar6,uVar1,uVar5);\n      }\n      DAT_00088a14 = (FILE *)0x0;\n      return (FILE *)0x0;\n    }\n    pFVar3 = (FILE *)(iVar2 + param_1);\n  }" if (parenthesized_expression "(DAT_00088a14 != (FILE *)0x0)" ( (binary_expression "DAT_00088a14 != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (DAT_00088a0c == 0) {\n      iVar2 = FUN_00025650(param_1,0x8000);\n    }\n    else {\n      iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);\n    }\n    if (iVar2 == 0) {\n      iVar2 = fclose(DAT_00088a14);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n        uVar5 = xstrerror(*piVar4);\n        uVar1 = DAT_00088a10;\n        uVar6 = dcgettext(0,"can\'t close %s: %s",5);\n        FUN_0002bc80(uVar6,uVar1,uVar5);\n      }\n      DAT_00088a14 = (FILE *)0x0;\n      return (FILE *)0x0;\n    }\n    pFVar3 = (FILE *)(iVar2 + param_1);\n  }" { (if_statement "if (DAT_00088a0c == 0) {\n      iVar2 = FUN_00025650(param_1,0x8000);\n    }\n    else {\n      iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);\n    }" if (parenthesized_expression "(DAT_00088a0c == 0)" ( (binary_expression "DAT_00088a0c == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = FUN_00025650(param_1,0x8000);\n    }" { (expression_statement "iVar2 = FUN_00025650(param_1,0x8000);" (assignment_expression "iVar2 = FUN_00025650(param_1,0x8000)" identifier = (call_expression "FUN_00025650(param_1,0x8000)" identifier (argument_list "(param_1,0x8000)" ( identifier , number_literal )))) ;) }) (else_clause "else {\n      iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);\n    }" else (compound_statement "{\n      iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);\n    }" { (expression_statement "iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);" (assignment_expression "iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000)" identifier = (call_expression "FUN_00016450(FUN_00025650,param_1,0x8000)" identifier (argument_list "(FUN_00025650,param_1,0x8000)" ( identifier , identifier , number_literal )))) ;) }))) (if_statement "if (iVar2 == 0) {\n      iVar2 = fclose(DAT_00088a14);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n        uVar5 = xstrerror(*piVar4);\n        uVar1 = DAT_00088a10;\n        uVar6 = dcgettext(0,"can\'t close %s: %s",5);\n        FUN_0002bc80(uVar6,uVar1,uVar5);\n      }\n      DAT_00088a14 = (FILE *)0x0;\n      return (FILE *)0x0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = fclose(DAT_00088a14);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n        uVar5 = xstrerror(*piVar4);\n        uVar1 = DAT_00088a10;\n        uVar6 = dcgettext(0,"can\'t close %s: %s",5);\n        FUN_0002bc80(uVar6,uVar1,uVar5);\n      }\n      DAT_00088a14 = (FILE *)0x0;\n      return (FILE *)0x0;\n    }" { (expression_statement "iVar2 = fclose(DAT_00088a14);" (assignment_expression "iVar2 = fclose(DAT_00088a14)" identifier = (call_expression "fclose(DAT_00088a14)" identifier (argument_list "(DAT_00088a14)" ( identifier )))) ;) (if_statement "if (iVar2 != 0) {\n        piVar4 = __errno_location();\n        uVar5 = xstrerror(*piVar4);\n        uVar1 = DAT_00088a10;\n        uVar6 = dcgettext(0,"can\'t close %s: %s",5);\n        FUN_0002bc80(uVar6,uVar1,uVar5);\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar4 = __errno_location();\n        uVar5 = xstrerror(*piVar4);\n        uVar1 = DAT_00088a10;\n        uVar6 = dcgettext(0,"can\'t close %s: %s",5);\n        FUN_0002bc80(uVar6,uVar1,uVar5);\n      }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar5 = xstrerror(*piVar4);" (assignment_expression "uVar5 = xstrerror(*piVar4)" identifier = (call_expression "xstrerror(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "uVar1 = DAT_00088a10;" (assignment_expression "uVar1 = DAT_00088a10" identifier = identifier) ;) (expression_statement "uVar6 = dcgettext(0,"can\'t close %s: %s",5);" (assignment_expression "uVar6 = dcgettext(0,"can\'t close %s: %s",5)" identifier = (call_expression "dcgettext(0,"can\'t close %s: %s",5)" identifier (argument_list "(0,"can\'t close %s: %s",5)" ( number_literal , (string_literal ""can\'t close %s: %s"" " string_content escape_sequence string_content ") , number_literal )))) ;) (expression_statement "FUN_0002bc80(uVar6,uVar1,uVar5);" (call_expression "FUN_0002bc80(uVar6,uVar1,uVar5)" identifier (argument_list "(uVar6,uVar1,uVar5)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "DAT_00088a14 = (FILE *)0x0;" (assignment_expression "DAT_00088a14 = (FILE *)0x0" identifier = (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return (FILE *)0x0;" return (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "pFVar3 = (FILE *)(iVar2 + param_1);" (assignment_expression "pFVar3 = (FILE *)(iVar2 + param_1)" identifier = (cast_expression "(FILE *)(iVar2 + param_1)" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + param_1)" ( (binary_expression "iVar2 + param_1" identifier + identifier) )))) ;) })) (return_statement "return pFVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) })) (return_statement return IDENT ;) })))
(function_definition "FILE * FUN_00025b80(int param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  FILE *pFVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  pFVar3 = DAT_00088a14;\n  if (DAT_00088a14 != (FILE *)0x0) {\n    if (DAT_00088a0c == 0) {\n      iVar2 = FUN_00025650(param_1,0x8000);\n    }\n    else {\n      iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);\n    }\n    if (iVar2 == 0) {\n      iVar2 = fclose(DAT_00088a14);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n        uVar5 = xstrerror(*piVar4);\n        uVar1 = DAT_00088a10;\n        uVar6 = dcgettext(0,"can\'t close %s: %s",5);\n        FUN_0002bc80(uVar6,uVar1,uVar5);\n      }\n      DAT_00088a14 = (FILE *)0x0;\n      return (FILE *)0x0;\n    }\n    pFVar3 = (FILE *)(iVar2 + param_1);\n  }\n  return pFVar3;\n}" (type_identifier "FILE") (pointer_declarator "* FUN_00025b80(int param_1)" (* "*") (function_declarator "FUN_00025b80(int param_1)" (identifier "FUN_00025b80") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")")))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  FILE *pFVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  pFVar3 = DAT_00088a14;\n  if (DAT_00088a14 != (FILE *)0x0) {\n    if (DAT_00088a0c == 0) {\n      iVar2 = FUN_00025650(param_1,0x8000);\n    }\n    else {\n      iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);\n    }\n    if (iVar2 == 0) {\n      iVar2 = fclose(DAT_00088a14);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n        uVar5 = xstrerror(*piVar4);\n        uVar1 = DAT_00088a10;\n        uVar6 = dcgettext(0,"can\'t close %s: %s",5);\n        FUN_0002bc80(uVar6,uVar1,uVar5);\n      }\n      DAT_00088a14 = (FILE *)0x0;\n      return (FILE *)0x0;\n    }\n    pFVar3 = (FILE *)(iVar2 + param_1);\n  }\n  return pFVar3;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "FILE *pFVar3;" (type_identifier "FILE") (pointer_declarator "*pFVar3" (* "*") (identifier "pFVar3")) (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (expression_statement "pFVar3 = DAT_00088a14;" (assignment_expression "pFVar3 = DAT_00088a14" (identifier "pFVar3") (= "=") (identifier "DAT_00088a14")) (; ";")) (if_statement "if (DAT_00088a14 != (FILE *)0x0) {\n    if (DAT_00088a0c == 0) {\n      iVar2 = FUN_00025650(param_1,0x8000);\n    }\n    else {\n      iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);\n    }\n    if (iVar2 == 0) {\n      iVar2 = fclose(DAT_00088a14);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n        uVar5 = xstrerror(*piVar4);\n        uVar1 = DAT_00088a10;\n        uVar6 = dcgettext(0,"can\'t close %s: %s",5);\n        FUN_0002bc80(uVar6,uVar1,uVar5);\n      }\n      DAT_00088a14 = (FILE *)0x0;\n      return (FILE *)0x0;\n    }\n    pFVar3 = (FILE *)(iVar2 + param_1);\n  }" (if "if") (parenthesized_expression "(DAT_00088a14 != (FILE *)0x0)" (( "(") (binary_expression "DAT_00088a14 != (FILE *)0x0" (identifier "DAT_00088a14") (!= "!=") (cast_expression "(FILE *)0x0" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if (DAT_00088a0c == 0) {\n      iVar2 = FUN_00025650(param_1,0x8000);\n    }\n    else {\n      iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);\n    }\n    if (iVar2 == 0) {\n      iVar2 = fclose(DAT_00088a14);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n        uVar5 = xstrerror(*piVar4);\n        uVar1 = DAT_00088a10;\n        uVar6 = dcgettext(0,"can\'t close %s: %s",5);\n        FUN_0002bc80(uVar6,uVar1,uVar5);\n      }\n      DAT_00088a14 = (FILE *)0x0;\n      return (FILE *)0x0;\n    }\n    pFVar3 = (FILE *)(iVar2 + param_1);\n  }" ({ "{") (if_statement "if (DAT_00088a0c == 0) {\n      iVar2 = FUN_00025650(param_1,0x8000);\n    }\n    else {\n      iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);\n    }" (if "if") (parenthesized_expression "(DAT_00088a0c == 0)" (( "(") (binary_expression "DAT_00088a0c == 0" (identifier "DAT_00088a0c") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = FUN_00025650(param_1,0x8000);\n    }" ({ "{") (expression_statement "iVar2 = FUN_00025650(param_1,0x8000);" (assignment_expression "iVar2 = FUN_00025650(param_1,0x8000)" (identifier "iVar2") (= "=") (call_expression "FUN_00025650(param_1,0x8000)" (identifier "FUN_00025650") (argument_list "(param_1,0x8000)" (( "(") (identifier "param_1") (, ",") (number_literal "0x8000") () ")")))) (; ";")) (} "}")) (else_clause "else {\n      iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);\n    }" (else "else") (compound_statement "{\n      iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);\n    }" ({ "{") (expression_statement "iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);" (assignment_expression "iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000)" (identifier "iVar2") (= "=") (call_expression "FUN_00016450(FUN_00025650,param_1,0x8000)" (identifier "FUN_00016450") (argument_list "(FUN_00025650,param_1,0x8000)" (( "(") (identifier "FUN_00025650") (, ",") (identifier "param_1") (, ",") (number_literal "0x8000") () ")")))) (; ";")) (} "}")))) (if_statement "if (iVar2 == 0) {\n      iVar2 = fclose(DAT_00088a14);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n        uVar5 = xstrerror(*piVar4);\n        uVar1 = DAT_00088a10;\n        uVar6 = dcgettext(0,"can\'t close %s: %s",5);\n        FUN_0002bc80(uVar6,uVar1,uVar5);\n      }\n      DAT_00088a14 = (FILE *)0x0;\n      return (FILE *)0x0;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = fclose(DAT_00088a14);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n        uVar5 = xstrerror(*piVar4);\n        uVar1 = DAT_00088a10;\n        uVar6 = dcgettext(0,"can\'t close %s: %s",5);\n        FUN_0002bc80(uVar6,uVar1,uVar5);\n      }\n      DAT_00088a14 = (FILE *)0x0;\n      return (FILE *)0x0;\n    }" ({ "{") (expression_statement "iVar2 = fclose(DAT_00088a14);" (assignment_expression "iVar2 = fclose(DAT_00088a14)" (identifier "iVar2") (= "=") (call_expression "fclose(DAT_00088a14)" (identifier "fclose") (argument_list "(DAT_00088a14)" (( "(") (identifier "DAT_00088a14") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n        piVar4 = __errno_location();\n        uVar5 = xstrerror(*piVar4);\n        uVar1 = DAT_00088a10;\n        uVar6 = dcgettext(0,"can\'t close %s: %s",5);\n        FUN_0002bc80(uVar6,uVar1,uVar5);\n      }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        piVar4 = __errno_location();\n        uVar5 = xstrerror(*piVar4);\n        uVar1 = DAT_00088a10;\n        uVar6 = dcgettext(0,"can\'t close %s: %s",5);\n        FUN_0002bc80(uVar6,uVar1,uVar5);\n      }" ({ "{") (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" (identifier "piVar4") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar5 = xstrerror(*piVar4);" (assignment_expression "uVar5 = xstrerror(*piVar4)" (identifier "uVar5") (= "=") (call_expression "xstrerror(*piVar4)" (identifier "xstrerror") (argument_list "(*piVar4)" (( "(") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) () ")")))) (; ";")) (expression_statement "uVar1 = DAT_00088a10;" (assignment_expression "uVar1 = DAT_00088a10" (identifier "uVar1") (= "=") (identifier "DAT_00088a10")) (; ";")) (expression_statement "uVar6 = dcgettext(0,"can\'t close %s: %s",5);" (assignment_expression "uVar6 = dcgettext(0,"can\'t close %s: %s",5)" (identifier "uVar6") (= "=") (call_expression "dcgettext(0,"can\'t close %s: %s",5)" (identifier "dcgettext") (argument_list "(0,"can\'t close %s: %s",5)" (( "(") (number_literal "0") (, ",") (string_literal ""can\'t close %s: %s"" (" """) (string_content "can") (escape_sequence "\'") (string_content "t close %s: %s") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_0002bc80(uVar6,uVar1,uVar5);" (call_expression "FUN_0002bc80(uVar6,uVar1,uVar5)" (identifier "FUN_0002bc80") (argument_list "(uVar6,uVar1,uVar5)" (( "(") (identifier "uVar6") (, ",") (identifier "uVar1") (, ",") (identifier "uVar5") () ")"))) (; ";")) (} "}"))) (expression_statement "DAT_00088a14 = (FILE *)0x0;" (assignment_expression "DAT_00088a14 = (FILE *)0x0" (identifier "DAT_00088a14") (= "=") (cast_expression "(FILE *)0x0" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (return_statement "return (FILE *)0x0;" (return "return") (cast_expression "(FILE *)0x0" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "pFVar3 = (FILE *)(iVar2 + param_1);" (assignment_expression "pFVar3 = (FILE *)(iVar2 + param_1)" (identifier "pFVar3") (= "=") (cast_expression "(FILE *)(iVar2 + param_1)" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + param_1)" (( "(") (binary_expression "iVar2 + param_1" (identifier "iVar2") (+ "+") (identifier "param_1")) () ")")))) (; ";")) (} "}"))) (return_statement "return pFVar3;" (return "return") (identifier "pFVar3") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

char * function_1(char *var_12)

{
  char *pcVar1;
  size_t var_5;
  type_1 *pFVar3;
  int var_7;
  int *piVar5;
  type_2 uVar6;
  char *format;
  
  pFVar3 = var_1;
  if (var_1 != (type_1 *)0x0) {
    if (var_2 == 0) {
      var_5 = var_3(var_12,0x8000);
    }
    else {
      var_5 = var_4(var_3,var_12,0x8000);
    }
    if (var_5 == 0) {
      var_7 = var_6((type_1 *)var_1);
      if (var_7 != 0) {
        piVar5 = var_8();
        uVar6 = var_9(*piVar5);
        pcVar1 = file_name;
        format = (char *)var_10(0,"can\'t close %s: %s",5);
        var_11(format,pcVar1,uVar6);
      }
      var_1 = (type_1 *)0x0;
      return (char *)0x0;
    }
    pFVar3 = (type_1 *)(var_12 + var_5);
  }
  return (char *)pFVar3;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

FILE * MASKED(int param_1)

{
  undefined4 uVar1;
  int iVar2;
  FILE *pFVar3;
  int *piVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  
  pFVar3 = DAT_00088a14;
  if (DAT_00088a14 != (FILE *)0x0) {
    if (DAT_00088a0c == 0) {
      iVar2 = FUN_00025650(param_1,0x8000);
    }
    else {
      iVar2 = FUN_00016450(FUN_00025650,param_1,0x8000);
    }
    if (iVar2 == 0) {
      iVar2 = fclose(DAT_00088a14);
      if (iVar2 != 0) {
        piVar4 = __errno_location();
        uVar5 = xstrerror(*piVar4);
        uVar1 = DAT_00088a10;
        uVar6 = dcgettext(0,"can\'t close %s: %s",5);
        FUN_0002bc80(uVar6,uVar1,uVar5);
      }
      DAT_00088a14 = (FILE *)0x0;
      return (FILE *)0x0;
    }
    pFVar3 = (FILE *)(iVar2 + param_1);
  }
  return pFVar3;
}

