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

void __regparm3 display_any_bfd(bfd *file,int level)

{
  int iVar1;
  char *pcVar2;
  bfd *file_00;
  char *pcVar3;
  bfd *pbVar4;
  char **matching;
  undefined4 uStack_14;
  
  uStack_14 = 0x196bd;
  if (dump_section_contents == 0) {
    *(uint *)&file->field_0x28 = *(uint *)&file->field_0x28 | 0x100000;
  }
  iVar1 = bfd_check_format(file,2);
  if (iVar1 != 0) {
    if (level == 0) {
      pcVar3 = file->filename;
      pcVar2 = "In archive %s:\n";
    }
    else {
      if (100 < level) {
        pcVar2 = (char *)dcgettext(0,"Archive nesting is too deep",5,iVar1);
                    /* WARNING: Subroutine does not return */
        fatal(pcVar2);
      }
      pcVar3 = file->filename;
      pcVar2 = "In nested archive %s:\n";
    }
    pcVar2 = (char *)dcgettext(0,pcVar2,5);
    printf(pcVar2,pcVar3);
    file_00 = (bfd *)0x0;
    while( true ) {
      pbVar4 = file_00;
      bfd_set_error(0);
      file_00 = (bfd *)bfd_openr_next_archived_file(file,pbVar4);
      if (file_00 == (bfd *)0x0) break;
      display_any_bfd(file_00,level + 1);
      if ((pbVar4 != (bfd *)0x0) && (bfd_close(pbVar4), pbVar4 == file_00)) {
        return;
      }
    }
    iVar1 = bfd_get_error();
    if (iVar1 != 9) {
      bfd_nonfatal(file->filename);
      exit_status = 1;
    }
    if (pbVar4 == (bfd *)0x0) {
      return;
    }
    bfd_close(pbVar4);
    return;
  }
  iVar1 = bfd_check_format_matches(file,1,&matching);
  if (iVar1 == 0) {
    iVar1 = bfd_get_error();
    if (iVar1 == 0xd) {
      bfd_nonfatal(file->filename);
      exit_status = 1;
    }
    else {
      iVar1 = bfd_get_error();
      if (iVar1 != 0xc) {
        bfd_nonfatal(file->filename);
        exit_status = 1;
        return;
      }
      iVar1 = bfd_check_format_matches(file,3,&matching);
      if (iVar1 != 0) goto LAB_00019810;
      bfd_nonfatal(file->filename);
      exit_status = 1;
      iVar1 = bfd_get_error();
      if (iVar1 != 0xd) {
        return;
      }
    }
    list_matching_formats(matching);
    free(matching);
    return;
  }
LAB_00019810:
  dump_bfd(file);
  return;
}



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

void __regparm3 FUN_000196b0(undefined4 *param_1,int param_2)

{
  int iVar1;
  char *pcVar2;
  undefined4 uVar3;
  int iVar4;
  void *local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x196bd;
  if (DAT_00074118 == 0) {
    param_1[10] = param_1[10] | 0x100000;
  }
  iVar1 = bfd_check_format(param_1,2);
  if (iVar1 != 0) {
    if (param_2 == 0) {
      uVar3 = *param_1;
      pcVar2 = "In archive %s:\n";
    }
    else {
      if (100 < param_2) {
        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);
                    /* WARNING: Subroutine does not return */
        FUN_000479f0(uVar3);
      }
      uVar3 = *param_1;
      pcVar2 = "In nested archive %s:\n";
    }
    pcVar2 = (char *)dcgettext(0,pcVar2,5);
    printf(pcVar2,uVar3);
    iVar1 = 0;
    while( true ) {
      iVar4 = iVar1;
      bfd_set_error(0);
      iVar1 = bfd_openr_next_archived_file(param_1,iVar4);
      if (iVar1 == 0) break;
      FUN_000196b0();
      if ((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)) {
        return;
      }
    }
    iVar1 = bfd_get_error();
    if (iVar1 != 9) {
      FUN_00047720(*param_1);
      DAT_00074120 = 1;
    }
    if (iVar4 == 0) {
      return;
    }
    bfd_close(iVar4);
    return;
  }
  iVar1 = bfd_check_format_matches(param_1,1,local_20);
  if (iVar1 == 0) {
    iVar1 = bfd_get_error();
    if (iVar1 == 0xd) {
      FUN_00047720(*param_1);
      DAT_00074120 = 1;
    }
    else {
      iVar1 = bfd_get_error();
      if (iVar1 != 0xc) {
        FUN_00047720(*param_1);
        DAT_00074120 = 1;
        return;
      }
      iVar1 = bfd_check_format_matches(param_1,3,local_20);
      if (iVar1 != 0) goto LAB_00019810;
      FUN_00047720(*param_1);
      DAT_00074120 = 1;
      iVar1 = bfd_get_error();
      if (iVar1 != 0xd) {
        return;
      }
    }
    FUN_00047aa0(local_20[0]);
    free(local_20[0]);
    return;
  }
LAB_00019810:
  FUN_00018680();
  return;
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x000153d0
ADD EBX,0x59943
SUB ESP,0x2c
MOV ESI,dword ptr [EBX + 0x1118]
TEST ESI,ESI
JNZ 0x000196d7
OR dword ptr [EAX + 0x28],0x100000
SUB ESP,0x8
PUSH 0x2
PUSH EDI
CALL 0x00014730
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000197c8
TEST EBP,EBP
JZ 0x000197b0
CMP EBP,0x64
JG 0x00019890
SUB ESP,0x4
MOV ESI,dword ptr [EDI]
LEA EAX,[EBX + 0xfffdc911]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000141f0
POP EDX
POP ECX
PUSH ESI
PUSH EAX
XOR ESI,ESI
CALL 0x000140b0
ADD ESP,0x10
LEA EAX,[EBP + 0x1]
MOV dword ptr [ESP + 0xc],EAX
LEA ESI,[ESI]
NOP
SUB ESP,0xc
PUSH 0x0
CALL 0x000142d0
POP ECX
POP EBP
PUSH ESI
PUSH EDI
CALL 0x00014740
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JZ 0x00019770
MOV EDX,dword ptr [ESP + 0xc]
CALL 0x000196b0
TEST ESI,ESI
JZ 0x00019769
SUB ESP,0xc
PUSH ESI
CALL 0x00014680
ADD ESP,0x10
CMP ESI,EBP
JZ 0x000197a1
MOV ESI,EBP
JMP 0x00019730
CALL 0x00014270
CMP EAX,0x9
JZ 0x00019791
SUB ESP,0xc
PUSH dword ptr [EDI]
CALL 0x00047720
ADD ESP,0x10
MOV dword ptr [EBX + 0x1120],0x1
TEST ESI,ESI
JZ 0x000197a1
SUB ESP,0xc
PUSH ESI
CALL 0x00014680
ADD ESP,0x10
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
MOV ESI,dword ptr [EDI]
LEA EAX,[EBX + 0xfffdc8e5]
PUSH 0x5
JMP 0x0001970b
SUB ESP,0x4
LEA ESI,[ESP + 0x20]
PUSH ESI
PUSH 0x1
PUSH EDI
CALL 0x000146c0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00019810
CALL 0x00014270
CMP EAX,0xd
JZ 0x00019860
CALL 0x00014270
CMP EAX,0xc
JZ 0x00019820
SUB ESP,0xc
PUSH dword ptr [EDI]
CALL 0x00047720
ADD ESP,0x10
MOV dword ptr [EBX + 0x1120],0x1
JMP 0x000197a1
MOV EAX,EDI
CALL 0x00018680
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH ESI
PUSH 0x3
PUSH EDI
CALL 0x000146c0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00019810
SUB ESP,0xc
PUSH dword ptr [EDI]
CALL 0x00047720
MOV dword ptr [EBX + 0x1120],0x1
CALL 0x00014270
ADD ESP,0x10
CMP EAX,0xd
JNZ 0x000197a1
SUB ESP,0xc
JMP 0x00019875
SUB ESP,0xc
PUSH dword ptr [EDI]
CALL 0x00047720
POP EDX
MOV dword ptr [EBX + 0x1120],0x1
PUSH dword ptr [ESP + 0x28]
CALL 0x00047aa0
POP EAX
PUSH dword ptr [ESP + 0x28]
CALL 0x00014120
ADD ESP,0x10
JMP 0x000197a1
PUSH EAX
LEA EAX,[EBX + 0xfffdc8f5]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000141f0
MOV dword ptr [ESP],EAX
CALL 0x000479f0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_000196b0(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  void *local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x196bd;\n  if (DAT_00074118 == 0) {\n    param_1[10] = param_1[10] | 0x100000;\n  }\n  iVar1 = bfd_check_format(param_1,2);\n  if (iVar1 != 0) {\n    if (param_2 == 0) {\n      uVar3 = *param_1;\n      pcVar2 = "In archive %s:\n";\n    }\n    else {\n      if (100 < param_2) {\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    /* WARNING: Subroutine does not return */\n        FUN_000479f0(uVar3);\n      }\n      uVar3 = *param_1;\n      pcVar2 = "In nested archive %s:\n";\n    }\n    pcVar2 = (char *)dcgettext(0,pcVar2,5);\n    printf(pcVar2,uVar3);\n    iVar1 = 0;\n    while( true ) {\n      iVar4 = iVar1;\n      bfd_set_error(0);\n      iVar1 = bfd_openr_next_archived_file(param_1,iVar4);\n      if (iVar1 == 0) break;\n      FUN_000196b0();\n      if ((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)) {\n        return;\n      }\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 != 9) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    if (iVar4 == 0) {\n      return;\n    }\n    bfd_close(iVar4);\n    return;\n  }\n  iVar1 = bfd_check_format_matches(param_1,1,local_20);\n  if (iVar1 == 0) {\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(param_1,3,local_20);\n      if (iVar1 != 0) goto LAB_00019810;\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }\n    FUN_00047aa0(local_20[0]);\n    free(local_20[0]);\n    return;\n  }\nLAB_00019810:\n  FUN_00018680();\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_000196b0(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  void *local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x196bd;\n  if (DAT_00074118 == 0) {\n    param_1[10] = param_1[10] | 0x100000;\n  }\n  iVar1 = bfd_check_format(param_1,2);\n  if (iVar1 != 0) {\n    if (param_2 == 0) {\n      uVar3 = *param_1;\n      pcVar2 = "In archive %s:\n";\n    }\n    else {\n      if (100 < param_2) {\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    /* WARNING: Subroutine does not return */\n        FUN_000479f0(uVar3);\n      }\n      uVar3 = *param_1;\n      pcVar2 = "In nested archive %s:\n";\n    }\n    pcVar2 = (char *)dcgettext(0,pcVar2,5);\n    printf(pcVar2,uVar3);\n    iVar1 = 0;\n    while( true ) {\n      iVar4 = iVar1;\n      bfd_set_error(0);\n      iVar1 = bfd_openr_next_archived_file(param_1,iVar4);\n      if (iVar1 == 0) break;\n      FUN_000196b0();\n      if ((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)) {\n        return;\n      }\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 != 9) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    if (iVar4 == 0) {\n      return;\n    }\n    bfd_close(iVar4);\n    return;\n  }\n  iVar1 = bfd_check_format_matches(param_1,1,local_20);\n  if (iVar1 == 0) {\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(param_1,3,local_20);\n      if (iVar1 != 0) goto LAB_00019810;\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }\n    FUN_00047aa0(local_20[0]);\n    free(local_20[0]);\n    return;\n  }\nLAB_00019810:\n  FUN_00018680();\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000196b0(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  void *local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x196bd;\n  if (DAT_00074118 == 0) {\n    param_1[10] = param_1[10] | 0x100000;\n  }\n  iVar1 = bfd_check_format(param_1,2);\n  if (iVar1 != 0) {\n    if (param_2 == 0) {\n      uVar3 = *param_1;\n      pcVar2 = "In archive %s:\n";\n    }\n    else {\n      if (100 < param_2) {\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    /* WARNING: Subroutine does not return */\n        FUN_000479f0(uVar3);\n      }\n      uVar3 = *param_1;\n      pcVar2 = "In nested archive %s:\n";\n    }\n    pcVar2 = (char *)dcgettext(0,pcVar2,5);\n    printf(pcVar2,uVar3);\n    iVar1 = 0;\n    while( true ) {\n      iVar4 = iVar1;\n      bfd_set_error(0);\n      iVar1 = bfd_openr_next_archived_file(param_1,iVar4);\n      if (iVar1 == 0) break;\n      FUN_000196b0();\n      if ((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)) {\n        return;\n      }\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 != 9) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    if (iVar4 == 0) {\n      return;\n    }\n    bfd_close(iVar4);\n    return;\n  }\n  iVar1 = bfd_check_format_matches(param_1,1,local_20);\n  if (iVar1 == 0) {\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(param_1,3,local_20);\n      if (iVar1 != 0) goto LAB_00019810;\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }\n    FUN_00047aa0(local_20[0]);\n    free(local_20[0]);\n    return;\n  }\nLAB_00019810:\n  FUN_00018680();\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "void *local_20 [3];" primitive_type (pointer_declarator "*local_20 [3]" * (array_declarator "local_20 [3]" identifier [ number_literal ])) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x196bd;" (assignment_expression "uStack_14 = 0x196bd" identifier = number_literal) ;) (if_statement "if (DAT_00074118 == 0) {\n    param_1[10] = param_1[10] | 0x100000;\n  }" if (parenthesized_expression "(DAT_00074118 == 0)" ( (binary_expression "DAT_00074118 == 0" identifier == number_literal) )) (compound_statement "{\n    param_1[10] = param_1[10] | 0x100000;\n  }" { (expression_statement "param_1[10] = param_1[10] | 0x100000;" (assignment_expression "param_1[10] = param_1[10] | 0x100000" (subscript_expression "param_1[10]" identifier [ number_literal ]) = (binary_expression "param_1[10] | 0x100000" (subscript_expression "param_1[10]" identifier [ number_literal ]) | number_literal)) ;) })) (expression_statement "iVar1 = bfd_check_format(param_1,2);" (assignment_expression "iVar1 = bfd_check_format(param_1,2)" identifier = (call_expression "bfd_check_format(param_1,2)" identifier (argument_list "(param_1,2)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    if (param_2 == 0) {\n      uVar3 = *param_1;\n      pcVar2 = "In archive %s:\n";\n    }\n    else {\n      if (100 < param_2) {\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    /* WARNING: Subroutine does not return */\n        FUN_000479f0(uVar3);\n      }\n      uVar3 = *param_1;\n      pcVar2 = "In nested archive %s:\n";\n    }\n    pcVar2 = (char *)dcgettext(0,pcVar2,5);\n    printf(pcVar2,uVar3);\n    iVar1 = 0;\n    while( true ) {\n      iVar4 = iVar1;\n      bfd_set_error(0);\n      iVar1 = bfd_openr_next_archived_file(param_1,iVar4);\n      if (iVar1 == 0) break;\n      FUN_000196b0();\n      if ((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)) {\n        return;\n      }\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 != 9) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    if (iVar4 == 0) {\n      return;\n    }\n    bfd_close(iVar4);\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (param_2 == 0) {\n      uVar3 = *param_1;\n      pcVar2 = "In archive %s:\n";\n    }\n    else {\n      if (100 < param_2) {\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    /* WARNING: Subroutine does not return */\n        FUN_000479f0(uVar3);\n      }\n      uVar3 = *param_1;\n      pcVar2 = "In nested archive %s:\n";\n    }\n    pcVar2 = (char *)dcgettext(0,pcVar2,5);\n    printf(pcVar2,uVar3);\n    iVar1 = 0;\n    while( true ) {\n      iVar4 = iVar1;\n      bfd_set_error(0);\n      iVar1 = bfd_openr_next_archived_file(param_1,iVar4);\n      if (iVar1 == 0) break;\n      FUN_000196b0();\n      if ((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)) {\n        return;\n      }\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 != 9) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    if (iVar4 == 0) {\n      return;\n    }\n    bfd_close(iVar4);\n    return;\n  }" { (if_statement "if (param_2 == 0) {\n      uVar3 = *param_1;\n      pcVar2 = "In archive %s:\n";\n    }\n    else {\n      if (100 < param_2) {\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    /* WARNING: Subroutine does not return */\n        FUN_000479f0(uVar3);\n      }\n      uVar3 = *param_1;\n      pcVar2 = "In nested archive %s:\n";\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = *param_1;\n      pcVar2 = "In archive %s:\n";\n    }" { (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar2 = "In archive %s:\n";" (assignment_expression "pcVar2 = "In archive %s:\n"" identifier = (string_literal ""In archive %s:\n"" " string_content escape_sequence ")) ;) }) (else_clause "else {\n      if (100 < param_2) {\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    /* WARNING: Subroutine does not return */\n        FUN_000479f0(uVar3);\n      }\n      uVar3 = *param_1;\n      pcVar2 = "In nested archive %s:\n";\n    }" else (compound_statement "{\n      if (100 < param_2) {\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    /* WARNING: Subroutine does not return */\n        FUN_000479f0(uVar3);\n      }\n      uVar3 = *param_1;\n      pcVar2 = "In nested archive %s:\n";\n    }" { (if_statement "if (100 < param_2) {\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    /* WARNING: Subroutine does not return */\n        FUN_000479f0(uVar3);\n      }" if (parenthesized_expression "(100 < param_2)" ( (binary_expression "100 < param_2" number_literal < identifier) )) (compound_statement "{\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    /* WARNING: Subroutine does not return */\n        FUN_000479f0(uVar3);\n      }" { (expression_statement "uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);" (assignment_expression "uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1)" identifier = (call_expression "dcgettext(0,"Archive nesting is too deep",5,iVar1)" identifier (argument_list "(0,"Archive nesting is too deep",5,iVar1)" ( number_literal , (string_literal ""Archive nesting is too deep"" " string_content ") , number_literal , identifier )))) ;) comment (expression_statement "FUN_000479f0(uVar3);" (call_expression "FUN_000479f0(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) })) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar2 = "In nested archive %s:\n";" (assignment_expression "pcVar2 = "In nested archive %s:\n"" identifier = (string_literal ""In nested archive %s:\n"" " string_content escape_sequence ")) ;) }))) (expression_statement "pcVar2 = (char *)dcgettext(0,pcVar2,5);" (assignment_expression "pcVar2 = (char *)dcgettext(0,pcVar2,5)" identifier = (cast_expression "(char *)dcgettext(0,pcVar2,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,pcVar2,5)" identifier (argument_list "(0,pcVar2,5)" ( number_literal , identifier , number_literal ))))) ;) (expression_statement "printf(pcVar2,uVar3);" (call_expression "printf(pcVar2,uVar3)" identifier (argument_list "(pcVar2,uVar3)" ( identifier , identifier ))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n      iVar4 = iVar1;\n      bfd_set_error(0);\n      iVar1 = bfd_openr_next_archived_file(param_1,iVar4);\n      if (iVar1 == 0) break;\n      FUN_000196b0();\n      if ((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)) {\n        return;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar4 = iVar1;\n      bfd_set_error(0);\n      iVar1 = bfd_openr_next_archived_file(param_1,iVar4);\n      if (iVar1 == 0) break;\n      FUN_000196b0();\n      if ((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)) {\n        return;\n      }\n    }" { (expression_statement "iVar4 = iVar1;" (assignment_expression "iVar4 = iVar1" identifier = identifier) ;) (expression_statement "bfd_set_error(0);" (call_expression "bfd_set_error(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar1 = bfd_openr_next_archived_file(param_1,iVar4);" (assignment_expression "iVar1 = bfd_openr_next_archived_file(param_1,iVar4)" identifier = (call_expression "bfd_openr_next_archived_file(param_1,iVar4)" identifier (argument_list "(param_1,iVar4)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "FUN_000196b0();" (call_expression "FUN_000196b0()" identifier (argument_list "()" ( ))) ;) (if_statement "if ((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)) {\n        return;\n      }" if (parenthesized_expression "((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1))" ( (binary_expression "(iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)" (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "(bfd_close(iVar4), iVar4 == iVar1)" ( (comma_expression "bfd_close(iVar4), iVar4 == iVar1" (call_expression "bfd_close(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) , (binary_expression "iVar4 == iVar1" identifier == identifier)) ))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (expression_statement "iVar1 = bfd_get_error();" (assignment_expression "iVar1 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 9) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }" if (parenthesized_expression "(iVar1 != 9)" ( (binary_expression "iVar1 != 9" identifier != number_literal) )) (compound_statement "{\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }" { (expression_statement "FUN_00047720(*param_1);" (call_expression "FUN_00047720(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "DAT_00074120 = 1;" (assignment_expression "DAT_00074120 = 1" identifier = number_literal) ;) })) (if_statement "if (iVar4 == 0) {\n      return;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "bfd_close(iVar4);" (call_expression "bfd_close(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = bfd_check_format_matches(param_1,1,local_20);" (assignment_expression "iVar1 = bfd_check_format_matches(param_1,1,local_20)" identifier = (call_expression "bfd_check_format_matches(param_1,1,local_20)" identifier (argument_list "(param_1,1,local_20)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(param_1,3,local_20);\n      if (iVar1 != 0) goto LAB_00019810;\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }\n    FUN_00047aa0(local_20[0]);\n    free(local_20[0]);\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(param_1,3,local_20);\n      if (iVar1 != 0) goto LAB_00019810;\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }\n    FUN_00047aa0(local_20[0]);\n    free(local_20[0]);\n    return;\n  }" { (expression_statement "iVar1 = bfd_get_error();" (assignment_expression "iVar1 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0xd) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(param_1,3,local_20);\n      if (iVar1 != 0) goto LAB_00019810;\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }" if (parenthesized_expression "(iVar1 == 0xd)" ( (binary_expression "iVar1 == 0xd" identifier == number_literal) )) (compound_statement "{\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }" { (expression_statement "FUN_00047720(*param_1);" (call_expression "FUN_00047720(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "DAT_00074120 = 1;" (assignment_expression "DAT_00074120 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(param_1,3,local_20);\n      if (iVar1 != 0) goto LAB_00019810;\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }" else (compound_statement "{\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(param_1,3,local_20);\n      if (iVar1 != 0) goto LAB_00019810;\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }" { (expression_statement "iVar1 = bfd_get_error();" (assignment_expression "iVar1 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0xc) {\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }" if (parenthesized_expression "(iVar1 != 0xc)" ( (binary_expression "iVar1 != 0xc" identifier != number_literal) )) (compound_statement "{\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }" { (expression_statement "FUN_00047720(*param_1);" (call_expression "FUN_00047720(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "DAT_00074120 = 1;" (assignment_expression "DAT_00074120 = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = bfd_check_format_matches(param_1,3,local_20);" (assignment_expression "iVar1 = bfd_check_format_matches(param_1,3,local_20)" identifier = (call_expression "bfd_check_format_matches(param_1,3,local_20)" identifier (argument_list "(param_1,3,local_20)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar1 != 0) goto LAB_00019810;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00019810;" goto statement_identifier ;)) (expression_statement "FUN_00047720(*param_1);" (call_expression "FUN_00047720(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "DAT_00074120 = 1;" (assignment_expression "DAT_00074120 = 1" identifier = number_literal) ;) (expression_statement "iVar1 = bfd_get_error();" (assignment_expression "iVar1 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0xd) {\n        return;\n      }" if (parenthesized_expression "(iVar1 != 0xd)" ( (binary_expression "iVar1 != 0xd" identifier != number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) }))) (expression_statement "FUN_00047aa0(local_20[0]);" (call_expression "FUN_00047aa0(local_20[0])" identifier (argument_list "(local_20[0])" ( (subscript_expression "local_20[0]" identifier [ number_literal ]) ))) ;) (expression_statement "free(local_20[0]);" (call_expression "free(local_20[0])" identifier (argument_list "(local_20[0])" ( (subscript_expression "local_20[0]" identifier [ number_literal ]) ))) ;) (return_statement "return;" return ;) })) (labeled_statement "LAB_00019810:\n  FUN_00018680();" statement_identifier : (expression_statement "FUN_00018680();" (call_expression "FUN_00018680()" identifier (argument_list "()" ( ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 display_any_bfd(bfd *file,int level)\n\n{\n  int iVar1;\n  char *pcVar2;\n  bfd *file_00;\n  char *pcVar3;\n  bfd *pbVar4;\n  char **matching;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x196bd;\n  if (dump_section_contents == 0) {\n    *(uint *)&file->field_0x28 = *(uint *)&file->field_0x28 | 0x100000;\n  }\n  iVar1 = bfd_check_format(file,2);\n  if (iVar1 != 0) {\n    if (level == 0) {\n      pcVar3 = file->filename;\n      pcVar2 = "In archive %s:\n";\n    }\n    else {\n      if (100 < level) {\n        pcVar2 = (char *)dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    /* WARNING: Subroutine does not return */\n        fatal(pcVar2);\n      }\n      pcVar3 = file->filename;\n      pcVar2 = "In nested archive %s:\n";\n    }\n    pcVar2 = (char *)dcgettext(0,pcVar2,5);\n    printf(pcVar2,pcVar3);\n    file_00 = (bfd *)0x0;\n    while( true ) {\n      pbVar4 = file_00;\n      bfd_set_error(0);\n      file_00 = (bfd *)bfd_openr_next_archived_file(file,pbVar4);\n      if (file_00 == (bfd *)0x0) break;\n      display_any_bfd(file_00,level + 1);\n      if ((pbVar4 != (bfd *)0x0) && (bfd_close(pbVar4), pbVar4 == file_00)) {\n        return;\n      }\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 != 9) {\n      bfd_nonfatal(file->filename);\n      exit_status = 1;\n    }\n    if (pbVar4 == (bfd *)0x0) {\n      return;\n    }\n    bfd_close(pbVar4);\n    return;\n  }\n  iVar1 = bfd_check_format_matches(file,1,&matching);\n  if (iVar1 == 0) {\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      bfd_nonfatal(file->filename);\n      exit_status = 1;\n    }\n    else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        bfd_nonfatal(file->filename);\n        exit_status = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(file,3,&matching);\n      if (iVar1 != 0) goto LAB_00019810;\n      bfd_nonfatal(file->filename);\n      exit_status = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }\n    list_matching_formats(matching);\n    free(matching);\n    return;\n  }\nLAB_00019810:\n  dump_bfd(file);\n  return;\n}\n\n" comment (function_definition "void __regparm3 display_any_bfd(bfd *file,int level)\n\n{\n  int iVar1;\n  char *pcVar2;\n  bfd *file_00;\n  char *pcVar3;\n  bfd *pbVar4;\n  char **matching;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x196bd;\n  if (dump_section_contents == 0) {\n    *(uint *)&file->field_0x28 = *(uint *)&file->field_0x28 | 0x100000;\n  }\n  iVar1 = bfd_check_format(file,2);\n  if (iVar1 != 0) {\n    if (level == 0) {\n      pcVar3 = file->filename;\n      pcVar2 = "In archive %s:\n";\n    }\n    else {\n      if (100 < level) {\n        pcVar2 = (char *)dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    /* WARNING: Subroutine does not return */\n        fatal(pcVar2);\n      }\n      pcVar3 = file->filename;\n      pcVar2 = "In nested archive %s:\n";\n    }\n    pcVar2 = (char *)dcgettext(0,pcVar2,5);\n    printf(pcVar2,pcVar3);\n    file_00 = (bfd *)0x0;\n    while( true ) {\n      pbVar4 = file_00;\n      bfd_set_error(0);\n      file_00 = (bfd *)bfd_openr_next_archived_file(file,pbVar4);\n      if (file_00 == (bfd *)0x0) break;\n      display_any_bfd(file_00,level + 1);\n      if ((pbVar4 != (bfd *)0x0) && (bfd_close(pbVar4), pbVar4 == file_00)) {\n        return;\n      }\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 != 9) {\n      bfd_nonfatal(file->filename);\n      exit_status = 1;\n    }\n    if (pbVar4 == (bfd *)0x0) {\n      return;\n    }\n    bfd_close(pbVar4);\n    return;\n  }\n  iVar1 = bfd_check_format_matches(file,1,&matching);\n  if (iVar1 == 0) {\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      bfd_nonfatal(file->filename);\n      exit_status = 1;\n    }\n    else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        bfd_nonfatal(file->filename);\n        exit_status = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(file,3,&matching);\n      if (iVar1 != 0) goto LAB_00019810;\n      bfd_nonfatal(file->filename);\n      exit_status = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }\n    list_matching_formats(matching);\n    free(matching);\n    return;\n  }\nLAB_00019810:\n  dump_bfd(file);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "display_any_bfd(bfd *file,int level)" identifier (parameter_list "(bfd *file,int level)" ( (parameter_declaration "bfd *file" type_identifier (pointer_declarator "*file" * identifier)) , (parameter_declaration "int level" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  bfd *file_00;\n  char *pcVar3;\n  bfd *pbVar4;\n  char **matching;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x196bd;\n  if (dump_section_contents == 0) {\n    *(uint *)&file->field_0x28 = *(uint *)&file->field_0x28 | 0x100000;\n  }\n  iVar1 = bfd_check_format(file,2);\n  if (iVar1 != 0) {\n    if (level == 0) {\n      pcVar3 = file->filename;\n      pcVar2 = "In archive %s:\n";\n    }\n    else {\n      if (100 < level) {\n        pcVar2 = (char *)dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    /* WARNING: Subroutine does not return */\n        fatal(pcVar2);\n      }\n      pcVar3 = file->filename;\n      pcVar2 = "In nested archive %s:\n";\n    }\n    pcVar2 = (char *)dcgettext(0,pcVar2,5);\n    printf(pcVar2,pcVar3);\n    file_00 = (bfd *)0x0;\n    while( true ) {\n      pbVar4 = file_00;\n      bfd_set_error(0);\n      file_00 = (bfd *)bfd_openr_next_archived_file(file,pbVar4);\n      if (file_00 == (bfd *)0x0) break;\n      display_any_bfd(file_00,level + 1);\n      if ((pbVar4 != (bfd *)0x0) && (bfd_close(pbVar4), pbVar4 == file_00)) {\n        return;\n      }\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 != 9) {\n      bfd_nonfatal(file->filename);\n      exit_status = 1;\n    }\n    if (pbVar4 == (bfd *)0x0) {\n      return;\n    }\n    bfd_close(pbVar4);\n    return;\n  }\n  iVar1 = bfd_check_format_matches(file,1,&matching);\n  if (iVar1 == 0) {\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      bfd_nonfatal(file->filename);\n      exit_status = 1;\n    }\n    else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        bfd_nonfatal(file->filename);\n        exit_status = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(file,3,&matching);\n      if (iVar1 != 0) goto LAB_00019810;\n      bfd_nonfatal(file->filename);\n      exit_status = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }\n    list_matching_formats(matching);\n    free(matching);\n    return;\n  }\nLAB_00019810:\n  dump_bfd(file);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "bfd *file_00;" type_identifier (pointer_declarator "*file_00" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "bfd *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "char **matching;" primitive_type (pointer_declarator "**matching" * (pointer_declarator "*matching" * identifier)) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x196bd;" (assignment_expression "uStack_14 = 0x196bd" identifier = number_literal) ;) (if_statement "if (dump_section_contents == 0) {\n    *(uint *)&file->field_0x28 = *(uint *)&file->field_0x28 | 0x100000;\n  }" if (parenthesized_expression "(dump_section_contents == 0)" ( (binary_expression "dump_section_contents == 0" identifier == number_literal) )) (compound_statement "{\n    *(uint *)&file->field_0x28 = *(uint *)&file->field_0x28 | 0x100000;\n  }" { (expression_statement "*(uint *)&file->field_0x28 = *(uint *)&file->field_0x28 | 0x100000;" (assignment_expression "*(uint *)&file->field_0x28 = *(uint *)&file->field_0x28 | 0x100000" (pointer_expression "*(uint *)&file->field_0x28" * (cast_expression "(uint *)&file->field_0x28" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&file->field_0x28" & (field_expression "file->field_0x28" identifier -> field_identifier)))) = (binary_expression "*(uint *)&file->field_0x28 | 0x100000" (pointer_expression "*(uint *)&file->field_0x28" * (cast_expression "(uint *)&file->field_0x28" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&file->field_0x28" & (field_expression "file->field_0x28" identifier -> field_identifier)))) | number_literal)) ;) })) (expression_statement "iVar1 = bfd_check_format(file,2);" (assignment_expression "iVar1 = bfd_check_format(file,2)" identifier = (call_expression "bfd_check_format(file,2)" identifier (argument_list "(file,2)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    if (level == 0) {\n      pcVar3 = file->filename;\n      pcVar2 = "In archive %s:\n";\n    }\n    else {\n      if (100 < level) {\n        pcVar2 = (char *)dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    /* WARNING: Subroutine does not return */\n        fatal(pcVar2);\n      }\n      pcVar3 = file->filename;\n      pcVar2 = "In nested archive %s:\n";\n    }\n    pcVar2 = (char *)dcgettext(0,pcVar2,5);\n    printf(pcVar2,pcVar3);\n    file_00 = (bfd *)0x0;\n    while( true ) {\n      pbVar4 = file_00;\n      bfd_set_error(0);\n      file_00 = (bfd *)bfd_openr_next_archived_file(file,pbVar4);\n      if (file_00 == (bfd *)0x0) break;\n      display_any_bfd(file_00,level + 1);\n      if ((pbVar4 != (bfd *)0x0) && (bfd_close(pbVar4), pbVar4 == file_00)) {\n        return;\n      }\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 != 9) {\n      bfd_nonfatal(file->filename);\n      exit_status = 1;\n    }\n    if (pbVar4 == (bfd *)0x0) {\n      return;\n    }\n    bfd_close(pbVar4);\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (level == 0) {\n      pcVar3 = file->filename;\n      pcVar2 = "In archive %s:\n";\n    }\n    else {\n      if (100 < level) {\n        pcVar2 = (char *)dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    /* WARNING: Subroutine does not return */\n        fatal(pcVar2);\n      }\n      pcVar3 = file->filename;\n      pcVar2 = "In nested archive %s:\n";\n    }\n    pcVar2 = (char *)dcgettext(0,pcVar2,5);\n    printf(pcVar2,pcVar3);\n    file_00 = (bfd *)0x0;\n    while( true ) {\n      pbVar4 = file_00;\n      bfd_set_error(0);\n      file_00 = (bfd *)bfd_openr_next_archived_file(file,pbVar4);\n      if (file_00 == (bfd *)0x0) break;\n      display_any_bfd(file_00,level + 1);\n      if ((pbVar4 != (bfd *)0x0) && (bfd_close(pbVar4), pbVar4 == file_00)) {\n        return;\n      }\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 != 9) {\n      bfd_nonfatal(file->filename);\n      exit_status = 1;\n    }\n    if (pbVar4 == (bfd *)0x0) {\n      return;\n    }\n    bfd_close(pbVar4);\n    return;\n  }" { (if_statement "if (level == 0) {\n      pcVar3 = file->filename;\n      pcVar2 = "In archive %s:\n";\n    }\n    else {\n      if (100 < level) {\n        pcVar2 = (char *)dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    /* WARNING: Subroutine does not return */\n        fatal(pcVar2);\n      }\n      pcVar3 = file->filename;\n      pcVar2 = "In nested archive %s:\n";\n    }" if (parenthesized_expression "(level == 0)" ( (binary_expression "level == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar3 = file->filename;\n      pcVar2 = "In archive %s:\n";\n    }" { (expression_statement "pcVar3 = file->filename;" (assignment_expression "pcVar3 = file->filename" identifier = (field_expression "file->filename" identifier -> field_identifier)) ;) (expression_statement "pcVar2 = "In archive %s:\n";" (assignment_expression "pcVar2 = "In archive %s:\n"" identifier = (string_literal ""In archive %s:\n"" " string_content escape_sequence ")) ;) }) (else_clause "else {\n      if (100 < level) {\n        pcVar2 = (char *)dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    /* WARNING: Subroutine does not return */\n        fatal(pcVar2);\n      }\n      pcVar3 = file->filename;\n      pcVar2 = "In nested archive %s:\n";\n    }" else (compound_statement "{\n      if (100 < level) {\n        pcVar2 = (char *)dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    /* WARNING: Subroutine does not return */\n        fatal(pcVar2);\n      }\n      pcVar3 = file->filename;\n      pcVar2 = "In nested archive %s:\n";\n    }" { (if_statement "if (100 < level) {\n        pcVar2 = (char *)dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    /* WARNING: Subroutine does not return */\n        fatal(pcVar2);\n      }" if (parenthesized_expression "(100 < level)" ( (binary_expression "100 < level" number_literal < identifier) )) (compound_statement "{\n        pcVar2 = (char *)dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    /* WARNING: Subroutine does not return */\n        fatal(pcVar2);\n      }" { (expression_statement "pcVar2 = (char *)dcgettext(0,"Archive nesting is too deep",5,iVar1);" (assignment_expression "pcVar2 = (char *)dcgettext(0,"Archive nesting is too deep",5,iVar1)" identifier = (cast_expression "(char *)dcgettext(0,"Archive nesting is too deep",5,iVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Archive nesting is too deep",5,iVar1)" identifier (argument_list "(0,"Archive nesting is too deep",5,iVar1)" ( number_literal , (string_literal ""Archive nesting is too deep"" " string_content ") , number_literal , identifier ))))) ;) comment (expression_statement "fatal(pcVar2);" (call_expression "fatal(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) })) (expression_statement "pcVar3 = file->filename;" (assignment_expression "pcVar3 = file->filename" identifier = (field_expression "file->filename" identifier -> field_identifier)) ;) (expression_statement "pcVar2 = "In nested archive %s:\n";" (assignment_expression "pcVar2 = "In nested archive %s:\n"" identifier = (string_literal ""In nested archive %s:\n"" " string_content escape_sequence ")) ;) }))) (expression_statement "pcVar2 = (char *)dcgettext(0,pcVar2,5);" (assignment_expression "pcVar2 = (char *)dcgettext(0,pcVar2,5)" identifier = (cast_expression "(char *)dcgettext(0,pcVar2,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,pcVar2,5)" identifier (argument_list "(0,pcVar2,5)" ( number_literal , identifier , number_literal ))))) ;) (expression_statement "printf(pcVar2,pcVar3);" (call_expression "printf(pcVar2,pcVar3)" identifier (argument_list "(pcVar2,pcVar3)" ( identifier , identifier ))) ;) (expression_statement "file_00 = (bfd *)0x0;" (assignment_expression "file_00 = (bfd *)0x0" identifier = (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (while_statement "while( true ) {\n      pbVar4 = file_00;\n      bfd_set_error(0);\n      file_00 = (bfd *)bfd_openr_next_archived_file(file,pbVar4);\n      if (file_00 == (bfd *)0x0) break;\n      display_any_bfd(file_00,level + 1);\n      if ((pbVar4 != (bfd *)0x0) && (bfd_close(pbVar4), pbVar4 == file_00)) {\n        return;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      pbVar4 = file_00;\n      bfd_set_error(0);\n      file_00 = (bfd *)bfd_openr_next_archived_file(file,pbVar4);\n      if (file_00 == (bfd *)0x0) break;\n      display_any_bfd(file_00,level + 1);\n      if ((pbVar4 != (bfd *)0x0) && (bfd_close(pbVar4), pbVar4 == file_00)) {\n        return;\n      }\n    }" { (expression_statement "pbVar4 = file_00;" (assignment_expression "pbVar4 = file_00" identifier = identifier) ;) (expression_statement "bfd_set_error(0);" (call_expression "bfd_set_error(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "file_00 = (bfd *)bfd_openr_next_archived_file(file,pbVar4);" (assignment_expression "file_00 = (bfd *)bfd_openr_next_archived_file(file,pbVar4)" identifier = (cast_expression "(bfd *)bfd_openr_next_archived_file(file,pbVar4)" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_openr_next_archived_file(file,pbVar4)" identifier (argument_list "(file,pbVar4)" ( identifier , identifier ))))) ;) (if_statement "if (file_00 == (bfd *)0x0) break;" if (parenthesized_expression "(file_00 == (bfd *)0x0)" ( (binary_expression "file_00 == (bfd *)0x0" identifier == (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "display_any_bfd(file_00,level + 1);" (call_expression "display_any_bfd(file_00,level + 1)" identifier (argument_list "(file_00,level + 1)" ( identifier , (binary_expression "level + 1" identifier + number_literal) ))) ;) (if_statement "if ((pbVar4 != (bfd *)0x0) && (bfd_close(pbVar4), pbVar4 == file_00)) {\n        return;\n      }" if (parenthesized_expression "((pbVar4 != (bfd *)0x0) && (bfd_close(pbVar4), pbVar4 == file_00))" ( (binary_expression "(pbVar4 != (bfd *)0x0) && (bfd_close(pbVar4), pbVar4 == file_00)" (parenthesized_expression "(pbVar4 != (bfd *)0x0)" ( (binary_expression "pbVar4 != (bfd *)0x0" identifier != (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(bfd_close(pbVar4), pbVar4 == file_00)" ( (comma_expression "bfd_close(pbVar4), pbVar4 == file_00" (call_expression "bfd_close(pbVar4)" identifier (argument_list "(pbVar4)" ( identifier ))) , (binary_expression "pbVar4 == file_00" identifier == identifier)) ))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (expression_statement "iVar1 = bfd_get_error();" (assignment_expression "iVar1 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 9) {\n      bfd_nonfatal(file->filename);\n      exit_status = 1;\n    }" if (parenthesized_expression "(iVar1 != 9)" ( (binary_expression "iVar1 != 9" identifier != number_literal) )) (compound_statement "{\n      bfd_nonfatal(file->filename);\n      exit_status = 1;\n    }" { (expression_statement "bfd_nonfatal(file->filename);" (call_expression "bfd_nonfatal(file->filename)" identifier (argument_list "(file->filename)" ( (field_expression "file->filename" identifier -> field_identifier) ))) ;) (expression_statement "exit_status = 1;" (assignment_expression "exit_status = 1" identifier = number_literal) ;) })) (if_statement "if (pbVar4 == (bfd *)0x0) {\n      return;\n    }" if (parenthesized_expression "(pbVar4 == (bfd *)0x0)" ( (binary_expression "pbVar4 == (bfd *)0x0" identifier == (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "bfd_close(pbVar4);" (call_expression "bfd_close(pbVar4)" identifier (argument_list "(pbVar4)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = bfd_check_format_matches(file,1,&matching);" (assignment_expression "iVar1 = bfd_check_format_matches(file,1,&matching)" identifier = (call_expression "bfd_check_format_matches(file,1,&matching)" identifier (argument_list "(file,1,&matching)" ( identifier , number_literal , (pointer_expression "&matching" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      bfd_nonfatal(file->filename);\n      exit_status = 1;\n    }\n    else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        bfd_nonfatal(file->filename);\n        exit_status = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(file,3,&matching);\n      if (iVar1 != 0) goto LAB_00019810;\n      bfd_nonfatal(file->filename);\n      exit_status = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }\n    list_matching_formats(matching);\n    free(matching);\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      bfd_nonfatal(file->filename);\n      exit_status = 1;\n    }\n    else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        bfd_nonfatal(file->filename);\n        exit_status = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(file,3,&matching);\n      if (iVar1 != 0) goto LAB_00019810;\n      bfd_nonfatal(file->filename);\n      exit_status = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }\n    list_matching_formats(matching);\n    free(matching);\n    return;\n  }" { (expression_statement "iVar1 = bfd_get_error();" (assignment_expression "iVar1 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0xd) {\n      bfd_nonfatal(file->filename);\n      exit_status = 1;\n    }\n    else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        bfd_nonfatal(file->filename);\n        exit_status = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(file,3,&matching);\n      if (iVar1 != 0) goto LAB_00019810;\n      bfd_nonfatal(file->filename);\n      exit_status = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }" if (parenthesized_expression "(iVar1 == 0xd)" ( (binary_expression "iVar1 == 0xd" identifier == number_literal) )) (compound_statement "{\n      bfd_nonfatal(file->filename);\n      exit_status = 1;\n    }" { (expression_statement "bfd_nonfatal(file->filename);" (call_expression "bfd_nonfatal(file->filename)" identifier (argument_list "(file->filename)" ( (field_expression "file->filename" identifier -> field_identifier) ))) ;) (expression_statement "exit_status = 1;" (assignment_expression "exit_status = 1" identifier = number_literal) ;) }) (else_clause "else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        bfd_nonfatal(file->filename);\n        exit_status = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(file,3,&matching);\n      if (iVar1 != 0) goto LAB_00019810;\n      bfd_nonfatal(file->filename);\n      exit_status = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }" else (compound_statement "{\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        bfd_nonfatal(file->filename);\n        exit_status = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(file,3,&matching);\n      if (iVar1 != 0) goto LAB_00019810;\n      bfd_nonfatal(file->filename);\n      exit_status = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }" { (expression_statement "iVar1 = bfd_get_error();" (assignment_expression "iVar1 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0xc) {\n        bfd_nonfatal(file->filename);\n        exit_status = 1;\n        return;\n      }" if (parenthesized_expression "(iVar1 != 0xc)" ( (binary_expression "iVar1 != 0xc" identifier != number_literal) )) (compound_statement "{\n        bfd_nonfatal(file->filename);\n        exit_status = 1;\n        return;\n      }" { (expression_statement "bfd_nonfatal(file->filename);" (call_expression "bfd_nonfatal(file->filename)" identifier (argument_list "(file->filename)" ( (field_expression "file->filename" identifier -> field_identifier) ))) ;) (expression_statement "exit_status = 1;" (assignment_expression "exit_status = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = bfd_check_format_matches(file,3,&matching);" (assignment_expression "iVar1 = bfd_check_format_matches(file,3,&matching)" identifier = (call_expression "bfd_check_format_matches(file,3,&matching)" identifier (argument_list "(file,3,&matching)" ( identifier , number_literal , (pointer_expression "&matching" & identifier) )))) ;) (if_statement "if (iVar1 != 0) goto LAB_00019810;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00019810;" goto statement_identifier ;)) (expression_statement "bfd_nonfatal(file->filename);" (call_expression "bfd_nonfatal(file->filename)" identifier (argument_list "(file->filename)" ( (field_expression "file->filename" identifier -> field_identifier) ))) ;) (expression_statement "exit_status = 1;" (assignment_expression "exit_status = 1" identifier = number_literal) ;) (expression_statement "iVar1 = bfd_get_error();" (assignment_expression "iVar1 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0xd) {\n        return;\n      }" if (parenthesized_expression "(iVar1 != 0xd)" ( (binary_expression "iVar1 != 0xd" identifier != number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) }))) (expression_statement "list_matching_formats(matching);" (call_expression "list_matching_formats(matching)" identifier (argument_list "(matching)" ( identifier ))) ;) (expression_statement "free(matching);" (call_expression "free(matching)" identifier (argument_list "(matching)" ( identifier ))) ;) (return_statement "return;" return ;) })) (labeled_statement "LAB_00019810:\n  dump_bfd(file);" statement_identifier : (expression_statement "dump_bfd(file);" (call_expression "dump_bfd(file)" identifier (argument_list "(file)" ( identifier ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_000196b0(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  void *local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x196bd;\n  if (DAT_00074118 == 0) {\n    param_1[10] = param_1[10] | 0x100000;\n  }\n  iVar1 = bfd_check_format(param_1,2);\n  if (iVar1 != 0) {\n    if (param_2 == 0) {\n      uVar3 = *param_1;\n      pcVar2 = "In archive %s:\n";\n    }\n    else {\n      if (100 < param_2) {\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    \n        FUN_000479f0(uVar3);\n      }\n      uVar3 = *param_1;\n      pcVar2 = "In nested archive %s:\n";\n    }\n    pcVar2 = (char *)dcgettext(0,pcVar2,5);\n    printf(pcVar2,uVar3);\n    iVar1 = 0;\n    while( true ) {\n      iVar4 = iVar1;\n      bfd_set_error(0);\n      iVar1 = bfd_openr_next_archived_file(param_1,iVar4);\n      if (iVar1 == 0) break;\n      FUN_000196b0();\n      if ((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)) {\n        return;\n      }\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 != 9) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    if (iVar4 == 0) {\n      return;\n    }\n    bfd_close(iVar4);\n    return;\n  }\n  iVar1 = bfd_check_format_matches(param_1,1,local_20);\n  if (iVar1 == 0) {\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(param_1,3,local_20);\n      if (iVar1 != 0) goto LAB_00019810;\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }\n    FUN_00047aa0(local_20[0]);\n    free(local_20[0]);\n    return;\n  }\nLAB_00019810:\n  FUN_00018680();\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000196b0(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  void *local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x196bd;\n  if (DAT_00074118 == 0) {\n    param_1[10] = param_1[10] | 0x100000;\n  }\n  iVar1 = bfd_check_format(param_1,2);\n  if (iVar1 != 0) {\n    if (param_2 == 0) {\n      uVar3 = *param_1;\n      pcVar2 = "In archive %s:\n";\n    }\n    else {\n      if (100 < param_2) {\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    \n        FUN_000479f0(uVar3);\n      }\n      uVar3 = *param_1;\n      pcVar2 = "In nested archive %s:\n";\n    }\n    pcVar2 = (char *)dcgettext(0,pcVar2,5);\n    printf(pcVar2,uVar3);\n    iVar1 = 0;\n    while( true ) {\n      iVar4 = iVar1;\n      bfd_set_error(0);\n      iVar1 = bfd_openr_next_archived_file(param_1,iVar4);\n      if (iVar1 == 0) break;\n      FUN_000196b0();\n      if ((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)) {\n        return;\n      }\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 != 9) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    if (iVar4 == 0) {\n      return;\n    }\n    bfd_close(iVar4);\n    return;\n  }\n  iVar1 = bfd_check_format_matches(param_1,1,local_20);\n  if (iVar1 == 0) {\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(param_1,3,local_20);\n      if (iVar1 != 0) goto LAB_00019810;\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }\n    FUN_00047aa0(local_20[0]);\n    free(local_20[0]);\n    return;\n  }\nLAB_00019810:\n  FUN_00018680();\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000196b0(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  void *local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x196bd;\n  if (DAT_00074118 == 0) {\n    param_1[10] = param_1[10] | 0x100000;\n  }\n  iVar1 = bfd_check_format(param_1,2);\n  if (iVar1 != 0) {\n    if (param_2 == 0) {\n      uVar3 = *param_1;\n      pcVar2 = "In archive %s:\n";\n    }\n    else {\n      if (100 < param_2) {\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    \n        FUN_000479f0(uVar3);\n      }\n      uVar3 = *param_1;\n      pcVar2 = "In nested archive %s:\n";\n    }\n    pcVar2 = (char *)dcgettext(0,pcVar2,5);\n    printf(pcVar2,uVar3);\n    iVar1 = 0;\n    while( true ) {\n      iVar4 = iVar1;\n      bfd_set_error(0);\n      iVar1 = bfd_openr_next_archived_file(param_1,iVar4);\n      if (iVar1 == 0) break;\n      FUN_000196b0();\n      if ((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)) {\n        return;\n      }\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 != 9) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    if (iVar4 == 0) {\n      return;\n    }\n    bfd_close(iVar4);\n    return;\n  }\n  iVar1 = bfd_check_format_matches(param_1,1,local_20);\n  if (iVar1 == 0) {\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(param_1,3,local_20);\n      if (iVar1 != 0) goto LAB_00019810;\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }\n    FUN_00047aa0(local_20[0]);\n    free(local_20[0]);\n    return;\n  }\nLAB_00019810:\n  FUN_00018680();\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "void *local_20 [3];" primitive_type (pointer_declarator "*local_20 [3]" * (array_declarator "local_20 [3]" identifier [ number_literal ])) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x196bd;" (assignment_expression "uStack_14 = 0x196bd" identifier = number_literal) ;) (if_statement "if (DAT_00074118 == 0) {\n    param_1[10] = param_1[10] | 0x100000;\n  }" if (parenthesized_expression "(DAT_00074118 == 0)" ( (binary_expression "DAT_00074118 == 0" identifier == number_literal) )) (compound_statement "{\n    param_1[10] = param_1[10] | 0x100000;\n  }" { (expression_statement "param_1[10] = param_1[10] | 0x100000;" (assignment_expression "param_1[10] = param_1[10] | 0x100000" (subscript_expression "param_1[10]" identifier [ number_literal ]) = (binary_expression "param_1[10] | 0x100000" (subscript_expression "param_1[10]" identifier [ number_literal ]) | number_literal)) ;) })) (expression_statement "iVar1 = bfd_check_format(param_1,2);" (assignment_expression "iVar1 = bfd_check_format(param_1,2)" identifier = (call_expression "bfd_check_format(param_1,2)" identifier (argument_list "(param_1,2)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    if (param_2 == 0) {\n      uVar3 = *param_1;\n      pcVar2 = "In archive %s:\n";\n    }\n    else {\n      if (100 < param_2) {\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    \n        FUN_000479f0(uVar3);\n      }\n      uVar3 = *param_1;\n      pcVar2 = "In nested archive %s:\n";\n    }\n    pcVar2 = (char *)dcgettext(0,pcVar2,5);\n    printf(pcVar2,uVar3);\n    iVar1 = 0;\n    while( true ) {\n      iVar4 = iVar1;\n      bfd_set_error(0);\n      iVar1 = bfd_openr_next_archived_file(param_1,iVar4);\n      if (iVar1 == 0) break;\n      FUN_000196b0();\n      if ((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)) {\n        return;\n      }\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 != 9) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    if (iVar4 == 0) {\n      return;\n    }\n    bfd_close(iVar4);\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (param_2 == 0) {\n      uVar3 = *param_1;\n      pcVar2 = "In archive %s:\n";\n    }\n    else {\n      if (100 < param_2) {\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    \n        FUN_000479f0(uVar3);\n      }\n      uVar3 = *param_1;\n      pcVar2 = "In nested archive %s:\n";\n    }\n    pcVar2 = (char *)dcgettext(0,pcVar2,5);\n    printf(pcVar2,uVar3);\n    iVar1 = 0;\n    while( true ) {\n      iVar4 = iVar1;\n      bfd_set_error(0);\n      iVar1 = bfd_openr_next_archived_file(param_1,iVar4);\n      if (iVar1 == 0) break;\n      FUN_000196b0();\n      if ((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)) {\n        return;\n      }\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 != 9) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    if (iVar4 == 0) {\n      return;\n    }\n    bfd_close(iVar4);\n    return;\n  }" { (if_statement "if (param_2 == 0) {\n      uVar3 = *param_1;\n      pcVar2 = "In archive %s:\n";\n    }\n    else {\n      if (100 < param_2) {\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    \n        FUN_000479f0(uVar3);\n      }\n      uVar3 = *param_1;\n      pcVar2 = "In nested archive %s:\n";\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = *param_1;\n      pcVar2 = "In archive %s:\n";\n    }" { (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar2 = "In archive %s:\n";" (assignment_expression "pcVar2 = "In archive %s:\n"" identifier = (string_literal ""In archive %s:\n"" " string_content escape_sequence ")) ;) }) (else_clause "else {\n      if (100 < param_2) {\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    \n        FUN_000479f0(uVar3);\n      }\n      uVar3 = *param_1;\n      pcVar2 = "In nested archive %s:\n";\n    }" else (compound_statement "{\n      if (100 < param_2) {\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    \n        FUN_000479f0(uVar3);\n      }\n      uVar3 = *param_1;\n      pcVar2 = "In nested archive %s:\n";\n    }" { (if_statement "if (100 < param_2) {\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    \n        FUN_000479f0(uVar3);\n      }" if (parenthesized_expression "(100 < param_2)" ( (binary_expression "100 < param_2" number_literal < identifier) )) (compound_statement "{\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    \n        FUN_000479f0(uVar3);\n      }" { (expression_statement "uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);" (assignment_expression "uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1)" identifier = (call_expression "dcgettext(0,"Archive nesting is too deep",5,iVar1)" identifier (argument_list "(0,"Archive nesting is too deep",5,iVar1)" ( number_literal , (string_literal ""Archive nesting is too deep"" " string_content ") , number_literal , identifier )))) ;) (expression_statement "FUN_000479f0(uVar3);" (call_expression "FUN_000479f0(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) })) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar2 = "In nested archive %s:\n";" (assignment_expression "pcVar2 = "In nested archive %s:\n"" identifier = (string_literal ""In nested archive %s:\n"" " string_content escape_sequence ")) ;) }))) (expression_statement "pcVar2 = (char *)dcgettext(0,pcVar2,5);" (assignment_expression "pcVar2 = (char *)dcgettext(0,pcVar2,5)" identifier = (cast_expression "(char *)dcgettext(0,pcVar2,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,pcVar2,5)" identifier (argument_list "(0,pcVar2,5)" ( number_literal , identifier , number_literal ))))) ;) (expression_statement "printf(pcVar2,uVar3);" (call_expression "printf(pcVar2,uVar3)" identifier (argument_list "(pcVar2,uVar3)" ( identifier , identifier ))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n      iVar4 = iVar1;\n      bfd_set_error(0);\n      iVar1 = bfd_openr_next_archived_file(param_1,iVar4);\n      if (iVar1 == 0) break;\n      FUN_000196b0();\n      if ((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)) {\n        return;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar4 = iVar1;\n      bfd_set_error(0);\n      iVar1 = bfd_openr_next_archived_file(param_1,iVar4);\n      if (iVar1 == 0) break;\n      FUN_000196b0();\n      if ((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)) {\n        return;\n      }\n    }" { (expression_statement "iVar4 = iVar1;" (assignment_expression "iVar4 = iVar1" identifier = identifier) ;) (expression_statement "bfd_set_error(0);" (call_expression "bfd_set_error(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar1 = bfd_openr_next_archived_file(param_1,iVar4);" (assignment_expression "iVar1 = bfd_openr_next_archived_file(param_1,iVar4)" identifier = (call_expression "bfd_openr_next_archived_file(param_1,iVar4)" identifier (argument_list "(param_1,iVar4)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "FUN_000196b0();" (call_expression "FUN_000196b0()" identifier (argument_list "()" ( ))) ;) (if_statement "if ((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)) {\n        return;\n      }" if (parenthesized_expression "((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1))" ( (binary_expression "(iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)" (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "(bfd_close(iVar4), iVar4 == iVar1)" ( (comma_expression "bfd_close(iVar4), iVar4 == iVar1" (call_expression "bfd_close(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) , (binary_expression "iVar4 == iVar1" identifier == identifier)) ))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (expression_statement "iVar1 = bfd_get_error();" (assignment_expression "iVar1 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 9) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }" if (parenthesized_expression "(iVar1 != 9)" ( (binary_expression "iVar1 != 9" identifier != number_literal) )) (compound_statement "{\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }" { (expression_statement "FUN_00047720(*param_1);" (call_expression "FUN_00047720(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "DAT_00074120 = 1;" (assignment_expression "DAT_00074120 = 1" identifier = number_literal) ;) })) (if_statement "if (iVar4 == 0) {\n      return;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "bfd_close(iVar4);" (call_expression "bfd_close(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = bfd_check_format_matches(param_1,1,local_20);" (assignment_expression "iVar1 = bfd_check_format_matches(param_1,1,local_20)" identifier = (call_expression "bfd_check_format_matches(param_1,1,local_20)" identifier (argument_list "(param_1,1,local_20)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(param_1,3,local_20);\n      if (iVar1 != 0) goto LAB_00019810;\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }\n    FUN_00047aa0(local_20[0]);\n    free(local_20[0]);\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(param_1,3,local_20);\n      if (iVar1 != 0) goto LAB_00019810;\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }\n    FUN_00047aa0(local_20[0]);\n    free(local_20[0]);\n    return;\n  }" { (expression_statement "iVar1 = bfd_get_error();" (assignment_expression "iVar1 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0xd) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(param_1,3,local_20);\n      if (iVar1 != 0) goto LAB_00019810;\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }" if (parenthesized_expression "(iVar1 == 0xd)" ( (binary_expression "iVar1 == 0xd" identifier == number_literal) )) (compound_statement "{\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }" { (expression_statement "FUN_00047720(*param_1);" (call_expression "FUN_00047720(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "DAT_00074120 = 1;" (assignment_expression "DAT_00074120 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(param_1,3,local_20);\n      if (iVar1 != 0) goto LAB_00019810;\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }" else (compound_statement "{\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(param_1,3,local_20);\n      if (iVar1 != 0) goto LAB_00019810;\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }" { (expression_statement "iVar1 = bfd_get_error();" (assignment_expression "iVar1 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0xc) {\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }" if (parenthesized_expression "(iVar1 != 0xc)" ( (binary_expression "iVar1 != 0xc" identifier != number_literal) )) (compound_statement "{\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }" { (expression_statement "FUN_00047720(*param_1);" (call_expression "FUN_00047720(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "DAT_00074120 = 1;" (assignment_expression "DAT_00074120 = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = bfd_check_format_matches(param_1,3,local_20);" (assignment_expression "iVar1 = bfd_check_format_matches(param_1,3,local_20)" identifier = (call_expression "bfd_check_format_matches(param_1,3,local_20)" identifier (argument_list "(param_1,3,local_20)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar1 != 0) goto LAB_00019810;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00019810;" goto statement_identifier ;)) (expression_statement "FUN_00047720(*param_1);" (call_expression "FUN_00047720(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "DAT_00074120 = 1;" (assignment_expression "DAT_00074120 = 1" identifier = number_literal) ;) (expression_statement "iVar1 = bfd_get_error();" (assignment_expression "iVar1 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0xd) {\n        return;\n      }" if (parenthesized_expression "(iVar1 != 0xd)" ( (binary_expression "iVar1 != 0xd" identifier != number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) }))) (expression_statement "FUN_00047aa0(local_20[0]);" (call_expression "FUN_00047aa0(local_20[0])" identifier (argument_list "(local_20[0])" ( (subscript_expression "local_20[0]" identifier [ number_literal ]) ))) ;) (expression_statement "free(local_20[0]);" (call_expression "free(local_20[0])" identifier (argument_list "(local_20[0])" ( (subscript_expression "local_20[0]" identifier [ number_literal ]) ))) ;) (return_statement "return;" return ;) })) (labeled_statement "LAB_00019810:\n  FUN_00018680();" statement_identifier : (expression_statement "FUN_00018680();" (call_expression "FUN_00018680()" identifier (argument_list "()" ( ))) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (array_declarator IDENT [ LIT ])) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) | LIT)) ;) })) (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 (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence ")) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence ")) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , IDENT , LIT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (call_expression IDENT (argument_list ( IDENT ))) , (binary_expression IDENT == IDENT)) ))) )) (compound_statement { (return_statement return ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) }))) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (return_statement return ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_000196b0(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  void *local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x196bd;\n  if (DAT_00074118 == 0) {\n    param_1[10] = param_1[10] | 0x100000;\n  }\n  iVar1 = bfd_check_format(param_1,2);\n  if (iVar1 != 0) {\n    if (param_2 == 0) {\n      uVar3 = *param_1;\n      pcVar2 = "In archive %s:\n";\n    }\n    else {\n      if (100 < param_2) {\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    \n        FUN_000479f0(uVar3);\n      }\n      uVar3 = *param_1;\n      pcVar2 = "In nested archive %s:\n";\n    }\n    pcVar2 = (char *)dcgettext(0,pcVar2,5);\n    printf(pcVar2,uVar3);\n    iVar1 = 0;\n    while( true ) {\n      iVar4 = iVar1;\n      bfd_set_error(0);\n      iVar1 = bfd_openr_next_archived_file(param_1,iVar4);\n      if (iVar1 == 0) break;\n      FUN_000196b0();\n      if ((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)) {\n        return;\n      }\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 != 9) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    if (iVar4 == 0) {\n      return;\n    }\n    bfd_close(iVar4);\n    return;\n  }\n  iVar1 = bfd_check_format_matches(param_1,1,local_20);\n  if (iVar1 == 0) {\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(param_1,3,local_20);\n      if (iVar1 != 0) goto LAB_00019810;\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }\n    FUN_00047aa0(local_20[0]);\n    free(local_20[0]);\n    return;\n  }\nLAB_00019810:\n  FUN_00018680();\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000196b0(undefined4 *param_1,int param_2)" (identifier "FUN_000196b0") (parameter_list "(undefined4 *param_1,int param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  void *local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x196bd;\n  if (DAT_00074118 == 0) {\n    param_1[10] = param_1[10] | 0x100000;\n  }\n  iVar1 = bfd_check_format(param_1,2);\n  if (iVar1 != 0) {\n    if (param_2 == 0) {\n      uVar3 = *param_1;\n      pcVar2 = "In archive %s:\n";\n    }\n    else {\n      if (100 < param_2) {\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    \n        FUN_000479f0(uVar3);\n      }\n      uVar3 = *param_1;\n      pcVar2 = "In nested archive %s:\n";\n    }\n    pcVar2 = (char *)dcgettext(0,pcVar2,5);\n    printf(pcVar2,uVar3);\n    iVar1 = 0;\n    while( true ) {\n      iVar4 = iVar1;\n      bfd_set_error(0);\n      iVar1 = bfd_openr_next_archived_file(param_1,iVar4);\n      if (iVar1 == 0) break;\n      FUN_000196b0();\n      if ((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)) {\n        return;\n      }\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 != 9) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    if (iVar4 == 0) {\n      return;\n    }\n    bfd_close(iVar4);\n    return;\n  }\n  iVar1 = bfd_check_format_matches(param_1,1,local_20);\n  if (iVar1 == 0) {\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(param_1,3,local_20);\n      if (iVar1 != 0) goto LAB_00019810;\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }\n    FUN_00047aa0(local_20[0]);\n    free(local_20[0]);\n    return;\n  }\nLAB_00019810:\n  FUN_00018680();\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "void *local_20 [3];" (primitive_type "void") (pointer_declarator "*local_20 [3]" (* "*") (array_declarator "local_20 [3]" (identifier "local_20") ([ "[") (number_literal "3") (] "]"))) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x196bd;" (assignment_expression "uStack_14 = 0x196bd" (identifier "uStack_14") (= "=") (number_literal "0x196bd")) (; ";")) (if_statement "if (DAT_00074118 == 0) {\n    param_1[10] = param_1[10] | 0x100000;\n  }" (if "if") (parenthesized_expression "(DAT_00074118 == 0)" (( "(") (binary_expression "DAT_00074118 == 0" (identifier "DAT_00074118") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_1[10] = param_1[10] | 0x100000;\n  }" ({ "{") (expression_statement "param_1[10] = param_1[10] | 0x100000;" (assignment_expression "param_1[10] = param_1[10] | 0x100000" (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]")) (= "=") (binary_expression "param_1[10] | 0x100000" (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]")) (| "|") (number_literal "0x100000"))) (; ";")) (} "}"))) (expression_statement "iVar1 = bfd_check_format(param_1,2);" (assignment_expression "iVar1 = bfd_check_format(param_1,2)" (identifier "iVar1") (= "=") (call_expression "bfd_check_format(param_1,2)" (identifier "bfd_check_format") (argument_list "(param_1,2)" (( "(") (identifier "param_1") (, ",") (number_literal "2") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    if (param_2 == 0) {\n      uVar3 = *param_1;\n      pcVar2 = "In archive %s:\n";\n    }\n    else {\n      if (100 < param_2) {\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    \n        FUN_000479f0(uVar3);\n      }\n      uVar3 = *param_1;\n      pcVar2 = "In nested archive %s:\n";\n    }\n    pcVar2 = (char *)dcgettext(0,pcVar2,5);\n    printf(pcVar2,uVar3);\n    iVar1 = 0;\n    while( true ) {\n      iVar4 = iVar1;\n      bfd_set_error(0);\n      iVar1 = bfd_openr_next_archived_file(param_1,iVar4);\n      if (iVar1 == 0) break;\n      FUN_000196b0();\n      if ((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)) {\n        return;\n      }\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 != 9) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    if (iVar4 == 0) {\n      return;\n    }\n    bfd_close(iVar4);\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_2 == 0) {\n      uVar3 = *param_1;\n      pcVar2 = "In archive %s:\n";\n    }\n    else {\n      if (100 < param_2) {\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    \n        FUN_000479f0(uVar3);\n      }\n      uVar3 = *param_1;\n      pcVar2 = "In nested archive %s:\n";\n    }\n    pcVar2 = (char *)dcgettext(0,pcVar2,5);\n    printf(pcVar2,uVar3);\n    iVar1 = 0;\n    while( true ) {\n      iVar4 = iVar1;\n      bfd_set_error(0);\n      iVar1 = bfd_openr_next_archived_file(param_1,iVar4);\n      if (iVar1 == 0) break;\n      FUN_000196b0();\n      if ((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)) {\n        return;\n      }\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 != 9) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    if (iVar4 == 0) {\n      return;\n    }\n    bfd_close(iVar4);\n    return;\n  }" ({ "{") (if_statement "if (param_2 == 0) {\n      uVar3 = *param_1;\n      pcVar2 = "In archive %s:\n";\n    }\n    else {\n      if (100 < param_2) {\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    \n        FUN_000479f0(uVar3);\n      }\n      uVar3 = *param_1;\n      pcVar2 = "In nested archive %s:\n";\n    }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = *param_1;\n      pcVar2 = "In archive %s:\n";\n    }" ({ "{") (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" (identifier "uVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "pcVar2 = "In archive %s:\n";" (assignment_expression "pcVar2 = "In archive %s:\n"" (identifier "pcVar2") (= "=") (string_literal ""In archive %s:\n"" (" """) (string_content "In archive %s:") (escape_sequence "\n") (" """))) (; ";")) (} "}")) (else_clause "else {\n      if (100 < param_2) {\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    \n        FUN_000479f0(uVar3);\n      }\n      uVar3 = *param_1;\n      pcVar2 = "In nested archive %s:\n";\n    }" (else "else") (compound_statement "{\n      if (100 < param_2) {\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    \n        FUN_000479f0(uVar3);\n      }\n      uVar3 = *param_1;\n      pcVar2 = "In nested archive %s:\n";\n    }" ({ "{") (if_statement "if (100 < param_2) {\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    \n        FUN_000479f0(uVar3);\n      }" (if "if") (parenthesized_expression "(100 < param_2)" (( "(") (binary_expression "100 < param_2" (number_literal "100") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);\n                    \n        FUN_000479f0(uVar3);\n      }" ({ "{") (expression_statement "uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);" (assignment_expression "uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,"Archive nesting is too deep",5,iVar1)" (identifier "dcgettext") (argument_list "(0,"Archive nesting is too deep",5,iVar1)" (( "(") (number_literal "0") (, ",") (string_literal ""Archive nesting is too deep"" (" """) (string_content "Archive nesting is too deep") (" """)) (, ",") (number_literal "5") (, ",") (identifier "iVar1") () ")")))) (; ";")) (expression_statement "FUN_000479f0(uVar3);" (call_expression "FUN_000479f0(uVar3)" (identifier "FUN_000479f0") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" (identifier "uVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "pcVar2 = "In nested archive %s:\n";" (assignment_expression "pcVar2 = "In nested archive %s:\n"" (identifier "pcVar2") (= "=") (string_literal ""In nested archive %s:\n"" (" """) (string_content "In nested archive %s:") (escape_sequence "\n") (" """))) (; ";")) (} "}")))) (expression_statement "pcVar2 = (char *)dcgettext(0,pcVar2,5);" (assignment_expression "pcVar2 = (char *)dcgettext(0,pcVar2,5)" (identifier "pcVar2") (= "=") (cast_expression "(char *)dcgettext(0,pcVar2,5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "dcgettext(0,pcVar2,5)" (identifier "dcgettext") (argument_list "(0,pcVar2,5)" (( "(") (number_literal "0") (, ",") (identifier "pcVar2") (, ",") (number_literal "5") () ")"))))) (; ";")) (expression_statement "printf(pcVar2,uVar3);" (call_expression "printf(pcVar2,uVar3)" (identifier "printf") (argument_list "(pcVar2,uVar3)" (( "(") (identifier "pcVar2") (, ",") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (while_statement "while( true ) {\n      iVar4 = iVar1;\n      bfd_set_error(0);\n      iVar1 = bfd_openr_next_archived_file(param_1,iVar4);\n      if (iVar1 == 0) break;\n      FUN_000196b0();\n      if ((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)) {\n        return;\n      }\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      iVar4 = iVar1;\n      bfd_set_error(0);\n      iVar1 = bfd_openr_next_archived_file(param_1,iVar4);\n      if (iVar1 == 0) break;\n      FUN_000196b0();\n      if ((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)) {\n        return;\n      }\n    }" ({ "{") (expression_statement "iVar4 = iVar1;" (assignment_expression "iVar4 = iVar1" (identifier "iVar4") (= "=") (identifier "iVar1")) (; ";")) (expression_statement "bfd_set_error(0);" (call_expression "bfd_set_error(0)" (identifier "bfd_set_error") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar1 = bfd_openr_next_archived_file(param_1,iVar4);" (assignment_expression "iVar1 = bfd_openr_next_archived_file(param_1,iVar4)" (identifier "iVar1") (= "=") (call_expression "bfd_openr_next_archived_file(param_1,iVar4)" (identifier "bfd_openr_next_archived_file") (argument_list "(param_1,iVar4)" (( "(") (identifier "param_1") (, ",") (identifier "iVar4") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) break;" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "FUN_000196b0();" (call_expression "FUN_000196b0()" (identifier "FUN_000196b0") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if ((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)) {\n        return;\n      }" (if "if") (parenthesized_expression "((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1))" (( "(") (binary_expression "(iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)" (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(bfd_close(iVar4), iVar4 == iVar1)" (( "(") (comma_expression "bfd_close(iVar4), iVar4 == iVar1" (call_expression "bfd_close(iVar4)" (identifier "bfd_close") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (, ",") (binary_expression "iVar4 == iVar1" (identifier "iVar4") (== "==") (identifier "iVar1"))) () ")"))) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar1 = bfd_get_error();" (assignment_expression "iVar1 = bfd_get_error()" (identifier "iVar1") (= "=") (call_expression "bfd_get_error()" (identifier "bfd_get_error") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 != 9) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }" (if "if") (parenthesized_expression "(iVar1 != 9)" (( "(") (binary_expression "iVar1 != 9" (identifier "iVar1") (!= "!=") (number_literal "9")) () ")")) (compound_statement "{\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }" ({ "{") (expression_statement "FUN_00047720(*param_1);" (call_expression "FUN_00047720(*param_1)" (identifier "FUN_00047720") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (expression_statement "DAT_00074120 = 1;" (assignment_expression "DAT_00074120 = 1" (identifier "DAT_00074120") (= "=") (number_literal "1")) (; ";")) (} "}"))) (if_statement "if (iVar4 == 0) {\n      return;\n    }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "bfd_close(iVar4);" (call_expression "bfd_close(iVar4)" (identifier "bfd_close") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = bfd_check_format_matches(param_1,1,local_20);" (assignment_expression "iVar1 = bfd_check_format_matches(param_1,1,local_20)" (identifier "iVar1") (= "=") (call_expression "bfd_check_format_matches(param_1,1,local_20)" (identifier "bfd_check_format_matches") (argument_list "(param_1,1,local_20)" (( "(") (identifier "param_1") (, ",") (number_literal "1") (, ",") (identifier "local_20") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(param_1,3,local_20);\n      if (iVar1 != 0) goto LAB_00019810;\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }\n    FUN_00047aa0(local_20[0]);\n    free(local_20[0]);\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(param_1,3,local_20);\n      if (iVar1 != 0) goto LAB_00019810;\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }\n    FUN_00047aa0(local_20[0]);\n    free(local_20[0]);\n    return;\n  }" ({ "{") (expression_statement "iVar1 = bfd_get_error();" (assignment_expression "iVar1 = bfd_get_error()" (identifier "iVar1") (= "=") (call_expression "bfd_get_error()" (identifier "bfd_get_error") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0xd) {\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }\n    else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(param_1,3,local_20);\n      if (iVar1 != 0) goto LAB_00019810;\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }" (if "if") (parenthesized_expression "(iVar1 == 0xd)" (( "(") (binary_expression "iVar1 == 0xd" (identifier "iVar1") (== "==") (number_literal "0xd")) () ")")) (compound_statement "{\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n    }" ({ "{") (expression_statement "FUN_00047720(*param_1);" (call_expression "FUN_00047720(*param_1)" (identifier "FUN_00047720") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (expression_statement "DAT_00074120 = 1;" (assignment_expression "DAT_00074120 = 1" (identifier "DAT_00074120") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(param_1,3,local_20);\n      if (iVar1 != 0) goto LAB_00019810;\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }" (else "else") (compound_statement "{\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xc) {\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }\n      iVar1 = bfd_check_format_matches(param_1,3,local_20);\n      if (iVar1 != 0) goto LAB_00019810;\n      FUN_00047720(*param_1);\n      DAT_00074120 = 1;\n      iVar1 = bfd_get_error();\n      if (iVar1 != 0xd) {\n        return;\n      }\n    }" ({ "{") (expression_statement "iVar1 = bfd_get_error();" (assignment_expression "iVar1 = bfd_get_error()" (identifier "iVar1") (= "=") (call_expression "bfd_get_error()" (identifier "bfd_get_error") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 != 0xc) {\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }" (if "if") (parenthesized_expression "(iVar1 != 0xc)" (( "(") (binary_expression "iVar1 != 0xc" (identifier "iVar1") (!= "!=") (number_literal "0xc")) () ")")) (compound_statement "{\n        FUN_00047720(*param_1);\n        DAT_00074120 = 1;\n        return;\n      }" ({ "{") (expression_statement "FUN_00047720(*param_1);" (call_expression "FUN_00047720(*param_1)" (identifier "FUN_00047720") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (expression_statement "DAT_00074120 = 1;" (assignment_expression "DAT_00074120 = 1" (identifier "DAT_00074120") (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = bfd_check_format_matches(param_1,3,local_20);" (assignment_expression "iVar1 = bfd_check_format_matches(param_1,3,local_20)" (identifier "iVar1") (= "=") (call_expression "bfd_check_format_matches(param_1,3,local_20)" (identifier "bfd_check_format_matches") (argument_list "(param_1,3,local_20)" (( "(") (identifier "param_1") (, ",") (number_literal "3") (, ",") (identifier "local_20") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) goto LAB_00019810;" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00019810;" (goto "goto") (statement_identifier "LAB_00019810") (; ";"))) (expression_statement "FUN_00047720(*param_1);" (call_expression "FUN_00047720(*param_1)" (identifier "FUN_00047720") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (expression_statement "DAT_00074120 = 1;" (assignment_expression "DAT_00074120 = 1" (identifier "DAT_00074120") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar1 = bfd_get_error();" (assignment_expression "iVar1 = bfd_get_error()" (identifier "iVar1") (= "=") (call_expression "bfd_get_error()" (identifier "bfd_get_error") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 != 0xd) {\n        return;\n      }" (if "if") (parenthesized_expression "(iVar1 != 0xd)" (( "(") (binary_expression "iVar1 != 0xd" (identifier "iVar1") (!= "!=") (number_literal "0xd")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")))) (expression_statement "FUN_00047aa0(local_20[0]);" (call_expression "FUN_00047aa0(local_20[0])" (identifier "FUN_00047aa0") (argument_list "(local_20[0])" (( "(") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) () ")"))) (; ";")) (expression_statement "free(local_20[0]);" (call_expression "free(local_20[0])" (identifier "free") (argument_list "(local_20[0])" (( "(") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (labeled_statement "LAB_00019810:\n  FUN_00018680();" (statement_identifier "LAB_00019810") (: ":") (expression_statement "FUN_00018680();" (call_expression "FUN_00018680()" (identifier "FUN_00018680") (argument_list "()" (( "(") () ")"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *file,int var_4)

{
  int var_3;
  char *pcVar2;
  type_1 *var_10;
  char *pcVar3;
  type_1 *var_11;
  char **matching;
  type_2 uStack_14;
  
  uStack_14 = 0x196bd;
  if (var_1 == 0) {
    *(type_3 *)&file->field_0x28 = *(type_3 *)&file->field_0x28 | 0x100000;
  }
  var_3 = var_2(file,2);
  if (var_3 != 0) {
    if (var_4 == 0) {
      pcVar3 = file->filename;
      pcVar2 = "In archive %s:\n";
    }
    else {
      if (100 < var_4) {
        pcVar2 = (char *)var_5(0,"Archive nesting is too deep",5,var_3);
                    /* WARNING: Subroutine does not return */
        var_6(pcVar2);
      }
      pcVar3 = file->filename;
      pcVar2 = "In nested archive %s:\n";
    }
    pcVar2 = (char *)var_5(0,pcVar2,5);
    var_7(pcVar2,pcVar3);
    var_10 = (type_1 *)0x0;
    while( true ) {
      var_11 = var_10;
      var_8(0);
      var_10 = (type_1 *)var_9(file,var_11);
      if (var_10 == (type_1 *)0x0) break;
      function_1(var_10,var_4 + 1);
      if ((var_11 != (type_1 *)0x0) && (var_12(var_11), var_11 == var_10)) {
        return;
      }
    }
    var_3 = var_13();
    if (var_3 != 9) {
      var_14(file->filename);
      exit_status = 1;
    }
    if (var_11 == (type_1 *)0x0) {
      return;
    }
    var_12(var_11);
    return;
  }
  var_3 = var_15(file,1,&matching);
  if (var_3 == 0) {
    var_3 = var_13();
    if (var_3 == 0xd) {
      var_14(file->filename);
      exit_status = 1;
    }
    else {
      var_3 = var_13();
      if (var_3 != 0xc) {
        var_14(file->filename);
        exit_status = 1;
        return;
      }
      var_3 = var_15(file,3,&matching);
      if (var_3 != 0) goto LAB_00019810;
      var_14(file->filename);
      exit_status = 1;
      var_3 = var_13();
      if (var_3 != 0xd) {
        return;
      }
    }
    var_16(matching);
    var_17(matching);
    return;
  }
LAB_00019810:
  var_18(file);
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (array_declarator declarator: (identifier) size: (number_literal)))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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 (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content) (escape_sequence))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content) (escape_sequence))))))) (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) (identifier) (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (call_expression function: (identifier) arguments: (argument_list (identifier))) right: (binary_expression left: (identifier) right: (identifier)))))) consequence: (compound_statement (return_statement))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (return_statement))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list)))) (return_statement))))

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

void __regparm3 MASKED(undefined4 *param_1,int param_2)

{
  int iVar1;
  char *pcVar2;
  undefined4 uVar3;
  int iVar4;
  void *local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x196bd;
  if (DAT_00074118 == 0) {
    param_1[10] = param_1[10] | 0x100000;
  }
  iVar1 = bfd_check_format(param_1,2);
  if (iVar1 != 0) {
    if (param_2 == 0) {
      uVar3 = *param_1;
      pcVar2 = "In archive %s:\n";
    }
    else {
      if (100 < param_2) {
        uVar3 = dcgettext(0,"Archive nesting is too deep",5,iVar1);
                    /* WARNING: Subroutine does not return */
        FUN_000479f0(uVar3);
      }
      uVar3 = *param_1;
      pcVar2 = "In nested archive %s:\n";
    }
    pcVar2 = (char *)dcgettext(0,pcVar2,5);
    printf(pcVar2,uVar3);
    iVar1 = 0;
    while( true ) {
      iVar4 = iVar1;
      bfd_set_error(0);
      iVar1 = bfd_openr_next_archived_file(param_1,iVar4);
      if (iVar1 == 0) break;
      MASKED();
      if ((iVar4 != 0) && (bfd_close(iVar4), iVar4 == iVar1)) {
        return;
      }
    }
    iVar1 = bfd_get_error();
    if (iVar1 != 9) {
      FUN_00047720(*param_1);
      DAT_00074120 = 1;
    }
    if (iVar4 == 0) {
      return;
    }
    bfd_close(iVar4);
    return;
  }
  iVar1 = bfd_check_format_matches(param_1,1,local_20);
  if (iVar1 == 0) {
    iVar1 = bfd_get_error();
    if (iVar1 == 0xd) {
      FUN_00047720(*param_1);
      DAT_00074120 = 1;
    }
    else {
      iVar1 = bfd_get_error();
      if (iVar1 != 0xc) {
        FUN_00047720(*param_1);
        DAT_00074120 = 1;
        return;
      }
      iVar1 = bfd_check_format_matches(param_1,3,local_20);
      if (iVar1 != 0) goto LAB_00019810;
      FUN_00047720(*param_1);
      DAT_00074120 = 1;
      iVar1 = bfd_get_error();
      if (iVar1 != 0xd) {
        return;
      }
    }
    FUN_00047aa0(local_20[0]);
    free(local_20[0]);
    return;
  }
LAB_00019810:
  FUN_00018680();
  return;
}

