
bfd_boolean
do_ar_emul_append(bfd **after_bfd,bfd *new_bfd,bfd_boolean verbose,bfd_boolean flatten,
                 _func_bfd_boolean_bfd_ptr *check)

{
  bfd_boolean bVar1;
  int iVar2;
  bfd_boolean bVar3;
  bfd *new_bfd_00;
  
  if ((flatten == 0) || (iVar2 = bfd_check_format(new_bfd,2), iVar2 == 0)) {
    bVar1 = (*check)(new_bfd);
    if (bVar1 != 0) {
      if (verbose != 0) {
        printf("a - %s\n",new_bfd->filename);
      }
      new_bfd->archive_next = *after_bfd;
      *after_bfd = new_bfd;
      return 1;
    }
  }
  else {
    bVar1 = 0;
    new_bfd_00 = (bfd *)bfd_openr_next_archived_file(new_bfd,0);
    if (new_bfd_00 != (bfd *)0x0) {
      do {
        bVar3 = do_ar_emul_append(after_bfd,new_bfd_00,verbose,1,check);
        if (bVar3 != 0) {
          bVar1 = 1;
          after_bfd = &(*after_bfd)->archive_next;
        }
        new_bfd_00 = (bfd *)bfd_openr_next_archived_file(new_bfd,new_bfd_00);
      } while (new_bfd_00 != (bfd *)0x0);
      return bVar1;
    }
  }
  return 0;
}



undefined8 FUN_001072f0(long *param_1,undefined8 *param_2,int param_3,int param_4,code *param_5)

{
  int iVar1;
  long lVar2;
  undefined8 uVar3;
  
  if ((param_4 == 0) || (iVar1 = bfd_check_format(param_2,2), iVar1 == 0)) {
    iVar1 = (*param_5)(param_2);
    if (iVar1 != 0) {
      if (param_3 != 0) {
        printf("a - %s\n",*param_2);
      }
      param_2[0x1b] = *param_1;
      *param_1 = (long)param_2;
      return 1;
    }
  }
  else {
    uVar3 = 0;
    lVar2 = bfd_openr_next_archived_file(param_2,0);
    if (lVar2 != 0) {
      do {
        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);
        if (iVar1 != 0) {
          uVar3 = 1;
          param_1 = (long *)(*param_1 + 0xd8);
        }
        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);
      } while (lVar2 != 0);
      return uVar3;
    }
  }
  return 0;
}


PUSH R15
PUSH R14
MOV R14D,EDX
PUSH R13
PUSH R12
MOV R12,R8
PUSH RBP
MOV RBP,RDI
PUSH RBX
MOV RBX,RSI
SUB RSP,0x8
TEST ECX,ECX
JNZ 0x00107368
MOV RDI,RBX
CALL R12
TEST EAX,EAX
JZ 0x00107360
TEST R14D,R14D
JNZ 0x00107348
MOV RAX,qword ptr [RBP]
MOV R13D,0x1
MOV qword ptr [RBX + 0xd8],RAX
MOV qword ptr [RBP],RBX
ADD RSP,0x8
MOV EAX,R13D
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV RSI,qword ptr [RBX]
LEA RDI,[0x10c25b]
XOR EAX,EAX
CALL 0x001021f0
JMP 0x0010731d
XOR R13D,R13D
JMP 0x00107332
MOV ESI,0x2
MOV RDI,RBX
CALL 0x001025a0
TEST EAX,EAX
JZ 0x0010730e
XOR ESI,ESI
MOV RDI,RBX
XOR R13D,R13D
CALL 0x001025b0
MOV R15,RAX
TEST RAX,RAX
JZ 0x00107360
MOV R8,R12
MOV ECX,0x1
MOV EDX,R14D
MOV RSI,R15
MOV RDI,RBP
CALL 0x001072f0
TEST EAX,EAX
JZ 0x001073b9
MOV RBP,qword ptr [RBP]
MOV R13D,0x1
ADD RBP,0xd8
MOV RSI,R15
MOV RDI,RBX
CALL 0x001025b0
MOV R15,RAX
TEST RAX,RAX
JNZ 0x0010738e
JMP 0x00107332
(translation_unit "undefined8 FUN_001072f0(long *param_1,undefined8 *param_2,int param_3,int param_4,code *param_5)\n\n{\n  int iVar1;\n  long lVar2;\n  undefined8 uVar3;\n  \n  if ((param_4 == 0) || (iVar1 = bfd_check_format(param_2,2), iVar1 == 0)) {\n    iVar1 = (*param_5)(param_2);\n    if (iVar1 != 0) {\n      if (param_3 != 0) {\n        printf("a - %s\n",*param_2);\n      }\n      param_2[0x1b] = *param_1;\n      *param_1 = (long)param_2;\n      return 1;\n    }\n  }\n  else {\n    uVar3 = 0;\n    lVar2 = bfd_openr_next_archived_file(param_2,0);\n    if (lVar2 != 0) {\n      do {\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      } while (lVar2 != 0);\n      return uVar3;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_001072f0(long *param_1,undefined8 *param_2,int param_3,int param_4,code *param_5)\n\n{\n  int iVar1;\n  long lVar2;\n  undefined8 uVar3;\n  \n  if ((param_4 == 0) || (iVar1 = bfd_check_format(param_2,2), iVar1 == 0)) {\n    iVar1 = (*param_5)(param_2);\n    if (iVar1 != 0) {\n      if (param_3 != 0) {\n        printf("a - %s\n",*param_2);\n      }\n      param_2[0x1b] = *param_1;\n      *param_1 = (long)param_2;\n      return 1;\n    }\n  }\n  else {\n    uVar3 = 0;\n    lVar2 = bfd_openr_next_archived_file(param_2,0);\n    if (lVar2 != 0) {\n      do {\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      } while (lVar2 != 0);\n      return uVar3;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_001072f0(long *param_1,undefined8 *param_2,int param_3,int param_4,code *param_5)" identifier (parameter_list "(long *param_1,undefined8 *param_2,int param_3,int param_4,code *param_5)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "code *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  undefined8 uVar3;\n  \n  if ((param_4 == 0) || (iVar1 = bfd_check_format(param_2,2), iVar1 == 0)) {\n    iVar1 = (*param_5)(param_2);\n    if (iVar1 != 0) {\n      if (param_3 != 0) {\n        printf("a - %s\n",*param_2);\n      }\n      param_2[0x1b] = *param_1;\n      *param_1 = (long)param_2;\n      return 1;\n    }\n  }\n  else {\n    uVar3 = 0;\n    lVar2 = bfd_openr_next_archived_file(param_2,0);\n    if (lVar2 != 0) {\n      do {\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      } while (lVar2 != 0);\n      return uVar3;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (if_statement "if ((param_4 == 0) || (iVar1 = bfd_check_format(param_2,2), iVar1 == 0)) {\n    iVar1 = (*param_5)(param_2);\n    if (iVar1 != 0) {\n      if (param_3 != 0) {\n        printf("a - %s\n",*param_2);\n      }\n      param_2[0x1b] = *param_1;\n      *param_1 = (long)param_2;\n      return 1;\n    }\n  }\n  else {\n    uVar3 = 0;\n    lVar2 = bfd_openr_next_archived_file(param_2,0);\n    if (lVar2 != 0) {\n      do {\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      } while (lVar2 != 0);\n      return uVar3;\n    }\n  }" if (parenthesized_expression "((param_4 == 0) || (iVar1 = bfd_check_format(param_2,2), iVar1 == 0))" ( (binary_expression "(param_4 == 0) || (iVar1 = bfd_check_format(param_2,2), iVar1 == 0)" (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar1 = bfd_check_format(param_2,2), iVar1 == 0)" ( (comma_expression "iVar1 = bfd_check_format(param_2,2), iVar1 == 0" (assignment_expression "iVar1 = bfd_check_format(param_2,2)" identifier = (call_expression "bfd_check_format(param_2,2)" identifier (argument_list "(param_2,2)" ( identifier , number_literal )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    iVar1 = (*param_5)(param_2);\n    if (iVar1 != 0) {\n      if (param_3 != 0) {\n        printf("a - %s\n",*param_2);\n      }\n      param_2[0x1b] = *param_1;\n      *param_1 = (long)param_2;\n      return 1;\n    }\n  }" { (expression_statement "iVar1 = (*param_5)(param_2);" (assignment_expression "iVar1 = (*param_5)(param_2)" identifier = (call_expression "(*param_5)(param_2)" (parenthesized_expression "(*param_5)" ( (pointer_expression "*param_5" * identifier) )) (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n      if (param_3 != 0) {\n        printf("a - %s\n",*param_2);\n      }\n      param_2[0x1b] = *param_1;\n      *param_1 = (long)param_2;\n      return 1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      if (param_3 != 0) {\n        printf("a - %s\n",*param_2);\n      }\n      param_2[0x1b] = *param_1;\n      *param_1 = (long)param_2;\n      return 1;\n    }" { (if_statement "if (param_3 != 0) {\n        printf("a - %s\n",*param_2);\n      }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n        printf("a - %s\n",*param_2);\n      }" { (expression_statement "printf("a - %s\n",*param_2);" (call_expression "printf("a - %s\n",*param_2)" identifier (argument_list "("a - %s\n",*param_2)" ( (string_literal ""a - %s\n"" " string_content escape_sequence ") , (pointer_expression "*param_2" * identifier) ))) ;) })) (expression_statement "param_2[0x1b] = *param_1;" (assignment_expression "param_2[0x1b] = *param_1" (subscript_expression "param_2[0x1b]" identifier [ number_literal ]) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*param_1 = (long)param_2;" (assignment_expression "*param_1 = (long)param_2" (pointer_expression "*param_1" * identifier) = (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else {\n    uVar3 = 0;\n    lVar2 = bfd_openr_next_archived_file(param_2,0);\n    if (lVar2 != 0) {\n      do {\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      } while (lVar2 != 0);\n      return uVar3;\n    }\n  }" else (compound_statement "{\n    uVar3 = 0;\n    lVar2 = bfd_openr_next_archived_file(param_2,0);\n    if (lVar2 != 0) {\n      do {\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      } while (lVar2 != 0);\n      return uVar3;\n    }\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "lVar2 = bfd_openr_next_archived_file(param_2,0);" (assignment_expression "lVar2 = bfd_openr_next_archived_file(param_2,0)" identifier = (call_expression "bfd_openr_next_archived_file(param_2,0)" identifier (argument_list "(param_2,0)" ( identifier , number_literal )))) ;) (if_statement "if (lVar2 != 0) {\n      do {\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      } while (lVar2 != 0);\n      return uVar3;\n    }" if (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      do {\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      } while (lVar2 != 0);\n      return uVar3;\n    }" { (do_statement "do {\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      } while (lVar2 != 0);" do (compound_statement "{\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      }" { (expression_statement "iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);" (assignment_expression "iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5)" identifier = (call_expression "FUN_001072f0(param_1,lVar2,param_3,1,param_5)" identifier (argument_list "(param_1,lVar2,param_3,1,param_5)" ( identifier , identifier , identifier , number_literal , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }" { (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (expression_statement "param_1 = (long *)(*param_1 + 0xd8);" (assignment_expression "param_1 = (long *)(*param_1 + 0xd8)" identifier = (cast_expression "(long *)(*param_1 + 0xd8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xd8)" ( (binary_expression "*param_1 + 0xd8" (pointer_expression "*param_1" * identifier) + number_literal) )))) ;) })) (expression_statement "lVar2 = bfd_openr_next_archived_file(param_2,lVar2);" (assignment_expression "lVar2 = bfd_openr_next_archived_file(param_2,lVar2)" identifier = (call_expression "bfd_openr_next_archived_file(param_2,lVar2)" identifier (argument_list "(param_2,lVar2)" ( identifier , identifier )))) ;) }) while (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) ;) (return_statement "return uVar3;" return identifier ;) })) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "bfd_boolean\ndo_ar_emul_append(bfd **after_bfd,bfd *new_bfd,bfd_boolean verbose,bfd_boolean flatten,\n                 _func_bfd_boolean_bfd_ptr *check)\n\n{\n  bfd_boolean bVar1;\n  int iVar2;\n  bfd_boolean bVar3;\n  bfd *new_bfd_00;\n  \n  if ((flatten == 0) || (iVar2 = bfd_check_format(new_bfd,2), iVar2 == 0)) {\n    bVar1 = (*check)(new_bfd);\n    if (bVar1 != 0) {\n      if (verbose != 0) {\n        printf("a - %s\n",new_bfd->filename);\n      }\n      new_bfd->archive_next = *after_bfd;\n      *after_bfd = new_bfd;\n      return 1;\n    }\n  }\n  else {\n    bVar1 = 0;\n    new_bfd_00 = (bfd *)bfd_openr_next_archived_file(new_bfd,0);\n    if (new_bfd_00 != (bfd *)0x0) {\n      do {\n        bVar3 = do_ar_emul_append(after_bfd,new_bfd_00,verbose,1,check);\n        if (bVar3 != 0) {\n          bVar1 = 1;\n          after_bfd = &(*after_bfd)->archive_next;\n        }\n        new_bfd_00 = (bfd *)bfd_openr_next_archived_file(new_bfd,new_bfd_00);\n      } while (new_bfd_00 != (bfd *)0x0);\n      return bVar1;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "bfd_boolean\ndo_ar_emul_append(bfd **after_bfd,bfd *new_bfd,bfd_boolean verbose,bfd_boolean flatten,\n                 _func_bfd_boolean_bfd_ptr *check)\n\n{\n  bfd_boolean bVar1;\n  int iVar2;\n  bfd_boolean bVar3;\n  bfd *new_bfd_00;\n  \n  if ((flatten == 0) || (iVar2 = bfd_check_format(new_bfd,2), iVar2 == 0)) {\n    bVar1 = (*check)(new_bfd);\n    if (bVar1 != 0) {\n      if (verbose != 0) {\n        printf("a - %s\n",new_bfd->filename);\n      }\n      new_bfd->archive_next = *after_bfd;\n      *after_bfd = new_bfd;\n      return 1;\n    }\n  }\n  else {\n    bVar1 = 0;\n    new_bfd_00 = (bfd *)bfd_openr_next_archived_file(new_bfd,0);\n    if (new_bfd_00 != (bfd *)0x0) {\n      do {\n        bVar3 = do_ar_emul_append(after_bfd,new_bfd_00,verbose,1,check);\n        if (bVar3 != 0) {\n          bVar1 = 1;\n          after_bfd = &(*after_bfd)->archive_next;\n        }\n        new_bfd_00 = (bfd *)bfd_openr_next_archived_file(new_bfd,new_bfd_00);\n      } while (new_bfd_00 != (bfd *)0x0);\n      return bVar1;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "do_ar_emul_append(bfd **after_bfd,bfd *new_bfd,bfd_boolean verbose,bfd_boolean flatten,\n                 _func_bfd_boolean_bfd_ptr *check)" identifier (parameter_list "(bfd **after_bfd,bfd *new_bfd,bfd_boolean verbose,bfd_boolean flatten,\n                 _func_bfd_boolean_bfd_ptr *check)" ( (parameter_declaration "bfd **after_bfd" type_identifier (pointer_declarator "**after_bfd" * (pointer_declarator "*after_bfd" * identifier))) , (parameter_declaration "bfd *new_bfd" type_identifier (pointer_declarator "*new_bfd" * identifier)) , (parameter_declaration "bfd_boolean verbose" type_identifier identifier) , (parameter_declaration "bfd_boolean flatten" type_identifier identifier) , (parameter_declaration "_func_bfd_boolean_bfd_ptr *check" type_identifier (pointer_declarator "*check" * identifier)) ))) (compound_statement "{\n  bfd_boolean bVar1;\n  int iVar2;\n  bfd_boolean bVar3;\n  bfd *new_bfd_00;\n  \n  if ((flatten == 0) || (iVar2 = bfd_check_format(new_bfd,2), iVar2 == 0)) {\n    bVar1 = (*check)(new_bfd);\n    if (bVar1 != 0) {\n      if (verbose != 0) {\n        printf("a - %s\n",new_bfd->filename);\n      }\n      new_bfd->archive_next = *after_bfd;\n      *after_bfd = new_bfd;\n      return 1;\n    }\n  }\n  else {\n    bVar1 = 0;\n    new_bfd_00 = (bfd *)bfd_openr_next_archived_file(new_bfd,0);\n    if (new_bfd_00 != (bfd *)0x0) {\n      do {\n        bVar3 = do_ar_emul_append(after_bfd,new_bfd_00,verbose,1,check);\n        if (bVar3 != 0) {\n          bVar1 = 1;\n          after_bfd = &(*after_bfd)->archive_next;\n        }\n        new_bfd_00 = (bfd *)bfd_openr_next_archived_file(new_bfd,new_bfd_00);\n      } while (new_bfd_00 != (bfd *)0x0);\n      return bVar1;\n    }\n  }\n  return 0;\n}" { (declaration "bfd_boolean bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "bfd_boolean bVar3;" type_identifier identifier ;) (declaration "bfd *new_bfd_00;" type_identifier (pointer_declarator "*new_bfd_00" * identifier) ;) (if_statement "if ((flatten == 0) || (iVar2 = bfd_check_format(new_bfd,2), iVar2 == 0)) {\n    bVar1 = (*check)(new_bfd);\n    if (bVar1 != 0) {\n      if (verbose != 0) {\n        printf("a - %s\n",new_bfd->filename);\n      }\n      new_bfd->archive_next = *after_bfd;\n      *after_bfd = new_bfd;\n      return 1;\n    }\n  }\n  else {\n    bVar1 = 0;\n    new_bfd_00 = (bfd *)bfd_openr_next_archived_file(new_bfd,0);\n    if (new_bfd_00 != (bfd *)0x0) {\n      do {\n        bVar3 = do_ar_emul_append(after_bfd,new_bfd_00,verbose,1,check);\n        if (bVar3 != 0) {\n          bVar1 = 1;\n          after_bfd = &(*after_bfd)->archive_next;\n        }\n        new_bfd_00 = (bfd *)bfd_openr_next_archived_file(new_bfd,new_bfd_00);\n      } while (new_bfd_00 != (bfd *)0x0);\n      return bVar1;\n    }\n  }" if (parenthesized_expression "((flatten == 0) || (iVar2 = bfd_check_format(new_bfd,2), iVar2 == 0))" ( (binary_expression "(flatten == 0) || (iVar2 = bfd_check_format(new_bfd,2), iVar2 == 0)" (parenthesized_expression "(flatten == 0)" ( (binary_expression "flatten == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar2 = bfd_check_format(new_bfd,2), iVar2 == 0)" ( (comma_expression "iVar2 = bfd_check_format(new_bfd,2), iVar2 == 0" (assignment_expression "iVar2 = bfd_check_format(new_bfd,2)" identifier = (call_expression "bfd_check_format(new_bfd,2)" identifier (argument_list "(new_bfd,2)" ( identifier , number_literal )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    bVar1 = (*check)(new_bfd);\n    if (bVar1 != 0) {\n      if (verbose != 0) {\n        printf("a - %s\n",new_bfd->filename);\n      }\n      new_bfd->archive_next = *after_bfd;\n      *after_bfd = new_bfd;\n      return 1;\n    }\n  }" { (expression_statement "bVar1 = (*check)(new_bfd);" (assignment_expression "bVar1 = (*check)(new_bfd)" identifier = (call_expression "(*check)(new_bfd)" (parenthesized_expression "(*check)" ( (pointer_expression "*check" * identifier) )) (argument_list "(new_bfd)" ( identifier )))) ;) (if_statement "if (bVar1 != 0) {\n      if (verbose != 0) {\n        printf("a - %s\n",new_bfd->filename);\n      }\n      new_bfd->archive_next = *after_bfd;\n      *after_bfd = new_bfd;\n      return 1;\n    }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      if (verbose != 0) {\n        printf("a - %s\n",new_bfd->filename);\n      }\n      new_bfd->archive_next = *after_bfd;\n      *after_bfd = new_bfd;\n      return 1;\n    }" { (if_statement "if (verbose != 0) {\n        printf("a - %s\n",new_bfd->filename);\n      }" if (parenthesized_expression "(verbose != 0)" ( (binary_expression "verbose != 0" identifier != number_literal) )) (compound_statement "{\n        printf("a - %s\n",new_bfd->filename);\n      }" { (expression_statement "printf("a - %s\n",new_bfd->filename);" (call_expression "printf("a - %s\n",new_bfd->filename)" identifier (argument_list "("a - %s\n",new_bfd->filename)" ( (string_literal ""a - %s\n"" " string_content escape_sequence ") , (field_expression "new_bfd->filename" identifier -> field_identifier) ))) ;) })) (expression_statement "new_bfd->archive_next = *after_bfd;" (assignment_expression "new_bfd->archive_next = *after_bfd" (field_expression "new_bfd->archive_next" identifier -> field_identifier) = (pointer_expression "*after_bfd" * identifier)) ;) (expression_statement "*after_bfd = new_bfd;" (assignment_expression "*after_bfd = new_bfd" (pointer_expression "*after_bfd" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else {\n    bVar1 = 0;\n    new_bfd_00 = (bfd *)bfd_openr_next_archived_file(new_bfd,0);\n    if (new_bfd_00 != (bfd *)0x0) {\n      do {\n        bVar3 = do_ar_emul_append(after_bfd,new_bfd_00,verbose,1,check);\n        if (bVar3 != 0) {\n          bVar1 = 1;\n          after_bfd = &(*after_bfd)->archive_next;\n        }\n        new_bfd_00 = (bfd *)bfd_openr_next_archived_file(new_bfd,new_bfd_00);\n      } while (new_bfd_00 != (bfd *)0x0);\n      return bVar1;\n    }\n  }" else (compound_statement "{\n    bVar1 = 0;\n    new_bfd_00 = (bfd *)bfd_openr_next_archived_file(new_bfd,0);\n    if (new_bfd_00 != (bfd *)0x0) {\n      do {\n        bVar3 = do_ar_emul_append(after_bfd,new_bfd_00,verbose,1,check);\n        if (bVar3 != 0) {\n          bVar1 = 1;\n          after_bfd = &(*after_bfd)->archive_next;\n        }\n        new_bfd_00 = (bfd *)bfd_openr_next_archived_file(new_bfd,new_bfd_00);\n      } while (new_bfd_00 != (bfd *)0x0);\n      return bVar1;\n    }\n  }" { (expression_statement "bVar1 = 0;" (assignment_expression "bVar1 = 0" identifier = number_literal) ;) (expression_statement "new_bfd_00 = (bfd *)bfd_openr_next_archived_file(new_bfd,0);" (assignment_expression "new_bfd_00 = (bfd *)bfd_openr_next_archived_file(new_bfd,0)" identifier = (cast_expression "(bfd *)bfd_openr_next_archived_file(new_bfd,0)" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_openr_next_archived_file(new_bfd,0)" identifier (argument_list "(new_bfd,0)" ( identifier , number_literal ))))) ;) (if_statement "if (new_bfd_00 != (bfd *)0x0) {\n      do {\n        bVar3 = do_ar_emul_append(after_bfd,new_bfd_00,verbose,1,check);\n        if (bVar3 != 0) {\n          bVar1 = 1;\n          after_bfd = &(*after_bfd)->archive_next;\n        }\n        new_bfd_00 = (bfd *)bfd_openr_next_archived_file(new_bfd,new_bfd_00);\n      } while (new_bfd_00 != (bfd *)0x0);\n      return bVar1;\n    }" if (parenthesized_expression "(new_bfd_00 != (bfd *)0x0)" ( (binary_expression "new_bfd_00 != (bfd *)0x0" identifier != (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      do {\n        bVar3 = do_ar_emul_append(after_bfd,new_bfd_00,verbose,1,check);\n        if (bVar3 != 0) {\n          bVar1 = 1;\n          after_bfd = &(*after_bfd)->archive_next;\n        }\n        new_bfd_00 = (bfd *)bfd_openr_next_archived_file(new_bfd,new_bfd_00);\n      } while (new_bfd_00 != (bfd *)0x0);\n      return bVar1;\n    }" { (do_statement "do {\n        bVar3 = do_ar_emul_append(after_bfd,new_bfd_00,verbose,1,check);\n        if (bVar3 != 0) {\n          bVar1 = 1;\n          after_bfd = &(*after_bfd)->archive_next;\n        }\n        new_bfd_00 = (bfd *)bfd_openr_next_archived_file(new_bfd,new_bfd_00);\n      } while (new_bfd_00 != (bfd *)0x0);" do (compound_statement "{\n        bVar3 = do_ar_emul_append(after_bfd,new_bfd_00,verbose,1,check);\n        if (bVar3 != 0) {\n          bVar1 = 1;\n          after_bfd = &(*after_bfd)->archive_next;\n        }\n        new_bfd_00 = (bfd *)bfd_openr_next_archived_file(new_bfd,new_bfd_00);\n      }" { (expression_statement "bVar3 = do_ar_emul_append(after_bfd,new_bfd_00,verbose,1,check);" (assignment_expression "bVar3 = do_ar_emul_append(after_bfd,new_bfd_00,verbose,1,check)" identifier = (call_expression "do_ar_emul_append(after_bfd,new_bfd_00,verbose,1,check)" identifier (argument_list "(after_bfd,new_bfd_00,verbose,1,check)" ( identifier , identifier , identifier , number_literal , identifier )))) ;) (if_statement "if (bVar3 != 0) {\n          bVar1 = 1;\n          after_bfd = &(*after_bfd)->archive_next;\n        }" if (parenthesized_expression "(bVar3 != 0)" ( (binary_expression "bVar3 != 0" identifier != number_literal) )) (compound_statement "{\n          bVar1 = 1;\n          after_bfd = &(*after_bfd)->archive_next;\n        }" { (expression_statement "bVar1 = 1;" (assignment_expression "bVar1 = 1" identifier = number_literal) ;) (expression_statement "after_bfd = &(*after_bfd)->archive_next;" (assignment_expression "after_bfd = &(*after_bfd)->archive_next" identifier = (pointer_expression "&(*after_bfd)->archive_next" & (field_expression "(*after_bfd)->archive_next" (parenthesized_expression "(*after_bfd)" ( (pointer_expression "*after_bfd" * identifier) )) -> field_identifier))) ;) })) (expression_statement "new_bfd_00 = (bfd *)bfd_openr_next_archived_file(new_bfd,new_bfd_00);" (assignment_expression "new_bfd_00 = (bfd *)bfd_openr_next_archived_file(new_bfd,new_bfd_00)" identifier = (cast_expression "(bfd *)bfd_openr_next_archived_file(new_bfd,new_bfd_00)" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_openr_next_archived_file(new_bfd,new_bfd_00)" identifier (argument_list "(new_bfd,new_bfd_00)" ( identifier , identifier ))))) ;) }) while (parenthesized_expression "(new_bfd_00 != (bfd *)0x0)" ( (binary_expression "new_bfd_00 != (bfd *)0x0" identifier != (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (return_statement "return bVar1;" return identifier ;) })) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined8 FUN_001072f0(long *param_1,undefined8 *param_2,int param_3,int param_4,code *param_5)\n\n{\n  int iVar1;\n  long lVar2;\n  undefined8 uVar3;\n  \n  if ((param_4 == 0) || (iVar1 = bfd_check_format(param_2,2), iVar1 == 0)) {\n    iVar1 = (*param_5)(param_2);\n    if (iVar1 != 0) {\n      if (param_3 != 0) {\n        printf("a - %s\n",*param_2);\n      }\n      param_2[0x1b] = *param_1;\n      *param_1 = (long)param_2;\n      return 1;\n    }\n  }\n  else {\n    uVar3 = 0;\n    lVar2 = bfd_openr_next_archived_file(param_2,0);\n    if (lVar2 != 0) {\n      do {\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      } while (lVar2 != 0);\n      return uVar3;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_001072f0(long *param_1,undefined8 *param_2,int param_3,int param_4,code *param_5)\n\n{\n  int iVar1;\n  long lVar2;\n  undefined8 uVar3;\n  \n  if ((param_4 == 0) || (iVar1 = bfd_check_format(param_2,2), iVar1 == 0)) {\n    iVar1 = (*param_5)(param_2);\n    if (iVar1 != 0) {\n      if (param_3 != 0) {\n        printf("a - %s\n",*param_2);\n      }\n      param_2[0x1b] = *param_1;\n      *param_1 = (long)param_2;\n      return 1;\n    }\n  }\n  else {\n    uVar3 = 0;\n    lVar2 = bfd_openr_next_archived_file(param_2,0);\n    if (lVar2 != 0) {\n      do {\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      } while (lVar2 != 0);\n      return uVar3;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_001072f0(long *param_1,undefined8 *param_2,int param_3,int param_4,code *param_5)" identifier (parameter_list "(long *param_1,undefined8 *param_2,int param_3,int param_4,code *param_5)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "code *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  undefined8 uVar3;\n  \n  if ((param_4 == 0) || (iVar1 = bfd_check_format(param_2,2), iVar1 == 0)) {\n    iVar1 = (*param_5)(param_2);\n    if (iVar1 != 0) {\n      if (param_3 != 0) {\n        printf("a - %s\n",*param_2);\n      }\n      param_2[0x1b] = *param_1;\n      *param_1 = (long)param_2;\n      return 1;\n    }\n  }\n  else {\n    uVar3 = 0;\n    lVar2 = bfd_openr_next_archived_file(param_2,0);\n    if (lVar2 != 0) {\n      do {\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      } while (lVar2 != 0);\n      return uVar3;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (if_statement "if ((param_4 == 0) || (iVar1 = bfd_check_format(param_2,2), iVar1 == 0)) {\n    iVar1 = (*param_5)(param_2);\n    if (iVar1 != 0) {\n      if (param_3 != 0) {\n        printf("a - %s\n",*param_2);\n      }\n      param_2[0x1b] = *param_1;\n      *param_1 = (long)param_2;\n      return 1;\n    }\n  }\n  else {\n    uVar3 = 0;\n    lVar2 = bfd_openr_next_archived_file(param_2,0);\n    if (lVar2 != 0) {\n      do {\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      } while (lVar2 != 0);\n      return uVar3;\n    }\n  }" if (parenthesized_expression "((param_4 == 0) || (iVar1 = bfd_check_format(param_2,2), iVar1 == 0))" ( (binary_expression "(param_4 == 0) || (iVar1 = bfd_check_format(param_2,2), iVar1 == 0)" (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar1 = bfd_check_format(param_2,2), iVar1 == 0)" ( (comma_expression "iVar1 = bfd_check_format(param_2,2), iVar1 == 0" (assignment_expression "iVar1 = bfd_check_format(param_2,2)" identifier = (call_expression "bfd_check_format(param_2,2)" identifier (argument_list "(param_2,2)" ( identifier , number_literal )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    iVar1 = (*param_5)(param_2);\n    if (iVar1 != 0) {\n      if (param_3 != 0) {\n        printf("a - %s\n",*param_2);\n      }\n      param_2[0x1b] = *param_1;\n      *param_1 = (long)param_2;\n      return 1;\n    }\n  }" { (expression_statement "iVar1 = (*param_5)(param_2);" (assignment_expression "iVar1 = (*param_5)(param_2)" identifier = (call_expression "(*param_5)(param_2)" (parenthesized_expression "(*param_5)" ( (pointer_expression "*param_5" * identifier) )) (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n      if (param_3 != 0) {\n        printf("a - %s\n",*param_2);\n      }\n      param_2[0x1b] = *param_1;\n      *param_1 = (long)param_2;\n      return 1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      if (param_3 != 0) {\n        printf("a - %s\n",*param_2);\n      }\n      param_2[0x1b] = *param_1;\n      *param_1 = (long)param_2;\n      return 1;\n    }" { (if_statement "if (param_3 != 0) {\n        printf("a - %s\n",*param_2);\n      }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n        printf("a - %s\n",*param_2);\n      }" { (expression_statement "printf("a - %s\n",*param_2);" (call_expression "printf("a - %s\n",*param_2)" identifier (argument_list "("a - %s\n",*param_2)" ( (string_literal ""a - %s\n"" " string_content escape_sequence ") , (pointer_expression "*param_2" * identifier) ))) ;) })) (expression_statement "param_2[0x1b] = *param_1;" (assignment_expression "param_2[0x1b] = *param_1" (subscript_expression "param_2[0x1b]" identifier [ number_literal ]) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*param_1 = (long)param_2;" (assignment_expression "*param_1 = (long)param_2" (pointer_expression "*param_1" * identifier) = (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else {\n    uVar3 = 0;\n    lVar2 = bfd_openr_next_archived_file(param_2,0);\n    if (lVar2 != 0) {\n      do {\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      } while (lVar2 != 0);\n      return uVar3;\n    }\n  }" else (compound_statement "{\n    uVar3 = 0;\n    lVar2 = bfd_openr_next_archived_file(param_2,0);\n    if (lVar2 != 0) {\n      do {\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      } while (lVar2 != 0);\n      return uVar3;\n    }\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "lVar2 = bfd_openr_next_archived_file(param_2,0);" (assignment_expression "lVar2 = bfd_openr_next_archived_file(param_2,0)" identifier = (call_expression "bfd_openr_next_archived_file(param_2,0)" identifier (argument_list "(param_2,0)" ( identifier , number_literal )))) ;) (if_statement "if (lVar2 != 0) {\n      do {\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      } while (lVar2 != 0);\n      return uVar3;\n    }" if (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      do {\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      } while (lVar2 != 0);\n      return uVar3;\n    }" { (do_statement "do {\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      } while (lVar2 != 0);" do (compound_statement "{\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      }" { (expression_statement "iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);" (assignment_expression "iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5)" identifier = (call_expression "FUN_001072f0(param_1,lVar2,param_3,1,param_5)" identifier (argument_list "(param_1,lVar2,param_3,1,param_5)" ( identifier , identifier , identifier , number_literal , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }" { (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (expression_statement "param_1 = (long *)(*param_1 + 0xd8);" (assignment_expression "param_1 = (long *)(*param_1 + 0xd8)" identifier = (cast_expression "(long *)(*param_1 + 0xd8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xd8)" ( (binary_expression "*param_1 + 0xd8" (pointer_expression "*param_1" * identifier) + number_literal) )))) ;) })) (expression_statement "lVar2 = bfd_openr_next_archived_file(param_2,lVar2);" (assignment_expression "lVar2 = bfd_openr_next_archived_file(param_2,lVar2)" identifier = (call_expression "bfd_openr_next_archived_file(param_2,lVar2)" identifier (argument_list "(param_2,lVar2)" ( identifier , identifier )))) ;) }) while (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) ;) (return_statement "return uVar3;" return identifier ;) })) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT )))) ;) (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 ( (string_literal " string_content escape_sequence ") , (pointer_expression * IDENT) ))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (return_statement return IDENT ;) })) }))) (return_statement return LIT ;) })))
(function_definition "undefined8 FUN_001072f0(long *param_1,undefined8 *param_2,int param_3,int param_4,code *param_5)\n\n{\n  int iVar1;\n  long lVar2;\n  undefined8 uVar3;\n  \n  if ((param_4 == 0) || (iVar1 = bfd_check_format(param_2,2), iVar1 == 0)) {\n    iVar1 = (*param_5)(param_2);\n    if (iVar1 != 0) {\n      if (param_3 != 0) {\n        printf("a - %s\n",*param_2);\n      }\n      param_2[0x1b] = *param_1;\n      *param_1 = (long)param_2;\n      return 1;\n    }\n  }\n  else {\n    uVar3 = 0;\n    lVar2 = bfd_openr_next_archived_file(param_2,0);\n    if (lVar2 != 0) {\n      do {\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      } while (lVar2 != 0);\n      return uVar3;\n    }\n  }\n  return 0;\n}" (type_identifier "undefined8") (function_declarator "FUN_001072f0(long *param_1,undefined8 *param_2,int param_3,int param_4,code *param_5)" (identifier "FUN_001072f0") (parameter_list "(long *param_1,undefined8 *param_2,int param_3,int param_4,code *param_5)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "code *param_5" (type_identifier "code") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  undefined8 uVar3;\n  \n  if ((param_4 == 0) || (iVar1 = bfd_check_format(param_2,2), iVar1 == 0)) {\n    iVar1 = (*param_5)(param_2);\n    if (iVar1 != 0) {\n      if (param_3 != 0) {\n        printf("a - %s\n",*param_2);\n      }\n      param_2[0x1b] = *param_1;\n      *param_1 = (long)param_2;\n      return 1;\n    }\n  }\n  else {\n    uVar3 = 0;\n    lVar2 = bfd_openr_next_archived_file(param_2,0);\n    if (lVar2 != 0) {\n      do {\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      } while (lVar2 != 0);\n      return uVar3;\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (if_statement "if ((param_4 == 0) || (iVar1 = bfd_check_format(param_2,2), iVar1 == 0)) {\n    iVar1 = (*param_5)(param_2);\n    if (iVar1 != 0) {\n      if (param_3 != 0) {\n        printf("a - %s\n",*param_2);\n      }\n      param_2[0x1b] = *param_1;\n      *param_1 = (long)param_2;\n      return 1;\n    }\n  }\n  else {\n    uVar3 = 0;\n    lVar2 = bfd_openr_next_archived_file(param_2,0);\n    if (lVar2 != 0) {\n      do {\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      } while (lVar2 != 0);\n      return uVar3;\n    }\n  }" (if "if") (parenthesized_expression "((param_4 == 0) || (iVar1 = bfd_check_format(param_2,2), iVar1 == 0))" (( "(") (binary_expression "(param_4 == 0) || (iVar1 = bfd_check_format(param_2,2), iVar1 == 0)" (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar1 = bfd_check_format(param_2,2), iVar1 == 0)" (( "(") (comma_expression "iVar1 = bfd_check_format(param_2,2), iVar1 == 0" (assignment_expression "iVar1 = bfd_check_format(param_2,2)" (identifier "iVar1") (= "=") (call_expression "bfd_check_format(param_2,2)" (identifier "bfd_check_format") (argument_list "(param_2,2)" (( "(") (identifier "param_2") (, ",") (number_literal "2") () ")")))) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    iVar1 = (*param_5)(param_2);\n    if (iVar1 != 0) {\n      if (param_3 != 0) {\n        printf("a - %s\n",*param_2);\n      }\n      param_2[0x1b] = *param_1;\n      *param_1 = (long)param_2;\n      return 1;\n    }\n  }" ({ "{") (expression_statement "iVar1 = (*param_5)(param_2);" (assignment_expression "iVar1 = (*param_5)(param_2)" (identifier "iVar1") (= "=") (call_expression "(*param_5)(param_2)" (parenthesized_expression "(*param_5)" (( "(") (pointer_expression "*param_5" (* "*") (identifier "param_5")) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      if (param_3 != 0) {\n        printf("a - %s\n",*param_2);\n      }\n      param_2[0x1b] = *param_1;\n      *param_1 = (long)param_2;\n      return 1;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (param_3 != 0) {\n        printf("a - %s\n",*param_2);\n      }\n      param_2[0x1b] = *param_1;\n      *param_1 = (long)param_2;\n      return 1;\n    }" ({ "{") (if_statement "if (param_3 != 0) {\n        printf("a - %s\n",*param_2);\n      }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        printf("a - %s\n",*param_2);\n      }" ({ "{") (expression_statement "printf("a - %s\n",*param_2);" (call_expression "printf("a - %s\n",*param_2)" (identifier "printf") (argument_list "("a - %s\n",*param_2)" (( "(") (string_literal ""a - %s\n"" (" """) (string_content "a - %s") (escape_sequence "\n") (" """)) (, ",") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")"))) (; ";")) (} "}"))) (expression_statement "param_2[0x1b] = *param_1;" (assignment_expression "param_2[0x1b] = *param_1" (subscript_expression "param_2[0x1b]" (identifier "param_2") ([ "[") (number_literal "0x1b") (] "]")) (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "*param_1 = (long)param_2;" (assignment_expression "*param_1 = (long)param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    uVar3 = 0;\n    lVar2 = bfd_openr_next_archived_file(param_2,0);\n    if (lVar2 != 0) {\n      do {\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      } while (lVar2 != 0);\n      return uVar3;\n    }\n  }" (else "else") (compound_statement "{\n    uVar3 = 0;\n    lVar2 = bfd_openr_next_archived_file(param_2,0);\n    if (lVar2 != 0) {\n      do {\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      } while (lVar2 != 0);\n      return uVar3;\n    }\n  }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "lVar2 = bfd_openr_next_archived_file(param_2,0);" (assignment_expression "lVar2 = bfd_openr_next_archived_file(param_2,0)" (identifier "lVar2") (= "=") (call_expression "bfd_openr_next_archived_file(param_2,0)" (identifier "bfd_openr_next_archived_file") (argument_list "(param_2,0)" (( "(") (identifier "param_2") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (lVar2 != 0) {\n      do {\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      } while (lVar2 != 0);\n      return uVar3;\n    }" (if "if") (parenthesized_expression "(lVar2 != 0)" (( "(") (binary_expression "lVar2 != 0" (identifier "lVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      do {\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      } while (lVar2 != 0);\n      return uVar3;\n    }" ({ "{") (do_statement "do {\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      } while (lVar2 != 0);" (do "do") (compound_statement "{\n        iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);\n        if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }\n        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);\n      }" ({ "{") (expression_statement "iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5);" (assignment_expression "iVar1 = FUN_001072f0(param_1,lVar2,param_3,1,param_5)" (identifier "iVar1") (= "=") (call_expression "FUN_001072f0(param_1,lVar2,param_3,1,param_5)" (identifier "FUN_001072f0") (argument_list "(param_1,lVar2,param_3,1,param_5)" (( "(") (identifier "param_1") (, ",") (identifier "lVar2") (, ",") (identifier "param_3") (, ",") (number_literal "1") (, ",") (identifier "param_5") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          uVar3 = 1;\n          param_1 = (long *)(*param_1 + 0xd8);\n        }" ({ "{") (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" (identifier "uVar3") (= "=") (number_literal "1")) (; ";")) (expression_statement "param_1 = (long *)(*param_1 + 0xd8);" (assignment_expression "param_1 = (long *)(*param_1 + 0xd8)" (identifier "param_1") (= "=") (cast_expression "(long *)(*param_1 + 0xd8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0xd8)" (( "(") (binary_expression "*param_1 + 0xd8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0xd8")) () ")")))) (; ";")) (} "}"))) (expression_statement "lVar2 = bfd_openr_next_archived_file(param_2,lVar2);" (assignment_expression "lVar2 = bfd_openr_next_archived_file(param_2,lVar2)" (identifier "lVar2") (= "=") (call_expression "bfd_openr_next_archived_file(param_2,lVar2)" (identifier "bfd_openr_next_archived_file") (argument_list "(param_2,lVar2)" (( "(") (identifier "param_2") (, ",") (identifier "lVar2") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(lVar2 != 0)" (( "(") (binary_expression "lVar2 != 0" (identifier "lVar2") (!= "!=") (number_literal "0")) () ")")) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (} "}")))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1
function_1(type_2 **after_bfd,type_2 *new_bfd,type_1 var_5,type_1 var_1,
                 type_3 *check)

{
  type_1 var_4;
  int var_3;
  type_1 var_9;
  type_2 *var_8;
  
  if ((var_1 == 0) || (var_3 = var_2(new_bfd,2), var_3 == 0)) {
    var_4 = (*check)(new_bfd);
    if (var_4 != 0) {
      if (var_5 != 0) {
        var_6("a - %s\n",new_bfd->filename);
      }
      new_bfd->archive_next = *after_bfd;
      *after_bfd = new_bfd;
      return 1;
    }
  }
  else {
    var_4 = 0;
    var_8 = (type_2 *)var_7(new_bfd,0);
    if (var_8 != (type_2 *)0x0) {
      do {
        var_9 = function_1(after_bfd,var_8,var_5,1,check);
        if (var_9 != 0) {
          var_4 = 1;
          after_bfd = &(*after_bfd)->archive_next;
        }
        var_8 = (type_2 *)var_7(new_bfd,var_8);
      } while (var_8 != (type_2 *)0x0);
      return var_4;
    }
  }
  return 0;
}


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

undefined8 MASKED(long *param_1,undefined8 *param_2,int param_3,int param_4,code *param_5)

{
  int iVar1;
  long lVar2;
  undefined8 uVar3;
  
  if ((param_4 == 0) || (iVar1 = bfd_check_format(param_2,2), iVar1 == 0)) {
    iVar1 = (*param_5)(param_2);
    if (iVar1 != 0) {
      if (param_3 != 0) {
        printf("a - %s\n",*param_2);
      }
      param_2[0x1b] = *param_1;
      *param_1 = (long)param_2;
      return 1;
    }
  }
  else {
    uVar3 = 0;
    lVar2 = bfd_openr_next_archived_file(param_2,0);
    if (lVar2 != 0) {
      do {
        iVar1 = MASKED(param_1,lVar2,param_3,1,param_5);
        if (iVar1 != 0) {
          uVar3 = 1;
          param_1 = (long *)(*param_1 + 0xd8);
        }
        lVar2 = bfd_openr_next_archived_file(param_2,lVar2);
      } while (lVar2 != 0);
      return uVar3;
    }
  }
  return 0;
}

