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

void ar_addmod(list *list)

{
  undefined *puVar1;
  bfd *pbVar2;
  char *pcVar3;
  bfd *pbVar4;
  char *__format;
  char *pcVar5;
  
  pcVar3 = program_name;
  puVar1 = PTR_stderr_00020fd4;
  if (obfd == (bfd *)0x0) {
    pcVar5 = (char *)dcgettext(0,"%s: no open output archive\n",5);
    fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar5,pcVar3);
    if (interactive == 0) {
LAB_00016d55:
                    /* WARNING: Subroutine does not return */
      xexit(9);
    }
  }
  else if (list != (list *)0x0) {
    do {
      pbVar4 = (bfd *)bfd_openr(list->name,"plugin");
      pcVar3 = program_name;
      pbVar2 = obfd;
      if (pbVar4 == (bfd *)0x0) {
        pcVar5 = list->name;
        __format = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);
        fprintf(*(FILE **)puVar1,__format,pcVar3,pcVar5);
        if (interactive == 0) goto LAB_00016d55;
      }
      else {
        pbVar4->archive_next = obfd->archive_head;
        pbVar2->archive_head = pbVar4;
      }
      list = list->next;
    } while (list != (list *)0x0);
  }
  return;
}



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

void FUN_00016c90(undefined4 *param_1)

{
  undefined4 uVar1;
  undefined *puVar2;
  int iVar3;
  undefined4 uVar4;
  int iVar5;
  char *pcVar6;
  
  uVar4 = DAT_000213a0;
  puVar2 = PTR_stderr_00020fd4;
  if (DAT_000212e4 == 0) {
    pcVar6 = (char *)dcgettext(0,"%s: no open output archive\n",5);
    fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar6,uVar4);
    if (DAT_00021280 == 0) {
LAB_00016d55:
                    /* WARNING: Subroutine does not return */
      xexit(9);
    }
  }
  else if (param_1 != (undefined4 *)0x0) {
    do {
      iVar5 = bfd_openr(*param_1,"plugin");
      uVar4 = DAT_000213a0;
      iVar3 = DAT_000212e4;
      if (iVar5 == 0) {
        uVar1 = *param_1;
        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);
        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);
        if (DAT_00021280 == 0) goto LAB_00016d55;
      }
      else {
        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);
        *(int *)(iVar3 + 0x94) = iVar5;
      }
      param_1 = (undefined4 *)param_1[1];
    } while (param_1 != (undefined4 *)0x0);
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013710
ADD EBX,0xa367
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
MOV ECX,dword ptr [EBX + 0x2e4]
TEST ECX,ECX
JZ 0x00016d60
LEA EDI,[EBX + 0xffffa106]
TEST ESI,ESI
JZ 0x00016d9c
LEA EAX,[EBX + 0x3a0]
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [EBX + 0xffffffd4]
MOV dword ptr [ESP + 0xc],EAX
JMP 0x00016d03
MOV EDX,dword ptr [EBX + 0x2e4]
MOV ECX,dword ptr [EDX + 0x94]
MOV dword ptr [EAX + 0x90],ECX
MOV dword ptr [EDX + 0x94],EAX
MOV ESI,dword ptr [ESI + 0x4]
TEST ESI,ESI
JZ 0x00016d9c
SUB ESP,0x8
PUSH EDI
PUSH dword ptr [ESI]
CALL 0x00012160
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00016ce0
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [ESI]
SUB ESP,0x4
MOV dword ptr [ESP + 0x8],EDX
MOV EBP,dword ptr [EAX]
LEA EAX,[EBX + 0xffffb03d]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00012180
MOV EDX,dword ptr [ESP + 0x14]
PUSH EDX
PUSH EBP
PUSH EAX
MOV EAX,dword ptr [ESP + 0x28]
PUSH dword ptr [EAX]
CALL 0x00012390
LEA EAX,[EBX + 0x280]
ADD ESP,0x20
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JNZ 0x00016cf8
SUB ESP,0xc
PUSH 0x9
CALL 0x000124a0
LEA EAX,[EBX + 0x3a0]
SUB ESP,0x4
MOV ESI,dword ptr [EAX]
LEA EAX,[EBX + 0xffffb021]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00012180
ADD ESP,0xc
PUSH ESI
PUSH EAX
MOV EAX,dword ptr [EBX + 0xffffffd4]
PUSH dword ptr [EAX]
CALL 0x00012390
LEA EAX,[EBX + 0x280]
ADD ESP,0x10
MOV EDX,dword ptr [EAX]
TEST EDX,EDX
JZ 0x00016d55
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00016c90(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  char *pcVar6;\n  \n  uVar4 = DAT_000213a0;\n  puVar2 = PTR_stderr_00020fd4;\n  if (DAT_000212e4 == 0) {\n    pcVar6 = (char *)dcgettext(0,"%s: no open output archive\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar6,uVar4);\n    if (DAT_00021280 == 0) {\nLAB_00016d55:\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }\n  else if (param_1 != (undefined4 *)0x0) {\n    do {\n      iVar5 = bfd_openr(*param_1,"plugin");\n      uVar4 = DAT_000213a0;\n      iVar3 = DAT_000212e4;\n      if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }\n      param_1 = (undefined4 *)param_1[1];\n    } while (param_1 != (undefined4 *)0x0);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00016c90(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  char *pcVar6;\n  \n  uVar4 = DAT_000213a0;\n  puVar2 = PTR_stderr_00020fd4;\n  if (DAT_000212e4 == 0) {\n    pcVar6 = (char *)dcgettext(0,"%s: no open output archive\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar6,uVar4);\n    if (DAT_00021280 == 0) {\nLAB_00016d55:\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }\n  else if (param_1 != (undefined4 *)0x0) {\n    do {\n      iVar5 = bfd_openr(*param_1,"plugin");\n      uVar4 = DAT_000213a0;\n      iVar3 = DAT_000212e4;\n      if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }\n      param_1 = (undefined4 *)param_1[1];\n    } while (param_1 != (undefined4 *)0x0);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00016c90(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  char *pcVar6;\n  \n  uVar4 = DAT_000213a0;\n  puVar2 = PTR_stderr_00020fd4;\n  if (DAT_000212e4 == 0) {\n    pcVar6 = (char *)dcgettext(0,"%s: no open output archive\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar6,uVar4);\n    if (DAT_00021280 == 0) {\nLAB_00016d55:\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }\n  else if (param_1 != (undefined4 *)0x0) {\n    do {\n      iVar5 = bfd_openr(*param_1,"plugin");\n      uVar4 = DAT_000213a0;\n      iVar3 = DAT_000212e4;\n      if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }\n      param_1 = (undefined4 *)param_1[1];\n    } while (param_1 != (undefined4 *)0x0);\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (expression_statement "uVar4 = DAT_000213a0;" (assignment_expression "uVar4 = DAT_000213a0" identifier = identifier) ;) (expression_statement "puVar2 = PTR_stderr_00020fd4;" (assignment_expression "puVar2 = PTR_stderr_00020fd4" identifier = identifier) ;) (if_statement "if (DAT_000212e4 == 0) {\n    pcVar6 = (char *)dcgettext(0,"%s: no open output archive\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar6,uVar4);\n    if (DAT_00021280 == 0) {\nLAB_00016d55:\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }\n  else if (param_1 != (undefined4 *)0x0) {\n    do {\n      iVar5 = bfd_openr(*param_1,"plugin");\n      uVar4 = DAT_000213a0;\n      iVar3 = DAT_000212e4;\n      if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }\n      param_1 = (undefined4 *)param_1[1];\n    } while (param_1 != (undefined4 *)0x0);\n  }" if (parenthesized_expression "(DAT_000212e4 == 0)" ( (binary_expression "DAT_000212e4 == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar6 = (char *)dcgettext(0,"%s: no open output archive\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar6,uVar4);\n    if (DAT_00021280 == 0) {\nLAB_00016d55:\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }" { (expression_statement "pcVar6 = (char *)dcgettext(0,"%s: no open output archive\n",5);" (assignment_expression "pcVar6 = (char *)dcgettext(0,"%s: no open output archive\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%s: no open output archive\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%s: no open output archive\n",5)" identifier (argument_list "(0,"%s: no open output archive\n",5)" ( number_literal , (string_literal ""%s: no open output archive\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar6,uVar4);" (call_expression "fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar6,uVar4)" identifier (argument_list "(*(FILE **)PTR_stderr_00020fd4,pcVar6,uVar4)" ( (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 (DAT_00021280 == 0) {\nLAB_00016d55:\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }" if (parenthesized_expression "(DAT_00021280 == 0)" ( (binary_expression "DAT_00021280 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00016d55:\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }" { (labeled_statement "LAB_00016d55:\n                    /* WARNING: Subroutine does not return */\n      xexit(9);" statement_identifier : comment (expression_statement "xexit(9);" (call_expression "xexit(9)" identifier (argument_list "(9)" ( number_literal ))) ;)) })) }) (else_clause "else if (param_1 != (undefined4 *)0x0) {\n    do {\n      iVar5 = bfd_openr(*param_1,"plugin");\n      uVar4 = DAT_000213a0;\n      iVar3 = DAT_000212e4;\n      if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }\n      param_1 = (undefined4 *)param_1[1];\n    } while (param_1 != (undefined4 *)0x0);\n  }" else (if_statement "if (param_1 != (undefined4 *)0x0) {\n    do {\n      iVar5 = bfd_openr(*param_1,"plugin");\n      uVar4 = DAT_000213a0;\n      iVar3 = DAT_000212e4;\n      if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }\n      param_1 = (undefined4 *)param_1[1];\n    } while (param_1 != (undefined4 *)0x0);\n  }" if (parenthesized_expression "(param_1 != (undefined4 *)0x0)" ( (binary_expression "param_1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      iVar5 = bfd_openr(*param_1,"plugin");\n      uVar4 = DAT_000213a0;\n      iVar3 = DAT_000212e4;\n      if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }\n      param_1 = (undefined4 *)param_1[1];\n    } while (param_1 != (undefined4 *)0x0);\n  }" { (do_statement "do {\n      iVar5 = bfd_openr(*param_1,"plugin");\n      uVar4 = DAT_000213a0;\n      iVar3 = DAT_000212e4;\n      if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }\n      param_1 = (undefined4 *)param_1[1];\n    } while (param_1 != (undefined4 *)0x0);" do (compound_statement "{\n      iVar5 = bfd_openr(*param_1,"plugin");\n      uVar4 = DAT_000213a0;\n      iVar3 = DAT_000212e4;\n      if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }\n      param_1 = (undefined4 *)param_1[1];\n    }" { (expression_statement "iVar5 = bfd_openr(*param_1,"plugin");" (assignment_expression "iVar5 = bfd_openr(*param_1,"plugin")" identifier = (call_expression "bfd_openr(*param_1,"plugin")" identifier (argument_list "(*param_1,"plugin")" ( (pointer_expression "*param_1" * identifier) , (string_literal ""plugin"" " string_content ") )))) ;) (expression_statement "uVar4 = DAT_000213a0;" (assignment_expression "uVar4 = DAT_000213a0" identifier = identifier) ;) (expression_statement "iVar3 = DAT_000212e4;" (assignment_expression "iVar3 = DAT_000212e4" identifier = identifier) ;) (if_statement "if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }" { (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);" (assignment_expression "pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%s: can\'t open file %s\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%s: can\'t open file %s\n",5)" identifier (argument_list "(0,"%s: can\'t open file %s\n",5)" ( number_literal , (string_literal ""%s: can\'t open file %s\n"" " string_content escape_sequence string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);" (call_expression "fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1)" identifier (argument_list "(*(FILE **)puVar2,pcVar6,uVar4,uVar1)" ( (pointer_expression "*(FILE **)puVar2" * (cast_expression "(FILE **)puVar2" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , identifier , identifier , identifier ))) ;) (if_statement "if (DAT_00021280 == 0) goto LAB_00016d55;" if (parenthesized_expression "(DAT_00021280 == 0)" ( (binary_expression "DAT_00021280 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00016d55;" goto statement_identifier ;)) }) (else_clause "else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }" else (compound_statement "{\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }" { (expression_statement "*(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);" (assignment_expression "*(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94)" (pointer_expression "*(undefined4 *)(iVar5 + 0x90)" * (cast_expression "(undefined4 *)(iVar5 + 0x90)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x90)" ( (binary_expression "iVar5 + 0x90" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(DAT_000212e4 + 0x94)" * (cast_expression "(undefined4 *)(DAT_000212e4 + 0x94)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000212e4 + 0x94)" ( (binary_expression "DAT_000212e4 + 0x94" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar3 + 0x94) = iVar5;" (assignment_expression "*(int *)(iVar3 + 0x94) = iVar5" (pointer_expression "*(int *)(iVar3 + 0x94)" * (cast_expression "(int *)(iVar3 + 0x94)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x94)" ( (binary_expression "iVar3 + 0x94" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "param_1 = (undefined4 *)param_1[1];" (assignment_expression "param_1 = (undefined4 *)param_1[1]" identifier = (cast_expression "(undefined4 *)param_1[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(param_1 != (undefined4 *)0x0)" ( (binary_expression "param_1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid ar_addmod(list *list)\n\n{\n  undefined *puVar1;\n  bfd *pbVar2;\n  char *pcVar3;\n  bfd *pbVar4;\n  char *__format;\n  char *pcVar5;\n  \n  pcVar3 = program_name;\n  puVar1 = PTR_stderr_00020fd4;\n  if (obfd == (bfd *)0x0) {\n    pcVar5 = (char *)dcgettext(0,"%s: no open output archive\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar5,pcVar3);\n    if (interactive == 0) {\nLAB_00016d55:\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }\n  else if (list != (list *)0x0) {\n    do {\n      pbVar4 = (bfd *)bfd_openr(list->name,"plugin");\n      pcVar3 = program_name;\n      pbVar2 = obfd;\n      if (pbVar4 == (bfd *)0x0) {\n        pcVar5 = list->name;\n        __format = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar1,__format,pcVar3,pcVar5);\n        if (interactive == 0) goto LAB_00016d55;\n      }\n      else {\n        pbVar4->archive_next = obfd->archive_head;\n        pbVar2->archive_head = pbVar4;\n      }\n      list = list->next;\n    } while (list != (list *)0x0);\n  }\n  return;\n}\n\n" comment (function_definition "void ar_addmod(list *list)\n\n{\n  undefined *puVar1;\n  bfd *pbVar2;\n  char *pcVar3;\n  bfd *pbVar4;\n  char *__format;\n  char *pcVar5;\n  \n  pcVar3 = program_name;\n  puVar1 = PTR_stderr_00020fd4;\n  if (obfd == (bfd *)0x0) {\n    pcVar5 = (char *)dcgettext(0,"%s: no open output archive\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar5,pcVar3);\n    if (interactive == 0) {\nLAB_00016d55:\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }\n  else if (list != (list *)0x0) {\n    do {\n      pbVar4 = (bfd *)bfd_openr(list->name,"plugin");\n      pcVar3 = program_name;\n      pbVar2 = obfd;\n      if (pbVar4 == (bfd *)0x0) {\n        pcVar5 = list->name;\n        __format = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar1,__format,pcVar3,pcVar5);\n        if (interactive == 0) goto LAB_00016d55;\n      }\n      else {\n        pbVar4->archive_next = obfd->archive_head;\n        pbVar2->archive_head = pbVar4;\n      }\n      list = list->next;\n    } while (list != (list *)0x0);\n  }\n  return;\n}" primitive_type (function_declarator "ar_addmod(list *list)" identifier (parameter_list "(list *list)" ( (parameter_declaration "list *list" type_identifier (pointer_declarator "*list" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  bfd *pbVar2;\n  char *pcVar3;\n  bfd *pbVar4;\n  char *__format;\n  char *pcVar5;\n  \n  pcVar3 = program_name;\n  puVar1 = PTR_stderr_00020fd4;\n  if (obfd == (bfd *)0x0) {\n    pcVar5 = (char *)dcgettext(0,"%s: no open output archive\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar5,pcVar3);\n    if (interactive == 0) {\nLAB_00016d55:\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }\n  else if (list != (list *)0x0) {\n    do {\n      pbVar4 = (bfd *)bfd_openr(list->name,"plugin");\n      pcVar3 = program_name;\n      pbVar2 = obfd;\n      if (pbVar4 == (bfd *)0x0) {\n        pcVar5 = list->name;\n        __format = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar1,__format,pcVar3,pcVar5);\n        if (interactive == 0) goto LAB_00016d55;\n      }\n      else {\n        pbVar4->archive_next = obfd->archive_head;\n        pbVar2->archive_head = pbVar4;\n      }\n      list = list->next;\n    } while (list != (list *)0x0);\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "bfd *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "bfd *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (expression_statement "pcVar3 = program_name;" (assignment_expression "pcVar3 = program_name" identifier = identifier) ;) (expression_statement "puVar1 = PTR_stderr_00020fd4;" (assignment_expression "puVar1 = PTR_stderr_00020fd4" identifier = identifier) ;) (if_statement "if (obfd == (bfd *)0x0) {\n    pcVar5 = (char *)dcgettext(0,"%s: no open output archive\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar5,pcVar3);\n    if (interactive == 0) {\nLAB_00016d55:\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }\n  else if (list != (list *)0x0) {\n    do {\n      pbVar4 = (bfd *)bfd_openr(list->name,"plugin");\n      pcVar3 = program_name;\n      pbVar2 = obfd;\n      if (pbVar4 == (bfd *)0x0) {\n        pcVar5 = list->name;\n        __format = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar1,__format,pcVar3,pcVar5);\n        if (interactive == 0) goto LAB_00016d55;\n      }\n      else {\n        pbVar4->archive_next = obfd->archive_head;\n        pbVar2->archive_head = pbVar4;\n      }\n      list = list->next;\n    } while (list != (list *)0x0);\n  }" if (parenthesized_expression "(obfd == (bfd *)0x0)" ( (binary_expression "obfd == (bfd *)0x0" identifier == (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar5 = (char *)dcgettext(0,"%s: no open output archive\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar5,pcVar3);\n    if (interactive == 0) {\nLAB_00016d55:\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }" { (expression_statement "pcVar5 = (char *)dcgettext(0,"%s: no open output archive\n",5);" (assignment_expression "pcVar5 = (char *)dcgettext(0,"%s: no open output archive\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%s: no open output archive\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%s: no open output archive\n",5)" identifier (argument_list "(0,"%s: no open output archive\n",5)" ( number_literal , (string_literal ""%s: no open output archive\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar5,pcVar3);" (call_expression "fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar5,pcVar3)" identifier (argument_list "(*(FILE **)PTR_stderr_00020fd4,pcVar5,pcVar3)" ( (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 (interactive == 0) {\nLAB_00016d55:\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }" if (parenthesized_expression "(interactive == 0)" ( (binary_expression "interactive == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00016d55:\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }" { (labeled_statement "LAB_00016d55:\n                    /* WARNING: Subroutine does not return */\n      xexit(9);" statement_identifier : comment (expression_statement "xexit(9);" (call_expression "xexit(9)" identifier (argument_list "(9)" ( number_literal ))) ;)) })) }) (else_clause "else if (list != (list *)0x0) {\n    do {\n      pbVar4 = (bfd *)bfd_openr(list->name,"plugin");\n      pcVar3 = program_name;\n      pbVar2 = obfd;\n      if (pbVar4 == (bfd *)0x0) {\n        pcVar5 = list->name;\n        __format = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar1,__format,pcVar3,pcVar5);\n        if (interactive == 0) goto LAB_00016d55;\n      }\n      else {\n        pbVar4->archive_next = obfd->archive_head;\n        pbVar2->archive_head = pbVar4;\n      }\n      list = list->next;\n    } while (list != (list *)0x0);\n  }" else (if_statement "if (list != (list *)0x0) {\n    do {\n      pbVar4 = (bfd *)bfd_openr(list->name,"plugin");\n      pcVar3 = program_name;\n      pbVar2 = obfd;\n      if (pbVar4 == (bfd *)0x0) {\n        pcVar5 = list->name;\n        __format = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar1,__format,pcVar3,pcVar5);\n        if (interactive == 0) goto LAB_00016d55;\n      }\n      else {\n        pbVar4->archive_next = obfd->archive_head;\n        pbVar2->archive_head = pbVar4;\n      }\n      list = list->next;\n    } while (list != (list *)0x0);\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    do {\n      pbVar4 = (bfd *)bfd_openr(list->name,"plugin");\n      pcVar3 = program_name;\n      pbVar2 = obfd;\n      if (pbVar4 == (bfd *)0x0) {\n        pcVar5 = list->name;\n        __format = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar1,__format,pcVar3,pcVar5);\n        if (interactive == 0) goto LAB_00016d55;\n      }\n      else {\n        pbVar4->archive_next = obfd->archive_head;\n        pbVar2->archive_head = pbVar4;\n      }\n      list = list->next;\n    } while (list != (list *)0x0);\n  }" { (do_statement "do {\n      pbVar4 = (bfd *)bfd_openr(list->name,"plugin");\n      pcVar3 = program_name;\n      pbVar2 = obfd;\n      if (pbVar4 == (bfd *)0x0) {\n        pcVar5 = list->name;\n        __format = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar1,__format,pcVar3,pcVar5);\n        if (interactive == 0) goto LAB_00016d55;\n      }\n      else {\n        pbVar4->archive_next = obfd->archive_head;\n        pbVar2->archive_head = pbVar4;\n      }\n      list = list->next;\n    } while (list != (list *)0x0);" do (compound_statement "{\n      pbVar4 = (bfd *)bfd_openr(list->name,"plugin");\n      pcVar3 = program_name;\n      pbVar2 = obfd;\n      if (pbVar4 == (bfd *)0x0) {\n        pcVar5 = list->name;\n        __format = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar1,__format,pcVar3,pcVar5);\n        if (interactive == 0) goto LAB_00016d55;\n      }\n      else {\n        pbVar4->archive_next = obfd->archive_head;\n        pbVar2->archive_head = pbVar4;\n      }\n      list = list->next;\n    }" { (expression_statement "pbVar4 = (bfd *)bfd_openr(list->name,"plugin");" (assignment_expression "pbVar4 = (bfd *)bfd_openr(list->name,"plugin")" identifier = (cast_expression "(bfd *)bfd_openr(list->name,"plugin")" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_openr(list->name,"plugin")" identifier (argument_list "(list->name,"plugin")" ( (field_expression "list->name" identifier -> field_identifier) , (string_literal ""plugin"" " string_content ") ))))) ;) (expression_statement "pcVar3 = program_name;" (assignment_expression "pcVar3 = program_name" identifier = identifier) ;) (expression_statement "pbVar2 = obfd;" (assignment_expression "pbVar2 = obfd" identifier = identifier) ;) (if_statement "if (pbVar4 == (bfd *)0x0) {\n        pcVar5 = list->name;\n        __format = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar1,__format,pcVar3,pcVar5);\n        if (interactive == 0) goto LAB_00016d55;\n      }\n      else {\n        pbVar4->archive_next = obfd->archive_head;\n        pbVar2->archive_head = pbVar4;\n      }" if (parenthesized_expression "(pbVar4 == (bfd *)0x0)" ( (binary_expression "pbVar4 == (bfd *)0x0" identifier == (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pcVar5 = list->name;\n        __format = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar1,__format,pcVar3,pcVar5);\n        if (interactive == 0) goto LAB_00016d55;\n      }" { (expression_statement "pcVar5 = list->name;" (assignment_expression "pcVar5 = list->name" identifier = (field_expression "list->name" identifier -> field_identifier)) ;) (expression_statement "__format = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);" (assignment_expression "__format = (char *)dcgettext(0,"%s: can\'t open file %s\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%s: can\'t open file %s\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%s: can\'t open file %s\n",5)" identifier (argument_list "(0,"%s: can\'t open file %s\n",5)" ( number_literal , (string_literal ""%s: can\'t open file %s\n"" " string_content escape_sequence string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "fprintf(*(FILE **)puVar1,__format,pcVar3,pcVar5);" (call_expression "fprintf(*(FILE **)puVar1,__format,pcVar3,pcVar5)" identifier (argument_list "(*(FILE **)puVar1,__format,pcVar3,pcVar5)" ( (pointer_expression "*(FILE **)puVar1" * (cast_expression "(FILE **)puVar1" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , identifier , identifier , identifier ))) ;) (if_statement "if (interactive == 0) goto LAB_00016d55;" if (parenthesized_expression "(interactive == 0)" ( (binary_expression "interactive == 0" identifier == number_literal) )) (goto_statement "goto LAB_00016d55;" goto statement_identifier ;)) }) (else_clause "else {\n        pbVar4->archive_next = obfd->archive_head;\n        pbVar2->archive_head = pbVar4;\n      }" else (compound_statement "{\n        pbVar4->archive_next = obfd->archive_head;\n        pbVar2->archive_head = pbVar4;\n      }" { (expression_statement "pbVar4->archive_next = obfd->archive_head;" (assignment_expression "pbVar4->archive_next = obfd->archive_head" (field_expression "pbVar4->archive_next" identifier -> field_identifier) = (field_expression "obfd->archive_head" identifier -> field_identifier)) ;) (expression_statement "pbVar2->archive_head = pbVar4;" (assignment_expression "pbVar2->archive_head = pbVar4" (field_expression "pbVar2->archive_head" identifier -> field_identifier) = identifier) ;) }))) (expression_statement "list = list->next;" (assignment_expression "list = list->next" identifier = (field_expression "list->next" identifier -> field_identifier)) ;) }) while (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)) )) ;) })))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00016c90(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  char *pcVar6;\n  \n  uVar4 = DAT_000213a0;\n  puVar2 = PTR_stderr_00020fd4;\n  if (DAT_000212e4 == 0) {\n    pcVar6 = (char *)dcgettext(0,"%s: no open output archive\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar6,uVar4);\n    if (DAT_00021280 == 0) {\nLAB_00016d55:\n                    \n      xexit(9);\n    }\n  }\n  else if (param_1 != (undefined4 *)0x0) {\n    do {\n      iVar5 = bfd_openr(*param_1,"plugin");\n      uVar4 = DAT_000213a0;\n      iVar3 = DAT_000212e4;\n      if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }\n      param_1 = (undefined4 *)param_1[1];\n    } while (param_1 != (undefined4 *)0x0);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00016c90(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  char *pcVar6;\n  \n  uVar4 = DAT_000213a0;\n  puVar2 = PTR_stderr_00020fd4;\n  if (DAT_000212e4 == 0) {\n    pcVar6 = (char *)dcgettext(0,"%s: no open output archive\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar6,uVar4);\n    if (DAT_00021280 == 0) {\nLAB_00016d55:\n                    \n      xexit(9);\n    }\n  }\n  else if (param_1 != (undefined4 *)0x0) {\n    do {\n      iVar5 = bfd_openr(*param_1,"plugin");\n      uVar4 = DAT_000213a0;\n      iVar3 = DAT_000212e4;\n      if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }\n      param_1 = (undefined4 *)param_1[1];\n    } while (param_1 != (undefined4 *)0x0);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00016c90(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  char *pcVar6;\n  \n  uVar4 = DAT_000213a0;\n  puVar2 = PTR_stderr_00020fd4;\n  if (DAT_000212e4 == 0) {\n    pcVar6 = (char *)dcgettext(0,"%s: no open output archive\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar6,uVar4);\n    if (DAT_00021280 == 0) {\nLAB_00016d55:\n                    \n      xexit(9);\n    }\n  }\n  else if (param_1 != (undefined4 *)0x0) {\n    do {\n      iVar5 = bfd_openr(*param_1,"plugin");\n      uVar4 = DAT_000213a0;\n      iVar3 = DAT_000212e4;\n      if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }\n      param_1 = (undefined4 *)param_1[1];\n    } while (param_1 != (undefined4 *)0x0);\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (expression_statement "uVar4 = DAT_000213a0;" (assignment_expression "uVar4 = DAT_000213a0" identifier = identifier) ;) (expression_statement "puVar2 = PTR_stderr_00020fd4;" (assignment_expression "puVar2 = PTR_stderr_00020fd4" identifier = identifier) ;) (if_statement "if (DAT_000212e4 == 0) {\n    pcVar6 = (char *)dcgettext(0,"%s: no open output archive\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar6,uVar4);\n    if (DAT_00021280 == 0) {\nLAB_00016d55:\n                    \n      xexit(9);\n    }\n  }\n  else if (param_1 != (undefined4 *)0x0) {\n    do {\n      iVar5 = bfd_openr(*param_1,"plugin");\n      uVar4 = DAT_000213a0;\n      iVar3 = DAT_000212e4;\n      if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }\n      param_1 = (undefined4 *)param_1[1];\n    } while (param_1 != (undefined4 *)0x0);\n  }" if (parenthesized_expression "(DAT_000212e4 == 0)" ( (binary_expression "DAT_000212e4 == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar6 = (char *)dcgettext(0,"%s: no open output archive\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar6,uVar4);\n    if (DAT_00021280 == 0) {\nLAB_00016d55:\n                    \n      xexit(9);\n    }\n  }" { (expression_statement "pcVar6 = (char *)dcgettext(0,"%s: no open output archive\n",5);" (assignment_expression "pcVar6 = (char *)dcgettext(0,"%s: no open output archive\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%s: no open output archive\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%s: no open output archive\n",5)" identifier (argument_list "(0,"%s: no open output archive\n",5)" ( number_literal , (string_literal ""%s: no open output archive\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar6,uVar4);" (call_expression "fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar6,uVar4)" identifier (argument_list "(*(FILE **)PTR_stderr_00020fd4,pcVar6,uVar4)" ( (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 (DAT_00021280 == 0) {\nLAB_00016d55:\n                    \n      xexit(9);\n    }" if (parenthesized_expression "(DAT_00021280 == 0)" ( (binary_expression "DAT_00021280 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00016d55:\n                    \n      xexit(9);\n    }" { (labeled_statement "LAB_00016d55:\n                    \n      xexit(9);" statement_identifier : (expression_statement "xexit(9);" (call_expression "xexit(9)" identifier (argument_list "(9)" ( number_literal ))) ;)) })) }) (else_clause "else if (param_1 != (undefined4 *)0x0) {\n    do {\n      iVar5 = bfd_openr(*param_1,"plugin");\n      uVar4 = DAT_000213a0;\n      iVar3 = DAT_000212e4;\n      if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }\n      param_1 = (undefined4 *)param_1[1];\n    } while (param_1 != (undefined4 *)0x0);\n  }" else (if_statement "if (param_1 != (undefined4 *)0x0) {\n    do {\n      iVar5 = bfd_openr(*param_1,"plugin");\n      uVar4 = DAT_000213a0;\n      iVar3 = DAT_000212e4;\n      if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }\n      param_1 = (undefined4 *)param_1[1];\n    } while (param_1 != (undefined4 *)0x0);\n  }" if (parenthesized_expression "(param_1 != (undefined4 *)0x0)" ( (binary_expression "param_1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      iVar5 = bfd_openr(*param_1,"plugin");\n      uVar4 = DAT_000213a0;\n      iVar3 = DAT_000212e4;\n      if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }\n      param_1 = (undefined4 *)param_1[1];\n    } while (param_1 != (undefined4 *)0x0);\n  }" { (do_statement "do {\n      iVar5 = bfd_openr(*param_1,"plugin");\n      uVar4 = DAT_000213a0;\n      iVar3 = DAT_000212e4;\n      if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }\n      param_1 = (undefined4 *)param_1[1];\n    } while (param_1 != (undefined4 *)0x0);" do (compound_statement "{\n      iVar5 = bfd_openr(*param_1,"plugin");\n      uVar4 = DAT_000213a0;\n      iVar3 = DAT_000212e4;\n      if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }\n      param_1 = (undefined4 *)param_1[1];\n    }" { (expression_statement "iVar5 = bfd_openr(*param_1,"plugin");" (assignment_expression "iVar5 = bfd_openr(*param_1,"plugin")" identifier = (call_expression "bfd_openr(*param_1,"plugin")" identifier (argument_list "(*param_1,"plugin")" ( (pointer_expression "*param_1" * identifier) , (string_literal ""plugin"" " string_content ") )))) ;) (expression_statement "uVar4 = DAT_000213a0;" (assignment_expression "uVar4 = DAT_000213a0" identifier = identifier) ;) (expression_statement "iVar3 = DAT_000212e4;" (assignment_expression "iVar3 = DAT_000212e4" identifier = identifier) ;) (if_statement "if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }" { (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);" (assignment_expression "pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%s: can\'t open file %s\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%s: can\'t open file %s\n",5)" identifier (argument_list "(0,"%s: can\'t open file %s\n",5)" ( number_literal , (string_literal ""%s: can\'t open file %s\n"" " string_content escape_sequence string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);" (call_expression "fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1)" identifier (argument_list "(*(FILE **)puVar2,pcVar6,uVar4,uVar1)" ( (pointer_expression "*(FILE **)puVar2" * (cast_expression "(FILE **)puVar2" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , identifier , identifier , identifier ))) ;) (if_statement "if (DAT_00021280 == 0) goto LAB_00016d55;" if (parenthesized_expression "(DAT_00021280 == 0)" ( (binary_expression "DAT_00021280 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00016d55;" goto statement_identifier ;)) }) (else_clause "else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }" else (compound_statement "{\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }" { (expression_statement "*(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);" (assignment_expression "*(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94)" (pointer_expression "*(undefined4 *)(iVar5 + 0x90)" * (cast_expression "(undefined4 *)(iVar5 + 0x90)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x90)" ( (binary_expression "iVar5 + 0x90" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(DAT_000212e4 + 0x94)" * (cast_expression "(undefined4 *)(DAT_000212e4 + 0x94)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000212e4 + 0x94)" ( (binary_expression "DAT_000212e4 + 0x94" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar3 + 0x94) = iVar5;" (assignment_expression "*(int *)(iVar3 + 0x94) = iVar5" (pointer_expression "*(int *)(iVar3 + 0x94)" * (cast_expression "(int *)(iVar3 + 0x94)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x94)" ( (binary_expression "iVar3 + 0x94" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "param_1 = (undefined4 *)param_1[1];" (assignment_expression "param_1 = (undefined4 *)param_1[1]" identifier = (cast_expression "(undefined4 *)param_1[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(param_1 != (undefined4 *)0x0)" ( (binary_expression "param_1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , 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 { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;)) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (string_literal " string_content ") )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * 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 (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) , IDENT , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) })))) (return_statement return ;) })))
(function_definition "void FUN_00016c90(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  char *pcVar6;\n  \n  uVar4 = DAT_000213a0;\n  puVar2 = PTR_stderr_00020fd4;\n  if (DAT_000212e4 == 0) {\n    pcVar6 = (char *)dcgettext(0,"%s: no open output archive\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar6,uVar4);\n    if (DAT_00021280 == 0) {\nLAB_00016d55:\n                    \n      xexit(9);\n    }\n  }\n  else if (param_1 != (undefined4 *)0x0) {\n    do {\n      iVar5 = bfd_openr(*param_1,"plugin");\n      uVar4 = DAT_000213a0;\n      iVar3 = DAT_000212e4;\n      if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }\n      param_1 = (undefined4 *)param_1[1];\n    } while (param_1 != (undefined4 *)0x0);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00016c90(undefined4 *param_1)" (identifier "FUN_00016c90") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  char *pcVar6;\n  \n  uVar4 = DAT_000213a0;\n  puVar2 = PTR_stderr_00020fd4;\n  if (DAT_000212e4 == 0) {\n    pcVar6 = (char *)dcgettext(0,"%s: no open output archive\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar6,uVar4);\n    if (DAT_00021280 == 0) {\nLAB_00016d55:\n                    \n      xexit(9);\n    }\n  }\n  else if (param_1 != (undefined4 *)0x0) {\n    do {\n      iVar5 = bfd_openr(*param_1,"plugin");\n      uVar4 = DAT_000213a0;\n      iVar3 = DAT_000212e4;\n      if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }\n      param_1 = (undefined4 *)param_1[1];\n    } while (param_1 != (undefined4 *)0x0);\n  }\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (expression_statement "uVar4 = DAT_000213a0;" (assignment_expression "uVar4 = DAT_000213a0" (identifier "uVar4") (= "=") (identifier "DAT_000213a0")) (; ";")) (expression_statement "puVar2 = PTR_stderr_00020fd4;" (assignment_expression "puVar2 = PTR_stderr_00020fd4" (identifier "puVar2") (= "=") (identifier "PTR_stderr_00020fd4")) (; ";")) (if_statement "if (DAT_000212e4 == 0) {\n    pcVar6 = (char *)dcgettext(0,"%s: no open output archive\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar6,uVar4);\n    if (DAT_00021280 == 0) {\nLAB_00016d55:\n                    \n      xexit(9);\n    }\n  }\n  else if (param_1 != (undefined4 *)0x0) {\n    do {\n      iVar5 = bfd_openr(*param_1,"plugin");\n      uVar4 = DAT_000213a0;\n      iVar3 = DAT_000212e4;\n      if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }\n      param_1 = (undefined4 *)param_1[1];\n    } while (param_1 != (undefined4 *)0x0);\n  }" (if "if") (parenthesized_expression "(DAT_000212e4 == 0)" (( "(") (binary_expression "DAT_000212e4 == 0" (identifier "DAT_000212e4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    pcVar6 = (char *)dcgettext(0,"%s: no open output archive\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar6,uVar4);\n    if (DAT_00021280 == 0) {\nLAB_00016d55:\n                    \n      xexit(9);\n    }\n  }" ({ "{") (expression_statement "pcVar6 = (char *)dcgettext(0,"%s: no open output archive\n",5);" (assignment_expression "pcVar6 = (char *)dcgettext(0,"%s: no open output archive\n",5)" (identifier "pcVar6") (= "=") (cast_expression "(char *)dcgettext(0,"%s: no open output archive\n",5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "dcgettext(0,"%s: no open output archive\n",5)" (identifier "dcgettext") (argument_list "(0,"%s: no open output archive\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%s: no open output archive\n"" (" """) (string_content "%s: no open output archive") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")"))))) (; ";")) (expression_statement "fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar6,uVar4);" (call_expression "fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar6,uVar4)" (identifier "fprintf") (argument_list "(*(FILE **)PTR_stderr_00020fd4,pcVar6,uVar4)" (( "(") (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 "pcVar6") (, ",") (identifier "uVar4") () ")"))) (; ";")) (if_statement "if (DAT_00021280 == 0) {\nLAB_00016d55:\n                    \n      xexit(9);\n    }" (if "if") (parenthesized_expression "(DAT_00021280 == 0)" (( "(") (binary_expression "DAT_00021280 == 0" (identifier "DAT_00021280") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00016d55:\n                    \n      xexit(9);\n    }" ({ "{") (labeled_statement "LAB_00016d55:\n                    \n      xexit(9);" (statement_identifier "LAB_00016d55") (: ":") (expression_statement "xexit(9);" (call_expression "xexit(9)" (identifier "xexit") (argument_list "(9)" (( "(") (number_literal "9") () ")"))) (; ";"))) (} "}"))) (} "}")) (else_clause "else if (param_1 != (undefined4 *)0x0) {\n    do {\n      iVar5 = bfd_openr(*param_1,"plugin");\n      uVar4 = DAT_000213a0;\n      iVar3 = DAT_000212e4;\n      if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }\n      param_1 = (undefined4 *)param_1[1];\n    } while (param_1 != (undefined4 *)0x0);\n  }" (else "else") (if_statement "if (param_1 != (undefined4 *)0x0) {\n    do {\n      iVar5 = bfd_openr(*param_1,"plugin");\n      uVar4 = DAT_000213a0;\n      iVar3 = DAT_000212e4;\n      if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }\n      param_1 = (undefined4 *)param_1[1];\n    } while (param_1 != (undefined4 *)0x0);\n  }" (if "if") (parenthesized_expression "(param_1 != (undefined4 *)0x0)" (( "(") (binary_expression "param_1 != (undefined4 *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    do {\n      iVar5 = bfd_openr(*param_1,"plugin");\n      uVar4 = DAT_000213a0;\n      iVar3 = DAT_000212e4;\n      if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }\n      param_1 = (undefined4 *)param_1[1];\n    } while (param_1 != (undefined4 *)0x0);\n  }" ({ "{") (do_statement "do {\n      iVar5 = bfd_openr(*param_1,"plugin");\n      uVar4 = DAT_000213a0;\n      iVar3 = DAT_000212e4;\n      if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }\n      param_1 = (undefined4 *)param_1[1];\n    } while (param_1 != (undefined4 *)0x0);" (do "do") (compound_statement "{\n      iVar5 = bfd_openr(*param_1,"plugin");\n      uVar4 = DAT_000213a0;\n      iVar3 = DAT_000212e4;\n      if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }\n      param_1 = (undefined4 *)param_1[1];\n    }" ({ "{") (expression_statement "iVar5 = bfd_openr(*param_1,"plugin");" (assignment_expression "iVar5 = bfd_openr(*param_1,"plugin")" (identifier "iVar5") (= "=") (call_expression "bfd_openr(*param_1,"plugin")" (identifier "bfd_openr") (argument_list "(*param_1,"plugin")" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (string_literal ""plugin"" (" """) (string_content "plugin") (" """)) () ")")))) (; ";")) (expression_statement "uVar4 = DAT_000213a0;" (assignment_expression "uVar4 = DAT_000213a0" (identifier "uVar4") (= "=") (identifier "DAT_000213a0")) (; ";")) (expression_statement "iVar3 = DAT_000212e4;" (assignment_expression "iVar3 = DAT_000212e4" (identifier "iVar3") (= "=") (identifier "DAT_000212e4")) (; ";")) (if_statement "if (iVar5 == 0) {\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }\n      else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar1 = *param_1;\n        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);\n        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);\n        if (DAT_00021280 == 0) goto LAB_00016d55;\n      }" ({ "{") (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" (identifier "uVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);" (assignment_expression "pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5)" (identifier "pcVar6") (= "=") (cast_expression "(char *)dcgettext(0,"%s: can\'t open file %s\n",5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "dcgettext(0,"%s: can\'t open file %s\n",5)" (identifier "dcgettext") (argument_list "(0,"%s: can\'t open file %s\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%s: can\'t open file %s\n"" (" """) (string_content "%s: can") (escape_sequence "\'") (string_content "t open file %s") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")"))))) (; ";")) (expression_statement "fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);" (call_expression "fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1)" (identifier "fprintf") (argument_list "(*(FILE **)puVar2,pcVar6,uVar4,uVar1)" (( "(") (pointer_expression "*(FILE **)puVar2" (* "*") (cast_expression "(FILE **)puVar2" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar2"))) (, ",") (identifier "pcVar6") (, ",") (identifier "uVar4") (, ",") (identifier "uVar1") () ")"))) (; ";")) (if_statement "if (DAT_00021280 == 0) goto LAB_00016d55;" (if "if") (parenthesized_expression "(DAT_00021280 == 0)" (( "(") (binary_expression "DAT_00021280 == 0" (identifier "DAT_00021280") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00016d55;" (goto "goto") (statement_identifier "LAB_00016d55") (; ";"))) (} "}")) (else_clause "else {\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }" (else "else") (compound_statement "{\n        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n        *(int *)(iVar3 + 0x94) = iVar5;\n      }" ({ "{") (expression_statement "*(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);" (assignment_expression "*(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94)" (pointer_expression "*(undefined4 *)(iVar5 + 0x90)" (* "*") (cast_expression "(undefined4 *)(iVar5 + 0x90)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x90)" (( "(") (binary_expression "iVar5 + 0x90" (identifier "iVar5") (+ "+") (number_literal "0x90")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(DAT_000212e4 + 0x94)" (* "*") (cast_expression "(undefined4 *)(DAT_000212e4 + 0x94)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_000212e4 + 0x94)" (( "(") (binary_expression "DAT_000212e4 + 0x94" (identifier "DAT_000212e4") (+ "+") (number_literal "0x94")) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar3 + 0x94) = iVar5;" (assignment_expression "*(int *)(iVar3 + 0x94) = iVar5" (pointer_expression "*(int *)(iVar3 + 0x94)" (* "*") (cast_expression "(int *)(iVar3 + 0x94)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x94)" (( "(") (binary_expression "iVar3 + 0x94" (identifier "iVar3") (+ "+") (number_literal "0x94")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (} "}")))) (expression_statement "param_1 = (undefined4 *)param_1[1];" (assignment_expression "param_1 = (undefined4 *)param_1[1]" (identifier "param_1") (= "=") (cast_expression "(undefined4 *)param_1[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1 != (undefined4 *)0x0)" (( "(") (binary_expression "param_1 != (undefined4 *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}"))))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *type_1)

{
  type_2 *puVar1;
  type_3 *pbVar2;
  char *pcVar3;
  type_3 *var_7;
  char *__format;
  char *pcVar5;
  
  pcVar3 = program_name;
  puVar1 = PTR_stderr_00020fd4;
  if (var_1 == (type_3 *)0x0) {
    pcVar5 = (char *)var_2(0,"%s: no open output archive\n",5);
    var_3(*(type_4 **)PTR_stderr_00020fd4,pcVar5,pcVar3);
    if (var_4 == 0) {
LAB_00016d55:
                    /* WARNING: Subroutine does not return */
      var_5(9);
    }
  }
  else if (type_1 != (type_1 *)0x0) {
    do {
      var_7 = (type_3 *)var_6(type_1->name,"plugin");
      pcVar3 = program_name;
      pbVar2 = var_1;
      if (var_7 == (type_3 *)0x0) {
        pcVar5 = type_1->name;
        __format = (char *)var_2(0,"%s: can\'t open file %s\n",5);
        var_3(*(type_4 **)puVar1,__format,pcVar3,pcVar5);
        if (var_4 == 0) goto LAB_00016d55;
      }
      else {
        var_7->archive_next = var_1->archive_head;
        pbVar2->archive_head = var_7;
      }
      type_1 = type_1->next;
    } while (type_1 != (type_1 *)0x0);
  }
  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: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content) (escape_sequence)) (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 (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))))))) alternative: (else_clause (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 (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (string_literal (string_content)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (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: (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 (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) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (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))))) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))))) (return_statement))))

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

void MASKED(undefined4 *param_1)

{
  undefined4 uVar1;
  undefined *puVar2;
  int iVar3;
  undefined4 uVar4;
  int iVar5;
  char *pcVar6;
  
  uVar4 = DAT_000213a0;
  puVar2 = PTR_stderr_00020fd4;
  if (DAT_000212e4 == 0) {
    pcVar6 = (char *)dcgettext(0,"%s: no open output archive\n",5);
    fprintf(*(FILE **)PTR_stderr_00020fd4,pcVar6,uVar4);
    if (DAT_00021280 == 0) {
LAB_00016d55:
                    /* WARNING: Subroutine does not return */
      xexit(9);
    }
  }
  else if (param_1 != (undefined4 *)0x0) {
    do {
      iVar5 = bfd_openr(*param_1,"plugin");
      uVar4 = DAT_000213a0;
      iVar3 = DAT_000212e4;
      if (iVar5 == 0) {
        uVar1 = *param_1;
        pcVar6 = (char *)dcgettext(0,"%s: can\'t open file %s\n",5);
        fprintf(*(FILE **)puVar2,pcVar6,uVar4,uVar1);
        if (DAT_00021280 == 0) goto LAB_00016d55;
      }
      else {
        *(undefined4 *)(iVar5 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);
        *(int *)(iVar3 + 0x94) = iVar5;
      }
      param_1 = (undefined4 *)param_1[1];
    } while (param_1 != (undefined4 *)0x0);
  }
  return;
}

