
void ar_addlib(char *name,list *list)

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



void FUN_00106740(undefined8 param_1,long param_2)

{
  undefined8 uVar1;
  long lVar2;
  char *__format;
  long lVar3;
  
  uVar1 = DAT_001106b0;
  if (DAT_00110548 == 0) {
    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);
    fprintf(stderr,__format,uVar1);
    if (DAT_00110474 == 0) {
                    /* WARNING: Subroutine does not return */
      xexit(9);
    }
  }
  else {
    lVar2 = FUN_00104620(param_1,0);
    if (lVar2 != 0) {
      if (param_2 != 0) {
        FUN_00106380(lVar2,FUN_00106330,param_2);
        return;
      }
      lVar3 = *(long *)(lVar2 + 0xd8);
      if (*(long *)(lVar2 + 0xd8) != 0) {
        do {
          lVar2 = *(long *)(lVar3 + 0xd8);
          FUN_00106330(lVar3,0);
          lVar3 = lVar2;
        } while (lVar2 != 0);
        return;
      }
    }
  }
  return;
}


CMP qword ptr [0x00110548],0x0
PUSH RBX
JZ 0x00106778
MOV RBX,RSI
XOR ESI,ESI
CALL 0x00104620
TEST RAX,RAX
JZ 0x001067b0
TEST RBX,RBX
JZ 0x001067b8
MOV RDX,RBX
LEA RSI,[0x106330]
MOV RDI,RAX
POP RBX
JMP 0x00106380
MOV RBX,qword ptr [0x001106b0]
MOV EDX,0x5
LEA RSI,[0x10c198]
XOR EDI,EDI
CALL 0x001021b0
MOV RDI,qword ptr [0x00110460]
MOV RSI,RAX
MOV RDX,RBX
XOR EAX,EAX
CALL 0x00102340
MOV EAX,dword ptr [0x00110474]
TEST EAX,EAX
JZ 0x001067e0
POP RBX
RET
MOV RDI,qword ptr [RAX + 0xd8]
TEST RDI,RDI
JZ 0x001067b0
NOP dword ptr [RAX]
MOV RCX,qword ptr [RDI + 0xd8]
XOR ESI,ESI
CALL 0x00106330
MOV RDI,RCX
TEST RCX,RCX
JNZ 0x001067c8
POP RBX
RET
MOV EDI,0x9
CALL 0x00102500
(translation_unit "void FUN_00106740(undefined8 param_1,long param_2)\n\n{\n  undefined8 uVar1;\n  long lVar2;\n  char *__format;\n  long lVar3;\n  \n  uVar1 = DAT_001106b0;\n  if (DAT_00110548 == 0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(stderr,__format,uVar1);\n    if (DAT_00110474 == 0) {\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }\n  else {\n    lVar2 = FUN_00104620(param_1,0);\n    if (lVar2 != 0) {\n      if (param_2 != 0) {\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }\n      lVar3 = *(long *)(lVar2 + 0xd8);\n      if (*(long *)(lVar2 + 0xd8) != 0) {\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00106740(undefined8 param_1,long param_2)\n\n{\n  undefined8 uVar1;\n  long lVar2;\n  char *__format;\n  long lVar3;\n  \n  uVar1 = DAT_001106b0;\n  if (DAT_00110548 == 0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(stderr,__format,uVar1);\n    if (DAT_00110474 == 0) {\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }\n  else {\n    lVar2 = FUN_00104620(param_1,0);\n    if (lVar2 != 0) {\n      if (param_2 != 0) {\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }\n      lVar3 = *(long *)(lVar2 + 0xd8);\n      if (*(long *)(lVar2 + 0xd8) != 0) {\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00106740(undefined8 param_1,long param_2)" identifier (parameter_list "(undefined8 param_1,long param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  long lVar2;\n  char *__format;\n  long lVar3;\n  \n  uVar1 = DAT_001106b0;\n  if (DAT_00110548 == 0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(stderr,__format,uVar1);\n    if (DAT_00110474 == 0) {\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }\n  else {\n    lVar2 = FUN_00104620(param_1,0);\n    if (lVar2 != 0) {\n      if (param_2 != 0) {\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }\n      lVar3 = *(long *)(lVar2 + 0xd8);\n      if (*(long *)(lVar2 + 0xd8) != 0) {\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }\n    }\n  }\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (expression_statement "uVar1 = DAT_001106b0;" (assignment_expression "uVar1 = DAT_001106b0" identifier = identifier) ;) (if_statement "if (DAT_00110548 == 0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(stderr,__format,uVar1);\n    if (DAT_00110474 == 0) {\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }\n  else {\n    lVar2 = FUN_00104620(param_1,0);\n    if (lVar2 != 0) {\n      if (param_2 != 0) {\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }\n      lVar3 = *(long *)(lVar2 + 0xd8);\n      if (*(long *)(lVar2 + 0xd8) != 0) {\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }\n    }\n  }" if (parenthesized_expression "(DAT_00110548 == 0)" ( (binary_expression "DAT_00110548 == 0" identifier == number_literal) )) (compound_statement "{\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(stderr,__format,uVar1);\n    if (DAT_00110474 == 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(stderr,__format,uVar1);" (call_expression "fprintf(stderr,__format,uVar1)" identifier (argument_list "(stderr,__format,uVar1)" ( identifier , identifier , identifier ))) ;) (if_statement "if (DAT_00110474 == 0) {\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }" if (parenthesized_expression "(DAT_00110474 == 0)" ( (binary_expression "DAT_00110474 == 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    lVar2 = FUN_00104620(param_1,0);\n    if (lVar2 != 0) {\n      if (param_2 != 0) {\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }\n      lVar3 = *(long *)(lVar2 + 0xd8);\n      if (*(long *)(lVar2 + 0xd8) != 0) {\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }\n    }\n  }" else (compound_statement "{\n    lVar2 = FUN_00104620(param_1,0);\n    if (lVar2 != 0) {\n      if (param_2 != 0) {\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }\n      lVar3 = *(long *)(lVar2 + 0xd8);\n      if (*(long *)(lVar2 + 0xd8) != 0) {\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }\n    }\n  }" { (expression_statement "lVar2 = FUN_00104620(param_1,0);" (assignment_expression "lVar2 = FUN_00104620(param_1,0)" identifier = (call_expression "FUN_00104620(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (if_statement "if (lVar2 != 0) {\n      if (param_2 != 0) {\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }\n      lVar3 = *(long *)(lVar2 + 0xd8);\n      if (*(long *)(lVar2 + 0xd8) != 0) {\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }\n    }" if (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      if (param_2 != 0) {\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }\n      lVar3 = *(long *)(lVar2 + 0xd8);\n      if (*(long *)(lVar2 + 0xd8) != 0) {\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }\n    }" { (if_statement "if (param_2 != 0) {\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }" { (expression_statement "FUN_00106380(lVar2,FUN_00106330,param_2);" (call_expression "FUN_00106380(lVar2,FUN_00106330,param_2)" identifier (argument_list "(lVar2,FUN_00106330,param_2)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "lVar3 = *(long *)(lVar2 + 0xd8);" (assignment_expression "lVar3 = *(long *)(lVar2 + 0xd8)" identifier = (pointer_expression "*(long *)(lVar2 + 0xd8)" * (cast_expression "(long *)(lVar2 + 0xd8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0xd8)" ( (binary_expression "lVar2 + 0xd8" identifier + number_literal) ))))) ;) (if_statement "if (*(long *)(lVar2 + 0xd8) != 0) {\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }" if (parenthesized_expression "(*(long *)(lVar2 + 0xd8) != 0)" ( (binary_expression "*(long *)(lVar2 + 0xd8) != 0" (pointer_expression "*(long *)(lVar2 + 0xd8)" * (cast_expression "(long *)(lVar2 + 0xd8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0xd8)" ( (binary_expression "lVar2 + 0xd8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }" { (do_statement "do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);" do (compound_statement "{\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        }" { (expression_statement "lVar2 = *(long *)(lVar3 + 0xd8);" (assignment_expression "lVar2 = *(long *)(lVar3 + 0xd8)" identifier = (pointer_expression "*(long *)(lVar3 + 0xd8)" * (cast_expression "(long *)(lVar3 + 0xd8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0xd8)" ( (binary_expression "lVar3 + 0xd8" identifier + number_literal) ))))) ;) (expression_statement "FUN_00106330(lVar3,0);" (call_expression "FUN_00106330(lVar3,0)" identifier (argument_list "(lVar3,0)" ( identifier , number_literal ))) ;) (expression_statement "lVar3 = lVar2;" (assignment_expression "lVar3 = lVar2" identifier = identifier) ;) }) while (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) ;) (return_statement "return;" return ;) })) })) }))) (return_statement "return;" return ;) })))
(translation_unit "void ar_addlib(char *name,list *list)\n\n{\n  char *pcVar1;\n  bfd *pbVar2;\n  char *__format;\n  bfd *abfd;\n  \n  pcVar1 = program_name;\n  if (obfd == (bfd *)0x0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(stderr,__format,pcVar1);\n    if (interactive == 0) {\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }\n  else {\n    pbVar2 = open_inarch(name,(char *)0x0);\n    if (pbVar2 != (bfd *)0x0) {\n      if (list != (list *)0x0) {\n        map_over_list(pbVar2,ar_addlib_doer,list);\n        return;\n      }\n      abfd = pbVar2->archive_next;\n      if (pbVar2->archive_next != (bfd *)0x0) {\n        do {\n          pbVar2 = abfd->archive_next;\n          ar_addlib_doer(abfd,(bfd *)0x0);\n          abfd = pbVar2;\n        } while (pbVar2 != (bfd *)0x0);\n        return;\n      }\n    }\n  }\n  return;\n}\n\n" (function_definition "void ar_addlib(char *name,list *list)\n\n{\n  char *pcVar1;\n  bfd *pbVar2;\n  char *__format;\n  bfd *abfd;\n  \n  pcVar1 = program_name;\n  if (obfd == (bfd *)0x0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(stderr,__format,pcVar1);\n    if (interactive == 0) {\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }\n  else {\n    pbVar2 = open_inarch(name,(char *)0x0);\n    if (pbVar2 != (bfd *)0x0) {\n      if (list != (list *)0x0) {\n        map_over_list(pbVar2,ar_addlib_doer,list);\n        return;\n      }\n      abfd = pbVar2->archive_next;\n      if (pbVar2->archive_next != (bfd *)0x0) {\n        do {\n          pbVar2 = abfd->archive_next;\n          ar_addlib_doer(abfd,(bfd *)0x0);\n          abfd = pbVar2;\n        } while (pbVar2 != (bfd *)0x0);\n        return;\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  char *pcVar1;\n  bfd *pbVar2;\n  char *__format;\n  bfd *abfd;\n  \n  pcVar1 = program_name;\n  if (obfd == (bfd *)0x0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(stderr,__format,pcVar1);\n    if (interactive == 0) {\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }\n  else {\n    pbVar2 = open_inarch(name,(char *)0x0);\n    if (pbVar2 != (bfd *)0x0) {\n      if (list != (list *)0x0) {\n        map_over_list(pbVar2,ar_addlib_doer,list);\n        return;\n      }\n      abfd = pbVar2->archive_next;\n      if (pbVar2->archive_next != (bfd *)0x0) {\n        do {\n          pbVar2 = abfd->archive_next;\n          ar_addlib_doer(abfd,(bfd *)0x0);\n          abfd = pbVar2;\n        } while (pbVar2 != (bfd *)0x0);\n        return;\n      }\n    }\n  }\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "bfd *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (declaration "bfd *abfd;" type_identifier (pointer_declarator "*abfd" * identifier) ;) (expression_statement "pcVar1 = program_name;" (assignment_expression "pcVar1 = 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(stderr,__format,pcVar1);\n    if (interactive == 0) {\n                    /* WARNING: Subroutine does not return */\n      xexit(9);\n    }\n  }\n  else {\n    pbVar2 = open_inarch(name,(char *)0x0);\n    if (pbVar2 != (bfd *)0x0) {\n      if (list != (list *)0x0) {\n        map_over_list(pbVar2,ar_addlib_doer,list);\n        return;\n      }\n      abfd = pbVar2->archive_next;\n      if (pbVar2->archive_next != (bfd *)0x0) {\n        do {\n          pbVar2 = abfd->archive_next;\n          ar_addlib_doer(abfd,(bfd *)0x0);\n          abfd = pbVar2;\n        } while (pbVar2 != (bfd *)0x0);\n        return;\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(stderr,__format,pcVar1);\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(stderr,__format,pcVar1);" (call_expression "fprintf(stderr,__format,pcVar1)" identifier (argument_list "(stderr,__format,pcVar1)" ( 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    pbVar2 = open_inarch(name,(char *)0x0);\n    if (pbVar2 != (bfd *)0x0) {\n      if (list != (list *)0x0) {\n        map_over_list(pbVar2,ar_addlib_doer,list);\n        return;\n      }\n      abfd = pbVar2->archive_next;\n      if (pbVar2->archive_next != (bfd *)0x0) {\n        do {\n          pbVar2 = abfd->archive_next;\n          ar_addlib_doer(abfd,(bfd *)0x0);\n          abfd = pbVar2;\n        } while (pbVar2 != (bfd *)0x0);\n        return;\n      }\n    }\n  }" else (compound_statement "{\n    pbVar2 = open_inarch(name,(char *)0x0);\n    if (pbVar2 != (bfd *)0x0) {\n      if (list != (list *)0x0) {\n        map_over_list(pbVar2,ar_addlib_doer,list);\n        return;\n      }\n      abfd = pbVar2->archive_next;\n      if (pbVar2->archive_next != (bfd *)0x0) {\n        do {\n          pbVar2 = abfd->archive_next;\n          ar_addlib_doer(abfd,(bfd *)0x0);\n          abfd = pbVar2;\n        } while (pbVar2 != (bfd *)0x0);\n        return;\n      }\n    }\n  }" { (expression_statement "pbVar2 = open_inarch(name,(char *)0x0);" (assignment_expression "pbVar2 = 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 (pbVar2 != (bfd *)0x0) {\n      if (list != (list *)0x0) {\n        map_over_list(pbVar2,ar_addlib_doer,list);\n        return;\n      }\n      abfd = pbVar2->archive_next;\n      if (pbVar2->archive_next != (bfd *)0x0) {\n        do {\n          pbVar2 = abfd->archive_next;\n          ar_addlib_doer(abfd,(bfd *)0x0);\n          abfd = pbVar2;\n        } while (pbVar2 != (bfd *)0x0);\n        return;\n      }\n    }" if (parenthesized_expression "(pbVar2 != (bfd *)0x0)" ( (binary_expression "pbVar2 != (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(pbVar2,ar_addlib_doer,list);\n        return;\n      }\n      abfd = pbVar2->archive_next;\n      if (pbVar2->archive_next != (bfd *)0x0) {\n        do {\n          pbVar2 = abfd->archive_next;\n          ar_addlib_doer(abfd,(bfd *)0x0);\n          abfd = pbVar2;\n        } while (pbVar2 != (bfd *)0x0);\n        return;\n      }\n    }" { (if_statement "if (list != (list *)0x0) {\n        map_over_list(pbVar2,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(pbVar2,ar_addlib_doer,list);\n        return;\n      }" { (expression_statement "map_over_list(pbVar2,ar_addlib_doer,list);" (call_expression "map_over_list(pbVar2,ar_addlib_doer,list)" identifier (argument_list "(pbVar2,ar_addlib_doer,list)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "abfd = pbVar2->archive_next;" (assignment_expression "abfd = pbVar2->archive_next" identifier = (field_expression "pbVar2->archive_next" identifier -> field_identifier)) ;) (if_statement "if (pbVar2->archive_next != (bfd *)0x0) {\n        do {\n          pbVar2 = abfd->archive_next;\n          ar_addlib_doer(abfd,(bfd *)0x0);\n          abfd = pbVar2;\n        } while (pbVar2 != (bfd *)0x0);\n        return;\n      }" if (parenthesized_expression "(pbVar2->archive_next != (bfd *)0x0)" ( (binary_expression "pbVar2->archive_next != (bfd *)0x0" (field_expression "pbVar2->archive_next" identifier -> field_identifier) != (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        do {\n          pbVar2 = abfd->archive_next;\n          ar_addlib_doer(abfd,(bfd *)0x0);\n          abfd = pbVar2;\n        } while (pbVar2 != (bfd *)0x0);\n        return;\n      }" { (do_statement "do {\n          pbVar2 = abfd->archive_next;\n          ar_addlib_doer(abfd,(bfd *)0x0);\n          abfd = pbVar2;\n        } while (pbVar2 != (bfd *)0x0);" do (compound_statement "{\n          pbVar2 = abfd->archive_next;\n          ar_addlib_doer(abfd,(bfd *)0x0);\n          abfd = pbVar2;\n        }" { (expression_statement "pbVar2 = abfd->archive_next;" (assignment_expression "pbVar2 = abfd->archive_next" identifier = (field_expression "abfd->archive_next" identifier -> field_identifier)) ;) (expression_statement "ar_addlib_doer(abfd,(bfd *)0x0);" (call_expression "ar_addlib_doer(abfd,(bfd *)0x0)" identifier (argument_list "(abfd,(bfd *)0x0)" ( identifier , (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (expression_statement "abfd = pbVar2;" (assignment_expression "abfd = pbVar2" identifier = identifier) ;) }) while (parenthesized_expression "(pbVar2 != (bfd *)0x0)" ( (binary_expression "pbVar2 != (bfd *)0x0" identifier != (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (return_statement "return;" return ;) })) })) }))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00106740(undefined8 param_1,long param_2)\n\n{\n  undefined8 uVar1;\n  long lVar2;\n  char *__format;\n  long lVar3;\n  \n  uVar1 = DAT_001106b0;\n  if (DAT_00110548 == 0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(stderr,__format,uVar1);\n    if (DAT_00110474 == 0) {\n                    \n      xexit(9);\n    }\n  }\n  else {\n    lVar2 = FUN_00104620(param_1,0);\n    if (lVar2 != 0) {\n      if (param_2 != 0) {\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }\n      lVar3 = *(long *)(lVar2 + 0xd8);\n      if (*(long *)(lVar2 + 0xd8) != 0) {\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00106740(undefined8 param_1,long param_2)\n\n{\n  undefined8 uVar1;\n  long lVar2;\n  char *__format;\n  long lVar3;\n  \n  uVar1 = DAT_001106b0;\n  if (DAT_00110548 == 0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(stderr,__format,uVar1);\n    if (DAT_00110474 == 0) {\n                    \n      xexit(9);\n    }\n  }\n  else {\n    lVar2 = FUN_00104620(param_1,0);\n    if (lVar2 != 0) {\n      if (param_2 != 0) {\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }\n      lVar3 = *(long *)(lVar2 + 0xd8);\n      if (*(long *)(lVar2 + 0xd8) != 0) {\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00106740(undefined8 param_1,long param_2)" identifier (parameter_list "(undefined8 param_1,long param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  long lVar2;\n  char *__format;\n  long lVar3;\n  \n  uVar1 = DAT_001106b0;\n  if (DAT_00110548 == 0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(stderr,__format,uVar1);\n    if (DAT_00110474 == 0) {\n                    \n      xexit(9);\n    }\n  }\n  else {\n    lVar2 = FUN_00104620(param_1,0);\n    if (lVar2 != 0) {\n      if (param_2 != 0) {\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }\n      lVar3 = *(long *)(lVar2 + 0xd8);\n      if (*(long *)(lVar2 + 0xd8) != 0) {\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }\n    }\n  }\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (expression_statement "uVar1 = DAT_001106b0;" (assignment_expression "uVar1 = DAT_001106b0" identifier = identifier) ;) (if_statement "if (DAT_00110548 == 0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(stderr,__format,uVar1);\n    if (DAT_00110474 == 0) {\n                    \n      xexit(9);\n    }\n  }\n  else {\n    lVar2 = FUN_00104620(param_1,0);\n    if (lVar2 != 0) {\n      if (param_2 != 0) {\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }\n      lVar3 = *(long *)(lVar2 + 0xd8);\n      if (*(long *)(lVar2 + 0xd8) != 0) {\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }\n    }\n  }" if (parenthesized_expression "(DAT_00110548 == 0)" ( (binary_expression "DAT_00110548 == 0" identifier == number_literal) )) (compound_statement "{\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(stderr,__format,uVar1);\n    if (DAT_00110474 == 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(stderr,__format,uVar1);" (call_expression "fprintf(stderr,__format,uVar1)" identifier (argument_list "(stderr,__format,uVar1)" ( identifier , identifier , identifier ))) ;) (if_statement "if (DAT_00110474 == 0) {\n                    \n      xexit(9);\n    }" if (parenthesized_expression "(DAT_00110474 == 0)" ( (binary_expression "DAT_00110474 == 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    lVar2 = FUN_00104620(param_1,0);\n    if (lVar2 != 0) {\n      if (param_2 != 0) {\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }\n      lVar3 = *(long *)(lVar2 + 0xd8);\n      if (*(long *)(lVar2 + 0xd8) != 0) {\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }\n    }\n  }" else (compound_statement "{\n    lVar2 = FUN_00104620(param_1,0);\n    if (lVar2 != 0) {\n      if (param_2 != 0) {\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }\n      lVar3 = *(long *)(lVar2 + 0xd8);\n      if (*(long *)(lVar2 + 0xd8) != 0) {\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }\n    }\n  }" { (expression_statement "lVar2 = FUN_00104620(param_1,0);" (assignment_expression "lVar2 = FUN_00104620(param_1,0)" identifier = (call_expression "FUN_00104620(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (if_statement "if (lVar2 != 0) {\n      if (param_2 != 0) {\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }\n      lVar3 = *(long *)(lVar2 + 0xd8);\n      if (*(long *)(lVar2 + 0xd8) != 0) {\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }\n    }" if (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      if (param_2 != 0) {\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }\n      lVar3 = *(long *)(lVar2 + 0xd8);\n      if (*(long *)(lVar2 + 0xd8) != 0) {\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }\n    }" { (if_statement "if (param_2 != 0) {\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }" { (expression_statement "FUN_00106380(lVar2,FUN_00106330,param_2);" (call_expression "FUN_00106380(lVar2,FUN_00106330,param_2)" identifier (argument_list "(lVar2,FUN_00106330,param_2)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "lVar3 = *(long *)(lVar2 + 0xd8);" (assignment_expression "lVar3 = *(long *)(lVar2 + 0xd8)" identifier = (pointer_expression "*(long *)(lVar2 + 0xd8)" * (cast_expression "(long *)(lVar2 + 0xd8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0xd8)" ( (binary_expression "lVar2 + 0xd8" identifier + number_literal) ))))) ;) (if_statement "if (*(long *)(lVar2 + 0xd8) != 0) {\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }" if (parenthesized_expression "(*(long *)(lVar2 + 0xd8) != 0)" ( (binary_expression "*(long *)(lVar2 + 0xd8) != 0" (pointer_expression "*(long *)(lVar2 + 0xd8)" * (cast_expression "(long *)(lVar2 + 0xd8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0xd8)" ( (binary_expression "lVar2 + 0xd8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }" { (do_statement "do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);" do (compound_statement "{\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        }" { (expression_statement "lVar2 = *(long *)(lVar3 + 0xd8);" (assignment_expression "lVar2 = *(long *)(lVar3 + 0xd8)" identifier = (pointer_expression "*(long *)(lVar3 + 0xd8)" * (cast_expression "(long *)(lVar3 + 0xd8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0xd8)" ( (binary_expression "lVar3 + 0xd8" identifier + number_literal) ))))) ;) (expression_statement "FUN_00106330(lVar3,0);" (call_expression "FUN_00106330(lVar3,0)" identifier (argument_list "(lVar3,0)" ( identifier , number_literal ))) ;) (expression_statement "lVar3 = lVar2;" (assignment_expression "lVar3 = lVar2" identifier = identifier) ;) }) while (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) ;) (return_statement "return;" return ;) })) })) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) 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 ( 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 ( IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (return_statement return ;) })) })) }))) (return_statement return ;) })))
(function_definition "void FUN_00106740(undefined8 param_1,long param_2)\n\n{\n  undefined8 uVar1;\n  long lVar2;\n  char *__format;\n  long lVar3;\n  \n  uVar1 = DAT_001106b0;\n  if (DAT_00110548 == 0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(stderr,__format,uVar1);\n    if (DAT_00110474 == 0) {\n                    \n      xexit(9);\n    }\n  }\n  else {\n    lVar2 = FUN_00104620(param_1,0);\n    if (lVar2 != 0) {\n      if (param_2 != 0) {\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }\n      lVar3 = *(long *)(lVar2 + 0xd8);\n      if (*(long *)(lVar2 + 0xd8) != 0) {\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00106740(undefined8 param_1,long param_2)" (identifier "FUN_00106740") (parameter_list "(undefined8 param_1,long param_2)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  long lVar2;\n  char *__format;\n  long lVar3;\n  \n  uVar1 = DAT_001106b0;\n  if (DAT_00110548 == 0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(stderr,__format,uVar1);\n    if (DAT_00110474 == 0) {\n                    \n      xexit(9);\n    }\n  }\n  else {\n    lVar2 = FUN_00104620(param_1,0);\n    if (lVar2 != 0) {\n      if (param_2 != 0) {\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }\n      lVar3 = *(long *)(lVar2 + 0xd8);\n      if (*(long *)(lVar2 + 0xd8) != 0) {\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }\n    }\n  }\n  return;\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "char *__format;" (primitive_type "char") (pointer_declarator "*__format" (* "*") (identifier "__format")) (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (expression_statement "uVar1 = DAT_001106b0;" (assignment_expression "uVar1 = DAT_001106b0" (identifier "uVar1") (= "=") (identifier "DAT_001106b0")) (; ";")) (if_statement "if (DAT_00110548 == 0) {\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(stderr,__format,uVar1);\n    if (DAT_00110474 == 0) {\n                    \n      xexit(9);\n    }\n  }\n  else {\n    lVar2 = FUN_00104620(param_1,0);\n    if (lVar2 != 0) {\n      if (param_2 != 0) {\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }\n      lVar3 = *(long *)(lVar2 + 0xd8);\n      if (*(long *)(lVar2 + 0xd8) != 0) {\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(DAT_00110548 == 0)" (( "(") (binary_expression "DAT_00110548 == 0" (identifier "DAT_00110548") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);\n    fprintf(stderr,__format,uVar1);\n    if (DAT_00110474 == 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(stderr,__format,uVar1);" (call_expression "fprintf(stderr,__format,uVar1)" (identifier "fprintf") (argument_list "(stderr,__format,uVar1)" (( "(") (identifier "stderr") (, ",") (identifier "__format") (, ",") (identifier "uVar1") () ")"))) (; ";")) (if_statement "if (DAT_00110474 == 0) {\n                    \n      xexit(9);\n    }" (if "if") (parenthesized_expression "(DAT_00110474 == 0)" (( "(") (binary_expression "DAT_00110474 == 0" (identifier "DAT_00110474") (== "==") (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    lVar2 = FUN_00104620(param_1,0);\n    if (lVar2 != 0) {\n      if (param_2 != 0) {\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }\n      lVar3 = *(long *)(lVar2 + 0xd8);\n      if (*(long *)(lVar2 + 0xd8) != 0) {\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }\n    }\n  }" (else "else") (compound_statement "{\n    lVar2 = FUN_00104620(param_1,0);\n    if (lVar2 != 0) {\n      if (param_2 != 0) {\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }\n      lVar3 = *(long *)(lVar2 + 0xd8);\n      if (*(long *)(lVar2 + 0xd8) != 0) {\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }\n    }\n  }" ({ "{") (expression_statement "lVar2 = FUN_00104620(param_1,0);" (assignment_expression "lVar2 = FUN_00104620(param_1,0)" (identifier "lVar2") (= "=") (call_expression "FUN_00104620(param_1,0)" (identifier "FUN_00104620") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (lVar2 != 0) {\n      if (param_2 != 0) {\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }\n      lVar3 = *(long *)(lVar2 + 0xd8);\n      if (*(long *)(lVar2 + 0xd8) != 0) {\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }\n    }" (if "if") (parenthesized_expression "(lVar2 != 0)" (( "(") (binary_expression "lVar2 != 0" (identifier "lVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (param_2 != 0) {\n        FUN_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }\n      lVar3 = *(long *)(lVar2 + 0xd8);\n      if (*(long *)(lVar2 + 0xd8) != 0) {\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }\n    }" ({ "{") (if_statement "if (param_2 != 0) {\n        FUN_00106380(lVar2,FUN_00106330,param_2);\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_00106380(lVar2,FUN_00106330,param_2);\n        return;\n      }" ({ "{") (expression_statement "FUN_00106380(lVar2,FUN_00106330,param_2);" (call_expression "FUN_00106380(lVar2,FUN_00106330,param_2)" (identifier "FUN_00106380") (argument_list "(lVar2,FUN_00106330,param_2)" (( "(") (identifier "lVar2") (, ",") (identifier "FUN_00106330") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "lVar3 = *(long *)(lVar2 + 0xd8);" (assignment_expression "lVar3 = *(long *)(lVar2 + 0xd8)" (identifier "lVar3") (= "=") (pointer_expression "*(long *)(lVar2 + 0xd8)" (* "*") (cast_expression "(long *)(lVar2 + 0xd8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0xd8)" (( "(") (binary_expression "lVar2 + 0xd8" (identifier "lVar2") (+ "+") (number_literal "0xd8")) () ")"))))) (; ";")) (if_statement "if (*(long *)(lVar2 + 0xd8) != 0) {\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }" (if "if") (parenthesized_expression "(*(long *)(lVar2 + 0xd8) != 0)" (( "(") (binary_expression "*(long *)(lVar2 + 0xd8) != 0" (pointer_expression "*(long *)(lVar2 + 0xd8)" (* "*") (cast_expression "(long *)(lVar2 + 0xd8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0xd8)" (( "(") (binary_expression "lVar2 + 0xd8" (identifier "lVar2") (+ "+") (number_literal "0xd8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);\n        return;\n      }" ({ "{") (do_statement "do {\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        } while (lVar2 != 0);" (do "do") (compound_statement "{\n          lVar2 = *(long *)(lVar3 + 0xd8);\n          FUN_00106330(lVar3,0);\n          lVar3 = lVar2;\n        }" ({ "{") (expression_statement "lVar2 = *(long *)(lVar3 + 0xd8);" (assignment_expression "lVar2 = *(long *)(lVar3 + 0xd8)" (identifier "lVar2") (= "=") (pointer_expression "*(long *)(lVar3 + 0xd8)" (* "*") (cast_expression "(long *)(lVar3 + 0xd8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0xd8)" (( "(") (binary_expression "lVar3 + 0xd8" (identifier "lVar3") (+ "+") (number_literal "0xd8")) () ")"))))) (; ";")) (expression_statement "FUN_00106330(lVar3,0);" (call_expression "FUN_00106330(lVar3,0)" (identifier "FUN_00106330") (argument_list "(lVar3,0)" (( "(") (identifier "lVar3") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "lVar3 = lVar2;" (assignment_expression "lVar3 = lVar2" (identifier "lVar3") (= "=") (identifier "lVar2")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(lVar2 != 0)" (( "(") (binary_expression "lVar2 != 0" (identifier "lVar2") (!= "!=") (number_literal "0")) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(char *name,type_1 *type_1)

{
  char *pcVar1;
  type_2 *var_7;
  char *__format;
  type_2 *abfd;
  
  pcVar1 = program_name;
  if (var_1 == (type_2 *)0x0) {
    __format = (char *)var_2(0,"%s: no output archive specified yet\n",5);
    var_3(stderr,__format,pcVar1);
    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;
      }
      abfd = var_7->archive_next;
      if (var_7->archive_next != (type_2 *)0x0) {
        do {
          var_7 = abfd->archive_next;
          var_9(abfd,(type_2 *)0x0);
          abfd = var_7;
        } while (var_7 != (type_2 *)0x0);
        return;
      }
    }
  }
  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: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) 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 (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 (identifier) (identifier) (identifier)))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) 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)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (return_statement)))))))) (return_statement))))

void MASKED(undefined8 param_1,long param_2)

{
  undefined8 uVar1;
  long lVar2;
  char *__format;
  long lVar3;
  
  uVar1 = DAT_001106b0;
  if (DAT_00110548 == 0) {
    __format = (char *)dcgettext(0,"%s: no output archive specified yet\n",5);
    fprintf(stderr,__format,uVar1);
    if (DAT_00110474 == 0) {
                    /* WARNING: Subroutine does not return */
      xexit(9);
    }
  }
  else {
    lVar2 = FUN_00104620(param_1,0);
    if (lVar2 != 0) {
      if (param_2 != 0) {
        FUN_00106380(lVar2,FUN_00106330,param_2);
        return;
      }
      lVar3 = *(long *)(lVar2 + 0xd8);
      if (*(long *)(lVar2 + 0xd8) != 0) {
        do {
          lVar2 = *(long *)(lVar3 + 0xd8);
          FUN_00106330(lVar3,0);
          lVar3 = lVar2;
        } while (lVar2 != 0);
        return;
      }
    }
  }
  return;
}

