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

void ar_addlib(char *name,list *list)

{
  bfd *pbVar1;
  char *pcVar2;
  bfd *pbVar3;
  char *__format;
  
  pcVar2 = program_name;
  if (obfd == (bfd *)0x0) {
    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);
    fprintf(*(FILE **)PTR_stderr_00020fd4,__format,pcVar2);
    if (interactive == 0) {
                    /* WARNING: Subroutine does not return */
      xexit(9);
    }
  }
  else {
    pbVar3 = open_inarch(name,(char *)0x0);
    if (pbVar3 != (bfd *)0x0) {
      if (list != (list *)0x0) {
        map_over_list(pbVar3,ar_addlib_doer,list);
        return;
      }
      pbVar3 = pbVar3->archive_next;
      while (pbVar3 != (bfd *)0x0) {
        pbVar1 = pbVar3->archive_next;
        ar_addlib_doer(pbVar3,(bfd *)0x0);
        pbVar3 = pbVar1;
      }
    }
  }
  return;
}



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

void FUN_00016b30(undefined4 param_1,int param_2)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  char *__format;
  
  uVar2 = DAT_000213a0;
  if (DAT_000212e4 == 0) {
    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);
    fprintf(*(FILE **)PTR_stderr_00020fd4,__format,uVar2);
    if (DAT_00021280 == 0) {
                    /* WARNING: Subroutine does not return */
      xexit(9);
    }
  }
  else {
    iVar3 = FUN_000163a0(param_1,0);
    if (iVar3 != 0) {
      if (param_2 != 0) {
        FUN_00016740();
        return;
      }
      iVar3 = *(int *)(iVar3 + 0x8c);
      while (iVar3 != 0) {
        iVar1 = *(int *)(iVar3 + 0x8c);
        FUN_000166d0(iVar3,0);
        iVar3 = iVar1;
      }
    }
  }
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00013710
ADD EBX,0xa4c9
SUB ESP,0x4
MOV EAX,dword ptr [ESP + 0x10]
MOV ESI,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [EBX + 0x2e4]
TEST EDX,EDX
JZ 0x00016b80
SUB ESP,0x8
PUSH 0x0
PUSH EAX
CALL 0x000163a0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00016bbc
TEST ESI,ESI
JZ 0x00016bc8
ADD ESP,0x4
MOV ECX,ESI
LEA EDX,[EBX + 0xffff56d0]
POP EBX
POP ESI
JMP 0x00016740
LEA EAX,[EBX + 0x3a0]
SUB ESP,0x4
MOV ESI,dword ptr [EAX]
LEA EAX,[EBX + 0xffffb0f0]
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 EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x00016bf4
ADD ESP,0x4
POP EBX
POP ESI
RET
MOV EAX,dword ptr [EAX + 0x8c]
TEST EAX,EAX
JZ 0x00016bbc
LEA ESI,[ESI]
SUB ESP,0x8
MOV EBX,dword ptr [EAX + 0x8c]
PUSH 0x0
PUSH EAX
CALL 0x000166d0
MOV EAX,EBX
ADD ESP,0x10
TEST EBX,EBX
JNZ 0x00016bd8
JMP 0x00016bbc
SUB ESP,0xc
PUSH 0x9
CALL 0x000124a0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00016b30(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *__format;\n  \n  uVar2 = DAT_000213a0;\n  if (DAT_000212e4 == 0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,__format,uVar2);\n    if (DAT_00021280 == 0) {\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }\n  else {\n    iVar3 = FUN_000163a0(param_1,0);\n    if (iVar3 != 0) {\n      if (param_2 != 0) {\n        FUN_00016740();\n        return;\n      }\n      iVar3 = *(int *)(iVar3 + 0x8c);\n      while (iVar3 != 0) {\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00016b30(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *__format;\n  \n  uVar2 = DAT_000213a0;\n  if (DAT_000212e4 == 0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,__format,uVar2);\n    if (DAT_00021280 == 0) {\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }\n  else {\n    iVar3 = FUN_000163a0(param_1,0);\n    if (iVar3 != 0) {\n      if (param_2 != 0) {\n        FUN_00016740();\n        return;\n      }\n      iVar3 = *(int *)(iVar3 + 0x8c);\n      while (iVar3 != 0) {\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00016b30(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *__format;\n  \n  uVar2 = DAT_000213a0;\n  if (DAT_000212e4 == 0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,__format,uVar2);\n    if (DAT_00021280 == 0) {\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }\n  else {\n    iVar3 = FUN_000163a0(param_1,0);\n    if (iVar3 != 0) {\n      if (param_2 != 0) {\n        FUN_00016740();\n        return;\n      }\n      iVar3 = *(int *)(iVar3 + 0x8c);\n      while (iVar3 != 0) {\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (expression_statement "uVar2 = DAT_000213a0;" (assignment_expression "uVar2 = DAT_000213a0" identifier = identifier) ;) (if_statement "if (DAT_000212e4 == 0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,__format,uVar2);\n    if (DAT_00021280 == 0) {\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }\n  else {\n    iVar3 = FUN_000163a0(param_1,0);\n    if (iVar3 != 0) {\n      if (param_2 != 0) {\n        FUN_00016740();\n        return;\n      }\n      iVar3 = *(int *)(iVar3 + 0x8c);\n      while (iVar3 != 0) {\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }\n    }\n  }" if (parenthesized_expression "(DAT_000212e4 == 0)" ( (binary_expression "DAT_000212e4 == 0" identifier == number_literal) )) (compound_statement "{\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,__format,uVar2);\n    if (DAT_00021280 == 0) {\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }" { (expression_statement "__format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);" (assignment_expression "__format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%s: no output archive specified yet\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%s: no output archive specified yet\n",5)" identifier (argument_list "(0,"%s: no output archive specified yet\n",5)" ( number_literal , (string_literal ""%s: no output archive specified yet\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_00020fd4,__format,uVar2);" (call_expression "fprintf(*(FILE **)PTR_stderr_00020fd4,__format,uVar2)" identifier (argument_list "(*(FILE **)PTR_stderr_00020fd4,__format,uVar2)" ( (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) {\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 "{\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }" { comment (expression_statement "xexit(9);" (call_expression "xexit(9)" identifier (argument_list "(9)" ( number_literal ))) ;) })) }) (else_clause "else {\n    iVar3 = FUN_000163a0(param_1,0);\n    if (iVar3 != 0) {\n      if (param_2 != 0) {\n        FUN_00016740();\n        return;\n      }\n      iVar3 = *(int *)(iVar3 + 0x8c);\n      while (iVar3 != 0) {\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }\n    }\n  }" else (compound_statement "{\n    iVar3 = FUN_000163a0(param_1,0);\n    if (iVar3 != 0) {\n      if (param_2 != 0) {\n        FUN_00016740();\n        return;\n      }\n      iVar3 = *(int *)(iVar3 + 0x8c);\n      while (iVar3 != 0) {\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }\n    }\n  }" { (expression_statement "iVar3 = FUN_000163a0(param_1,0);" (assignment_expression "iVar3 = FUN_000163a0(param_1,0)" identifier = (call_expression "FUN_000163a0(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar3 != 0) {\n      if (param_2 != 0) {\n        FUN_00016740();\n        return;\n      }\n      iVar3 = *(int *)(iVar3 + 0x8c);\n      while (iVar3 != 0) {\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      if (param_2 != 0) {\n        FUN_00016740();\n        return;\n      }\n      iVar3 = *(int *)(iVar3 + 0x8c);\n      while (iVar3 != 0) {\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }\n    }" { (if_statement "if (param_2 != 0) {\n        FUN_00016740();\n        return;\n      }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_00016740();\n        return;\n      }" { (expression_statement "FUN_00016740();" (call_expression "FUN_00016740()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar3 = *(int *)(iVar3 + 0x8c);" (assignment_expression "iVar3 = *(int *)(iVar3 + 0x8c)" identifier = (pointer_expression "*(int *)(iVar3 + 0x8c)" * (cast_expression "(int *)(iVar3 + 0x8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x8c)" ( (binary_expression "iVar3 + 0x8c" identifier + number_literal) ))))) ;) (while_statement "while (iVar3 != 0) {\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }" while (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }" { (expression_statement "iVar1 = *(int *)(iVar3 + 0x8c);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0x8c)" identifier = (pointer_expression "*(int *)(iVar3 + 0x8c)" * (cast_expression "(int *)(iVar3 + 0x8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x8c)" ( (binary_expression "iVar3 + 0x8c" identifier + number_literal) ))))) ;) (expression_statement "FUN_000166d0(iVar3,0);" (call_expression "FUN_000166d0(iVar3,0)" identifier (argument_list "(iVar3,0)" ( identifier , number_literal ))) ;) (expression_statement "iVar3 = iVar1;" (assignment_expression "iVar3 = iVar1" identifier = identifier) ;) })) })) }))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid ar_addlib(char *name,list *list)\n\n{\n  bfd *pbVar1;\n  char *pcVar2;\n  bfd *pbVar3;\n  char *__format;\n  \n  pcVar2 = program_name;\n  if (obfd == (bfd *)0x0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,__format,pcVar2);\n    if (interactive == 0) {\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }\n  else {\n    pbVar3 = open_inarch(name,(char *)0x0);\n    if (pbVar3 != (bfd *)0x0) {\n      if (list != (list *)0x0) {\n        map_over_list(pbVar3,ar_addlib_doer,list);\n        return;\n      }\n      pbVar3 = pbVar3->archive_next;\n      while (pbVar3 != (bfd *)0x0) {\n        pbVar1 = pbVar3->archive_next;\n        ar_addlib_doer(pbVar3,(bfd *)0x0);\n        pbVar3 = pbVar1;\n      }\n    }\n  }\n  return;\n}\n\n" comment comment (function_definition "void ar_addlib(char *name,list *list)\n\n{\n  bfd *pbVar1;\n  char *pcVar2;\n  bfd *pbVar3;\n  char *__format;\n  \n  pcVar2 = program_name;\n  if (obfd == (bfd *)0x0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,__format,pcVar2);\n    if (interactive == 0) {\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }\n  else {\n    pbVar3 = open_inarch(name,(char *)0x0);\n    if (pbVar3 != (bfd *)0x0) {\n      if (list != (list *)0x0) {\n        map_over_list(pbVar3,ar_addlib_doer,list);\n        return;\n      }\n      pbVar3 = pbVar3->archive_next;\n      while (pbVar3 != (bfd *)0x0) {\n        pbVar1 = pbVar3->archive_next;\n        ar_addlib_doer(pbVar3,(bfd *)0x0);\n        pbVar3 = pbVar1;\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "ar_addlib(char *name,list *list)" identifier (parameter_list "(char *name,list *list)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "list *list" type_identifier (pointer_declarator "*list" * identifier)) ))) (compound_statement "{\n  bfd *pbVar1;\n  char *pcVar2;\n  bfd *pbVar3;\n  char *__format;\n  \n  pcVar2 = program_name;\n  if (obfd == (bfd *)0x0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,__format,pcVar2);\n    if (interactive == 0) {\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }\n  else {\n    pbVar3 = open_inarch(name,(char *)0x0);\n    if (pbVar3 != (bfd *)0x0) {\n      if (list != (list *)0x0) {\n        map_over_list(pbVar3,ar_addlib_doer,list);\n        return;\n      }\n      pbVar3 = pbVar3->archive_next;\n      while (pbVar3 != (bfd *)0x0) {\n        pbVar1 = pbVar3->archive_next;\n        ar_addlib_doer(pbVar3,(bfd *)0x0);\n        pbVar3 = pbVar1;\n      }\n    }\n  }\n  return;\n}" { (declaration "bfd *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "bfd *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (expression_statement "pcVar2 = program_name;" (assignment_expression "pcVar2 = program_name" identifier = identifier) ;) (if_statement "if (obfd == (bfd *)0x0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,__format,pcVar2);\n    if (interactive == 0) {\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }\n  else {\n    pbVar3 = open_inarch(name,(char *)0x0);\n    if (pbVar3 != (bfd *)0x0) {\n      if (list != (list *)0x0) {\n        map_over_list(pbVar3,ar_addlib_doer,list);\n        return;\n      }\n      pbVar3 = pbVar3->archive_next;\n      while (pbVar3 != (bfd *)0x0) {\n        pbVar1 = pbVar3->archive_next;\n        ar_addlib_doer(pbVar3,(bfd *)0x0);\n        pbVar3 = pbVar1;\n      }\n    }\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    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,__format,pcVar2);\n    if (interactive == 0) {\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }" { (expression_statement "__format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);" (assignment_expression "__format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%s: no output archive specified yet\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%s: no output archive specified yet\n",5)" identifier (argument_list "(0,"%s: no output archive specified yet\n",5)" ( number_literal , (string_literal ""%s: no output archive specified yet\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_00020fd4,__format,pcVar2);" (call_expression "fprintf(*(FILE **)PTR_stderr_00020fd4,__format,pcVar2)" identifier (argument_list "(*(FILE **)PTR_stderr_00020fd4,__format,pcVar2)" ( (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) {\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }" if (parenthesized_expression "(interactive == 0)" ( (binary_expression "interactive == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }" { comment (expression_statement "xexit(9);" (call_expression "xexit(9)" identifier (argument_list "(9)" ( number_literal ))) ;) })) }) (else_clause "else {\n    pbVar3 = open_inarch(name,(char *)0x0);\n    if (pbVar3 != (bfd *)0x0) {\n      if (list != (list *)0x0) {\n        map_over_list(pbVar3,ar_addlib_doer,list);\n        return;\n      }\n      pbVar3 = pbVar3->archive_next;\n      while (pbVar3 != (bfd *)0x0) {\n        pbVar1 = pbVar3->archive_next;\n        ar_addlib_doer(pbVar3,(bfd *)0x0);\n        pbVar3 = pbVar1;\n      }\n    }\n  }" else (compound_statement "{\n    pbVar3 = open_inarch(name,(char *)0x0);\n    if (pbVar3 != (bfd *)0x0) {\n      if (list != (list *)0x0) {\n        map_over_list(pbVar3,ar_addlib_doer,list);\n        return;\n      }\n      pbVar3 = pbVar3->archive_next;\n      while (pbVar3 != (bfd *)0x0) {\n        pbVar1 = pbVar3->archive_next;\n        ar_addlib_doer(pbVar3,(bfd *)0x0);\n        pbVar3 = pbVar1;\n      }\n    }\n  }" { (expression_statement "pbVar3 = open_inarch(name,(char *)0x0);" (assignment_expression "pbVar3 = open_inarch(name,(char *)0x0)" identifier = (call_expression "open_inarch(name,(char *)0x0)" identifier (argument_list "(name,(char *)0x0)" ( identifier , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (if_statement "if (pbVar3 != (bfd *)0x0) {\n      if (list != (list *)0x0) {\n        map_over_list(pbVar3,ar_addlib_doer,list);\n        return;\n      }\n      pbVar3 = pbVar3->archive_next;\n      while (pbVar3 != (bfd *)0x0) {\n        pbVar1 = pbVar3->archive_next;\n        ar_addlib_doer(pbVar3,(bfd *)0x0);\n        pbVar3 = pbVar1;\n      }\n    }" if (parenthesized_expression "(pbVar3 != (bfd *)0x0)" ( (binary_expression "pbVar3 != (bfd *)0x0" identifier != (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (list != (list *)0x0) {\n        map_over_list(pbVar3,ar_addlib_doer,list);\n        return;\n      }\n      pbVar3 = pbVar3->archive_next;\n      while (pbVar3 != (bfd *)0x0) {\n        pbVar1 = pbVar3->archive_next;\n        ar_addlib_doer(pbVar3,(bfd *)0x0);\n        pbVar3 = pbVar1;\n      }\n    }" { (if_statement "if (list != (list *)0x0) {\n        map_over_list(pbVar3,ar_addlib_doer,list);\n        return;\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        map_over_list(pbVar3,ar_addlib_doer,list);\n        return;\n      }" { (expression_statement "map_over_list(pbVar3,ar_addlib_doer,list);" (call_expression "map_over_list(pbVar3,ar_addlib_doer,list)" identifier (argument_list "(pbVar3,ar_addlib_doer,list)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "pbVar3 = pbVar3->archive_next;" (assignment_expression "pbVar3 = pbVar3->archive_next" identifier = (field_expression "pbVar3->archive_next" identifier -> field_identifier)) ;) (while_statement "while (pbVar3 != (bfd *)0x0) {\n        pbVar1 = pbVar3->archive_next;\n        ar_addlib_doer(pbVar3,(bfd *)0x0);\n        pbVar3 = pbVar1;\n      }" while (parenthesized_expression "(pbVar3 != (bfd *)0x0)" ( (binary_expression "pbVar3 != (bfd *)0x0" identifier != (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pbVar1 = pbVar3->archive_next;\n        ar_addlib_doer(pbVar3,(bfd *)0x0);\n        pbVar3 = pbVar1;\n      }" { (expression_statement "pbVar1 = pbVar3->archive_next;" (assignment_expression "pbVar1 = pbVar3->archive_next" identifier = (field_expression "pbVar3->archive_next" identifier -> field_identifier)) ;) (expression_statement "ar_addlib_doer(pbVar3,(bfd *)0x0);" (call_expression "ar_addlib_doer(pbVar3,(bfd *)0x0)" identifier (argument_list "(pbVar3,(bfd *)0x0)" ( identifier , (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (expression_statement "pbVar3 = pbVar1;" (assignment_expression "pbVar3 = pbVar1" identifier = identifier) ;) })) })) }))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00016b30(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *__format;\n  \n  uVar2 = DAT_000213a0;\n  if (DAT_000212e4 == 0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,__format,uVar2);\n    if (DAT_00021280 == 0) {\n                    \n      xexit(9);\n    }\n  }\n  else {\n    iVar3 = FUN_000163a0(param_1,0);\n    if (iVar3 != 0) {\n      if (param_2 != 0) {\n        FUN_00016740();\n        return;\n      }\n      iVar3 = *(int *)(iVar3 + 0x8c);\n      while (iVar3 != 0) {\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00016b30(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *__format;\n  \n  uVar2 = DAT_000213a0;\n  if (DAT_000212e4 == 0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,__format,uVar2);\n    if (DAT_00021280 == 0) {\n                    \n      xexit(9);\n    }\n  }\n  else {\n    iVar3 = FUN_000163a0(param_1,0);\n    if (iVar3 != 0) {\n      if (param_2 != 0) {\n        FUN_00016740();\n        return;\n      }\n      iVar3 = *(int *)(iVar3 + 0x8c);\n      while (iVar3 != 0) {\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00016b30(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *__format;\n  \n  uVar2 = DAT_000213a0;\n  if (DAT_000212e4 == 0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,__format,uVar2);\n    if (DAT_00021280 == 0) {\n                    \n      xexit(9);\n    }\n  }\n  else {\n    iVar3 = FUN_000163a0(param_1,0);\n    if (iVar3 != 0) {\n      if (param_2 != 0) {\n        FUN_00016740();\n        return;\n      }\n      iVar3 = *(int *)(iVar3 + 0x8c);\n      while (iVar3 != 0) {\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (expression_statement "uVar2 = DAT_000213a0;" (assignment_expression "uVar2 = DAT_000213a0" identifier = identifier) ;) (if_statement "if (DAT_000212e4 == 0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,__format,uVar2);\n    if (DAT_00021280 == 0) {\n                    \n      xexit(9);\n    }\n  }\n  else {\n    iVar3 = FUN_000163a0(param_1,0);\n    if (iVar3 != 0) {\n      if (param_2 != 0) {\n        FUN_00016740();\n        return;\n      }\n      iVar3 = *(int *)(iVar3 + 0x8c);\n      while (iVar3 != 0) {\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }\n    }\n  }" if (parenthesized_expression "(DAT_000212e4 == 0)" ( (binary_expression "DAT_000212e4 == 0" identifier == number_literal) )) (compound_statement "{\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,__format,uVar2);\n    if (DAT_00021280 == 0) {\n                    \n      xexit(9);\n    }\n  }" { (expression_statement "__format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);" (assignment_expression "__format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%s: no output archive specified yet\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%s: no output archive specified yet\n",5)" identifier (argument_list "(0,"%s: no output archive specified yet\n",5)" ( number_literal , (string_literal ""%s: no output archive specified yet\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_00020fd4,__format,uVar2);" (call_expression "fprintf(*(FILE **)PTR_stderr_00020fd4,__format,uVar2)" identifier (argument_list "(*(FILE **)PTR_stderr_00020fd4,__format,uVar2)" ( (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) {\n                    \n      xexit(9);\n    }" if (parenthesized_expression "(DAT_00021280 == 0)" ( (binary_expression "DAT_00021280 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n      xexit(9);\n    }" { (expression_statement "xexit(9);" (call_expression "xexit(9)" identifier (argument_list "(9)" ( number_literal ))) ;) })) }) (else_clause "else {\n    iVar3 = FUN_000163a0(param_1,0);\n    if (iVar3 != 0) {\n      if (param_2 != 0) {\n        FUN_00016740();\n        return;\n      }\n      iVar3 = *(int *)(iVar3 + 0x8c);\n      while (iVar3 != 0) {\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }\n    }\n  }" else (compound_statement "{\n    iVar3 = FUN_000163a0(param_1,0);\n    if (iVar3 != 0) {\n      if (param_2 != 0) {\n        FUN_00016740();\n        return;\n      }\n      iVar3 = *(int *)(iVar3 + 0x8c);\n      while (iVar3 != 0) {\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }\n    }\n  }" { (expression_statement "iVar3 = FUN_000163a0(param_1,0);" (assignment_expression "iVar3 = FUN_000163a0(param_1,0)" identifier = (call_expression "FUN_000163a0(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar3 != 0) {\n      if (param_2 != 0) {\n        FUN_00016740();\n        return;\n      }\n      iVar3 = *(int *)(iVar3 + 0x8c);\n      while (iVar3 != 0) {\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      if (param_2 != 0) {\n        FUN_00016740();\n        return;\n      }\n      iVar3 = *(int *)(iVar3 + 0x8c);\n      while (iVar3 != 0) {\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }\n    }" { (if_statement "if (param_2 != 0) {\n        FUN_00016740();\n        return;\n      }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_00016740();\n        return;\n      }" { (expression_statement "FUN_00016740();" (call_expression "FUN_00016740()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar3 = *(int *)(iVar3 + 0x8c);" (assignment_expression "iVar3 = *(int *)(iVar3 + 0x8c)" identifier = (pointer_expression "*(int *)(iVar3 + 0x8c)" * (cast_expression "(int *)(iVar3 + 0x8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x8c)" ( (binary_expression "iVar3 + 0x8c" identifier + number_literal) ))))) ;) (while_statement "while (iVar3 != 0) {\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }" while (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }" { (expression_statement "iVar1 = *(int *)(iVar3 + 0x8c);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0x8c)" identifier = (pointer_expression "*(int *)(iVar3 + 0x8c)" * (cast_expression "(int *)(iVar3 + 0x8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x8c)" ( (binary_expression "iVar3 + 0x8c" identifier + number_literal) ))))) ;) (expression_statement "FUN_000166d0(iVar3,0);" (call_expression "FUN_000166d0(iVar3,0)" identifier (argument_list "(iVar3,0)" ( identifier , number_literal ))) ;) (expression_statement "iVar3 = iVar1;" (assignment_expression "iVar3 = iVar1" identifier = identifier) ;) })) })) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * 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 { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (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) ;) })) })) }))) (return_statement return ;) })))
(function_definition "void FUN_00016b30(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *__format;\n  \n  uVar2 = DAT_000213a0;\n  if (DAT_000212e4 == 0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,__format,uVar2);\n    if (DAT_00021280 == 0) {\n                    \n      xexit(9);\n    }\n  }\n  else {\n    iVar3 = FUN_000163a0(param_1,0);\n    if (iVar3 != 0) {\n      if (param_2 != 0) {\n        FUN_00016740();\n        return;\n      }\n      iVar3 = *(int *)(iVar3 + 0x8c);\n      while (iVar3 != 0) {\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00016b30(undefined4 param_1,int param_2)" (identifier "FUN_00016b30") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *__format;\n  \n  uVar2 = DAT_000213a0;\n  if (DAT_000212e4 == 0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,__format,uVar2);\n    if (DAT_00021280 == 0) {\n                    \n      xexit(9);\n    }\n  }\n  else {\n    iVar3 = FUN_000163a0(param_1,0);\n    if (iVar3 != 0) {\n      if (param_2 != 0) {\n        FUN_00016740();\n        return;\n      }\n      iVar3 = *(int *)(iVar3 + 0x8c);\n      while (iVar3 != 0) {\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "char *__format;" (primitive_type "char") (pointer_declarator "*__format" (* "*") (identifier "__format")) (; ";")) (expression_statement "uVar2 = DAT_000213a0;" (assignment_expression "uVar2 = DAT_000213a0" (identifier "uVar2") (= "=") (identifier "DAT_000213a0")) (; ";")) (if_statement "if (DAT_000212e4 == 0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,__format,uVar2);\n    if (DAT_00021280 == 0) {\n                    \n      xexit(9);\n    }\n  }\n  else {\n    iVar3 = FUN_000163a0(param_1,0);\n    if (iVar3 != 0) {\n      if (param_2 != 0) {\n        FUN_00016740();\n        return;\n      }\n      iVar3 = *(int *)(iVar3 + 0x8c);\n      while (iVar3 != 0) {\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(DAT_000212e4 == 0)" (( "(") (binary_expression "DAT_000212e4 == 0" (identifier "DAT_000212e4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(*(FILE **)PTR_stderr_00020fd4,__format,uVar2);\n    if (DAT_00021280 == 0) {\n                    \n      xexit(9);\n    }\n  }" ({ "{") (expression_statement "__format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);" (assignment_expression "__format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5)" (identifier "__format") (= "=") (cast_expression "(char *)dcgettext(0,"%s: no output archive specified yet\n",5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "dcgettext(0,"%s: no output archive specified yet\n",5)" (identifier "dcgettext") (argument_list "(0,"%s: no output archive specified yet\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%s: no output archive specified yet\n"" (" """) (string_content "%s: no output archive specified yet") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")"))))) (; ";")) (expression_statement "fprintf(*(FILE **)PTR_stderr_00020fd4,__format,uVar2);" (call_expression "fprintf(*(FILE **)PTR_stderr_00020fd4,__format,uVar2)" (identifier "fprintf") (argument_list "(*(FILE **)PTR_stderr_00020fd4,__format,uVar2)" (( "(") (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 "uVar2") () ")"))) (; ";")) (if_statement "if (DAT_00021280 == 0) {\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 "{\n                    \n      xexit(9);\n    }" ({ "{") (expression_statement "xexit(9);" (call_expression "xexit(9)" (identifier "xexit") (argument_list "(9)" (( "(") (number_literal "9") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar3 = FUN_000163a0(param_1,0);\n    if (iVar3 != 0) {\n      if (param_2 != 0) {\n        FUN_00016740();\n        return;\n      }\n      iVar3 = *(int *)(iVar3 + 0x8c);\n      while (iVar3 != 0) {\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }\n    }\n  }" (else "else") (compound_statement "{\n    iVar3 = FUN_000163a0(param_1,0);\n    if (iVar3 != 0) {\n      if (param_2 != 0) {\n        FUN_00016740();\n        return;\n      }\n      iVar3 = *(int *)(iVar3 + 0x8c);\n      while (iVar3 != 0) {\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }\n    }\n  }" ({ "{") (expression_statement "iVar3 = FUN_000163a0(param_1,0);" (assignment_expression "iVar3 = FUN_000163a0(param_1,0)" (identifier "iVar3") (= "=") (call_expression "FUN_000163a0(param_1,0)" (identifier "FUN_000163a0") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n      if (param_2 != 0) {\n        FUN_00016740();\n        return;\n      }\n      iVar3 = *(int *)(iVar3 + 0x8c);\n      while (iVar3 != 0) {\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (param_2 != 0) {\n        FUN_00016740();\n        return;\n      }\n      iVar3 = *(int *)(iVar3 + 0x8c);\n      while (iVar3 != 0) {\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }\n    }" ({ "{") (if_statement "if (param_2 != 0) {\n        FUN_00016740();\n        return;\n      }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_00016740();\n        return;\n      }" ({ "{") (expression_statement "FUN_00016740();" (call_expression "FUN_00016740()" (identifier "FUN_00016740") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar3 = *(int *)(iVar3 + 0x8c);" (assignment_expression "iVar3 = *(int *)(iVar3 + 0x8c)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar3 + 0x8c)" (* "*") (cast_expression "(int *)(iVar3 + 0x8c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x8c)" (( "(") (binary_expression "iVar3 + 0x8c" (identifier "iVar3") (+ "+") (number_literal "0x8c")) () ")"))))) (; ";")) (while_statement "while (iVar3 != 0) {\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }" (while "while") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar1 = *(int *)(iVar3 + 0x8c);\n        FUN_000166d0(iVar3,0);\n        iVar3 = iVar1;\n      }" ({ "{") (expression_statement "iVar1 = *(int *)(iVar3 + 0x8c);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0x8c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar3 + 0x8c)" (* "*") (cast_expression "(int *)(iVar3 + 0x8c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x8c)" (( "(") (binary_expression "iVar3 + 0x8c" (identifier "iVar3") (+ "+") (number_literal "0x8c")) () ")"))))) (; ";")) (expression_statement "FUN_000166d0(iVar3,0);" (call_expression "FUN_000166d0(iVar3,0)" (identifier "FUN_000166d0") (argument_list "(iVar3,0)" (( "(") (identifier "iVar3") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar3 = iVar1;" (assignment_expression "iVar3 = iVar1" (identifier "iVar3") (= "=") (identifier "iVar1")) (; ";")) (} "}"))) (} "}"))) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(char *name,type_1 *type_1)

{
  type_2 *pbVar1;
  char *pcVar2;
  type_2 *var_7;
  char *__format;
  
  pcVar2 = program_name;
  if (var_1 == (type_2 *)0x0) {
    __format = (char *)var_2(0,"%s: no output archive specified yet\n",5);
    var_3(*(type_3 **)PTR_stderr_00020fd4,__format,pcVar2);
    if (var_4 == 0) {
                    /* WARNING: Subroutine does not return */
      var_5(9);
    }
  }
  else {
    var_7 = var_6(name,(char *)0x0);
    if (var_7 != (type_2 *)0x0) {
      if (type_1 != (type_1 *)0x0) {
        var_8(var_7,var_9,type_1);
        return;
      }
      var_7 = var_7->archive_next;
      while (var_7 != (type_2 *)0x0) {
        pbVar1 = var_7->archive_next;
        var_9(var_7,(type_2 *)0x0);
        var_7 = pbVar1;
      }
    }
  }
  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)))) body: (compound_statement (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))) (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 (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_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)))))))))) (return_statement))))

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

void MASKED(undefined4 param_1,int param_2)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  char *__format;
  
  uVar2 = DAT_000213a0;
  if (DAT_000212e4 == 0) {
    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);
    fprintf(*(FILE **)PTR_stderr_00020fd4,__format,uVar2);
    if (DAT_00021280 == 0) {
                    /* WARNING: Subroutine does not return */
      xexit(9);
    }
  }
  else {
    iVar3 = FUN_000163a0(param_1,0);
    if (iVar3 != 0) {
      if (param_2 != 0) {
        FUN_00016740();
        return;
      }
      iVar3 = *(int *)(iVar3 + 0x8c);
      while (iVar3 != 0) {
        iVar1 = *(int *)(iVar3 + 0x8c);
        FUN_000166d0(iVar3,0);
        iVar3 = iVar1;
      }
    }
  }
  return;
}

