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

void ar_directory(char *ar_name,list *list,char *output)

{
  bfd *pbVar1;
  bfd *abfd;
  bfd *arch;
  char *__format;
  char *pcVar2;
  
  arch = open_inarch(ar_name,(char *)0x0);
  pcVar2 = output;
  if (output == (char *)0x0) {
    outfile = *(FILE **)PTR_stdout_00020fec;
  }
  else {
    outfile = (FILE *)fopen64(output,"w");
    if ((FILE *)outfile == (FILE *)0x0) {
      outfile = *(FILE **)PTR_stdout_00020fec;
      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);
      pcVar2 = (char *)0x0;
      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,output);
    }
  }
  if (list == (list *)0x0) {
    abfd = arch->archive_next;
    while (abfd != (bfd *)0x0) {
      pbVar1 = abfd->archive_next;
      ar_directory_doer(abfd,(bfd *)0x0);
      abfd = pbVar1;
    }
  }
  else {
    map_over_list(arch,ar_directory_doer,list);
  }
  bfd_close(arch);
  if (pcVar2 != (char *)0x0) {
    fclose((FILE *)outfile);
  }
  return;
}



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

void FUN_000168b0(undefined4 param_1,int param_2,char *param_3)

{
  int iVar1;
  int iVar2;
  int iVar3;
  char *__format;
  char *pcVar4;
  
  iVar3 = FUN_000148f0(param_1,0);
  pcVar4 = param_3;
  if (param_3 == (char *)0x0) {
    DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;
  }
  else {
    DAT_000212d8 = fopen64(param_3,"w");
    if (DAT_000212d8 == (FILE *)0x0) {
      DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;
      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);
      pcVar4 = (char *)0x0;
      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);
    }
  }
  if (param_2 == 0) {
    iVar2 = *(int *)(iVar3 + 0x90);
    while (iVar2 != 0) {
      iVar1 = *(int *)(iVar2 + 0x90);
      FUN_000167a0(iVar2,0);
      iVar2 = iVar1;
    }
  }
  else {
    FUN_000167d0();
  }
  bfd_close(iVar3);
  if (pcVar4 != (char *)0x0) {
    fclose(DAT_000212d8);
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013710
ADD EBX,0xa747
SUB ESP,0x14
MOV EBP,dword ptr [ESP + 0x2c]
MOV ESI,dword ptr [ESP + 0x30]
PUSH 0x0
PUSH dword ptr [ESP + 0x2c]
CALL 0x000148f0
ADD ESP,0x10
MOV EDI,EAX
TEST ESI,ESI
JZ 0x00016940
SUB ESP,0x8
LEA EAX,[EBX + 0xffff910b]
PUSH EAX
PUSH ESI
CALL 0x000121f0
ADD ESP,0x10
MOV dword ptr [EBX + 0x2d8],EAX
TEST EAX,EAX
JZ 0x00016980
TEST EBP,EBP
JZ 0x00016952
MOV ECX,EBP
LEA EDX,[EBX + 0xffff57a0]
MOV EAX,EDI
CALL 0x000167d0
SUB ESP,0xc
PUSH EDI
CALL 0x000124b0
ADD ESP,0x10
TEST ESI,ESI
JZ 0x00016933
SUB ESP,0xc
PUSH dword ptr [EBX + 0x2d8]
CALL 0x00012150
ADD ESP,0x10
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBX + 0xffffffec]
MOV EAX,dword ptr [EAX]
MOV dword ptr [EBX + 0x2d8],EAX
TEST EBP,EBP
JNZ 0x00016903
MOV EAX,dword ptr [EDI + 0x90]
TEST EAX,EAX
JZ 0x00016912
LEA ESI,[ESI]
SUB ESP,0x8
MOV EBP,dword ptr [EAX + 0x90]
PUSH 0x0
PUSH EAX
CALL 0x000167a0
MOV EAX,EBP
ADD ESP,0x10
TEST EBP,EBP
JNZ 0x00016960
JMP 0x00016912
MOV EAX,dword ptr [EBX + 0xffffffec]
SUB ESP,0x4
MOV EAX,dword ptr [EAX]
PUSH 0x5
MOV dword ptr [EBX + 0x2d8],EAX
LEA EAX,[EBX + 0xffffaffb]
PUSH EAX
PUSH 0x0
CALL 0x00012180
ADD ESP,0xc
PUSH ESI
XOR ESI,ESI
PUSH EAX
MOV EAX,dword ptr [EBX + 0xffffffd4]
PUSH dword ptr [EAX]
CALL 0x00012390
ADD ESP,0x10
JMP 0x000168ff
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000168b0(undefined4 param_1,int param_2,char *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  char *__format;\n  char *pcVar4;\n  \n  iVar3 = FUN_000148f0(param_1,0);\n  pcVar4 = param_3;\n  if (param_3 == (char *)0x0) {\n    DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n  }\n  else {\n    DAT_000212d8 = fopen64(param_3,"w");\n    if (DAT_000212d8 == (FILE *)0x0) {\n      DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar4 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);\n    }\n  }\n  if (param_2 == 0) {\n    iVar2 = *(int *)(iVar3 + 0x90);\n    while (iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0x90);\n      FUN_000167a0(iVar2,0);\n      iVar2 = iVar1;\n    }\n  }\n  else {\n    FUN_000167d0();\n  }\n  bfd_close(iVar3);\n  if (pcVar4 != (char *)0x0) {\n    fclose(DAT_000212d8);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_000168b0(undefined4 param_1,int param_2,char *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  char *__format;\n  char *pcVar4;\n  \n  iVar3 = FUN_000148f0(param_1,0);\n  pcVar4 = param_3;\n  if (param_3 == (char *)0x0) {\n    DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n  }\n  else {\n    DAT_000212d8 = fopen64(param_3,"w");\n    if (DAT_000212d8 == (FILE *)0x0) {\n      DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar4 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);\n    }\n  }\n  if (param_2 == 0) {\n    iVar2 = *(int *)(iVar3 + 0x90);\n    while (iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0x90);\n      FUN_000167a0(iVar2,0);\n      iVar2 = iVar1;\n    }\n  }\n  else {\n    FUN_000167d0();\n  }\n  bfd_close(iVar3);\n  if (pcVar4 != (char *)0x0) {\n    fclose(DAT_000212d8);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000168b0(undefined4 param_1,int param_2,char *param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,char *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  char *__format;\n  char *pcVar4;\n  \n  iVar3 = FUN_000148f0(param_1,0);\n  pcVar4 = param_3;\n  if (param_3 == (char *)0x0) {\n    DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n  }\n  else {\n    DAT_000212d8 = fopen64(param_3,"w");\n    if (DAT_000212d8 == (FILE *)0x0) {\n      DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar4 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);\n    }\n  }\n  if (param_2 == 0) {\n    iVar2 = *(int *)(iVar3 + 0x90);\n    while (iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0x90);\n      FUN_000167a0(iVar2,0);\n      iVar2 = iVar1;\n    }\n  }\n  else {\n    FUN_000167d0();\n  }\n  bfd_close(iVar3);\n  if (pcVar4 != (char *)0x0) {\n    fclose(DAT_000212d8);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (expression_statement "iVar3 = FUN_000148f0(param_1,0);" (assignment_expression "iVar3 = FUN_000148f0(param_1,0)" identifier = (call_expression "FUN_000148f0(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "pcVar4 = param_3;" (assignment_expression "pcVar4 = param_3" identifier = identifier) ;) (if_statement "if (param_3 == (char *)0x0) {\n    DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n  }\n  else {\n    DAT_000212d8 = fopen64(param_3,"w");\n    if (DAT_000212d8 == (FILE *)0x0) {\n      DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar4 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);\n    }\n  }" if (parenthesized_expression "(param_3 == (char *)0x0)" ( (binary_expression "param_3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n  }" { (expression_statement "DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;" (assignment_expression "DAT_000212d8 = *(FILE **)PTR_stdout_00020fec" identifier = (pointer_expression "*(FILE **)PTR_stdout_00020fec" * (cast_expression "(FILE **)PTR_stdout_00020fec" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }) (else_clause "else {\n    DAT_000212d8 = fopen64(param_3,"w");\n    if (DAT_000212d8 == (FILE *)0x0) {\n      DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar4 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);\n    }\n  }" else (compound_statement "{\n    DAT_000212d8 = fopen64(param_3,"w");\n    if (DAT_000212d8 == (FILE *)0x0) {\n      DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar4 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);\n    }\n  }" { (expression_statement "DAT_000212d8 = fopen64(param_3,"w");" (assignment_expression "DAT_000212d8 = fopen64(param_3,"w")" identifier = (call_expression "fopen64(param_3,"w")" identifier (argument_list "(param_3,"w")" ( identifier , (string_literal ""w"" " string_content ") )))) ;) (if_statement "if (DAT_000212d8 == (FILE *)0x0) {\n      DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar4 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);\n    }" if (parenthesized_expression "(DAT_000212d8 == (FILE *)0x0)" ( (binary_expression "DAT_000212d8 == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar4 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);\n    }" { (expression_statement "DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;" (assignment_expression "DAT_000212d8 = *(FILE **)PTR_stdout_00020fec" identifier = (pointer_expression "*(FILE **)PTR_stdout_00020fec" * (cast_expression "(FILE **)PTR_stdout_00020fec" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "__format = (char *)dcgettext(0,"Can\'t open file %s\n",5);" (assignment_expression "__format = (char *)dcgettext(0,"Can\'t open file %s\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"Can\'t open file %s\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Can\'t open file %s\n",5)" identifier (argument_list "(0,"Can\'t open file %s\n",5)" ( number_literal , (string_literal ""Can\'t open file %s\n"" " string_content escape_sequence string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "pcVar4 = (char *)0x0;" (assignment_expression "pcVar4 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);" (call_expression "fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3)" identifier (argument_list "(*(FILE **)PTR_stderr_00020fd4,__format,param_3)" ( (pointer_expression "*(FILE **)PTR_stderr_00020fd4" * (cast_expression "(FILE **)PTR_stderr_00020fd4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , identifier , identifier ))) ;) })) }))) (if_statement "if (param_2 == 0) {\n    iVar2 = *(int *)(iVar3 + 0x90);\n    while (iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0x90);\n      FUN_000167a0(iVar2,0);\n      iVar2 = iVar1;\n    }\n  }\n  else {\n    FUN_000167d0();\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = *(int *)(iVar3 + 0x90);\n    while (iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0x90);\n      FUN_000167a0(iVar2,0);\n      iVar2 = iVar1;\n    }\n  }" { (expression_statement "iVar2 = *(int *)(iVar3 + 0x90);" (assignment_expression "iVar2 = *(int *)(iVar3 + 0x90)" identifier = (pointer_expression "*(int *)(iVar3 + 0x90)" * (cast_expression "(int *)(iVar3 + 0x90)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x90)" ( (binary_expression "iVar3 + 0x90" identifier + number_literal) ))))) ;) (while_statement "while (iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0x90);\n      FUN_000167a0(iVar2,0);\n      iVar2 = iVar1;\n    }" while (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = *(int *)(iVar2 + 0x90);\n      FUN_000167a0(iVar2,0);\n      iVar2 = iVar1;\n    }" { (expression_statement "iVar1 = *(int *)(iVar2 + 0x90);" (assignment_expression "iVar1 = *(int *)(iVar2 + 0x90)" identifier = (pointer_expression "*(int *)(iVar2 + 0x90)" * (cast_expression "(int *)(iVar2 + 0x90)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x90)" ( (binary_expression "iVar2 + 0x90" identifier + number_literal) ))))) ;) (expression_statement "FUN_000167a0(iVar2,0);" (call_expression "FUN_000167a0(iVar2,0)" identifier (argument_list "(iVar2,0)" ( identifier , number_literal ))) ;) (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) })) }) (else_clause "else {\n    FUN_000167d0();\n  }" else (compound_statement "{\n    FUN_000167d0();\n  }" { (expression_statement "FUN_000167d0();" (call_expression "FUN_000167d0()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "bfd_close(iVar3);" (call_expression "bfd_close(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (if_statement "if (pcVar4 != (char *)0x0) {\n    fclose(DAT_000212d8);\n  }" if (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    fclose(DAT_000212d8);\n  }" { (expression_statement "fclose(DAT_000212d8);" (call_expression "fclose(DAT_000212d8)" identifier (argument_list "(DAT_000212d8)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid ar_directory(char *ar_name,list *list,char *output)\n\n{\n  bfd *pbVar1;\n  bfd *abfd;\n  bfd *arch;\n  char *__format;\n  char *pcVar2;\n  \n  arch = open_inarch(ar_name,(char *)0x0);\n  pcVar2 = output;\n  if (output == (char *)0x0) {\n    outfile = *(FILE **)PTR_stdout_00020fec;\n  }\n  else {\n    outfile = (FILE *)fopen64(output,"w");\n    if ((FILE *)outfile == (FILE *)0x0) {\n      outfile = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar2 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,output);\n    }\n  }\n  if (list == (list *)0x0) {\n    abfd = arch->archive_next;\n    while (abfd != (bfd *)0x0) {\n      pbVar1 = abfd->archive_next;\n      ar_directory_doer(abfd,(bfd *)0x0);\n      abfd = pbVar1;\n    }\n  }\n  else {\n    map_over_list(arch,ar_directory_doer,list);\n  }\n  bfd_close(arch);\n  if (pcVar2 != (char *)0x0) {\n    fclose((FILE *)outfile);\n  }\n  return;\n}\n\n" comment (function_definition "void ar_directory(char *ar_name,list *list,char *output)\n\n{\n  bfd *pbVar1;\n  bfd *abfd;\n  bfd *arch;\n  char *__format;\n  char *pcVar2;\n  \n  arch = open_inarch(ar_name,(char *)0x0);\n  pcVar2 = output;\n  if (output == (char *)0x0) {\n    outfile = *(FILE **)PTR_stdout_00020fec;\n  }\n  else {\n    outfile = (FILE *)fopen64(output,"w");\n    if ((FILE *)outfile == (FILE *)0x0) {\n      outfile = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar2 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,output);\n    }\n  }\n  if (list == (list *)0x0) {\n    abfd = arch->archive_next;\n    while (abfd != (bfd *)0x0) {\n      pbVar1 = abfd->archive_next;\n      ar_directory_doer(abfd,(bfd *)0x0);\n      abfd = pbVar1;\n    }\n  }\n  else {\n    map_over_list(arch,ar_directory_doer,list);\n  }\n  bfd_close(arch);\n  if (pcVar2 != (char *)0x0) {\n    fclose((FILE *)outfile);\n  }\n  return;\n}" primitive_type (function_declarator "ar_directory(char *ar_name,list *list,char *output)" identifier (parameter_list "(char *ar_name,list *list,char *output)" ( (parameter_declaration "char *ar_name" primitive_type (pointer_declarator "*ar_name" * identifier)) , (parameter_declaration "list *list" type_identifier (pointer_declarator "*list" * identifier)) , (parameter_declaration "char *output" primitive_type (pointer_declarator "*output" * identifier)) ))) (compound_statement "{\n  bfd *pbVar1;\n  bfd *abfd;\n  bfd *arch;\n  char *__format;\n  char *pcVar2;\n  \n  arch = open_inarch(ar_name,(char *)0x0);\n  pcVar2 = output;\n  if (output == (char *)0x0) {\n    outfile = *(FILE **)PTR_stdout_00020fec;\n  }\n  else {\n    outfile = (FILE *)fopen64(output,"w");\n    if ((FILE *)outfile == (FILE *)0x0) {\n      outfile = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar2 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,output);\n    }\n  }\n  if (list == (list *)0x0) {\n    abfd = arch->archive_next;\n    while (abfd != (bfd *)0x0) {\n      pbVar1 = abfd->archive_next;\n      ar_directory_doer(abfd,(bfd *)0x0);\n      abfd = pbVar1;\n    }\n  }\n  else {\n    map_over_list(arch,ar_directory_doer,list);\n  }\n  bfd_close(arch);\n  if (pcVar2 != (char *)0x0) {\n    fclose((FILE *)outfile);\n  }\n  return;\n}" { (declaration "bfd *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "bfd *abfd;" type_identifier (pointer_declarator "*abfd" * identifier) ;) (declaration "bfd *arch;" type_identifier (pointer_declarator "*arch" * identifier) ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "arch = open_inarch(ar_name,(char *)0x0);" (assignment_expression "arch = open_inarch(ar_name,(char *)0x0)" identifier = (call_expression "open_inarch(ar_name,(char *)0x0)" identifier (argument_list "(ar_name,(char *)0x0)" ( identifier , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "pcVar2 = output;" (assignment_expression "pcVar2 = output" identifier = identifier) ;) (if_statement "if (output == (char *)0x0) {\n    outfile = *(FILE **)PTR_stdout_00020fec;\n  }\n  else {\n    outfile = (FILE *)fopen64(output,"w");\n    if ((FILE *)outfile == (FILE *)0x0) {\n      outfile = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar2 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,output);\n    }\n  }" if (parenthesized_expression "(output == (char *)0x0)" ( (binary_expression "output == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    outfile = *(FILE **)PTR_stdout_00020fec;\n  }" { (expression_statement "outfile = *(FILE **)PTR_stdout_00020fec;" (assignment_expression "outfile = *(FILE **)PTR_stdout_00020fec" identifier = (pointer_expression "*(FILE **)PTR_stdout_00020fec" * (cast_expression "(FILE **)PTR_stdout_00020fec" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }) (else_clause "else {\n    outfile = (FILE *)fopen64(output,"w");\n    if ((FILE *)outfile == (FILE *)0x0) {\n      outfile = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar2 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,output);\n    }\n  }" else (compound_statement "{\n    outfile = (FILE *)fopen64(output,"w");\n    if ((FILE *)outfile == (FILE *)0x0) {\n      outfile = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar2 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,output);\n    }\n  }" { (expression_statement "outfile = (FILE *)fopen64(output,"w");" (assignment_expression "outfile = (FILE *)fopen64(output,"w")" identifier = (cast_expression "(FILE *)fopen64(output,"w")" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "fopen64(output,"w")" identifier (argument_list "(output,"w")" ( identifier , (string_literal ""w"" " string_content ") ))))) ;) (if_statement "if ((FILE *)outfile == (FILE *)0x0) {\n      outfile = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar2 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,output);\n    }" if (parenthesized_expression "((FILE *)outfile == (FILE *)0x0)" ( (binary_expression "(FILE *)outfile == (FILE *)0x0" (cast_expression "(FILE *)outfile" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      outfile = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar2 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,output);\n    }" { (expression_statement "outfile = *(FILE **)PTR_stdout_00020fec;" (assignment_expression "outfile = *(FILE **)PTR_stdout_00020fec" identifier = (pointer_expression "*(FILE **)PTR_stdout_00020fec" * (cast_expression "(FILE **)PTR_stdout_00020fec" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "__format = (char *)dcgettext(0,"Can\'t open file %s\n",5);" (assignment_expression "__format = (char *)dcgettext(0,"Can\'t open file %s\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"Can\'t open file %s\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Can\'t open file %s\n",5)" identifier (argument_list "(0,"Can\'t open file %s\n",5)" ( number_literal , (string_literal ""Can\'t open file %s\n"" " string_content escape_sequence string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "pcVar2 = (char *)0x0;" (assignment_expression "pcVar2 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_00020fd4,__format,output);" (call_expression "fprintf(*(FILE **)PTR_stderr_00020fd4,__format,output)" identifier (argument_list "(*(FILE **)PTR_stderr_00020fd4,__format,output)" ( (pointer_expression "*(FILE **)PTR_stderr_00020fd4" * (cast_expression "(FILE **)PTR_stderr_00020fd4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , identifier , identifier ))) ;) })) }))) (if_statement "if (list == (list *)0x0) {\n    abfd = arch->archive_next;\n    while (abfd != (bfd *)0x0) {\n      pbVar1 = abfd->archive_next;\n      ar_directory_doer(abfd,(bfd *)0x0);\n      abfd = pbVar1;\n    }\n  }\n  else {\n    map_over_list(arch,ar_directory_doer,list);\n  }" if (parenthesized_expression "(list == (list *)0x0)" ( (binary_expression "list == (list *)0x0" identifier == (cast_expression "(list *)0x0" ( (type_descriptor "list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    abfd = arch->archive_next;\n    while (abfd != (bfd *)0x0) {\n      pbVar1 = abfd->archive_next;\n      ar_directory_doer(abfd,(bfd *)0x0);\n      abfd = pbVar1;\n    }\n  }" { (expression_statement "abfd = arch->archive_next;" (assignment_expression "abfd = arch->archive_next" identifier = (field_expression "arch->archive_next" identifier -> field_identifier)) ;) (while_statement "while (abfd != (bfd *)0x0) {\n      pbVar1 = abfd->archive_next;\n      ar_directory_doer(abfd,(bfd *)0x0);\n      abfd = pbVar1;\n    }" while (parenthesized_expression "(abfd != (bfd *)0x0)" ( (binary_expression "abfd != (bfd *)0x0" identifier != (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pbVar1 = abfd->archive_next;\n      ar_directory_doer(abfd,(bfd *)0x0);\n      abfd = pbVar1;\n    }" { (expression_statement "pbVar1 = abfd->archive_next;" (assignment_expression "pbVar1 = abfd->archive_next" identifier = (field_expression "abfd->archive_next" identifier -> field_identifier)) ;) (expression_statement "ar_directory_doer(abfd,(bfd *)0x0);" (call_expression "ar_directory_doer(abfd,(bfd *)0x0)" identifier (argument_list "(abfd,(bfd *)0x0)" ( identifier , (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (expression_statement "abfd = pbVar1;" (assignment_expression "abfd = pbVar1" identifier = identifier) ;) })) }) (else_clause "else {\n    map_over_list(arch,ar_directory_doer,list);\n  }" else (compound_statement "{\n    map_over_list(arch,ar_directory_doer,list);\n  }" { (expression_statement "map_over_list(arch,ar_directory_doer,list);" (call_expression "map_over_list(arch,ar_directory_doer,list)" identifier (argument_list "(arch,ar_directory_doer,list)" ( identifier , identifier , identifier ))) ;) }))) (expression_statement "bfd_close(arch);" (call_expression "bfd_close(arch)" identifier (argument_list "(arch)" ( identifier ))) ;) (if_statement "if (pcVar2 != (char *)0x0) {\n    fclose((FILE *)outfile);\n  }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    fclose((FILE *)outfile);\n  }" { (expression_statement "fclose((FILE *)outfile);" (call_expression "fclose((FILE *)outfile)" identifier (argument_list "((FILE *)outfile)" ( (cast_expression "(FILE *)outfile" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000168b0(undefined4 param_1,int param_2,char *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  char *__format;\n  char *pcVar4;\n  \n  iVar3 = FUN_000148f0(param_1,0);\n  pcVar4 = param_3;\n  if (param_3 == (char *)0x0) {\n    DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n  }\n  else {\n    DAT_000212d8 = fopen64(param_3,"w");\n    if (DAT_000212d8 == (FILE *)0x0) {\n      DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar4 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);\n    }\n  }\n  if (param_2 == 0) {\n    iVar2 = *(int *)(iVar3 + 0x90);\n    while (iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0x90);\n      FUN_000167a0(iVar2,0);\n      iVar2 = iVar1;\n    }\n  }\n  else {\n    FUN_000167d0();\n  }\n  bfd_close(iVar3);\n  if (pcVar4 != (char *)0x0) {\n    fclose(DAT_000212d8);\n  }\n  return;\n}\n\n" (function_definition "void FUN_000168b0(undefined4 param_1,int param_2,char *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  char *__format;\n  char *pcVar4;\n  \n  iVar3 = FUN_000148f0(param_1,0);\n  pcVar4 = param_3;\n  if (param_3 == (char *)0x0) {\n    DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n  }\n  else {\n    DAT_000212d8 = fopen64(param_3,"w");\n    if (DAT_000212d8 == (FILE *)0x0) {\n      DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar4 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);\n    }\n  }\n  if (param_2 == 0) {\n    iVar2 = *(int *)(iVar3 + 0x90);\n    while (iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0x90);\n      FUN_000167a0(iVar2,0);\n      iVar2 = iVar1;\n    }\n  }\n  else {\n    FUN_000167d0();\n  }\n  bfd_close(iVar3);\n  if (pcVar4 != (char *)0x0) {\n    fclose(DAT_000212d8);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000168b0(undefined4 param_1,int param_2,char *param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,char *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  char *__format;\n  char *pcVar4;\n  \n  iVar3 = FUN_000148f0(param_1,0);\n  pcVar4 = param_3;\n  if (param_3 == (char *)0x0) {\n    DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n  }\n  else {\n    DAT_000212d8 = fopen64(param_3,"w");\n    if (DAT_000212d8 == (FILE *)0x0) {\n      DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar4 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);\n    }\n  }\n  if (param_2 == 0) {\n    iVar2 = *(int *)(iVar3 + 0x90);\n    while (iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0x90);\n      FUN_000167a0(iVar2,0);\n      iVar2 = iVar1;\n    }\n  }\n  else {\n    FUN_000167d0();\n  }\n  bfd_close(iVar3);\n  if (pcVar4 != (char *)0x0) {\n    fclose(DAT_000212d8);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (expression_statement "iVar3 = FUN_000148f0(param_1,0);" (assignment_expression "iVar3 = FUN_000148f0(param_1,0)" identifier = (call_expression "FUN_000148f0(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "pcVar4 = param_3;" (assignment_expression "pcVar4 = param_3" identifier = identifier) ;) (if_statement "if (param_3 == (char *)0x0) {\n    DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n  }\n  else {\n    DAT_000212d8 = fopen64(param_3,"w");\n    if (DAT_000212d8 == (FILE *)0x0) {\n      DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar4 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);\n    }\n  }" if (parenthesized_expression "(param_3 == (char *)0x0)" ( (binary_expression "param_3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n  }" { (expression_statement "DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;" (assignment_expression "DAT_000212d8 = *(FILE **)PTR_stdout_00020fec" identifier = (pointer_expression "*(FILE **)PTR_stdout_00020fec" * (cast_expression "(FILE **)PTR_stdout_00020fec" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }) (else_clause "else {\n    DAT_000212d8 = fopen64(param_3,"w");\n    if (DAT_000212d8 == (FILE *)0x0) {\n      DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar4 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);\n    }\n  }" else (compound_statement "{\n    DAT_000212d8 = fopen64(param_3,"w");\n    if (DAT_000212d8 == (FILE *)0x0) {\n      DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar4 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);\n    }\n  }" { (expression_statement "DAT_000212d8 = fopen64(param_3,"w");" (assignment_expression "DAT_000212d8 = fopen64(param_3,"w")" identifier = (call_expression "fopen64(param_3,"w")" identifier (argument_list "(param_3,"w")" ( identifier , (string_literal ""w"" " string_content ") )))) ;) (if_statement "if (DAT_000212d8 == (FILE *)0x0) {\n      DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar4 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);\n    }" if (parenthesized_expression "(DAT_000212d8 == (FILE *)0x0)" ( (binary_expression "DAT_000212d8 == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar4 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);\n    }" { (expression_statement "DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;" (assignment_expression "DAT_000212d8 = *(FILE **)PTR_stdout_00020fec" identifier = (pointer_expression "*(FILE **)PTR_stdout_00020fec" * (cast_expression "(FILE **)PTR_stdout_00020fec" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "__format = (char *)dcgettext(0,"Can\'t open file %s\n",5);" (assignment_expression "__format = (char *)dcgettext(0,"Can\'t open file %s\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"Can\'t open file %s\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Can\'t open file %s\n",5)" identifier (argument_list "(0,"Can\'t open file %s\n",5)" ( number_literal , (string_literal ""Can\'t open file %s\n"" " string_content escape_sequence string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "pcVar4 = (char *)0x0;" (assignment_expression "pcVar4 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);" (call_expression "fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3)" identifier (argument_list "(*(FILE **)PTR_stderr_00020fd4,__format,param_3)" ( (pointer_expression "*(FILE **)PTR_stderr_00020fd4" * (cast_expression "(FILE **)PTR_stderr_00020fd4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , identifier , identifier ))) ;) })) }))) (if_statement "if (param_2 == 0) {\n    iVar2 = *(int *)(iVar3 + 0x90);\n    while (iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0x90);\n      FUN_000167a0(iVar2,0);\n      iVar2 = iVar1;\n    }\n  }\n  else {\n    FUN_000167d0();\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = *(int *)(iVar3 + 0x90);\n    while (iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0x90);\n      FUN_000167a0(iVar2,0);\n      iVar2 = iVar1;\n    }\n  }" { (expression_statement "iVar2 = *(int *)(iVar3 + 0x90);" (assignment_expression "iVar2 = *(int *)(iVar3 + 0x90)" identifier = (pointer_expression "*(int *)(iVar3 + 0x90)" * (cast_expression "(int *)(iVar3 + 0x90)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x90)" ( (binary_expression "iVar3 + 0x90" identifier + number_literal) ))))) ;) (while_statement "while (iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0x90);\n      FUN_000167a0(iVar2,0);\n      iVar2 = iVar1;\n    }" while (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = *(int *)(iVar2 + 0x90);\n      FUN_000167a0(iVar2,0);\n      iVar2 = iVar1;\n    }" { (expression_statement "iVar1 = *(int *)(iVar2 + 0x90);" (assignment_expression "iVar1 = *(int *)(iVar2 + 0x90)" identifier = (pointer_expression "*(int *)(iVar2 + 0x90)" * (cast_expression "(int *)(iVar2 + 0x90)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x90)" ( (binary_expression "iVar2 + 0x90" identifier + number_literal) ))))) ;) (expression_statement "FUN_000167a0(iVar2,0);" (call_expression "FUN_000167a0(iVar2,0)" identifier (argument_list "(iVar2,0)" ( identifier , number_literal ))) ;) (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) })) }) (else_clause "else {\n    FUN_000167d0();\n  }" else (compound_statement "{\n    FUN_000167d0();\n  }" { (expression_statement "FUN_000167d0();" (call_expression "FUN_000167d0()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "bfd_close(iVar3);" (call_expression "bfd_close(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (if_statement "if (pcVar4 != (char *)0x0) {\n    fclose(DAT_000212d8);\n  }" if (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    fclose(DAT_000212d8);\n  }" { (expression_statement "fclose(DAT_000212d8);" (call_expression "fclose(DAT_000212d8)" identifier (argument_list "(DAT_000212d8)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (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 ( IDENT , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (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 ( LIT , (string_literal " string_content escape_sequence string_content escape_sequence ") , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) , IDENT , IDENT ))) ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( 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 ( IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_000168b0(undefined4 param_1,int param_2,char *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  char *__format;\n  char *pcVar4;\n  \n  iVar3 = FUN_000148f0(param_1,0);\n  pcVar4 = param_3;\n  if (param_3 == (char *)0x0) {\n    DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n  }\n  else {\n    DAT_000212d8 = fopen64(param_3,"w");\n    if (DAT_000212d8 == (FILE *)0x0) {\n      DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar4 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);\n    }\n  }\n  if (param_2 == 0) {\n    iVar2 = *(int *)(iVar3 + 0x90);\n    while (iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0x90);\n      FUN_000167a0(iVar2,0);\n      iVar2 = iVar1;\n    }\n  }\n  else {\n    FUN_000167d0();\n  }\n  bfd_close(iVar3);\n  if (pcVar4 != (char *)0x0) {\n    fclose(DAT_000212d8);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000168b0(undefined4 param_1,int param_2,char *param_3)" (identifier "FUN_000168b0") (parameter_list "(undefined4 param_1,int param_2,char *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  char *__format;\n  char *pcVar4;\n  \n  iVar3 = FUN_000148f0(param_1,0);\n  pcVar4 = param_3;\n  if (param_3 == (char *)0x0) {\n    DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n  }\n  else {\n    DAT_000212d8 = fopen64(param_3,"w");\n    if (DAT_000212d8 == (FILE *)0x0) {\n      DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar4 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);\n    }\n  }\n  if (param_2 == 0) {\n    iVar2 = *(int *)(iVar3 + 0x90);\n    while (iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0x90);\n      FUN_000167a0(iVar2,0);\n      iVar2 = iVar1;\n    }\n  }\n  else {\n    FUN_000167d0();\n  }\n  bfd_close(iVar3);\n  if (pcVar4 != (char *)0x0) {\n    fclose(DAT_000212d8);\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "char *__format;" (primitive_type "char") (pointer_declarator "*__format" (* "*") (identifier "__format")) (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (expression_statement "iVar3 = FUN_000148f0(param_1,0);" (assignment_expression "iVar3 = FUN_000148f0(param_1,0)" (identifier "iVar3") (= "=") (call_expression "FUN_000148f0(param_1,0)" (identifier "FUN_000148f0") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "pcVar4 = param_3;" (assignment_expression "pcVar4 = param_3" (identifier "pcVar4") (= "=") (identifier "param_3")) (; ";")) (if_statement "if (param_3 == (char *)0x0) {\n    DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n  }\n  else {\n    DAT_000212d8 = fopen64(param_3,"w");\n    if (DAT_000212d8 == (FILE *)0x0) {\n      DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar4 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);\n    }\n  }" (if "if") (parenthesized_expression "(param_3 == (char *)0x0)" (( "(") (binary_expression "param_3 == (char *)0x0" (identifier "param_3") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n  }" ({ "{") (expression_statement "DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;" (assignment_expression "DAT_000212d8 = *(FILE **)PTR_stdout_00020fec" (identifier "DAT_000212d8") (= "=") (pointer_expression "*(FILE **)PTR_stdout_00020fec" (* "*") (cast_expression "(FILE **)PTR_stdout_00020fec" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stdout_00020fec")))) (; ";")) (} "}")) (else_clause "else {\n    DAT_000212d8 = fopen64(param_3,"w");\n    if (DAT_000212d8 == (FILE *)0x0) {\n      DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar4 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);\n    }\n  }" (else "else") (compound_statement "{\n    DAT_000212d8 = fopen64(param_3,"w");\n    if (DAT_000212d8 == (FILE *)0x0) {\n      DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar4 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);\n    }\n  }" ({ "{") (expression_statement "DAT_000212d8 = fopen64(param_3,"w");" (assignment_expression "DAT_000212d8 = fopen64(param_3,"w")" (identifier "DAT_000212d8") (= "=") (call_expression "fopen64(param_3,"w")" (identifier "fopen64") (argument_list "(param_3,"w")" (( "(") (identifier "param_3") (, ",") (string_literal ""w"" (" """) (string_content "w") (" """)) () ")")))) (; ";")) (if_statement "if (DAT_000212d8 == (FILE *)0x0) {\n      DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar4 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);\n    }" (if "if") (parenthesized_expression "(DAT_000212d8 == (FILE *)0x0)" (( "(") (binary_expression "DAT_000212d8 == (FILE *)0x0" (identifier "DAT_000212d8") (== "==") (cast_expression "(FILE *)0x0" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;\n      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);\n      pcVar4 = (char *)0x0;\n      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);\n    }" ({ "{") (expression_statement "DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;" (assignment_expression "DAT_000212d8 = *(FILE **)PTR_stdout_00020fec" (identifier "DAT_000212d8") (= "=") (pointer_expression "*(FILE **)PTR_stdout_00020fec" (* "*") (cast_expression "(FILE **)PTR_stdout_00020fec" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stdout_00020fec")))) (; ";")) (expression_statement "__format = (char *)dcgettext(0,"Can\'t open file %s\n",5);" (assignment_expression "__format = (char *)dcgettext(0,"Can\'t open file %s\n",5)" (identifier "__format") (= "=") (cast_expression "(char *)dcgettext(0,"Can\'t open file %s\n",5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "dcgettext(0,"Can\'t open file %s\n",5)" (identifier "dcgettext") (argument_list "(0,"Can\'t open file %s\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Can\'t open file %s\n"" (" """) (string_content "Can") (escape_sequence "\'") (string_content "t open file %s") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")"))))) (; ";")) (expression_statement "pcVar4 = (char *)0x0;" (assignment_expression "pcVar4 = (char *)0x0" (identifier "pcVar4") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);" (call_expression "fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3)" (identifier "fprintf") (argument_list "(*(FILE **)PTR_stderr_00020fd4,__format,param_3)" (( "(") (pointer_expression "*(FILE **)PTR_stderr_00020fd4" (* "*") (cast_expression "(FILE **)PTR_stderr_00020fd4" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stderr_00020fd4"))) (, ",") (identifier "__format") (, ",") (identifier "param_3") () ")"))) (; ";")) (} "}"))) (} "}")))) (if_statement "if (param_2 == 0) {\n    iVar2 = *(int *)(iVar3 + 0x90);\n    while (iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0x90);\n      FUN_000167a0(iVar2,0);\n      iVar2 = iVar1;\n    }\n  }\n  else {\n    FUN_000167d0();\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = *(int *)(iVar3 + 0x90);\n    while (iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0x90);\n      FUN_000167a0(iVar2,0);\n      iVar2 = iVar1;\n    }\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(iVar3 + 0x90);" (assignment_expression "iVar2 = *(int *)(iVar3 + 0x90)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar3 + 0x90)" (* "*") (cast_expression "(int *)(iVar3 + 0x90)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x90)" (( "(") (binary_expression "iVar3 + 0x90" (identifier "iVar3") (+ "+") (number_literal "0x90")) () ")"))))) (; ";")) (while_statement "while (iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0x90);\n      FUN_000167a0(iVar2,0);\n      iVar2 = iVar1;\n    }" (while "while") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = *(int *)(iVar2 + 0x90);\n      FUN_000167a0(iVar2,0);\n      iVar2 = iVar1;\n    }" ({ "{") (expression_statement "iVar1 = *(int *)(iVar2 + 0x90);" (assignment_expression "iVar1 = *(int *)(iVar2 + 0x90)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar2 + 0x90)" (* "*") (cast_expression "(int *)(iVar2 + 0x90)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x90)" (( "(") (binary_expression "iVar2 + 0x90" (identifier "iVar2") (+ "+") (number_literal "0x90")) () ")"))))) (; ";")) (expression_statement "FUN_000167a0(iVar2,0);" (call_expression "FUN_000167a0(iVar2,0)" (identifier "FUN_000167a0") (argument_list "(iVar2,0)" (( "(") (identifier "iVar2") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" (identifier "iVar2") (= "=") (identifier "iVar1")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    FUN_000167d0();\n  }" (else "else") (compound_statement "{\n    FUN_000167d0();\n  }" ({ "{") (expression_statement "FUN_000167d0();" (call_expression "FUN_000167d0()" (identifier "FUN_000167d0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (expression_statement "bfd_close(iVar3);" (call_expression "bfd_close(iVar3)" (identifier "bfd_close") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (if_statement "if (pcVar4 != (char *)0x0) {\n    fclose(DAT_000212d8);\n  }" (if "if") (parenthesized_expression "(pcVar4 != (char *)0x0)" (( "(") (binary_expression "pcVar4 != (char *)0x0" (identifier "pcVar4") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    fclose(DAT_000212d8);\n  }" ({ "{") (expression_statement "fclose(DAT_000212d8);" (call_expression "fclose(DAT_000212d8)" (identifier "fclose") (argument_list "(DAT_000212d8)" (( "(") (identifier "DAT_000212d8") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(char *ar_name,type_1 *type_1,char *var_2)

{
  type_2 *pbVar1;
  type_2 *var_6;
  type_2 *arch;
  char *__format;
  char *var_10;
  
  arch = var_1(ar_name,(char *)0x0);
  var_10 = var_2;
  if (var_2 == (char *)0x0) {
    outfile = *(type_3 **)PTR_stdout_00020fec;
  }
  else {
    outfile = (type_3 *)var_3(var_2,"w");
    if ((type_3 *)outfile == (type_3 *)0x0) {
      outfile = *(type_3 **)PTR_stdout_00020fec;
      __format = (char *)var_4(0,"Can\'t open file %s\n",5);
      var_10 = (char *)0x0;
      var_5(*(type_3 **)PTR_stderr_00020fd4,__format,var_2);
    }
  }
  if (type_1 == (type_1 *)0x0) {
    var_6 = arch->archive_next;
    while (var_6 != (type_2 *)0x0) {
      pbVar1 = var_6->archive_next;
      var_7(var_6,(type_2 *)0x0);
      var_6 = pbVar1;
    }
  }
  else {
    var_8(arch,var_7,type_1);
  }
  var_9(arch);
  if (var_10 != (char *)0x0) {
    var_11((type_3 *)outfile);
  }
  return;
}


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

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

void MASKED(undefined4 param_1,int param_2,char *param_3)

{
  int iVar1;
  int iVar2;
  int iVar3;
  char *__format;
  char *pcVar4;
  
  iVar3 = FUN_000148f0(param_1,0);
  pcVar4 = param_3;
  if (param_3 == (char *)0x0) {
    DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;
  }
  else {
    DAT_000212d8 = fopen64(param_3,"w");
    if (DAT_000212d8 == (FILE *)0x0) {
      DAT_000212d8 = *(FILE **)PTR_stdout_00020fec;
      __format = (char *)dcgettext(0,"Can\'t open file %s\n",5);
      pcVar4 = (char *)0x0;
      fprintf(*(FILE **)PTR_stderr_00020fd4,__format,param_3);
    }
  }
  if (param_2 == 0) {
    iVar2 = *(int *)(iVar3 + 0x90);
    while (iVar2 != 0) {
      iVar1 = *(int *)(iVar2 + 0x90);
      FUN_000167a0(iVar2,0);
      iVar2 = iVar1;
    }
  }
  else {
    FUN_000167d0();
  }
  bfd_close(iVar3);
  if (pcVar4 != (char *)0x0) {
    fclose(DAT_000212d8);
  }
  return;
}

