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

void dump_vars(char *fname)

{
  NODE **table;
  int *piVar1;
  char *pcVar2;
  char *pcVar3;
  FILE *fp;
  int *piVar4;
  int iVar5;
  byte *pbVar6;
  byte *pbVar7;
  bool bVar8;
  bool bVar9;
  
  bVar8 = false;
  bVar9 = fname == (char *)0x0;
  piVar1 = (int *)PTR_stdout_000dcfc8;
  if (bVar9) {
    fp = *(FILE **)PTR_stderr_000dcf78;
  }
  else {
    iVar5 = 2;
    pbVar6 = (byte *)fname;
    pbVar7 = &DAT_000a9f02;
    do {
      if (iVar5 == 0) break;
      iVar5 = iVar5 + -1;
      bVar8 = *pbVar6 < *pbVar7;
      bVar9 = *pbVar6 == *pbVar7;
      pbVar6 = pbVar6 + 1;
      pbVar7 = pbVar7 + 1;
    } while (bVar9);
    if ((!bVar8 && !bVar9) == bVar8) {
      fp = *(FILE **)PTR_stdout_000dcfc8;
    }
    else {
      fp = fopen64(fname,(char *)FUN_000aa4aa);
      piVar1 = (int *)PTR_stdout_000dcfc8;
      if (fp == (FILE *)0x0) {
        set_loc("awkgram.y",0x1339);
        piVar4 = __errno_location();
        pcVar2 = strerror(*piVar4);
        pcVar3 = (char *)dcgettext(0,"could not open `%s\' for writing: %s",5);
        r_warning(pcVar3,fname,pcVar2);
        set_loc("awkgram.y",0x133a);
        pcVar2 = (char *)dcgettext(0,"sending variable list to standard error",5);
        r_warning(pcVar2);
        fp = *(FILE **)PTR_stderr_000dcf78;
      }
    }
  }
  table = variable_list();
  print_vars(table,(_func_int_FILE_ptr_char_ptr_varargs *)PTR_fprintf_000dcfb4,(FILE *)fp);
  free(table);
  if (((FILE *)*piVar1 != fp) && (*(FILE **)PTR_stderr_000dcf78 != fp)) {
    iVar5 = fclose(fp);
    if (iVar5 != 0) {
      set_loc("awkgram.y",0x1342);
      piVar1 = __errno_location();
      pcVar2 = strerror(*piVar1);
      pcVar3 = (char *)dcgettext(0,"%s: close failed: %s",5);
      r_warning(pcVar3,fname,pcVar2);
    }
  }
  return;
}



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

void FUN_000240b0(byte *param_1)

{
  void *__ptr;
  int *piVar1;
  char *pcVar2;
  undefined4 uVar3;
  FILE *__stream;
  int *piVar4;
  int iVar5;
  byte *pbVar6;
  byte *pbVar7;
  bool bVar8;
  bool bVar9;
  
  bVar8 = false;
  bVar9 = param_1 == (byte *)0x0;
  piVar1 = (int *)PTR_stdout_000dcfc8;
  if (bVar9) {
    __stream = *(FILE **)PTR_stderr_000dcf78;
  }
  else {
    iVar5 = 2;
    pbVar6 = param_1;
    pbVar7 = &DAT_000a9f02;
    do {
      if (iVar5 == 0) break;
      iVar5 = iVar5 + -1;
      bVar8 = *pbVar6 < *pbVar7;
      bVar9 = *pbVar6 == *pbVar7;
      pbVar6 = pbVar6 + 1;
      pbVar7 = pbVar7 + 1;
    } while (bVar9);
    if ((!bVar8 && !bVar9) == bVar8) {
      __stream = *(FILE **)PTR_stdout_000dcfc8;
    }
    else {
      __stream = fopen64((char *)param_1,"w");
      piVar1 = (int *)PTR_stdout_000dcfc8;
      if (__stream == (FILE *)0x0) {
        FUN_00074330("awkgram.y",0x1339);
        piVar4 = __errno_location();
        pcVar2 = strerror(*piVar4);
        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);
        FUN_00074850(uVar3,param_1,pcVar2);
        FUN_00074330("awkgram.y",0x133a);
        uVar3 = dcgettext(0,"sending variable list to standard error",5);
        FUN_00074850(uVar3);
        __stream = *(FILE **)PTR_stderr_000dcf78;
      }
    }
  }
  __ptr = (void *)FUN_00081480();
  FUN_00081870(__ptr,PTR_fprintf_000dcfb4,__stream);
  free(__ptr);
  if (((FILE *)*piVar1 != __stream) && (*(FILE **)PTR_stderr_000dcf78 != __stream)) {
    iVar5 = fclose(__stream);
    if (iVar5 != 0) {
      FUN_00074330("awkgram.y",0x1342);
      piVar1 = __errno_location();
      pcVar2 = strerror(*piVar1);
      uVar3 = dcgettext(0,"%s: close failed: %s",5);
      FUN_00074850(uVar3,param_1,pcVar2);
    }
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00016f80
ADD EBX,0xb8c2b
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x20]
TEST EAX,EAX
JZ 0x00024230
MOV ESI,dword ptr [ESP + 0x20]
LEA EDI,[EBX + 0xfffcd21e]
MOV ECX,0x2
CMPSB.REPE ES:EDI,ESI
SETA AL
SBB AL,0x0
TEST AL,AL
JNZ 0x00024188
MOV EBP,dword ptr [EBX + 0x2e4]
MOV ESI,dword ptr [EBP]
CALL 0x00081480
SUB ESP,0x4
MOV EDI,EAX
PUSH ESI
PUSH dword ptr [EBX + 0x2d0]
PUSH EAX
CALL 0x00081870
MOV dword ptr [ESP],EDI
CALL 0x00013e50
ADD ESP,0x10
CMP dword ptr [EBP],ESI
JZ 0x0002417d
MOV EAX,dword ptr [EBX + 0x294]
CMP dword ptr [EAX],ESI
JZ 0x0002417d
SUB ESP,0xc
PUSH ESI
CALL 0x00013ed0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0002417d
LEA EAX,[EBX + 0xfffc4bbc]
SUB ESP,0x8
PUSH 0x1342
PUSH EAX
CALL 0x00074330
CALL 0x00014330
POP EDX
PUSH dword ptr [EAX]
CALL 0x00014180
MOV ESI,EAX
LEA EAX,[EBX + 0xfffc4d8c]
ADD ESP,0xc
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00013f40
ADD ESP,0xc
PUSH ESI
PUSH dword ptr [ESP + 0x28]
PUSH EAX
CALL 0x00074850
ADD ESP,0x10
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0xfffcd7c6]
SUB ESP,0x8
PUSH EAX
PUSH dword ptr [ESP + 0x2c]
CALL 0x00014040
ADD ESP,0x10
TEST EAX,EAX
MOV ESI,EAX
MOV EBP,dword ptr [EBX + 0x2e4]
JNZ 0x000240f5
LEA ESI,[EBX + 0xfffc4bbc]
SUB ESP,0x8
PUSH 0x1339
PUSH ESI
CALL 0x00074330
CALL 0x00014330
POP ECX
PUSH dword ptr [EAX]
CALL 0x00014180
MOV EDI,EAX
LEA EAX,[EBX + 0xfffc5540]
ADD ESP,0xc
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00013f40
ADD ESP,0xc
PUSH EDI
PUSH dword ptr [ESP + 0x28]
PUSH EAX
CALL 0x00074850
POP EDI
POP EAX
PUSH 0x133a
PUSH ESI
CALL 0x00074330
LEA EAX,[EBX + 0xfffc5564]
ADD ESP,0xc
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00013f40
MOV dword ptr [ESP],EAX
CALL 0x00074850
MOV EAX,dword ptr [EBX + 0x294]
ADD ESP,0x10
MOV ESI,dword ptr [EAX]
JMP 0x000240f5
MOV EAX,dword ptr [EBX + 0x294]
MOV EBP,dword ptr [EBX + 0x2e4]
MOV ESI,dword ptr [EAX]
JMP 0x000240f5
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000240b0(byte *param_1)\n\n{\n  void *__ptr;\n  int *piVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  FILE *__stream;\n  int *piVar4;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  \n  bVar8 = false;\n  bVar9 = param_1 == (byte *)0x0;\n  piVar1 = (int *)PTR_stdout_000dcfc8;\n  if (bVar9) {\n    __stream = *(FILE **)PTR_stderr_000dcf78;\n  }\n  else {\n    iVar5 = 2;\n    pbVar6 = param_1;\n    pbVar7 = &DAT_000a9f02;\n    do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      __stream = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      __stream = fopen64((char *)param_1,"w");\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }\n  }\n  __ptr = (void *)FUN_00081480();\n  FUN_00081870(__ptr,PTR_fprintf_000dcfb4,__stream);\n  free(__ptr);\n  if (((FILE *)*piVar1 != __stream) && (*(FILE **)PTR_stderr_000dcf78 != __stream)) {\n    iVar5 = fclose(__stream);\n    if (iVar5 != 0) {\n      FUN_00074330("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      uVar3 = dcgettext(0,"%s: close failed: %s",5);\n      FUN_00074850(uVar3,param_1,pcVar2);\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_000240b0(byte *param_1)\n\n{\n  void *__ptr;\n  int *piVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  FILE *__stream;\n  int *piVar4;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  \n  bVar8 = false;\n  bVar9 = param_1 == (byte *)0x0;\n  piVar1 = (int *)PTR_stdout_000dcfc8;\n  if (bVar9) {\n    __stream = *(FILE **)PTR_stderr_000dcf78;\n  }\n  else {\n    iVar5 = 2;\n    pbVar6 = param_1;\n    pbVar7 = &DAT_000a9f02;\n    do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      __stream = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      __stream = fopen64((char *)param_1,"w");\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }\n  }\n  __ptr = (void *)FUN_00081480();\n  FUN_00081870(__ptr,PTR_fprintf_000dcfb4,__stream);\n  free(__ptr);\n  if (((FILE *)*piVar1 != __stream) && (*(FILE **)PTR_stderr_000dcf78 != __stream)) {\n    iVar5 = fclose(__stream);\n    if (iVar5 != 0) {\n      FUN_00074330("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      uVar3 = dcgettext(0,"%s: close failed: %s",5);\n      FUN_00074850(uVar3,param_1,pcVar2);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000240b0(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  void *__ptr;\n  int *piVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  FILE *__stream;\n  int *piVar4;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  \n  bVar8 = false;\n  bVar9 = param_1 == (byte *)0x0;\n  piVar1 = (int *)PTR_stdout_000dcfc8;\n  if (bVar9) {\n    __stream = *(FILE **)PTR_stderr_000dcf78;\n  }\n  else {\n    iVar5 = 2;\n    pbVar6 = param_1;\n    pbVar7 = &DAT_000a9f02;\n    do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      __stream = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      __stream = fopen64((char *)param_1,"w");\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }\n  }\n  __ptr = (void *)FUN_00081480();\n  FUN_00081870(__ptr,PTR_fprintf_000dcfb4,__stream);\n  free(__ptr);\n  if (((FILE *)*piVar1 != __stream) && (*(FILE **)PTR_stderr_000dcf78 != __stream)) {\n    iVar5 = fclose(__stream);\n    if (iVar5 != 0) {\n      FUN_00074330("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      uVar3 = dcgettext(0,"%s: close failed: %s",5);\n      FUN_00074850(uVar3,param_1,pcVar2);\n    }\n  }\n  return;\n}" { (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "bool bVar9;" primitive_type identifier ;) (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" identifier = false) ;) (expression_statement "bVar9 = param_1 == (byte *)0x0;" (assignment_expression "bVar9 = param_1 == (byte *)0x0" identifier = (binary_expression "param_1 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (expression_statement "piVar1 = (int *)PTR_stdout_000dcfc8;" (assignment_expression "piVar1 = (int *)PTR_stdout_000dcfc8" identifier = (cast_expression "(int *)PTR_stdout_000dcfc8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (bVar9) {\n    __stream = *(FILE **)PTR_stderr_000dcf78;\n  }\n  else {\n    iVar5 = 2;\n    pbVar6 = param_1;\n    pbVar7 = &DAT_000a9f02;\n    do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      __stream = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      __stream = fopen64((char *)param_1,"w");\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }\n  }" if (parenthesized_expression "(bVar9)" ( identifier )) (compound_statement "{\n    __stream = *(FILE **)PTR_stderr_000dcf78;\n  }" { (expression_statement "__stream = *(FILE **)PTR_stderr_000dcf78;" (assignment_expression "__stream = *(FILE **)PTR_stderr_000dcf78" identifier = (pointer_expression "*(FILE **)PTR_stderr_000dcf78" * (cast_expression "(FILE **)PTR_stderr_000dcf78" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }) (else_clause "else {\n    iVar5 = 2;\n    pbVar6 = param_1;\n    pbVar7 = &DAT_000a9f02;\n    do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      __stream = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      __stream = fopen64((char *)param_1,"w");\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }\n  }" else (compound_statement "{\n    iVar5 = 2;\n    pbVar6 = param_1;\n    pbVar7 = &DAT_000a9f02;\n    do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      __stream = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      __stream = fopen64((char *)param_1,"w");\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }\n  }" { (expression_statement "iVar5 = 2;" (assignment_expression "iVar5 = 2" identifier = number_literal) ;) (expression_statement "pbVar6 = param_1;" (assignment_expression "pbVar6 = param_1" identifier = identifier) ;) (expression_statement "pbVar7 = &DAT_000a9f02;" (assignment_expression "pbVar7 = &DAT_000a9f02" identifier = (pointer_expression "&DAT_000a9f02" & identifier)) ;) (do_statement "do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);" do (compound_statement "{\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    }" { (if_statement "if (iVar5 == 0) break;" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (expression_statement "bVar8 = *pbVar6 < *pbVar7;" (assignment_expression "bVar8 = *pbVar6 < *pbVar7" identifier = (binary_expression "*pbVar6 < *pbVar7" (pointer_expression "*pbVar6" * identifier) < (pointer_expression "*pbVar7" * identifier))) ;) (expression_statement "bVar9 = *pbVar6 == *pbVar7;" (assignment_expression "bVar9 = *pbVar6 == *pbVar7" identifier = (binary_expression "*pbVar6 == *pbVar7" (pointer_expression "*pbVar6" * identifier) == (pointer_expression "*pbVar7" * identifier))) ;) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar9)" ( identifier )) ;) (if_statement "if ((!bVar8 && !bVar9) == bVar8) {\n      __stream = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      __stream = fopen64((char *)param_1,"w");\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }" if (parenthesized_expression "((!bVar8 && !bVar9) == bVar8)" ( (binary_expression "(!bVar8 && !bVar9) == bVar8" (parenthesized_expression "(!bVar8 && !bVar9)" ( (binary_expression "!bVar8 && !bVar9" (unary_expression "!bVar8" ! identifier) && (unary_expression "!bVar9" ! identifier)) )) == identifier) )) (compound_statement "{\n      __stream = *(FILE **)PTR_stdout_000dcfc8;\n    }" { (expression_statement "__stream = *(FILE **)PTR_stdout_000dcfc8;" (assignment_expression "__stream = *(FILE **)PTR_stdout_000dcfc8" identifier = (pointer_expression "*(FILE **)PTR_stdout_000dcfc8" * (cast_expression "(FILE **)PTR_stdout_000dcfc8" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }) (else_clause "else {\n      __stream = fopen64((char *)param_1,"w");\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }" else (compound_statement "{\n      __stream = fopen64((char *)param_1,"w");\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }" { (expression_statement "__stream = fopen64((char *)param_1,"w");" (assignment_expression "__stream = fopen64((char *)param_1,"w")" identifier = (call_expression "fopen64((char *)param_1,"w")" identifier (argument_list "((char *)param_1,"w")" ( (cast_expression "(char *)param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""w"" " string_content ") )))) ;) (expression_statement "piVar1 = (int *)PTR_stdout_000dcfc8;" (assignment_expression "piVar1 = (int *)PTR_stdout_000dcfc8" identifier = (cast_expression "(int *)PTR_stdout_000dcfc8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }" if (parenthesized_expression "(__stream == (FILE *)0x0)" ( (binary_expression "__stream == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }" { (expression_statement "FUN_00074330("awkgram.y",0x1339);" (call_expression "FUN_00074330("awkgram.y",0x1339)" identifier (argument_list "("awkgram.y",0x1339)" ( (string_literal ""awkgram.y"" " string_content ") , number_literal ))) ;) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar2 = strerror(*piVar4);" (assignment_expression "pcVar2 = strerror(*piVar4)" identifier = (call_expression "strerror(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);" (assignment_expression "uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5)" identifier = (call_expression "dcgettext(0,"could not open `%s\' for writing: %s",5)" identifier (argument_list "(0,"could not open `%s\' for writing: %s",5)" ( number_literal , (string_literal ""could not open `%s\' for writing: %s"" " string_content escape_sequence string_content ") , number_literal )))) ;) (expression_statement "FUN_00074850(uVar3,param_1,pcVar2);" (call_expression "FUN_00074850(uVar3,param_1,pcVar2)" identifier (argument_list "(uVar3,param_1,pcVar2)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_00074330("awkgram.y",0x133a);" (call_expression "FUN_00074330("awkgram.y",0x133a)" identifier (argument_list "("awkgram.y",0x133a)" ( (string_literal ""awkgram.y"" " string_content ") , number_literal ))) ;) (expression_statement "uVar3 = dcgettext(0,"sending variable list to standard error",5);" (assignment_expression "uVar3 = dcgettext(0,"sending variable list to standard error",5)" identifier = (call_expression "dcgettext(0,"sending variable list to standard error",5)" identifier (argument_list "(0,"sending variable list to standard error",5)" ( number_literal , (string_literal ""sending variable list to standard error"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00074850(uVar3);" (call_expression "FUN_00074850(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (expression_statement "__stream = *(FILE **)PTR_stderr_000dcf78;" (assignment_expression "__stream = *(FILE **)PTR_stderr_000dcf78" identifier = (pointer_expression "*(FILE **)PTR_stderr_000dcf78" * (cast_expression "(FILE **)PTR_stderr_000dcf78" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) })) }))) }))) (expression_statement "__ptr = (void *)FUN_00081480();" (assignment_expression "__ptr = (void *)FUN_00081480()" identifier = (cast_expression "(void *)FUN_00081480()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00081480()" identifier (argument_list "()" ( ))))) ;) (expression_statement "FUN_00081870(__ptr,PTR_fprintf_000dcfb4,__stream);" (call_expression "FUN_00081870(__ptr,PTR_fprintf_000dcfb4,__stream)" identifier (argument_list "(__ptr,PTR_fprintf_000dcfb4,__stream)" ( identifier , identifier , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (if_statement "if (((FILE *)*piVar1 != __stream) && (*(FILE **)PTR_stderr_000dcf78 != __stream)) {\n    iVar5 = fclose(__stream);\n    if (iVar5 != 0) {\n      FUN_00074330("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      uVar3 = dcgettext(0,"%s: close failed: %s",5);\n      FUN_00074850(uVar3,param_1,pcVar2);\n    }\n  }" if (parenthesized_expression "(((FILE *)*piVar1 != __stream) && (*(FILE **)PTR_stderr_000dcf78 != __stream))" ( (binary_expression "((FILE *)*piVar1 != __stream) && (*(FILE **)PTR_stderr_000dcf78 != __stream)" (parenthesized_expression "((FILE *)*piVar1 != __stream)" ( (binary_expression "(FILE *)*piVar1 != __stream" (cast_expression "(FILE *)*piVar1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier)) != identifier) )) && (parenthesized_expression "(*(FILE **)PTR_stderr_000dcf78 != __stream)" ( (binary_expression "*(FILE **)PTR_stderr_000dcf78 != __stream" (pointer_expression "*(FILE **)PTR_stderr_000dcf78" * (cast_expression "(FILE **)PTR_stderr_000dcf78" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) != identifier) ))) )) (compound_statement "{\n    iVar5 = fclose(__stream);\n    if (iVar5 != 0) {\n      FUN_00074330("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      uVar3 = dcgettext(0,"%s: close failed: %s",5);\n      FUN_00074850(uVar3,param_1,pcVar2);\n    }\n  }" { (expression_statement "iVar5 = fclose(__stream);" (assignment_expression "iVar5 = fclose(__stream)" identifier = (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier )))) ;) (if_statement "if (iVar5 != 0) {\n      FUN_00074330("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      uVar3 = dcgettext(0,"%s: close failed: %s",5);\n      FUN_00074850(uVar3,param_1,pcVar2);\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_00074330("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      uVar3 = dcgettext(0,"%s: close failed: %s",5);\n      FUN_00074850(uVar3,param_1,pcVar2);\n    }" { (expression_statement "FUN_00074330("awkgram.y",0x1342);" (call_expression "FUN_00074330("awkgram.y",0x1342)" identifier (argument_list "("awkgram.y",0x1342)" ( (string_literal ""awkgram.y"" " string_content ") , number_literal ))) ;) (expression_statement "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar2 = strerror(*piVar1);" (assignment_expression "pcVar2 = strerror(*piVar1)" identifier = (call_expression "strerror(*piVar1)" identifier (argument_list "(*piVar1)" ( (pointer_expression "*piVar1" * identifier) )))) ;) (expression_statement "uVar3 = dcgettext(0,"%s: close failed: %s",5);" (assignment_expression "uVar3 = dcgettext(0,"%s: close failed: %s",5)" identifier = (call_expression "dcgettext(0,"%s: close failed: %s",5)" identifier (argument_list "(0,"%s: close failed: %s",5)" ( number_literal , (string_literal ""%s: close failed: %s"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00074850(uVar3,param_1,pcVar2);" (call_expression "FUN_00074850(uVar3,param_1,pcVar2)" identifier (argument_list "(uVar3,param_1,pcVar2)" ( identifier , identifier , identifier ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid dump_vars(char *fname)\n\n{\n  NODE **table;\n  int *piVar1;\n  char *pcVar2;\n  char *pcVar3;\n  FILE *fp;\n  int *piVar4;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  \n  bVar8 = false;\n  bVar9 = fname == (char *)0x0;\n  piVar1 = (int *)PTR_stdout_000dcfc8;\n  if (bVar9) {\n    fp = *(FILE **)PTR_stderr_000dcf78;\n  }\n  else {\n    iVar5 = 2;\n    pbVar6 = (byte *)fname;\n    pbVar7 = &DAT_000a9f02;\n    do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      fp = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      fp = fopen64(fname,(char *)FUN_000aa4aa);\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (fp == (FILE *)0x0) {\n        set_loc("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        pcVar3 = (char *)dcgettext(0,"could not open `%s\' for writing: %s",5);\n        r_warning(pcVar3,fname,pcVar2);\n        set_loc("awkgram.y",0x133a);\n        pcVar2 = (char *)dcgettext(0,"sending variable list to standard error",5);\n        r_warning(pcVar2);\n        fp = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }\n  }\n  table = variable_list();\n  print_vars(table,(_func_int_FILE_ptr_char_ptr_varargs *)PTR_fprintf_000dcfb4,(FILE *)fp);\n  free(table);\n  if (((FILE *)*piVar1 != fp) && (*(FILE **)PTR_stderr_000dcf78 != fp)) {\n    iVar5 = fclose(fp);\n    if (iVar5 != 0) {\n      set_loc("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      pcVar3 = (char *)dcgettext(0,"%s: close failed: %s",5);\n      r_warning(pcVar3,fname,pcVar2);\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void dump_vars(char *fname)\n\n{\n  NODE **table;\n  int *piVar1;\n  char *pcVar2;\n  char *pcVar3;\n  FILE *fp;\n  int *piVar4;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  \n  bVar8 = false;\n  bVar9 = fname == (char *)0x0;\n  piVar1 = (int *)PTR_stdout_000dcfc8;\n  if (bVar9) {\n    fp = *(FILE **)PTR_stderr_000dcf78;\n  }\n  else {\n    iVar5 = 2;\n    pbVar6 = (byte *)fname;\n    pbVar7 = &DAT_000a9f02;\n    do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      fp = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      fp = fopen64(fname,(char *)FUN_000aa4aa);\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (fp == (FILE *)0x0) {\n        set_loc("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        pcVar3 = (char *)dcgettext(0,"could not open `%s\' for writing: %s",5);\n        r_warning(pcVar3,fname,pcVar2);\n        set_loc("awkgram.y",0x133a);\n        pcVar2 = (char *)dcgettext(0,"sending variable list to standard error",5);\n        r_warning(pcVar2);\n        fp = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }\n  }\n  table = variable_list();\n  print_vars(table,(_func_int_FILE_ptr_char_ptr_varargs *)PTR_fprintf_000dcfb4,(FILE *)fp);\n  free(table);\n  if (((FILE *)*piVar1 != fp) && (*(FILE **)PTR_stderr_000dcf78 != fp)) {\n    iVar5 = fclose(fp);\n    if (iVar5 != 0) {\n      set_loc("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      pcVar3 = (char *)dcgettext(0,"%s: close failed: %s",5);\n      r_warning(pcVar3,fname,pcVar2);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "dump_vars(char *fname)" identifier (parameter_list "(char *fname)" ( (parameter_declaration "char *fname" primitive_type (pointer_declarator "*fname" * identifier)) ))) (compound_statement "{\n  NODE **table;\n  int *piVar1;\n  char *pcVar2;\n  char *pcVar3;\n  FILE *fp;\n  int *piVar4;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  \n  bVar8 = false;\n  bVar9 = fname == (char *)0x0;\n  piVar1 = (int *)PTR_stdout_000dcfc8;\n  if (bVar9) {\n    fp = *(FILE **)PTR_stderr_000dcf78;\n  }\n  else {\n    iVar5 = 2;\n    pbVar6 = (byte *)fname;\n    pbVar7 = &DAT_000a9f02;\n    do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      fp = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      fp = fopen64(fname,(char *)FUN_000aa4aa);\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (fp == (FILE *)0x0) {\n        set_loc("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        pcVar3 = (char *)dcgettext(0,"could not open `%s\' for writing: %s",5);\n        r_warning(pcVar3,fname,pcVar2);\n        set_loc("awkgram.y",0x133a);\n        pcVar2 = (char *)dcgettext(0,"sending variable list to standard error",5);\n        r_warning(pcVar2);\n        fp = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }\n  }\n  table = variable_list();\n  print_vars(table,(_func_int_FILE_ptr_char_ptr_varargs *)PTR_fprintf_000dcfb4,(FILE *)fp);\n  free(table);\n  if (((FILE *)*piVar1 != fp) && (*(FILE **)PTR_stderr_000dcf78 != fp)) {\n    iVar5 = fclose(fp);\n    if (iVar5 != 0) {\n      set_loc("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      pcVar3 = (char *)dcgettext(0,"%s: close failed: %s",5);\n      r_warning(pcVar3,fname,pcVar2);\n    }\n  }\n  return;\n}" { (declaration "NODE **table;" type_identifier (pointer_declarator "**table" * (pointer_declarator "*table" * identifier)) ;) (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "FILE *fp;" type_identifier (pointer_declarator "*fp" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "bool bVar9;" primitive_type identifier ;) (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" identifier = false) ;) (expression_statement "bVar9 = fname == (char *)0x0;" (assignment_expression "bVar9 = fname == (char *)0x0" identifier = (binary_expression "fname == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (expression_statement "piVar1 = (int *)PTR_stdout_000dcfc8;" (assignment_expression "piVar1 = (int *)PTR_stdout_000dcfc8" identifier = (cast_expression "(int *)PTR_stdout_000dcfc8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (bVar9) {\n    fp = *(FILE **)PTR_stderr_000dcf78;\n  }\n  else {\n    iVar5 = 2;\n    pbVar6 = (byte *)fname;\n    pbVar7 = &DAT_000a9f02;\n    do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      fp = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      fp = fopen64(fname,(char *)FUN_000aa4aa);\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (fp == (FILE *)0x0) {\n        set_loc("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        pcVar3 = (char *)dcgettext(0,"could not open `%s\' for writing: %s",5);\n        r_warning(pcVar3,fname,pcVar2);\n        set_loc("awkgram.y",0x133a);\n        pcVar2 = (char *)dcgettext(0,"sending variable list to standard error",5);\n        r_warning(pcVar2);\n        fp = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }\n  }" if (parenthesized_expression "(bVar9)" ( identifier )) (compound_statement "{\n    fp = *(FILE **)PTR_stderr_000dcf78;\n  }" { (expression_statement "fp = *(FILE **)PTR_stderr_000dcf78;" (assignment_expression "fp = *(FILE **)PTR_stderr_000dcf78" identifier = (pointer_expression "*(FILE **)PTR_stderr_000dcf78" * (cast_expression "(FILE **)PTR_stderr_000dcf78" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }) (else_clause "else {\n    iVar5 = 2;\n    pbVar6 = (byte *)fname;\n    pbVar7 = &DAT_000a9f02;\n    do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      fp = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      fp = fopen64(fname,(char *)FUN_000aa4aa);\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (fp == (FILE *)0x0) {\n        set_loc("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        pcVar3 = (char *)dcgettext(0,"could not open `%s\' for writing: %s",5);\n        r_warning(pcVar3,fname,pcVar2);\n        set_loc("awkgram.y",0x133a);\n        pcVar2 = (char *)dcgettext(0,"sending variable list to standard error",5);\n        r_warning(pcVar2);\n        fp = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }\n  }" else (compound_statement "{\n    iVar5 = 2;\n    pbVar6 = (byte *)fname;\n    pbVar7 = &DAT_000a9f02;\n    do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      fp = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      fp = fopen64(fname,(char *)FUN_000aa4aa);\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (fp == (FILE *)0x0) {\n        set_loc("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        pcVar3 = (char *)dcgettext(0,"could not open `%s\' for writing: %s",5);\n        r_warning(pcVar3,fname,pcVar2);\n        set_loc("awkgram.y",0x133a);\n        pcVar2 = (char *)dcgettext(0,"sending variable list to standard error",5);\n        r_warning(pcVar2);\n        fp = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }\n  }" { (expression_statement "iVar5 = 2;" (assignment_expression "iVar5 = 2" identifier = number_literal) ;) (expression_statement "pbVar6 = (byte *)fname;" (assignment_expression "pbVar6 = (byte *)fname" identifier = (cast_expression "(byte *)fname" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pbVar7 = &DAT_000a9f02;" (assignment_expression "pbVar7 = &DAT_000a9f02" identifier = (pointer_expression "&DAT_000a9f02" & identifier)) ;) (do_statement "do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);" do (compound_statement "{\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    }" { (if_statement "if (iVar5 == 0) break;" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (expression_statement "bVar8 = *pbVar6 < *pbVar7;" (assignment_expression "bVar8 = *pbVar6 < *pbVar7" identifier = (binary_expression "*pbVar6 < *pbVar7" (pointer_expression "*pbVar6" * identifier) < (pointer_expression "*pbVar7" * identifier))) ;) (expression_statement "bVar9 = *pbVar6 == *pbVar7;" (assignment_expression "bVar9 = *pbVar6 == *pbVar7" identifier = (binary_expression "*pbVar6 == *pbVar7" (pointer_expression "*pbVar6" * identifier) == (pointer_expression "*pbVar7" * identifier))) ;) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar9)" ( identifier )) ;) (if_statement "if ((!bVar8 && !bVar9) == bVar8) {\n      fp = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      fp = fopen64(fname,(char *)FUN_000aa4aa);\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (fp == (FILE *)0x0) {\n        set_loc("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        pcVar3 = (char *)dcgettext(0,"could not open `%s\' for writing: %s",5);\n        r_warning(pcVar3,fname,pcVar2);\n        set_loc("awkgram.y",0x133a);\n        pcVar2 = (char *)dcgettext(0,"sending variable list to standard error",5);\n        r_warning(pcVar2);\n        fp = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }" if (parenthesized_expression "((!bVar8 && !bVar9) == bVar8)" ( (binary_expression "(!bVar8 && !bVar9) == bVar8" (parenthesized_expression "(!bVar8 && !bVar9)" ( (binary_expression "!bVar8 && !bVar9" (unary_expression "!bVar8" ! identifier) && (unary_expression "!bVar9" ! identifier)) )) == identifier) )) (compound_statement "{\n      fp = *(FILE **)PTR_stdout_000dcfc8;\n    }" { (expression_statement "fp = *(FILE **)PTR_stdout_000dcfc8;" (assignment_expression "fp = *(FILE **)PTR_stdout_000dcfc8" identifier = (pointer_expression "*(FILE **)PTR_stdout_000dcfc8" * (cast_expression "(FILE **)PTR_stdout_000dcfc8" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }) (else_clause "else {\n      fp = fopen64(fname,(char *)FUN_000aa4aa);\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (fp == (FILE *)0x0) {\n        set_loc("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        pcVar3 = (char *)dcgettext(0,"could not open `%s\' for writing: %s",5);\n        r_warning(pcVar3,fname,pcVar2);\n        set_loc("awkgram.y",0x133a);\n        pcVar2 = (char *)dcgettext(0,"sending variable list to standard error",5);\n        r_warning(pcVar2);\n        fp = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }" else (compound_statement "{\n      fp = fopen64(fname,(char *)FUN_000aa4aa);\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (fp == (FILE *)0x0) {\n        set_loc("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        pcVar3 = (char *)dcgettext(0,"could not open `%s\' for writing: %s",5);\n        r_warning(pcVar3,fname,pcVar2);\n        set_loc("awkgram.y",0x133a);\n        pcVar2 = (char *)dcgettext(0,"sending variable list to standard error",5);\n        r_warning(pcVar2);\n        fp = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }" { (expression_statement "fp = fopen64(fname,(char *)FUN_000aa4aa);" (assignment_expression "fp = fopen64(fname,(char *)FUN_000aa4aa)" identifier = (call_expression "fopen64(fname,(char *)FUN_000aa4aa)" identifier (argument_list "(fname,(char *)FUN_000aa4aa)" ( identifier , (cast_expression "(char *)FUN_000aa4aa" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "piVar1 = (int *)PTR_stdout_000dcfc8;" (assignment_expression "piVar1 = (int *)PTR_stdout_000dcfc8" identifier = (cast_expression "(int *)PTR_stdout_000dcfc8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (fp == (FILE *)0x0) {\n        set_loc("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        pcVar3 = (char *)dcgettext(0,"could not open `%s\' for writing: %s",5);\n        r_warning(pcVar3,fname,pcVar2);\n        set_loc("awkgram.y",0x133a);\n        pcVar2 = (char *)dcgettext(0,"sending variable list to standard error",5);\n        r_warning(pcVar2);\n        fp = *(FILE **)PTR_stderr_000dcf78;\n      }" if (parenthesized_expression "(fp == (FILE *)0x0)" ( (binary_expression "fp == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        set_loc("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        pcVar3 = (char *)dcgettext(0,"could not open `%s\' for writing: %s",5);\n        r_warning(pcVar3,fname,pcVar2);\n        set_loc("awkgram.y",0x133a);\n        pcVar2 = (char *)dcgettext(0,"sending variable list to standard error",5);\n        r_warning(pcVar2);\n        fp = *(FILE **)PTR_stderr_000dcf78;\n      }" { (expression_statement "set_loc("awkgram.y",0x1339);" (call_expression "set_loc("awkgram.y",0x1339)" identifier (argument_list "("awkgram.y",0x1339)" ( (string_literal ""awkgram.y"" " string_content ") , number_literal ))) ;) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar2 = strerror(*piVar4);" (assignment_expression "pcVar2 = strerror(*piVar4)" identifier = (call_expression "strerror(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "pcVar3 = (char *)dcgettext(0,"could not open `%s\' for writing: %s",5);" (assignment_expression "pcVar3 = (char *)dcgettext(0,"could not open `%s\' for writing: %s",5)" identifier = (cast_expression "(char *)dcgettext(0,"could not open `%s\' for writing: %s",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"could not open `%s\' for writing: %s",5)" identifier (argument_list "(0,"could not open `%s\' for writing: %s",5)" ( number_literal , (string_literal ""could not open `%s\' for writing: %s"" " string_content escape_sequence string_content ") , number_literal ))))) ;) (expression_statement "r_warning(pcVar3,fname,pcVar2);" (call_expression "r_warning(pcVar3,fname,pcVar2)" identifier (argument_list "(pcVar3,fname,pcVar2)" ( identifier , identifier , identifier ))) ;) (expression_statement "set_loc("awkgram.y",0x133a);" (call_expression "set_loc("awkgram.y",0x133a)" identifier (argument_list "("awkgram.y",0x133a)" ( (string_literal ""awkgram.y"" " string_content ") , number_literal ))) ;) (expression_statement "pcVar2 = (char *)dcgettext(0,"sending variable list to standard error",5);" (assignment_expression "pcVar2 = (char *)dcgettext(0,"sending variable list to standard error",5)" identifier = (cast_expression "(char *)dcgettext(0,"sending variable list to standard error",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"sending variable list to standard error",5)" identifier (argument_list "(0,"sending variable list to standard error",5)" ( number_literal , (string_literal ""sending variable list to standard error"" " string_content ") , number_literal ))))) ;) (expression_statement "r_warning(pcVar2);" (call_expression "r_warning(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) (expression_statement "fp = *(FILE **)PTR_stderr_000dcf78;" (assignment_expression "fp = *(FILE **)PTR_stderr_000dcf78" identifier = (pointer_expression "*(FILE **)PTR_stderr_000dcf78" * (cast_expression "(FILE **)PTR_stderr_000dcf78" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) })) }))) }))) (expression_statement "table = variable_list();" (assignment_expression "table = variable_list()" identifier = (call_expression "variable_list()" identifier (argument_list "()" ( )))) ;) (expression_statement "print_vars(table,(_func_int_FILE_ptr_char_ptr_varargs *)PTR_fprintf_000dcfb4,(FILE *)fp);" (call_expression "print_vars(table,(_func_int_FILE_ptr_char_ptr_varargs *)PTR_fprintf_000dcfb4,(FILE *)fp)" identifier (argument_list "(table,(_func_int_FILE_ptr_char_ptr_varargs *)PTR_fprintf_000dcfb4,(FILE *)fp)" ( identifier , (cast_expression "(_func_int_FILE_ptr_char_ptr_varargs *)PTR_fprintf_000dcfb4" ( (type_descriptor "_func_int_FILE_ptr_char_ptr_varargs *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(FILE *)fp" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "free(table);" (call_expression "free(table)" identifier (argument_list "(table)" ( identifier ))) ;) (if_statement "if (((FILE *)*piVar1 != fp) && (*(FILE **)PTR_stderr_000dcf78 != fp)) {\n    iVar5 = fclose(fp);\n    if (iVar5 != 0) {\n      set_loc("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      pcVar3 = (char *)dcgettext(0,"%s: close failed: %s",5);\n      r_warning(pcVar3,fname,pcVar2);\n    }\n  }" if (parenthesized_expression "(((FILE *)*piVar1 != fp) && (*(FILE **)PTR_stderr_000dcf78 != fp))" ( (binary_expression "((FILE *)*piVar1 != fp) && (*(FILE **)PTR_stderr_000dcf78 != fp)" (parenthesized_expression "((FILE *)*piVar1 != fp)" ( (binary_expression "(FILE *)*piVar1 != fp" (cast_expression "(FILE *)*piVar1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier)) != identifier) )) && (parenthesized_expression "(*(FILE **)PTR_stderr_000dcf78 != fp)" ( (binary_expression "*(FILE **)PTR_stderr_000dcf78 != fp" (pointer_expression "*(FILE **)PTR_stderr_000dcf78" * (cast_expression "(FILE **)PTR_stderr_000dcf78" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) != identifier) ))) )) (compound_statement "{\n    iVar5 = fclose(fp);\n    if (iVar5 != 0) {\n      set_loc("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      pcVar3 = (char *)dcgettext(0,"%s: close failed: %s",5);\n      r_warning(pcVar3,fname,pcVar2);\n    }\n  }" { (expression_statement "iVar5 = fclose(fp);" (assignment_expression "iVar5 = fclose(fp)" identifier = (call_expression "fclose(fp)" identifier (argument_list "(fp)" ( identifier )))) ;) (if_statement "if (iVar5 != 0) {\n      set_loc("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      pcVar3 = (char *)dcgettext(0,"%s: close failed: %s",5);\n      r_warning(pcVar3,fname,pcVar2);\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      set_loc("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      pcVar3 = (char *)dcgettext(0,"%s: close failed: %s",5);\n      r_warning(pcVar3,fname,pcVar2);\n    }" { (expression_statement "set_loc("awkgram.y",0x1342);" (call_expression "set_loc("awkgram.y",0x1342)" identifier (argument_list "("awkgram.y",0x1342)" ( (string_literal ""awkgram.y"" " string_content ") , number_literal ))) ;) (expression_statement "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar2 = strerror(*piVar1);" (assignment_expression "pcVar2 = strerror(*piVar1)" identifier = (call_expression "strerror(*piVar1)" identifier (argument_list "(*piVar1)" ( (pointer_expression "*piVar1" * identifier) )))) ;) (expression_statement "pcVar3 = (char *)dcgettext(0,"%s: close failed: %s",5);" (assignment_expression "pcVar3 = (char *)dcgettext(0,"%s: close failed: %s",5)" identifier = (cast_expression "(char *)dcgettext(0,"%s: close failed: %s",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%s: close failed: %s",5)" identifier (argument_list "(0,"%s: close failed: %s",5)" ( number_literal , (string_literal ""%s: close failed: %s"" " string_content ") , number_literal ))))) ;) (expression_statement "r_warning(pcVar3,fname,pcVar2);" (call_expression "r_warning(pcVar3,fname,pcVar2)" identifier (argument_list "(pcVar3,fname,pcVar2)" ( identifier , identifier , identifier ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000240b0(byte *param_1)\n\n{\n  void *__ptr;\n  int *piVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  FILE *__stream;\n  int *piVar4;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  \n  bVar8 = false;\n  bVar9 = param_1 == (byte *)0x0;\n  piVar1 = (int *)PTR_stdout_000dcfc8;\n  if (bVar9) {\n    __stream = *(FILE **)PTR_stderr_000dcf78;\n  }\n  else {\n    iVar5 = 2;\n    pbVar6 = param_1;\n    pbVar7 = &DAT_000a9f02;\n    do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      __stream = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      __stream = fopen64((char *)param_1,"w");\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }\n  }\n  __ptr = (void *)FUN_00081480();\n  FUN_00081870(__ptr,PTR_fprintf_000dcfb4,__stream);\n  free(__ptr);\n  if (((FILE *)*piVar1 != __stream) && (*(FILE **)PTR_stderr_000dcf78 != __stream)) {\n    iVar5 = fclose(__stream);\n    if (iVar5 != 0) {\n      FUN_00074330("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      uVar3 = dcgettext(0,"%s: close failed: %s",5);\n      FUN_00074850(uVar3,param_1,pcVar2);\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_000240b0(byte *param_1)\n\n{\n  void *__ptr;\n  int *piVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  FILE *__stream;\n  int *piVar4;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  \n  bVar8 = false;\n  bVar9 = param_1 == (byte *)0x0;\n  piVar1 = (int *)PTR_stdout_000dcfc8;\n  if (bVar9) {\n    __stream = *(FILE **)PTR_stderr_000dcf78;\n  }\n  else {\n    iVar5 = 2;\n    pbVar6 = param_1;\n    pbVar7 = &DAT_000a9f02;\n    do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      __stream = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      __stream = fopen64((char *)param_1,"w");\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }\n  }\n  __ptr = (void *)FUN_00081480();\n  FUN_00081870(__ptr,PTR_fprintf_000dcfb4,__stream);\n  free(__ptr);\n  if (((FILE *)*piVar1 != __stream) && (*(FILE **)PTR_stderr_000dcf78 != __stream)) {\n    iVar5 = fclose(__stream);\n    if (iVar5 != 0) {\n      FUN_00074330("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      uVar3 = dcgettext(0,"%s: close failed: %s",5);\n      FUN_00074850(uVar3,param_1,pcVar2);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000240b0(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  void *__ptr;\n  int *piVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  FILE *__stream;\n  int *piVar4;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  \n  bVar8 = false;\n  bVar9 = param_1 == (byte *)0x0;\n  piVar1 = (int *)PTR_stdout_000dcfc8;\n  if (bVar9) {\n    __stream = *(FILE **)PTR_stderr_000dcf78;\n  }\n  else {\n    iVar5 = 2;\n    pbVar6 = param_1;\n    pbVar7 = &DAT_000a9f02;\n    do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      __stream = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      __stream = fopen64((char *)param_1,"w");\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }\n  }\n  __ptr = (void *)FUN_00081480();\n  FUN_00081870(__ptr,PTR_fprintf_000dcfb4,__stream);\n  free(__ptr);\n  if (((FILE *)*piVar1 != __stream) && (*(FILE **)PTR_stderr_000dcf78 != __stream)) {\n    iVar5 = fclose(__stream);\n    if (iVar5 != 0) {\n      FUN_00074330("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      uVar3 = dcgettext(0,"%s: close failed: %s",5);\n      FUN_00074850(uVar3,param_1,pcVar2);\n    }\n  }\n  return;\n}" { (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "bool bVar9;" primitive_type identifier ;) (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" identifier = false) ;) (expression_statement "bVar9 = param_1 == (byte *)0x0;" (assignment_expression "bVar9 = param_1 == (byte *)0x0" identifier = (binary_expression "param_1 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (expression_statement "piVar1 = (int *)PTR_stdout_000dcfc8;" (assignment_expression "piVar1 = (int *)PTR_stdout_000dcfc8" identifier = (cast_expression "(int *)PTR_stdout_000dcfc8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (bVar9) {\n    __stream = *(FILE **)PTR_stderr_000dcf78;\n  }\n  else {\n    iVar5 = 2;\n    pbVar6 = param_1;\n    pbVar7 = &DAT_000a9f02;\n    do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      __stream = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      __stream = fopen64((char *)param_1,"w");\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }\n  }" if (parenthesized_expression "(bVar9)" ( identifier )) (compound_statement "{\n    __stream = *(FILE **)PTR_stderr_000dcf78;\n  }" { (expression_statement "__stream = *(FILE **)PTR_stderr_000dcf78;" (assignment_expression "__stream = *(FILE **)PTR_stderr_000dcf78" identifier = (pointer_expression "*(FILE **)PTR_stderr_000dcf78" * (cast_expression "(FILE **)PTR_stderr_000dcf78" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }) (else_clause "else {\n    iVar5 = 2;\n    pbVar6 = param_1;\n    pbVar7 = &DAT_000a9f02;\n    do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      __stream = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      __stream = fopen64((char *)param_1,"w");\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }\n  }" else (compound_statement "{\n    iVar5 = 2;\n    pbVar6 = param_1;\n    pbVar7 = &DAT_000a9f02;\n    do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      __stream = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      __stream = fopen64((char *)param_1,"w");\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }\n  }" { (expression_statement "iVar5 = 2;" (assignment_expression "iVar5 = 2" identifier = number_literal) ;) (expression_statement "pbVar6 = param_1;" (assignment_expression "pbVar6 = param_1" identifier = identifier) ;) (expression_statement "pbVar7 = &DAT_000a9f02;" (assignment_expression "pbVar7 = &DAT_000a9f02" identifier = (pointer_expression "&DAT_000a9f02" & identifier)) ;) (do_statement "do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);" do (compound_statement "{\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    }" { (if_statement "if (iVar5 == 0) break;" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (expression_statement "bVar8 = *pbVar6 < *pbVar7;" (assignment_expression "bVar8 = *pbVar6 < *pbVar7" identifier = (binary_expression "*pbVar6 < *pbVar7" (pointer_expression "*pbVar6" * identifier) < (pointer_expression "*pbVar7" * identifier))) ;) (expression_statement "bVar9 = *pbVar6 == *pbVar7;" (assignment_expression "bVar9 = *pbVar6 == *pbVar7" identifier = (binary_expression "*pbVar6 == *pbVar7" (pointer_expression "*pbVar6" * identifier) == (pointer_expression "*pbVar7" * identifier))) ;) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar9)" ( identifier )) ;) (if_statement "if ((!bVar8 && !bVar9) == bVar8) {\n      __stream = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      __stream = fopen64((char *)param_1,"w");\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }" if (parenthesized_expression "((!bVar8 && !bVar9) == bVar8)" ( (binary_expression "(!bVar8 && !bVar9) == bVar8" (parenthesized_expression "(!bVar8 && !bVar9)" ( (binary_expression "!bVar8 && !bVar9" (unary_expression "!bVar8" ! identifier) && (unary_expression "!bVar9" ! identifier)) )) == identifier) )) (compound_statement "{\n      __stream = *(FILE **)PTR_stdout_000dcfc8;\n    }" { (expression_statement "__stream = *(FILE **)PTR_stdout_000dcfc8;" (assignment_expression "__stream = *(FILE **)PTR_stdout_000dcfc8" identifier = (pointer_expression "*(FILE **)PTR_stdout_000dcfc8" * (cast_expression "(FILE **)PTR_stdout_000dcfc8" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }) (else_clause "else {\n      __stream = fopen64((char *)param_1,"w");\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }" else (compound_statement "{\n      __stream = fopen64((char *)param_1,"w");\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }" { (expression_statement "__stream = fopen64((char *)param_1,"w");" (assignment_expression "__stream = fopen64((char *)param_1,"w")" identifier = (call_expression "fopen64((char *)param_1,"w")" identifier (argument_list "((char *)param_1,"w")" ( (cast_expression "(char *)param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""w"" " string_content ") )))) ;) (expression_statement "piVar1 = (int *)PTR_stdout_000dcfc8;" (assignment_expression "piVar1 = (int *)PTR_stdout_000dcfc8" identifier = (cast_expression "(int *)PTR_stdout_000dcfc8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }" if (parenthesized_expression "(__stream == (FILE *)0x0)" ( (binary_expression "__stream == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }" { (expression_statement "FUN_00074330("awkgram.y",0x1339);" (call_expression "FUN_00074330("awkgram.y",0x1339)" identifier (argument_list "("awkgram.y",0x1339)" ( (string_literal ""awkgram.y"" " string_content ") , number_literal ))) ;) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar2 = strerror(*piVar4);" (assignment_expression "pcVar2 = strerror(*piVar4)" identifier = (call_expression "strerror(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);" (assignment_expression "uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5)" identifier = (call_expression "dcgettext(0,"could not open `%s\' for writing: %s",5)" identifier (argument_list "(0,"could not open `%s\' for writing: %s",5)" ( number_literal , (string_literal ""could not open `%s\' for writing: %s"" " string_content escape_sequence string_content ") , number_literal )))) ;) (expression_statement "FUN_00074850(uVar3,param_1,pcVar2);" (call_expression "FUN_00074850(uVar3,param_1,pcVar2)" identifier (argument_list "(uVar3,param_1,pcVar2)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_00074330("awkgram.y",0x133a);" (call_expression "FUN_00074330("awkgram.y",0x133a)" identifier (argument_list "("awkgram.y",0x133a)" ( (string_literal ""awkgram.y"" " string_content ") , number_literal ))) ;) (expression_statement "uVar3 = dcgettext(0,"sending variable list to standard error",5);" (assignment_expression "uVar3 = dcgettext(0,"sending variable list to standard error",5)" identifier = (call_expression "dcgettext(0,"sending variable list to standard error",5)" identifier (argument_list "(0,"sending variable list to standard error",5)" ( number_literal , (string_literal ""sending variable list to standard error"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00074850(uVar3);" (call_expression "FUN_00074850(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (expression_statement "__stream = *(FILE **)PTR_stderr_000dcf78;" (assignment_expression "__stream = *(FILE **)PTR_stderr_000dcf78" identifier = (pointer_expression "*(FILE **)PTR_stderr_000dcf78" * (cast_expression "(FILE **)PTR_stderr_000dcf78" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) })) }))) }))) (expression_statement "__ptr = (void *)FUN_00081480();" (assignment_expression "__ptr = (void *)FUN_00081480()" identifier = (cast_expression "(void *)FUN_00081480()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00081480()" identifier (argument_list "()" ( ))))) ;) (expression_statement "FUN_00081870(__ptr,PTR_fprintf_000dcfb4,__stream);" (call_expression "FUN_00081870(__ptr,PTR_fprintf_000dcfb4,__stream)" identifier (argument_list "(__ptr,PTR_fprintf_000dcfb4,__stream)" ( identifier , identifier , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (if_statement "if (((FILE *)*piVar1 != __stream) && (*(FILE **)PTR_stderr_000dcf78 != __stream)) {\n    iVar5 = fclose(__stream);\n    if (iVar5 != 0) {\n      FUN_00074330("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      uVar3 = dcgettext(0,"%s: close failed: %s",5);\n      FUN_00074850(uVar3,param_1,pcVar2);\n    }\n  }" if (parenthesized_expression "(((FILE *)*piVar1 != __stream) && (*(FILE **)PTR_stderr_000dcf78 != __stream))" ( (binary_expression "((FILE *)*piVar1 != __stream) && (*(FILE **)PTR_stderr_000dcf78 != __stream)" (parenthesized_expression "((FILE *)*piVar1 != __stream)" ( (binary_expression "(FILE *)*piVar1 != __stream" (cast_expression "(FILE *)*piVar1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier)) != identifier) )) && (parenthesized_expression "(*(FILE **)PTR_stderr_000dcf78 != __stream)" ( (binary_expression "*(FILE **)PTR_stderr_000dcf78 != __stream" (pointer_expression "*(FILE **)PTR_stderr_000dcf78" * (cast_expression "(FILE **)PTR_stderr_000dcf78" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) != identifier) ))) )) (compound_statement "{\n    iVar5 = fclose(__stream);\n    if (iVar5 != 0) {\n      FUN_00074330("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      uVar3 = dcgettext(0,"%s: close failed: %s",5);\n      FUN_00074850(uVar3,param_1,pcVar2);\n    }\n  }" { (expression_statement "iVar5 = fclose(__stream);" (assignment_expression "iVar5 = fclose(__stream)" identifier = (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier )))) ;) (if_statement "if (iVar5 != 0) {\n      FUN_00074330("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      uVar3 = dcgettext(0,"%s: close failed: %s",5);\n      FUN_00074850(uVar3,param_1,pcVar2);\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_00074330("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      uVar3 = dcgettext(0,"%s: close failed: %s",5);\n      FUN_00074850(uVar3,param_1,pcVar2);\n    }" { (expression_statement "FUN_00074330("awkgram.y",0x1342);" (call_expression "FUN_00074330("awkgram.y",0x1342)" identifier (argument_list "("awkgram.y",0x1342)" ( (string_literal ""awkgram.y"" " string_content ") , number_literal ))) ;) (expression_statement "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar2 = strerror(*piVar1);" (assignment_expression "pcVar2 = strerror(*piVar1)" identifier = (call_expression "strerror(*piVar1)" identifier (argument_list "(*piVar1)" ( (pointer_expression "*piVar1" * identifier) )))) ;) (expression_statement "uVar3 = dcgettext(0,"%s: close failed: %s",5);" (assignment_expression "uVar3 = dcgettext(0,"%s: close failed: %s",5)" identifier = (call_expression "dcgettext(0,"%s: close failed: %s",5)" identifier (argument_list "(0,"%s: close failed: %s",5)" ( number_literal , (string_literal ""%s: close failed: %s"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00074850(uVar3,param_1,pcVar2);" (call_expression "FUN_00074850(uVar3,param_1,pcVar2)" identifier (argument_list "(uVar3,param_1,pcVar2)" ( identifier , identifier , identifier ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * 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 = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , (string_literal " string_content ") )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT ))) ;) (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 = (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 (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) })) }))) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) != IDENT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) != IDENT) ))) )) (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 (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT ))) ;) (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 = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_000240b0(byte *param_1)\n\n{\n  void *__ptr;\n  int *piVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  FILE *__stream;\n  int *piVar4;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  \n  bVar8 = false;\n  bVar9 = param_1 == (byte *)0x0;\n  piVar1 = (int *)PTR_stdout_000dcfc8;\n  if (bVar9) {\n    __stream = *(FILE **)PTR_stderr_000dcf78;\n  }\n  else {\n    iVar5 = 2;\n    pbVar6 = param_1;\n    pbVar7 = &DAT_000a9f02;\n    do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      __stream = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      __stream = fopen64((char *)param_1,"w");\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }\n  }\n  __ptr = (void *)FUN_00081480();\n  FUN_00081870(__ptr,PTR_fprintf_000dcfb4,__stream);\n  free(__ptr);\n  if (((FILE *)*piVar1 != __stream) && (*(FILE **)PTR_stderr_000dcf78 != __stream)) {\n    iVar5 = fclose(__stream);\n    if (iVar5 != 0) {\n      FUN_00074330("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      uVar3 = dcgettext(0,"%s: close failed: %s",5);\n      FUN_00074850(uVar3,param_1,pcVar2);\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000240b0(byte *param_1)" (identifier "FUN_000240b0") (parameter_list "(byte *param_1)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  void *__ptr;\n  int *piVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  FILE *__stream;\n  int *piVar4;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  \n  bVar8 = false;\n  bVar9 = param_1 == (byte *)0x0;\n  piVar1 = (int *)PTR_stdout_000dcfc8;\n  if (bVar9) {\n    __stream = *(FILE **)PTR_stderr_000dcf78;\n  }\n  else {\n    iVar5 = 2;\n    pbVar6 = param_1;\n    pbVar7 = &DAT_000a9f02;\n    do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      __stream = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      __stream = fopen64((char *)param_1,"w");\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }\n  }\n  __ptr = (void *)FUN_00081480();\n  FUN_00081870(__ptr,PTR_fprintf_000dcfb4,__stream);\n  free(__ptr);\n  if (((FILE *)*piVar1 != __stream) && (*(FILE **)PTR_stderr_000dcf78 != __stream)) {\n    iVar5 = fclose(__stream);\n    if (iVar5 != 0) {\n      FUN_00074330("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      uVar3 = dcgettext(0,"%s: close failed: %s",5);\n      FUN_00074850(uVar3,param_1,pcVar2);\n    }\n  }\n  return;\n}" ({ "{") (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "FILE *__stream;" (type_identifier "FILE") (pointer_declarator "*__stream" (* "*") (identifier "__stream")) (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "byte *pbVar6;" (type_identifier "byte") (pointer_declarator "*pbVar6" (* "*") (identifier "pbVar6")) (; ";")) (declaration "byte *pbVar7;" (type_identifier "byte") (pointer_declarator "*pbVar7" (* "*") (identifier "pbVar7")) (; ";")) (declaration "bool bVar8;" (primitive_type "bool") (identifier "bVar8") (; ";")) (declaration "bool bVar9;" (primitive_type "bool") (identifier "bVar9") (; ";")) (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" (identifier "bVar8") (= "=") (false "false")) (; ";")) (expression_statement "bVar9 = param_1 == (byte *)0x0;" (assignment_expression "bVar9 = param_1 == (byte *)0x0" (identifier "bVar9") (= "=") (binary_expression "param_1 == (byte *)0x0" (identifier "param_1") (== "==") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) (; ";")) (expression_statement "piVar1 = (int *)PTR_stdout_000dcfc8;" (assignment_expression "piVar1 = (int *)PTR_stdout_000dcfc8" (identifier "piVar1") (= "=") (cast_expression "(int *)PTR_stdout_000dcfc8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stdout_000dcfc8"))) (; ";")) (if_statement "if (bVar9) {\n    __stream = *(FILE **)PTR_stderr_000dcf78;\n  }\n  else {\n    iVar5 = 2;\n    pbVar6 = param_1;\n    pbVar7 = &DAT_000a9f02;\n    do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      __stream = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      __stream = fopen64((char *)param_1,"w");\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(bVar9)" (( "(") (identifier "bVar9") () ")")) (compound_statement "{\n    __stream = *(FILE **)PTR_stderr_000dcf78;\n  }" ({ "{") (expression_statement "__stream = *(FILE **)PTR_stderr_000dcf78;" (assignment_expression "__stream = *(FILE **)PTR_stderr_000dcf78" (identifier "__stream") (= "=") (pointer_expression "*(FILE **)PTR_stderr_000dcf78" (* "*") (cast_expression "(FILE **)PTR_stderr_000dcf78" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stderr_000dcf78")))) (; ";")) (} "}")) (else_clause "else {\n    iVar5 = 2;\n    pbVar6 = param_1;\n    pbVar7 = &DAT_000a9f02;\n    do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      __stream = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      __stream = fopen64((char *)param_1,"w");\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }\n  }" (else "else") (compound_statement "{\n    iVar5 = 2;\n    pbVar6 = param_1;\n    pbVar7 = &DAT_000a9f02;\n    do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      __stream = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      __stream = fopen64((char *)param_1,"w");\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }\n  }" ({ "{") (expression_statement "iVar5 = 2;" (assignment_expression "iVar5 = 2" (identifier "iVar5") (= "=") (number_literal "2")) (; ";")) (expression_statement "pbVar6 = param_1;" (assignment_expression "pbVar6 = param_1" (identifier "pbVar6") (= "=") (identifier "param_1")) (; ";")) (expression_statement "pbVar7 = &DAT_000a9f02;" (assignment_expression "pbVar7 = &DAT_000a9f02" (identifier "pbVar7") (= "=") (pointer_expression "&DAT_000a9f02" (& "&") (identifier "DAT_000a9f02"))) (; ";")) (do_statement "do {\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    } while (bVar9);" (do "do") (compound_statement "{\n      if (iVar5 == 0) break;\n      iVar5 = iVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + 1;\n      pbVar7 = pbVar7 + 1;\n    }" ({ "{") (if_statement "if (iVar5 == 0) break;" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar8 = *pbVar6 < *pbVar7;" (assignment_expression "bVar8 = *pbVar6 < *pbVar7" (identifier "bVar8") (= "=") (binary_expression "*pbVar6 < *pbVar7" (pointer_expression "*pbVar6" (* "*") (identifier "pbVar6")) (< "<") (pointer_expression "*pbVar7" (* "*") (identifier "pbVar7")))) (; ";")) (expression_statement "bVar9 = *pbVar6 == *pbVar7;" (assignment_expression "bVar9 = *pbVar6 == *pbVar7" (identifier "bVar9") (= "=") (binary_expression "*pbVar6 == *pbVar7" (pointer_expression "*pbVar6" (* "*") (identifier "pbVar6")) (== "==") (pointer_expression "*pbVar7" (* "*") (identifier "pbVar7")))) (; ";")) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" (identifier "pbVar6") (= "=") (binary_expression "pbVar6 + 1" (identifier "pbVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" (identifier "pbVar7") (= "=") (binary_expression "pbVar7 + 1" (identifier "pbVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar9)" (( "(") (identifier "bVar9") () ")")) (; ";")) (if_statement "if ((!bVar8 && !bVar9) == bVar8) {\n      __stream = *(FILE **)PTR_stdout_000dcfc8;\n    }\n    else {\n      __stream = fopen64((char *)param_1,"w");\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }" (if "if") (parenthesized_expression "((!bVar8 && !bVar9) == bVar8)" (( "(") (binary_expression "(!bVar8 && !bVar9) == bVar8" (parenthesized_expression "(!bVar8 && !bVar9)" (( "(") (binary_expression "!bVar8 && !bVar9" (unary_expression "!bVar8" (! "!") (identifier "bVar8")) (&& "&&") (unary_expression "!bVar9" (! "!") (identifier "bVar9"))) () ")")) (== "==") (identifier "bVar8")) () ")")) (compound_statement "{\n      __stream = *(FILE **)PTR_stdout_000dcfc8;\n    }" ({ "{") (expression_statement "__stream = *(FILE **)PTR_stdout_000dcfc8;" (assignment_expression "__stream = *(FILE **)PTR_stdout_000dcfc8" (identifier "__stream") (= "=") (pointer_expression "*(FILE **)PTR_stdout_000dcfc8" (* "*") (cast_expression "(FILE **)PTR_stdout_000dcfc8" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stdout_000dcfc8")))) (; ";")) (} "}")) (else_clause "else {\n      __stream = fopen64((char *)param_1,"w");\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }" (else "else") (compound_statement "{\n      __stream = fopen64((char *)param_1,"w");\n      piVar1 = (int *)PTR_stdout_000dcfc8;\n      if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }\n    }" ({ "{") (expression_statement "__stream = fopen64((char *)param_1,"w");" (assignment_expression "__stream = fopen64((char *)param_1,"w")" (identifier "__stream") (= "=") (call_expression "fopen64((char *)param_1,"w")" (identifier "fopen64") (argument_list "((char *)param_1,"w")" (( "(") (cast_expression "(char *)param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1")) (, ",") (string_literal ""w"" (" """) (string_content "w") (" """)) () ")")))) (; ";")) (expression_statement "piVar1 = (int *)PTR_stdout_000dcfc8;" (assignment_expression "piVar1 = (int *)PTR_stdout_000dcfc8" (identifier "piVar1") (= "=") (cast_expression "(int *)PTR_stdout_000dcfc8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stdout_000dcfc8"))) (; ";")) (if_statement "if (__stream == (FILE *)0x0) {\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }" (if "if") (parenthesized_expression "(__stream == (FILE *)0x0)" (( "(") (binary_expression "__stream == (FILE *)0x0" (identifier "__stream") (== "==") (cast_expression "(FILE *)0x0" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        FUN_00074330("awkgram.y",0x1339);\n        piVar4 = __errno_location();\n        pcVar2 = strerror(*piVar4);\n        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);\n        FUN_00074850(uVar3,param_1,pcVar2);\n        FUN_00074330("awkgram.y",0x133a);\n        uVar3 = dcgettext(0,"sending variable list to standard error",5);\n        FUN_00074850(uVar3);\n        __stream = *(FILE **)PTR_stderr_000dcf78;\n      }" ({ "{") (expression_statement "FUN_00074330("awkgram.y",0x1339);" (call_expression "FUN_00074330("awkgram.y",0x1339)" (identifier "FUN_00074330") (argument_list "("awkgram.y",0x1339)" (( "(") (string_literal ""awkgram.y"" (" """) (string_content "awkgram.y") (" """)) (, ",") (number_literal "0x1339") () ")"))) (; ";")) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" (identifier "piVar4") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar2 = strerror(*piVar4);" (assignment_expression "pcVar2 = strerror(*piVar4)" (identifier "pcVar2") (= "=") (call_expression "strerror(*piVar4)" (identifier "strerror") (argument_list "(*piVar4)" (( "(") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) () ")")))) (; ";")) (expression_statement "uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);" (assignment_expression "uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,"could not open `%s\' for writing: %s",5)" (identifier "dcgettext") (argument_list "(0,"could not open `%s\' for writing: %s",5)" (( "(") (number_literal "0") (, ",") (string_literal ""could not open `%s\' for writing: %s"" (" """) (string_content "could not open `%s") (escape_sequence "\'") (string_content " for writing: %s") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00074850(uVar3,param_1,pcVar2);" (call_expression "FUN_00074850(uVar3,param_1,pcVar2)" (identifier "FUN_00074850") (argument_list "(uVar3,param_1,pcVar2)" (( "(") (identifier "uVar3") (, ",") (identifier "param_1") (, ",") (identifier "pcVar2") () ")"))) (; ";")) (expression_statement "FUN_00074330("awkgram.y",0x133a);" (call_expression "FUN_00074330("awkgram.y",0x133a)" (identifier "FUN_00074330") (argument_list "("awkgram.y",0x133a)" (( "(") (string_literal ""awkgram.y"" (" """) (string_content "awkgram.y") (" """)) (, ",") (number_literal "0x133a") () ")"))) (; ";")) (expression_statement "uVar3 = dcgettext(0,"sending variable list to standard error",5);" (assignment_expression "uVar3 = dcgettext(0,"sending variable list to standard error",5)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,"sending variable list to standard error",5)" (identifier "dcgettext") (argument_list "(0,"sending variable list to standard error",5)" (( "(") (number_literal "0") (, ",") (string_literal ""sending variable list to standard error"" (" """) (string_content "sending variable list to standard error") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00074850(uVar3);" (call_expression "FUN_00074850(uVar3)" (identifier "FUN_00074850") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "__stream = *(FILE **)PTR_stderr_000dcf78;" (assignment_expression "__stream = *(FILE **)PTR_stderr_000dcf78" (identifier "__stream") (= "=") (pointer_expression "*(FILE **)PTR_stderr_000dcf78" (* "*") (cast_expression "(FILE **)PTR_stderr_000dcf78" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stderr_000dcf78")))) (; ";")) (} "}"))) (} "}")))) (} "}")))) (expression_statement "__ptr = (void *)FUN_00081480();" (assignment_expression "__ptr = (void *)FUN_00081480()" (identifier "__ptr") (= "=") (cast_expression "(void *)FUN_00081480()" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00081480()" (identifier "FUN_00081480") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "FUN_00081870(__ptr,PTR_fprintf_000dcfb4,__stream);" (call_expression "FUN_00081870(__ptr,PTR_fprintf_000dcfb4,__stream)" (identifier "FUN_00081870") (argument_list "(__ptr,PTR_fprintf_000dcfb4,__stream)" (( "(") (identifier "__ptr") (, ",") (identifier "PTR_fprintf_000dcfb4") (, ",") (identifier "__stream") () ")"))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (if_statement "if (((FILE *)*piVar1 != __stream) && (*(FILE **)PTR_stderr_000dcf78 != __stream)) {\n    iVar5 = fclose(__stream);\n    if (iVar5 != 0) {\n      FUN_00074330("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      uVar3 = dcgettext(0,"%s: close failed: %s",5);\n      FUN_00074850(uVar3,param_1,pcVar2);\n    }\n  }" (if "if") (parenthesized_expression "(((FILE *)*piVar1 != __stream) && (*(FILE **)PTR_stderr_000dcf78 != __stream))" (( "(") (binary_expression "((FILE *)*piVar1 != __stream) && (*(FILE **)PTR_stderr_000dcf78 != __stream)" (parenthesized_expression "((FILE *)*piVar1 != __stream)" (( "(") (binary_expression "(FILE *)*piVar1 != __stream" (cast_expression "(FILE *)*piVar1" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (!= "!=") (identifier "__stream")) () ")")) (&& "&&") (parenthesized_expression "(*(FILE **)PTR_stderr_000dcf78 != __stream)" (( "(") (binary_expression "*(FILE **)PTR_stderr_000dcf78 != __stream" (pointer_expression "*(FILE **)PTR_stderr_000dcf78" (* "*") (cast_expression "(FILE **)PTR_stderr_000dcf78" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stderr_000dcf78"))) (!= "!=") (identifier "__stream")) () ")"))) () ")")) (compound_statement "{\n    iVar5 = fclose(__stream);\n    if (iVar5 != 0) {\n      FUN_00074330("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      uVar3 = dcgettext(0,"%s: close failed: %s",5);\n      FUN_00074850(uVar3,param_1,pcVar2);\n    }\n  }" ({ "{") (expression_statement "iVar5 = fclose(__stream);" (assignment_expression "iVar5 = fclose(__stream)" (identifier "iVar5") (= "=") (call_expression "fclose(__stream)" (identifier "fclose") (argument_list "(__stream)" (( "(") (identifier "__stream") () ")")))) (; ";")) (if_statement "if (iVar5 != 0) {\n      FUN_00074330("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      uVar3 = dcgettext(0,"%s: close failed: %s",5);\n      FUN_00074850(uVar3,param_1,pcVar2);\n    }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00074330("awkgram.y",0x1342);\n      piVar1 = __errno_location();\n      pcVar2 = strerror(*piVar1);\n      uVar3 = dcgettext(0,"%s: close failed: %s",5);\n      FUN_00074850(uVar3,param_1,pcVar2);\n    }" ({ "{") (expression_statement "FUN_00074330("awkgram.y",0x1342);" (call_expression "FUN_00074330("awkgram.y",0x1342)" (identifier "FUN_00074330") (argument_list "("awkgram.y",0x1342)" (( "(") (string_literal ""awkgram.y"" (" """) (string_content "awkgram.y") (" """)) (, ",") (number_literal "0x1342") () ")"))) (; ";")) (expression_statement "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" (identifier "piVar1") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar2 = strerror(*piVar1);" (assignment_expression "pcVar2 = strerror(*piVar1)" (identifier "pcVar2") (= "=") (call_expression "strerror(*piVar1)" (identifier "strerror") (argument_list "(*piVar1)" (( "(") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) () ")")))) (; ";")) (expression_statement "uVar3 = dcgettext(0,"%s: close failed: %s",5);" (assignment_expression "uVar3 = dcgettext(0,"%s: close failed: %s",5)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,"%s: close failed: %s",5)" (identifier "dcgettext") (argument_list "(0,"%s: close failed: %s",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%s: close failed: %s"" (" """) (string_content "%s: close failed: %s") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00074850(uVar3,param_1,pcVar2);" (call_expression "FUN_00074850(uVar3,param_1,pcVar2)" (identifier "FUN_00074850") (argument_list "(uVar3,param_1,pcVar2)" (( "(") (identifier "uVar3") (, ",") (identifier "param_1") (, ",") (identifier "pcVar2") () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(char *var_1)

{
  type_1 **table;
  int *piVar1;
  char *pcVar2;
  char *pcVar3;
  type_2 *var_7;
  int *piVar4;
  int var_2;
  type_3 *var_3;
  type_3 *var_4;
  bool var_5;
  bool bVar9;
  
  var_5 = false;
  bVar9 = var_1 == (char *)0x0;
  piVar1 = (int *)PTR_stdout_000dcfc8;
  if (bVar9) {
    var_7 = *(type_2 **)PTR_stderr_000dcf78;
  }
  else {
    var_2 = 2;
    var_3 = (type_3 *)var_1;
    var_4 = &DAT_000a9f02;
    do {
      if (var_2 == 0) break;
      var_2 = var_2 + -1;
      var_5 = *var_3 < *var_4;
      bVar9 = *var_3 == *var_4;
      var_3 = var_3 + 1;
      var_4 = var_4 + 1;
    } while (bVar9);
    if ((!var_5 && !bVar9) == var_5) {
      var_7 = *(type_2 **)PTR_stdout_000dcfc8;
    }
    else {
      var_7 = var_6(var_1,(char *)FUN_000aa4aa);
      piVar1 = (int *)PTR_stdout_000dcfc8;
      if (var_7 == (type_2 *)0x0) {
        var_8("awkgram.y",0x1339);
        piVar4 = var_9();
        pcVar2 = var_10(*piVar4);
        pcVar3 = (char *)var_11(0,"could not open `%s\' for writing: %s",5);
        var_12(pcVar3,var_1,pcVar2);
        var_8("awkgram.y",0x133a);
        pcVar2 = (char *)var_11(0,"sending variable list to standard error",5);
        var_12(pcVar2);
        var_7 = *(type_2 **)PTR_stderr_000dcf78;
      }
    }
  }
  table = var_13();
  var_14(table,(type_4 *)PTR_fprintf_000dcfb4,(type_2 *)var_7);
  var_15(table);
  if (((type_2 *)*piVar1 != var_7) && (*(type_2 **)PTR_stderr_000dcf78 != var_7)) {
    var_2 = var_16(var_7);
    if (var_2 != 0) {
      var_8("awkgram.y",0x1342);
      piVar1 = var_9();
      pcVar2 = var_10(*piVar1);
      pcVar3 = (char *)var_11(0,"%s: close failed: %s",5);
      var_12(pcVar3,var_1,pcVar2);
    }
  }
  return;
}


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

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

void MASKED(byte *param_1)

{
  void *__ptr;
  int *piVar1;
  char *pcVar2;
  undefined4 uVar3;
  FILE *__stream;
  int *piVar4;
  int iVar5;
  byte *pbVar6;
  byte *pbVar7;
  bool bVar8;
  bool bVar9;
  
  bVar8 = false;
  bVar9 = param_1 == (byte *)0x0;
  piVar1 = (int *)PTR_stdout_000dcfc8;
  if (bVar9) {
    __stream = *(FILE **)PTR_stderr_000dcf78;
  }
  else {
    iVar5 = 2;
    pbVar6 = param_1;
    pbVar7 = &DAT_000a9f02;
    do {
      if (iVar5 == 0) break;
      iVar5 = iVar5 + -1;
      bVar8 = *pbVar6 < *pbVar7;
      bVar9 = *pbVar6 == *pbVar7;
      pbVar6 = pbVar6 + 1;
      pbVar7 = pbVar7 + 1;
    } while (bVar9);
    if ((!bVar8 && !bVar9) == bVar8) {
      __stream = *(FILE **)PTR_stdout_000dcfc8;
    }
    else {
      __stream = fopen64((char *)param_1,"w");
      piVar1 = (int *)PTR_stdout_000dcfc8;
      if (__stream == (FILE *)0x0) {
        FUN_00074330("awkgram.y",0x1339);
        piVar4 = __errno_location();
        pcVar2 = strerror(*piVar4);
        uVar3 = dcgettext(0,"could not open `%s\' for writing: %s",5);
        FUN_00074850(uVar3,param_1,pcVar2);
        FUN_00074330("awkgram.y",0x133a);
        uVar3 = dcgettext(0,"sending variable list to standard error",5);
        FUN_00074850(uVar3);
        __stream = *(FILE **)PTR_stderr_000dcf78;
      }
    }
  }
  __ptr = (void *)FUN_00081480();
  FUN_00081870(__ptr,PTR_fprintf_000dcfb4,__stream);
  free(__ptr);
  if (((FILE *)*piVar1 != __stream) && (*(FILE **)PTR_stderr_000dcf78 != __stream)) {
    iVar5 = fclose(__stream);
    if (iVar5 != 0) {
      FUN_00074330("awkgram.y",0x1342);
      piVar1 = __errno_location();
      pcVar2 = strerror(*piVar1);
      uVar3 = dcgettext(0,"%s: close failed: %s",5);
      FUN_00074850(uVar3,param_1,pcVar2);
    }
  }
  return;
}

