
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void arm_elf_create_output_section_statements(void)

{
  undefined1 *puVar1;
  _func_bfd_boolean_bfd_ptr_bfd_architecture_ulong *p_Var2;
  char *pcVar3;
  int iVar4;
  lang_input_statement_type *plVar5;
  bfd *pbVar6;
  ulong uVar7;
  bfd_architecture bVar8;
  bfd_boolean bVar9;
  char *pcVar10;
  
  pbVar6 = link_info.output_bfd;
  pcVar10 = (link_info.output_bfd)->xvec->name;
  pcVar3 = strstr(pcVar10,"arm");
  if (pcVar3 == (char *)0x0) {
    pcVar10 = (char *)dcgettext(0,
                                "%F%P: error: cannot change output format whilst linking %s binaries\n"
                                ,5);
    einfo(pcVar10,&DAT_000b07e2);
  }
  else {
    if (in_implib_filename != (char *)0x0) {
      params.in_implib_bfd = (bfd *)bfd_openr(in_implib_filename,pcVar10);
      pcVar10 = in_implib_filename;
      if (params.in_implib_bfd == (bfd *)0x0) {
        pcVar3 = (char *)dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);
        einfo(pcVar3,pcVar10);
      }
      iVar4 = bfd_check_format(params.in_implib_bfd,1);
      pcVar10 = in_implib_filename;
      pbVar6 = link_info.output_bfd;
      if (iVar4 == 0) {
        pcVar3 = (char *)dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);
        einfo(pcVar3,pcVar10);
        pbVar6 = link_info.output_bfd;
      }
    }
    bfd_elf32_arm_set_target_params(pbVar6,&link_info,&params);
    plVar5 = lang_add_input_file("linker stubs",lang_input_file_is_fake_enum,(char *)0x0);
    stub_file = plVar5;
    pbVar6 = (bfd *)bfd_create("linker stubs",link_info.output_bfd);
    plVar5->the_bfd = pbVar6;
    if (stub_file->the_bfd != (bfd *)0x0) {
      p_Var2 = stub_file->the_bfd->xvec->_bfd_set_arch_mach;
      uVar7 = bfd_get_mach(link_info.output_bfd);
      bVar8 = bfd_get_arch(link_info.output_bfd);
      bVar9 = (*p_Var2)(stub_file->the_bfd,bVar8,uVar7);
      plVar5 = stub_file;
      if (bVar9 != 0) {
        puVar1 = &stub_file->the_bfd->field_0x28;
        *(uint *)puVar1 = *(uint *)puVar1 | 0x20000;
        ldlang_add_file(plVar5);
        bfd_elf32_arm_add_glue_sections_to_bfd(stub_file->the_bfd,&link_info);
        bfd_elf32_arm_get_bfd_for_interworking(stub_file->the_bfd,&link_info);
        return;
      }
    }
    pcVar10 = (char *)dcgettext(0,"%F%P: can not create BFD: %E\n",5);
    einfo(pcVar10);
  }
  return;
}



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

void FUN_00052770(void)

{
  uint *puVar1;
  char *__haystack;
  code *pcVar2;
  char *pcVar3;
  int iVar4;
  int iVar5;
  undefined4 uVar6;
  undefined4 uVar7;
  int iVar8;
  
  iVar5 = DAT_001c4614;
  __haystack = (char *)**(undefined4 **)(DAT_001c4614 + 4);
  pcVar3 = strstr(__haystack,"arm");
  if (pcVar3 == (char *)0x0) {
    uVar6 = dcgettext(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5);
    FUN_00034dc0(uVar6,&DAT_000b07e2);
  }
  else {
    if (DAT_001c4050 != 0) {
      DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);
      iVar5 = DAT_001c4050;
      if (DAT_001c2e1c == 0) {
        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);
        FUN_00034dc0(uVar6,iVar5);
      }
      iVar4 = bfd_check_format(DAT_001c2e1c,1);
      iVar8 = DAT_001c4050;
      iVar5 = DAT_001c4614;
      if (iVar4 == 0) {
        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);
        FUN_00034dc0(uVar6,iVar8);
        iVar5 = DAT_001c4614;
      }
    }
    bfd_elf32_arm_set_target_params(iVar5,&DAT_001c45e0,&DAT_001c2de0);
    iVar5 = FUN_00023f40("linker stubs",3,0);
    DAT_001c404c = iVar5;
    uVar6 = bfd_create("linker stubs",DAT_001c4614);
    *(undefined4 *)(iVar5 + 0x10) = uVar6;
    if (*(int *)(DAT_001c404c + 0x10) != 0) {
      pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);
      uVar6 = bfd_get_mach(DAT_001c4614);
      uVar7 = bfd_get_arch(DAT_001c4614);
      iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);
      iVar5 = DAT_001c404c;
      if (iVar8 != 0) {
        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);
        *puVar1 = *puVar1 | 0x20000;
        FUN_00027740(iVar5);
        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);
        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);
        return;
      }
    }
    uVar6 = dcgettext(0,"%F%P: can not create BFD: %E\n",5);
    FUN_00034dc0(uVar6);
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00017c50
ADD EBX,0x16f887
SUB ESP,0x14
LEA ESI,[EBX + 0x25e0]
MOV EDI,dword ptr [ESI + 0x34]
MOV EAX,dword ptr [EDI + 0x4]
MOV EBP,dword ptr [EAX]
LEA EAX,[EBX + 0xffeee8e6]
PUSH EAX
PUSH EBP
CALL 0x000160b0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00052910
MOV EAX,dword ptr [EBX + 0x2050]
TEST EAX,EAX
JZ 0x000527e6
SUB ESP,0x8
PUSH EBP
PUSH EAX
CALL 0x000162f0
ADD ESP,0x10
MOV dword ptr [EBX + 0xe1c],EAX
TEST EAX,EAX
JZ 0x00052940
SUB ESP,0x8
PUSH 0x1
PUSH EAX
CALL 0x00016c50
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000528e0
MOV EDI,dword ptr [ESI + 0x34]
SUB ESP,0x4
LEA EAX,[EBX + 0xde0]
LEA EBP,[EBX + 0xffeed754]
PUSH EAX
PUSH ESI
PUSH EDI
CALL 0x00016740
ADD ESP,0xc
PUSH 0x0
PUSH 0x3
PUSH EBP
CALL 0x00023f40
MOV EDI,EAX
MOV dword ptr [EBX + 0x204c],EAX
POP EAX
POP EDX
PUSH dword ptr [ESI + 0x34]
PUSH EBP
CALL 0x00016630
ADD ESP,0x10
MOV dword ptr [EDI + 0x10],EAX
MOV EAX,dword ptr [EBX + 0x204c]
MOV EAX,dword ptr [EAX + 0x10]
TEST EAX,EAX
JZ 0x00052866
MOV EAX,dword ptr [EAX + 0x4]
SUB ESP,0xc
MOV EDI,dword ptr [EAX + 0x154]
PUSH dword ptr [ESI + 0x34]
CALL 0x000169d0
MOV EBP,EAX
POP EAX
PUSH dword ptr [ESI + 0x34]
CALL 0x00016890
ADD ESP,0xc
PUSH EBP
PUSH EAX
MOV EAX,dword ptr [EBX + 0x204c]
PUSH dword ptr [EAX + 0x10]
CALL EDI
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00052890
SUB ESP,0x4
LEA EAX,[EBX + 0xffeed761]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00016380
MOV dword ptr [ESP],EAX
CALL 0x00034dc0
ADD ESP,0x10
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBX + 0x204c]
SUB ESP,0xc
MOV EDX,dword ptr [EAX + 0x10]
OR dword ptr [EDX + 0x28],0x20000
PUSH EAX
CALL 0x00027740
POP EAX
MOV EAX,dword ptr [EBX + 0x204c]
POP EDX
PUSH ESI
PUSH dword ptr [EAX + 0x10]
CALL 0x000169c0
MOV EAX,dword ptr [EBX + 0x204c]
POP ECX
POP EDI
PUSH ESI
PUSH dword ptr [EAX + 0x10]
CALL 0x00016660
ADD ESP,0x10
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xffeeee80]
MOV EDI,dword ptr [EBX + 0x2050]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00016380
POP ECX
POP EBP
PUSH EDI
PUSH EAX
CALL 0x00034dc0
MOV EDI,dword ptr [ESI + 0x34]
ADD ESP,0x10
JMP 0x000527e6
SUB ESP,0x4
LEA EAX,[EBX + 0xffeed130]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00016380
LEA EDX,[EBX + 0xffeee7e2]
POP ESI
POP EDI
PUSH EDX
PUSH EAX
CALL 0x00034dc0
ADD ESP,0x10
JMP 0x00052884
SUB ESP,0x4
LEA EAX,[EBX + 0xffeee7e6]
MOV EDI,dword ptr [EBX + 0x2050]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00016380
POP EDX
POP ECX
PUSH EDI
PUSH EAX
CALL 0x00034dc0
MOV EAX,dword ptr [EBX + 0xe1c]
ADD ESP,0x10
JMP 0x000527cd
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00052770(void)\n\n{\n  uint *puVar1;\n  char *__haystack;\n  code *pcVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int iVar8;\n  \n  iVar5 = DAT_001c4614;\n  __haystack = (char *)**(undefined4 **)(DAT_001c4614 + 4);\n  pcVar3 = strstr(__haystack,"arm");\n  if (pcVar3 == (char *)0x0) {\n    uVar6 = dcgettext(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5);\n    FUN_00034dc0(uVar6,&DAT_000b07e2);\n  }\n  else {\n    if (DAT_001c4050 != 0) {\n      DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);\n      iVar5 = DAT_001c4050;\n      if (DAT_001c2e1c == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }\n      iVar4 = bfd_check_format(DAT_001c2e1c,1);\n      iVar8 = DAT_001c4050;\n      iVar5 = DAT_001c4614;\n      if (iVar4 == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }\n    }\n    bfd_elf32_arm_set_target_params(iVar5,&DAT_001c45e0,&DAT_001c2de0);\n    iVar5 = FUN_00023f40("linker stubs",3,0);\n    DAT_001c404c = iVar5;\n    uVar6 = bfd_create("linker stubs",DAT_001c4614);\n    *(undefined4 *)(iVar5 + 0x10) = uVar6;\n    if (*(int *)(DAT_001c404c + 0x10) != 0) {\n      pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);\n      uVar6 = bfd_get_mach(DAT_001c4614);\n      uVar7 = bfd_get_arch(DAT_001c4614);\n      iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);\n      iVar5 = DAT_001c404c;\n      if (iVar8 != 0) {\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }\n    }\n    uVar6 = dcgettext(0,"%F%P: can not create BFD: %E\n",5);\n    FUN_00034dc0(uVar6);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00052770(void)\n\n{\n  uint *puVar1;\n  char *__haystack;\n  code *pcVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int iVar8;\n  \n  iVar5 = DAT_001c4614;\n  __haystack = (char *)**(undefined4 **)(DAT_001c4614 + 4);\n  pcVar3 = strstr(__haystack,"arm");\n  if (pcVar3 == (char *)0x0) {\n    uVar6 = dcgettext(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5);\n    FUN_00034dc0(uVar6,&DAT_000b07e2);\n  }\n  else {\n    if (DAT_001c4050 != 0) {\n      DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);\n      iVar5 = DAT_001c4050;\n      if (DAT_001c2e1c == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }\n      iVar4 = bfd_check_format(DAT_001c2e1c,1);\n      iVar8 = DAT_001c4050;\n      iVar5 = DAT_001c4614;\n      if (iVar4 == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }\n    }\n    bfd_elf32_arm_set_target_params(iVar5,&DAT_001c45e0,&DAT_001c2de0);\n    iVar5 = FUN_00023f40("linker stubs",3,0);\n    DAT_001c404c = iVar5;\n    uVar6 = bfd_create("linker stubs",DAT_001c4614);\n    *(undefined4 *)(iVar5 + 0x10) = uVar6;\n    if (*(int *)(DAT_001c404c + 0x10) != 0) {\n      pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);\n      uVar6 = bfd_get_mach(DAT_001c4614);\n      uVar7 = bfd_get_arch(DAT_001c4614);\n      iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);\n      iVar5 = DAT_001c404c;\n      if (iVar8 != 0) {\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }\n    }\n    uVar6 = dcgettext(0,"%F%P: can not create BFD: %E\n",5);\n    FUN_00034dc0(uVar6);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00052770(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  uint *puVar1;\n  char *__haystack;\n  code *pcVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int iVar8;\n  \n  iVar5 = DAT_001c4614;\n  __haystack = (char *)**(undefined4 **)(DAT_001c4614 + 4);\n  pcVar3 = strstr(__haystack,"arm");\n  if (pcVar3 == (char *)0x0) {\n    uVar6 = dcgettext(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5);\n    FUN_00034dc0(uVar6,&DAT_000b07e2);\n  }\n  else {\n    if (DAT_001c4050 != 0) {\n      DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);\n      iVar5 = DAT_001c4050;\n      if (DAT_001c2e1c == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }\n      iVar4 = bfd_check_format(DAT_001c2e1c,1);\n      iVar8 = DAT_001c4050;\n      iVar5 = DAT_001c4614;\n      if (iVar4 == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }\n    }\n    bfd_elf32_arm_set_target_params(iVar5,&DAT_001c45e0,&DAT_001c2de0);\n    iVar5 = FUN_00023f40("linker stubs",3,0);\n    DAT_001c404c = iVar5;\n    uVar6 = bfd_create("linker stubs",DAT_001c4614);\n    *(undefined4 *)(iVar5 + 0x10) = uVar6;\n    if (*(int *)(DAT_001c404c + 0x10) != 0) {\n      pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);\n      uVar6 = bfd_get_mach(DAT_001c4614);\n      uVar7 = bfd_get_arch(DAT_001c4614);\n      iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);\n      iVar5 = DAT_001c404c;\n      if (iVar8 != 0) {\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }\n    }\n    uVar6 = dcgettext(0,"%F%P: can not create BFD: %E\n",5);\n    FUN_00034dc0(uVar6);\n  }\n  return;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *__haystack;" primitive_type (pointer_declarator "*__haystack" * identifier) ;) (declaration "code *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (expression_statement "iVar5 = DAT_001c4614;" (assignment_expression "iVar5 = DAT_001c4614" identifier = identifier) ;) (expression_statement "__haystack = (char *)**(undefined4 **)(DAT_001c4614 + 4);" (assignment_expression "__haystack = (char *)**(undefined4 **)(DAT_001c4614 + 4)" identifier = (cast_expression "(char *)**(undefined4 **)(DAT_001c4614 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(DAT_001c4614 + 4)" * (pointer_expression "*(undefined4 **)(DAT_001c4614 + 4)" * (cast_expression "(undefined4 **)(DAT_001c4614 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_001c4614 + 4)" ( (binary_expression "DAT_001c4614 + 4" identifier + number_literal) ))))))) ;) (expression_statement "pcVar3 = strstr(__haystack,"arm");" (assignment_expression "pcVar3 = strstr(__haystack,"arm")" identifier = (call_expression "strstr(__haystack,"arm")" identifier (argument_list "(__haystack,"arm")" ( identifier , (string_literal ""arm"" " string_content ") )))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n    uVar6 = dcgettext(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5);\n    FUN_00034dc0(uVar6,&DAT_000b07e2);\n  }\n  else {\n    if (DAT_001c4050 != 0) {\n      DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);\n      iVar5 = DAT_001c4050;\n      if (DAT_001c2e1c == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }\n      iVar4 = bfd_check_format(DAT_001c2e1c,1);\n      iVar8 = DAT_001c4050;\n      iVar5 = DAT_001c4614;\n      if (iVar4 == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }\n    }\n    bfd_elf32_arm_set_target_params(iVar5,&DAT_001c45e0,&DAT_001c2de0);\n    iVar5 = FUN_00023f40("linker stubs",3,0);\n    DAT_001c404c = iVar5;\n    uVar6 = bfd_create("linker stubs",DAT_001c4614);\n    *(undefined4 *)(iVar5 + 0x10) = uVar6;\n    if (*(int *)(DAT_001c404c + 0x10) != 0) {\n      pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);\n      uVar6 = bfd_get_mach(DAT_001c4614);\n      uVar7 = bfd_get_arch(DAT_001c4614);\n      iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);\n      iVar5 = DAT_001c404c;\n      if (iVar8 != 0) {\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }\n    }\n    uVar6 = dcgettext(0,"%F%P: can not create BFD: %E\n",5);\n    FUN_00034dc0(uVar6);\n  }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar6 = dcgettext(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5);\n    FUN_00034dc0(uVar6,&DAT_000b07e2);\n  }" { (expression_statement "uVar6 = dcgettext(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5);" (assignment_expression "uVar6 = dcgettext(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5)" identifier (argument_list "(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5)" ( number_literal , (string_literal ""%F%P: error: cannot change output format whilst linking %s binaries\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034dc0(uVar6,&DAT_000b07e2);" (call_expression "FUN_00034dc0(uVar6,&DAT_000b07e2)" identifier (argument_list "(uVar6,&DAT_000b07e2)" ( identifier , (pointer_expression "&DAT_000b07e2" & identifier) ))) ;) }) (else_clause "else {\n    if (DAT_001c4050 != 0) {\n      DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);\n      iVar5 = DAT_001c4050;\n      if (DAT_001c2e1c == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }\n      iVar4 = bfd_check_format(DAT_001c2e1c,1);\n      iVar8 = DAT_001c4050;\n      iVar5 = DAT_001c4614;\n      if (iVar4 == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }\n    }\n    bfd_elf32_arm_set_target_params(iVar5,&DAT_001c45e0,&DAT_001c2de0);\n    iVar5 = FUN_00023f40("linker stubs",3,0);\n    DAT_001c404c = iVar5;\n    uVar6 = bfd_create("linker stubs",DAT_001c4614);\n    *(undefined4 *)(iVar5 + 0x10) = uVar6;\n    if (*(int *)(DAT_001c404c + 0x10) != 0) {\n      pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);\n      uVar6 = bfd_get_mach(DAT_001c4614);\n      uVar7 = bfd_get_arch(DAT_001c4614);\n      iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);\n      iVar5 = DAT_001c404c;\n      if (iVar8 != 0) {\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }\n    }\n    uVar6 = dcgettext(0,"%F%P: can not create BFD: %E\n",5);\n    FUN_00034dc0(uVar6);\n  }" else (compound_statement "{\n    if (DAT_001c4050 != 0) {\n      DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);\n      iVar5 = DAT_001c4050;\n      if (DAT_001c2e1c == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }\n      iVar4 = bfd_check_format(DAT_001c2e1c,1);\n      iVar8 = DAT_001c4050;\n      iVar5 = DAT_001c4614;\n      if (iVar4 == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }\n    }\n    bfd_elf32_arm_set_target_params(iVar5,&DAT_001c45e0,&DAT_001c2de0);\n    iVar5 = FUN_00023f40("linker stubs",3,0);\n    DAT_001c404c = iVar5;\n    uVar6 = bfd_create("linker stubs",DAT_001c4614);\n    *(undefined4 *)(iVar5 + 0x10) = uVar6;\n    if (*(int *)(DAT_001c404c + 0x10) != 0) {\n      pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);\n      uVar6 = bfd_get_mach(DAT_001c4614);\n      uVar7 = bfd_get_arch(DAT_001c4614);\n      iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);\n      iVar5 = DAT_001c404c;\n      if (iVar8 != 0) {\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }\n    }\n    uVar6 = dcgettext(0,"%F%P: can not create BFD: %E\n",5);\n    FUN_00034dc0(uVar6);\n  }" { (if_statement "if (DAT_001c4050 != 0) {\n      DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);\n      iVar5 = DAT_001c4050;\n      if (DAT_001c2e1c == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }\n      iVar4 = bfd_check_format(DAT_001c2e1c,1);\n      iVar8 = DAT_001c4050;\n      iVar5 = DAT_001c4614;\n      if (iVar4 == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }\n    }" if (parenthesized_expression "(DAT_001c4050 != 0)" ( (binary_expression "DAT_001c4050 != 0" identifier != number_literal) )) (compound_statement "{\n      DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);\n      iVar5 = DAT_001c4050;\n      if (DAT_001c2e1c == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }\n      iVar4 = bfd_check_format(DAT_001c2e1c,1);\n      iVar8 = DAT_001c4050;\n      iVar5 = DAT_001c4614;\n      if (iVar4 == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }\n    }" { (expression_statement "DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);" (assignment_expression "DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack)" identifier = (call_expression "bfd_openr(DAT_001c4050,__haystack)" identifier (argument_list "(DAT_001c4050,__haystack)" ( identifier , identifier )))) ;) (expression_statement "iVar5 = DAT_001c4050;" (assignment_expression "iVar5 = DAT_001c4050" identifier = identifier) ;) (if_statement "if (DAT_001c2e1c == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }" if (parenthesized_expression "(DAT_001c2e1c == 0)" ( (binary_expression "DAT_001c2e1c == 0" identifier == number_literal) )) (compound_statement "{\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }" { (expression_statement "uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);" (assignment_expression "uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: %s: can\'t open: %E\n",5)" identifier (argument_list "(0,"%F%P: %s: can\'t open: %E\n",5)" ( number_literal , (string_literal ""%F%P: %s: can\'t open: %E\n"" " string_content escape_sequence string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034dc0(uVar6,iVar5);" (call_expression "FUN_00034dc0(uVar6,iVar5)" identifier (argument_list "(uVar6,iVar5)" ( identifier , identifier ))) ;) })) (expression_statement "iVar4 = bfd_check_format(DAT_001c2e1c,1);" (assignment_expression "iVar4 = bfd_check_format(DAT_001c2e1c,1)" identifier = (call_expression "bfd_check_format(DAT_001c2e1c,1)" identifier (argument_list "(DAT_001c2e1c,1)" ( identifier , number_literal )))) ;) (expression_statement "iVar8 = DAT_001c4050;" (assignment_expression "iVar8 = DAT_001c4050" identifier = identifier) ;) (expression_statement "iVar5 = DAT_001c4614;" (assignment_expression "iVar5 = DAT_001c4614" identifier = identifier) ;) (if_statement "if (iVar4 == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }" { (expression_statement "uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);" (assignment_expression "uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5)" identifier (argument_list "(0,"%F%P: %s: not a relocatable file: %E\n",5)" ( number_literal , (string_literal ""%F%P: %s: not a relocatable file: %E\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034dc0(uVar6,iVar8);" (call_expression "FUN_00034dc0(uVar6,iVar8)" identifier (argument_list "(uVar6,iVar8)" ( identifier , identifier ))) ;) (expression_statement "iVar5 = DAT_001c4614;" (assignment_expression "iVar5 = DAT_001c4614" identifier = identifier) ;) })) })) (expression_statement "bfd_elf32_arm_set_target_params(iVar5,&DAT_001c45e0,&DAT_001c2de0);" (call_expression "bfd_elf32_arm_set_target_params(iVar5,&DAT_001c45e0,&DAT_001c2de0)" identifier (argument_list "(iVar5,&DAT_001c45e0,&DAT_001c2de0)" ( identifier , (pointer_expression "&DAT_001c45e0" & identifier) , (pointer_expression "&DAT_001c2de0" & identifier) ))) ;) (expression_statement "iVar5 = FUN_00023f40("linker stubs",3,0);" (assignment_expression "iVar5 = FUN_00023f40("linker stubs",3,0)" identifier = (call_expression "FUN_00023f40("linker stubs",3,0)" identifier (argument_list "("linker stubs",3,0)" ( (string_literal ""linker stubs"" " string_content ") , number_literal , number_literal )))) ;) (expression_statement "DAT_001c404c = iVar5;" (assignment_expression "DAT_001c404c = iVar5" identifier = identifier) ;) (expression_statement "uVar6 = bfd_create("linker stubs",DAT_001c4614);" (assignment_expression "uVar6 = bfd_create("linker stubs",DAT_001c4614)" identifier = (call_expression "bfd_create("linker stubs",DAT_001c4614)" identifier (argument_list "("linker stubs",DAT_001c4614)" ( (string_literal ""linker stubs"" " string_content ") , identifier )))) ;) (expression_statement "*(undefined4 *)(iVar5 + 0x10) = uVar6;" (assignment_expression "*(undefined4 *)(iVar5 + 0x10) = uVar6" (pointer_expression "*(undefined4 *)(iVar5 + 0x10)" * (cast_expression "(undefined4 *)(iVar5 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(int *)(DAT_001c404c + 0x10) != 0) {\n      pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);\n      uVar6 = bfd_get_mach(DAT_001c4614);\n      uVar7 = bfd_get_arch(DAT_001c4614);\n      iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);\n      iVar5 = DAT_001c404c;\n      if (iVar8 != 0) {\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }\n    }" if (parenthesized_expression "(*(int *)(DAT_001c404c + 0x10) != 0)" ( (binary_expression "*(int *)(DAT_001c404c + 0x10) != 0" (pointer_expression "*(int *)(DAT_001c404c + 0x10)" * (cast_expression "(int *)(DAT_001c404c + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c404c + 0x10)" ( (binary_expression "DAT_001c404c + 0x10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);\n      uVar6 = bfd_get_mach(DAT_001c4614);\n      uVar7 = bfd_get_arch(DAT_001c4614);\n      iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);\n      iVar5 = DAT_001c404c;\n      if (iVar8 != 0) {\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }\n    }" { (expression_statement "pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);" (assignment_expression "pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154)" identifier = (pointer_expression "*(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154)" * (cast_expression "(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154)" ( (binary_expression "*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154" (pointer_expression "*(int *)(*(int *)(DAT_001c404c + 0x10) + 4)" * (cast_expression "(int *)(*(int *)(DAT_001c404c + 0x10) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_001c404c + 0x10) + 4)" ( (binary_expression "*(int *)(DAT_001c404c + 0x10) + 4" (pointer_expression "*(int *)(DAT_001c404c + 0x10)" * (cast_expression "(int *)(DAT_001c404c + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c404c + 0x10)" ( (binary_expression "DAT_001c404c + 0x10" identifier + number_literal) )))) + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar6 = bfd_get_mach(DAT_001c4614);" (assignment_expression "uVar6 = bfd_get_mach(DAT_001c4614)" identifier = (call_expression "bfd_get_mach(DAT_001c4614)" identifier (argument_list "(DAT_001c4614)" ( identifier )))) ;) (expression_statement "uVar7 = bfd_get_arch(DAT_001c4614);" (assignment_expression "uVar7 = bfd_get_arch(DAT_001c4614)" identifier = (call_expression "bfd_get_arch(DAT_001c4614)" identifier (argument_list "(DAT_001c4614)" ( identifier )))) ;) (expression_statement "iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);" (assignment_expression "iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6)" identifier = (call_expression "(*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6)" (parenthesized_expression "(*pcVar2)" ( (pointer_expression "*pcVar2" * identifier) )) (argument_list "(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6)" ( (pointer_expression "*(undefined4 *)(DAT_001c404c + 0x10)" * (cast_expression "(undefined4 *)(DAT_001c404c + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c404c + 0x10)" ( (binary_expression "DAT_001c404c + 0x10" identifier + number_literal) )))) , identifier , identifier )))) ;) (expression_statement "iVar5 = DAT_001c404c;" (assignment_expression "iVar5 = DAT_001c404c" identifier = identifier) ;) (if_statement "if (iVar8 != 0) {\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }" { (expression_statement "puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);" (assignment_expression "puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28)" identifier = (cast_expression "(uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_001c404c + 0x10) + 0x28)" ( (binary_expression "*(int *)(DAT_001c404c + 0x10) + 0x28" (pointer_expression "*(int *)(DAT_001c404c + 0x10)" * (cast_expression "(int *)(DAT_001c404c + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c404c + 0x10)" ( (binary_expression "DAT_001c404c + 0x10" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "*puVar1 = *puVar1 | 0x20000;" (assignment_expression "*puVar1 = *puVar1 | 0x20000" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 | 0x20000" (pointer_expression "*puVar1" * identifier) | number_literal)) ;) (expression_statement "FUN_00027740(iVar5);" (call_expression "FUN_00027740(iVar5)" identifier (argument_list "(iVar5)" ( identifier ))) ;) (expression_statement "bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);" (call_expression "bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0)" identifier (argument_list "(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0)" ( (pointer_expression "*(undefined4 *)(DAT_001c404c + 0x10)" * (cast_expression "(undefined4 *)(DAT_001c404c + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c404c + 0x10)" ( (binary_expression "DAT_001c404c + 0x10" identifier + number_literal) )))) , (pointer_expression "&DAT_001c45e0" & identifier) ))) ;) (expression_statement "bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);" (call_expression "bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0)" identifier (argument_list "(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0)" ( (pointer_expression "*(undefined4 *)(DAT_001c404c + 0x10)" * (cast_expression "(undefined4 *)(DAT_001c404c + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c404c + 0x10)" ( (binary_expression "DAT_001c404c + 0x10" identifier + number_literal) )))) , (pointer_expression "&DAT_001c45e0" & identifier) ))) ;) (return_statement "return;" return ;) })) })) (expression_statement "uVar6 = dcgettext(0,"%F%P: can not create BFD: %E\n",5);" (assignment_expression "uVar6 = dcgettext(0,"%F%P: can not create BFD: %E\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: can not create BFD: %E\n",5)" identifier (argument_list "(0,"%F%P: can not create BFD: %E\n",5)" ( number_literal , (string_literal ""%F%P: can not create BFD: %E\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034dc0(uVar6);" (call_expression "FUN_00034dc0(uVar6)" identifier (argument_list "(uVar6)" ( identifier ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid arm_elf_create_output_section_statements(void)\n\n{\n  undefined1 *puVar1;\n  _func_bfd_boolean_bfd_ptr_bfd_architecture_ulong *p_Var2;\n  char *pcVar3;\n  int iVar4;\n  lang_input_statement_type *plVar5;\n  bfd *pbVar6;\n  ulong uVar7;\n  bfd_architecture bVar8;\n  bfd_boolean bVar9;\n  char *pcVar10;\n  \n  pbVar6 = link_info.output_bfd;\n  pcVar10 = (link_info.output_bfd)->xvec->name;\n  pcVar3 = strstr(pcVar10,"arm");\n  if (pcVar3 == (char *)0x0) {\n    pcVar10 = (char *)dcgettext(0,\n                                "%F%P: error: cannot change output format whilst linking %s binaries\n"\n                                ,5);\n    einfo(pcVar10,&DAT_000b07e2);\n  }\n  else {\n    if (in_implib_filename != (char *)0x0) {\n      params.in_implib_bfd = (bfd *)bfd_openr(in_implib_filename,pcVar10);\n      pcVar10 = in_implib_filename;\n      if (params.in_implib_bfd == (bfd *)0x0) {\n        pcVar3 = (char *)dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        einfo(pcVar3,pcVar10);\n      }\n      iVar4 = bfd_check_format(params.in_implib_bfd,1);\n      pcVar10 = in_implib_filename;\n      pbVar6 = link_info.output_bfd;\n      if (iVar4 == 0) {\n        pcVar3 = (char *)dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        einfo(pcVar3,pcVar10);\n        pbVar6 = link_info.output_bfd;\n      }\n    }\n    bfd_elf32_arm_set_target_params(pbVar6,&link_info,&params);\n    plVar5 = lang_add_input_file("linker stubs",lang_input_file_is_fake_enum,(char *)0x0);\n    stub_file = plVar5;\n    pbVar6 = (bfd *)bfd_create("linker stubs",link_info.output_bfd);\n    plVar5->the_bfd = pbVar6;\n    if (stub_file->the_bfd != (bfd *)0x0) {\n      p_Var2 = stub_file->the_bfd->xvec->_bfd_set_arch_mach;\n      uVar7 = bfd_get_mach(link_info.output_bfd);\n      bVar8 = bfd_get_arch(link_info.output_bfd);\n      bVar9 = (*p_Var2)(stub_file->the_bfd,bVar8,uVar7);\n      plVar5 = stub_file;\n      if (bVar9 != 0) {\n        puVar1 = &stub_file->the_bfd->field_0x28;\n        *(uint *)puVar1 = *(uint *)puVar1 | 0x20000;\n        ldlang_add_file(plVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(stub_file->the_bfd,&link_info);\n        bfd_elf32_arm_get_bfd_for_interworking(stub_file->the_bfd,&link_info);\n        return;\n      }\n    }\n    pcVar10 = (char *)dcgettext(0,"%F%P: can not create BFD: %E\n",5);\n    einfo(pcVar10);\n  }\n  return;\n}\n\n" comment comment (function_definition "void arm_elf_create_output_section_statements(void)\n\n{\n  undefined1 *puVar1;\n  _func_bfd_boolean_bfd_ptr_bfd_architecture_ulong *p_Var2;\n  char *pcVar3;\n  int iVar4;\n  lang_input_statement_type *plVar5;\n  bfd *pbVar6;\n  ulong uVar7;\n  bfd_architecture bVar8;\n  bfd_boolean bVar9;\n  char *pcVar10;\n  \n  pbVar6 = link_info.output_bfd;\n  pcVar10 = (link_info.output_bfd)->xvec->name;\n  pcVar3 = strstr(pcVar10,"arm");\n  if (pcVar3 == (char *)0x0) {\n    pcVar10 = (char *)dcgettext(0,\n                                "%F%P: error: cannot change output format whilst linking %s binaries\n"\n                                ,5);\n    einfo(pcVar10,&DAT_000b07e2);\n  }\n  else {\n    if (in_implib_filename != (char *)0x0) {\n      params.in_implib_bfd = (bfd *)bfd_openr(in_implib_filename,pcVar10);\n      pcVar10 = in_implib_filename;\n      if (params.in_implib_bfd == (bfd *)0x0) {\n        pcVar3 = (char *)dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        einfo(pcVar3,pcVar10);\n      }\n      iVar4 = bfd_check_format(params.in_implib_bfd,1);\n      pcVar10 = in_implib_filename;\n      pbVar6 = link_info.output_bfd;\n      if (iVar4 == 0) {\n        pcVar3 = (char *)dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        einfo(pcVar3,pcVar10);\n        pbVar6 = link_info.output_bfd;\n      }\n    }\n    bfd_elf32_arm_set_target_params(pbVar6,&link_info,&params);\n    plVar5 = lang_add_input_file("linker stubs",lang_input_file_is_fake_enum,(char *)0x0);\n    stub_file = plVar5;\n    pbVar6 = (bfd *)bfd_create("linker stubs",link_info.output_bfd);\n    plVar5->the_bfd = pbVar6;\n    if (stub_file->the_bfd != (bfd *)0x0) {\n      p_Var2 = stub_file->the_bfd->xvec->_bfd_set_arch_mach;\n      uVar7 = bfd_get_mach(link_info.output_bfd);\n      bVar8 = bfd_get_arch(link_info.output_bfd);\n      bVar9 = (*p_Var2)(stub_file->the_bfd,bVar8,uVar7);\n      plVar5 = stub_file;\n      if (bVar9 != 0) {\n        puVar1 = &stub_file->the_bfd->field_0x28;\n        *(uint *)puVar1 = *(uint *)puVar1 | 0x20000;\n        ldlang_add_file(plVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(stub_file->the_bfd,&link_info);\n        bfd_elf32_arm_get_bfd_for_interworking(stub_file->the_bfd,&link_info);\n        return;\n      }\n    }\n    pcVar10 = (char *)dcgettext(0,"%F%P: can not create BFD: %E\n",5);\n    einfo(pcVar10);\n  }\n  return;\n}" primitive_type (function_declarator "arm_elf_create_output_section_statements(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined1 *puVar1;\n  _func_bfd_boolean_bfd_ptr_bfd_architecture_ulong *p_Var2;\n  char *pcVar3;\n  int iVar4;\n  lang_input_statement_type *plVar5;\n  bfd *pbVar6;\n  ulong uVar7;\n  bfd_architecture bVar8;\n  bfd_boolean bVar9;\n  char *pcVar10;\n  \n  pbVar6 = link_info.output_bfd;\n  pcVar10 = (link_info.output_bfd)->xvec->name;\n  pcVar3 = strstr(pcVar10,"arm");\n  if (pcVar3 == (char *)0x0) {\n    pcVar10 = (char *)dcgettext(0,\n                                "%F%P: error: cannot change output format whilst linking %s binaries\n"\n                                ,5);\n    einfo(pcVar10,&DAT_000b07e2);\n  }\n  else {\n    if (in_implib_filename != (char *)0x0) {\n      params.in_implib_bfd = (bfd *)bfd_openr(in_implib_filename,pcVar10);\n      pcVar10 = in_implib_filename;\n      if (params.in_implib_bfd == (bfd *)0x0) {\n        pcVar3 = (char *)dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        einfo(pcVar3,pcVar10);\n      }\n      iVar4 = bfd_check_format(params.in_implib_bfd,1);\n      pcVar10 = in_implib_filename;\n      pbVar6 = link_info.output_bfd;\n      if (iVar4 == 0) {\n        pcVar3 = (char *)dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        einfo(pcVar3,pcVar10);\n        pbVar6 = link_info.output_bfd;\n      }\n    }\n    bfd_elf32_arm_set_target_params(pbVar6,&link_info,&params);\n    plVar5 = lang_add_input_file("linker stubs",lang_input_file_is_fake_enum,(char *)0x0);\n    stub_file = plVar5;\n    pbVar6 = (bfd *)bfd_create("linker stubs",link_info.output_bfd);\n    plVar5->the_bfd = pbVar6;\n    if (stub_file->the_bfd != (bfd *)0x0) {\n      p_Var2 = stub_file->the_bfd->xvec->_bfd_set_arch_mach;\n      uVar7 = bfd_get_mach(link_info.output_bfd);\n      bVar8 = bfd_get_arch(link_info.output_bfd);\n      bVar9 = (*p_Var2)(stub_file->the_bfd,bVar8,uVar7);\n      plVar5 = stub_file;\n      if (bVar9 != 0) {\n        puVar1 = &stub_file->the_bfd->field_0x28;\n        *(uint *)puVar1 = *(uint *)puVar1 | 0x20000;\n        ldlang_add_file(plVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(stub_file->the_bfd,&link_info);\n        bfd_elf32_arm_get_bfd_for_interworking(stub_file->the_bfd,&link_info);\n        return;\n      }\n    }\n    pcVar10 = (char *)dcgettext(0,"%F%P: can not create BFD: %E\n",5);\n    einfo(pcVar10);\n  }\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "_func_bfd_boolean_bfd_ptr_bfd_architecture_ulong *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "lang_input_statement_type *plVar5;" type_identifier (pointer_declarator "*plVar5" * identifier) ;) (declaration "bfd *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "ulong uVar7;" type_identifier identifier ;) (declaration "bfd_architecture bVar8;" type_identifier identifier ;) (declaration "bfd_boolean bVar9;" type_identifier identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (expression_statement "pbVar6 = link_info.output_bfd;" (assignment_expression "pbVar6 = link_info.output_bfd" identifier = (field_expression "link_info.output_bfd" identifier . field_identifier)) ;) (expression_statement "pcVar10 = (link_info.output_bfd)->xvec->name;" (assignment_expression "pcVar10 = (link_info.output_bfd)->xvec->name" identifier = (field_expression "(link_info.output_bfd)->xvec->name" (field_expression "(link_info.output_bfd)->xvec" (parenthesized_expression "(link_info.output_bfd)" ( (field_expression "link_info.output_bfd" identifier . field_identifier) )) -> field_identifier) -> field_identifier)) ;) (expression_statement "pcVar3 = strstr(pcVar10,"arm");" (assignment_expression "pcVar3 = strstr(pcVar10,"arm")" identifier = (call_expression "strstr(pcVar10,"arm")" identifier (argument_list "(pcVar10,"arm")" ( identifier , (string_literal ""arm"" " string_content ") )))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n    pcVar10 = (char *)dcgettext(0,\n                                "%F%P: error: cannot change output format whilst linking %s binaries\n"\n                                ,5);\n    einfo(pcVar10,&DAT_000b07e2);\n  }\n  else {\n    if (in_implib_filename != (char *)0x0) {\n      params.in_implib_bfd = (bfd *)bfd_openr(in_implib_filename,pcVar10);\n      pcVar10 = in_implib_filename;\n      if (params.in_implib_bfd == (bfd *)0x0) {\n        pcVar3 = (char *)dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        einfo(pcVar3,pcVar10);\n      }\n      iVar4 = bfd_check_format(params.in_implib_bfd,1);\n      pcVar10 = in_implib_filename;\n      pbVar6 = link_info.output_bfd;\n      if (iVar4 == 0) {\n        pcVar3 = (char *)dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        einfo(pcVar3,pcVar10);\n        pbVar6 = link_info.output_bfd;\n      }\n    }\n    bfd_elf32_arm_set_target_params(pbVar6,&link_info,&params);\n    plVar5 = lang_add_input_file("linker stubs",lang_input_file_is_fake_enum,(char *)0x0);\n    stub_file = plVar5;\n    pbVar6 = (bfd *)bfd_create("linker stubs",link_info.output_bfd);\n    plVar5->the_bfd = pbVar6;\n    if (stub_file->the_bfd != (bfd *)0x0) {\n      p_Var2 = stub_file->the_bfd->xvec->_bfd_set_arch_mach;\n      uVar7 = bfd_get_mach(link_info.output_bfd);\n      bVar8 = bfd_get_arch(link_info.output_bfd);\n      bVar9 = (*p_Var2)(stub_file->the_bfd,bVar8,uVar7);\n      plVar5 = stub_file;\n      if (bVar9 != 0) {\n        puVar1 = &stub_file->the_bfd->field_0x28;\n        *(uint *)puVar1 = *(uint *)puVar1 | 0x20000;\n        ldlang_add_file(plVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(stub_file->the_bfd,&link_info);\n        bfd_elf32_arm_get_bfd_for_interworking(stub_file->the_bfd,&link_info);\n        return;\n      }\n    }\n    pcVar10 = (char *)dcgettext(0,"%F%P: can not create BFD: %E\n",5);\n    einfo(pcVar10);\n  }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar10 = (char *)dcgettext(0,\n                                "%F%P: error: cannot change output format whilst linking %s binaries\n"\n                                ,5);\n    einfo(pcVar10,&DAT_000b07e2);\n  }" { (expression_statement "pcVar10 = (char *)dcgettext(0,\n                                "%F%P: error: cannot change output format whilst linking %s binaries\n"\n                                ,5);" (assignment_expression "pcVar10 = (char *)dcgettext(0,\n                                "%F%P: error: cannot change output format whilst linking %s binaries\n"\n                                ,5)" identifier = (cast_expression "(char *)dcgettext(0,\n                                "%F%P: error: cannot change output format whilst linking %s binaries\n"\n                                ,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,\n                                "%F%P: error: cannot change output format whilst linking %s binaries\n"\n                                ,5)" identifier (argument_list "(0,\n                                "%F%P: error: cannot change output format whilst linking %s binaries\n"\n                                ,5)" ( number_literal , (string_literal ""%F%P: error: cannot change output format whilst linking %s binaries\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "einfo(pcVar10,&DAT_000b07e2);" (call_expression "einfo(pcVar10,&DAT_000b07e2)" identifier (argument_list "(pcVar10,&DAT_000b07e2)" ( identifier , (pointer_expression "&DAT_000b07e2" & identifier) ))) ;) }) (else_clause "else {\n    if (in_implib_filename != (char *)0x0) {\n      params.in_implib_bfd = (bfd *)bfd_openr(in_implib_filename,pcVar10);\n      pcVar10 = in_implib_filename;\n      if (params.in_implib_bfd == (bfd *)0x0) {\n        pcVar3 = (char *)dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        einfo(pcVar3,pcVar10);\n      }\n      iVar4 = bfd_check_format(params.in_implib_bfd,1);\n      pcVar10 = in_implib_filename;\n      pbVar6 = link_info.output_bfd;\n      if (iVar4 == 0) {\n        pcVar3 = (char *)dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        einfo(pcVar3,pcVar10);\n        pbVar6 = link_info.output_bfd;\n      }\n    }\n    bfd_elf32_arm_set_target_params(pbVar6,&link_info,&params);\n    plVar5 = lang_add_input_file("linker stubs",lang_input_file_is_fake_enum,(char *)0x0);\n    stub_file = plVar5;\n    pbVar6 = (bfd *)bfd_create("linker stubs",link_info.output_bfd);\n    plVar5->the_bfd = pbVar6;\n    if (stub_file->the_bfd != (bfd *)0x0) {\n      p_Var2 = stub_file->the_bfd->xvec->_bfd_set_arch_mach;\n      uVar7 = bfd_get_mach(link_info.output_bfd);\n      bVar8 = bfd_get_arch(link_info.output_bfd);\n      bVar9 = (*p_Var2)(stub_file->the_bfd,bVar8,uVar7);\n      plVar5 = stub_file;\n      if (bVar9 != 0) {\n        puVar1 = &stub_file->the_bfd->field_0x28;\n        *(uint *)puVar1 = *(uint *)puVar1 | 0x20000;\n        ldlang_add_file(plVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(stub_file->the_bfd,&link_info);\n        bfd_elf32_arm_get_bfd_for_interworking(stub_file->the_bfd,&link_info);\n        return;\n      }\n    }\n    pcVar10 = (char *)dcgettext(0,"%F%P: can not create BFD: %E\n",5);\n    einfo(pcVar10);\n  }" else (compound_statement "{\n    if (in_implib_filename != (char *)0x0) {\n      params.in_implib_bfd = (bfd *)bfd_openr(in_implib_filename,pcVar10);\n      pcVar10 = in_implib_filename;\n      if (params.in_implib_bfd == (bfd *)0x0) {\n        pcVar3 = (char *)dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        einfo(pcVar3,pcVar10);\n      }\n      iVar4 = bfd_check_format(params.in_implib_bfd,1);\n      pcVar10 = in_implib_filename;\n      pbVar6 = link_info.output_bfd;\n      if (iVar4 == 0) {\n        pcVar3 = (char *)dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        einfo(pcVar3,pcVar10);\n        pbVar6 = link_info.output_bfd;\n      }\n    }\n    bfd_elf32_arm_set_target_params(pbVar6,&link_info,&params);\n    plVar5 = lang_add_input_file("linker stubs",lang_input_file_is_fake_enum,(char *)0x0);\n    stub_file = plVar5;\n    pbVar6 = (bfd *)bfd_create("linker stubs",link_info.output_bfd);\n    plVar5->the_bfd = pbVar6;\n    if (stub_file->the_bfd != (bfd *)0x0) {\n      p_Var2 = stub_file->the_bfd->xvec->_bfd_set_arch_mach;\n      uVar7 = bfd_get_mach(link_info.output_bfd);\n      bVar8 = bfd_get_arch(link_info.output_bfd);\n      bVar9 = (*p_Var2)(stub_file->the_bfd,bVar8,uVar7);\n      plVar5 = stub_file;\n      if (bVar9 != 0) {\n        puVar1 = &stub_file->the_bfd->field_0x28;\n        *(uint *)puVar1 = *(uint *)puVar1 | 0x20000;\n        ldlang_add_file(plVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(stub_file->the_bfd,&link_info);\n        bfd_elf32_arm_get_bfd_for_interworking(stub_file->the_bfd,&link_info);\n        return;\n      }\n    }\n    pcVar10 = (char *)dcgettext(0,"%F%P: can not create BFD: %E\n",5);\n    einfo(pcVar10);\n  }" { (if_statement "if (in_implib_filename != (char *)0x0) {\n      params.in_implib_bfd = (bfd *)bfd_openr(in_implib_filename,pcVar10);\n      pcVar10 = in_implib_filename;\n      if (params.in_implib_bfd == (bfd *)0x0) {\n        pcVar3 = (char *)dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        einfo(pcVar3,pcVar10);\n      }\n      iVar4 = bfd_check_format(params.in_implib_bfd,1);\n      pcVar10 = in_implib_filename;\n      pbVar6 = link_info.output_bfd;\n      if (iVar4 == 0) {\n        pcVar3 = (char *)dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        einfo(pcVar3,pcVar10);\n        pbVar6 = link_info.output_bfd;\n      }\n    }" if (parenthesized_expression "(in_implib_filename != (char *)0x0)" ( (binary_expression "in_implib_filename != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      params.in_implib_bfd = (bfd *)bfd_openr(in_implib_filename,pcVar10);\n      pcVar10 = in_implib_filename;\n      if (params.in_implib_bfd == (bfd *)0x0) {\n        pcVar3 = (char *)dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        einfo(pcVar3,pcVar10);\n      }\n      iVar4 = bfd_check_format(params.in_implib_bfd,1);\n      pcVar10 = in_implib_filename;\n      pbVar6 = link_info.output_bfd;\n      if (iVar4 == 0) {\n        pcVar3 = (char *)dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        einfo(pcVar3,pcVar10);\n        pbVar6 = link_info.output_bfd;\n      }\n    }" { (expression_statement "params.in_implib_bfd = (bfd *)bfd_openr(in_implib_filename,pcVar10);" (assignment_expression "params.in_implib_bfd = (bfd *)bfd_openr(in_implib_filename,pcVar10)" (field_expression "params.in_implib_bfd" identifier . field_identifier) = (cast_expression "(bfd *)bfd_openr(in_implib_filename,pcVar10)" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_openr(in_implib_filename,pcVar10)" identifier (argument_list "(in_implib_filename,pcVar10)" ( identifier , identifier ))))) ;) (expression_statement "pcVar10 = in_implib_filename;" (assignment_expression "pcVar10 = in_implib_filename" identifier = identifier) ;) (if_statement "if (params.in_implib_bfd == (bfd *)0x0) {\n        pcVar3 = (char *)dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        einfo(pcVar3,pcVar10);\n      }" if (parenthesized_expression "(params.in_implib_bfd == (bfd *)0x0)" ( (binary_expression "params.in_implib_bfd == (bfd *)0x0" (field_expression "params.in_implib_bfd" identifier . field_identifier) == (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pcVar3 = (char *)dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        einfo(pcVar3,pcVar10);\n      }" { (expression_statement "pcVar3 = (char *)dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);" (assignment_expression "pcVar3 = (char *)dcgettext(0,"%F%P: %s: can\'t open: %E\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%F%P: %s: can\'t open: %E\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%F%P: %s: can\'t open: %E\n",5)" identifier (argument_list "(0,"%F%P: %s: can\'t open: %E\n",5)" ( number_literal , (string_literal ""%F%P: %s: can\'t open: %E\n"" " string_content escape_sequence string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "einfo(pcVar3,pcVar10);" (call_expression "einfo(pcVar3,pcVar10)" identifier (argument_list "(pcVar3,pcVar10)" ( identifier , identifier ))) ;) })) (expression_statement "iVar4 = bfd_check_format(params.in_implib_bfd,1);" (assignment_expression "iVar4 = bfd_check_format(params.in_implib_bfd,1)" identifier = (call_expression "bfd_check_format(params.in_implib_bfd,1)" identifier (argument_list "(params.in_implib_bfd,1)" ( (field_expression "params.in_implib_bfd" identifier . field_identifier) , number_literal )))) ;) (expression_statement "pcVar10 = in_implib_filename;" (assignment_expression "pcVar10 = in_implib_filename" identifier = identifier) ;) (expression_statement "pbVar6 = link_info.output_bfd;" (assignment_expression "pbVar6 = link_info.output_bfd" identifier = (field_expression "link_info.output_bfd" identifier . field_identifier)) ;) (if_statement "if (iVar4 == 0) {\n        pcVar3 = (char *)dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        einfo(pcVar3,pcVar10);\n        pbVar6 = link_info.output_bfd;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        pcVar3 = (char *)dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        einfo(pcVar3,pcVar10);\n        pbVar6 = link_info.output_bfd;\n      }" { (expression_statement "pcVar3 = (char *)dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);" (assignment_expression "pcVar3 = (char *)dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5)" identifier (argument_list "(0,"%F%P: %s: not a relocatable file: %E\n",5)" ( number_literal , (string_literal ""%F%P: %s: not a relocatable file: %E\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "einfo(pcVar3,pcVar10);" (call_expression "einfo(pcVar3,pcVar10)" identifier (argument_list "(pcVar3,pcVar10)" ( identifier , identifier ))) ;) (expression_statement "pbVar6 = link_info.output_bfd;" (assignment_expression "pbVar6 = link_info.output_bfd" identifier = (field_expression "link_info.output_bfd" identifier . field_identifier)) ;) })) })) (expression_statement "bfd_elf32_arm_set_target_params(pbVar6,&link_info,&params);" (call_expression "bfd_elf32_arm_set_target_params(pbVar6,&link_info,&params)" identifier (argument_list "(pbVar6,&link_info,&params)" ( identifier , (pointer_expression "&link_info" & identifier) , (pointer_expression "&params" & identifier) ))) ;) (expression_statement "plVar5 = lang_add_input_file("linker stubs",lang_input_file_is_fake_enum,(char *)0x0);" (assignment_expression "plVar5 = lang_add_input_file("linker stubs",lang_input_file_is_fake_enum,(char *)0x0)" identifier = (call_expression "lang_add_input_file("linker stubs",lang_input_file_is_fake_enum,(char *)0x0)" identifier (argument_list "("linker stubs",lang_input_file_is_fake_enum,(char *)0x0)" ( (string_literal ""linker stubs"" " string_content ") , identifier , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "stub_file = plVar5;" (assignment_expression "stub_file = plVar5" identifier = identifier) ;) (expression_statement "pbVar6 = (bfd *)bfd_create("linker stubs",link_info.output_bfd);" (assignment_expression "pbVar6 = (bfd *)bfd_create("linker stubs",link_info.output_bfd)" identifier = (cast_expression "(bfd *)bfd_create("linker stubs",link_info.output_bfd)" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_create("linker stubs",link_info.output_bfd)" identifier (argument_list "("linker stubs",link_info.output_bfd)" ( (string_literal ""linker stubs"" " string_content ") , (field_expression "link_info.output_bfd" identifier . field_identifier) ))))) ;) (expression_statement "plVar5->the_bfd = pbVar6;" (assignment_expression "plVar5->the_bfd = pbVar6" (field_expression "plVar5->the_bfd" identifier -> field_identifier) = identifier) ;) (if_statement "if (stub_file->the_bfd != (bfd *)0x0) {\n      p_Var2 = stub_file->the_bfd->xvec->_bfd_set_arch_mach;\n      uVar7 = bfd_get_mach(link_info.output_bfd);\n      bVar8 = bfd_get_arch(link_info.output_bfd);\n      bVar9 = (*p_Var2)(stub_file->the_bfd,bVar8,uVar7);\n      plVar5 = stub_file;\n      if (bVar9 != 0) {\n        puVar1 = &stub_file->the_bfd->field_0x28;\n        *(uint *)puVar1 = *(uint *)puVar1 | 0x20000;\n        ldlang_add_file(plVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(stub_file->the_bfd,&link_info);\n        bfd_elf32_arm_get_bfd_for_interworking(stub_file->the_bfd,&link_info);\n        return;\n      }\n    }" if (parenthesized_expression "(stub_file->the_bfd != (bfd *)0x0)" ( (binary_expression "stub_file->the_bfd != (bfd *)0x0" (field_expression "stub_file->the_bfd" identifier -> field_identifier) != (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      p_Var2 = stub_file->the_bfd->xvec->_bfd_set_arch_mach;\n      uVar7 = bfd_get_mach(link_info.output_bfd);\n      bVar8 = bfd_get_arch(link_info.output_bfd);\n      bVar9 = (*p_Var2)(stub_file->the_bfd,bVar8,uVar7);\n      plVar5 = stub_file;\n      if (bVar9 != 0) {\n        puVar1 = &stub_file->the_bfd->field_0x28;\n        *(uint *)puVar1 = *(uint *)puVar1 | 0x20000;\n        ldlang_add_file(plVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(stub_file->the_bfd,&link_info);\n        bfd_elf32_arm_get_bfd_for_interworking(stub_file->the_bfd,&link_info);\n        return;\n      }\n    }" { (expression_statement "p_Var2 = stub_file->the_bfd->xvec->_bfd_set_arch_mach;" (assignment_expression "p_Var2 = stub_file->the_bfd->xvec->_bfd_set_arch_mach" identifier = (field_expression "stub_file->the_bfd->xvec->_bfd_set_arch_mach" (field_expression "stub_file->the_bfd->xvec" (field_expression "stub_file->the_bfd" identifier -> field_identifier) -> field_identifier) -> field_identifier)) ;) (expression_statement "uVar7 = bfd_get_mach(link_info.output_bfd);" (assignment_expression "uVar7 = bfd_get_mach(link_info.output_bfd)" identifier = (call_expression "bfd_get_mach(link_info.output_bfd)" identifier (argument_list "(link_info.output_bfd)" ( (field_expression "link_info.output_bfd" identifier . field_identifier) )))) ;) (expression_statement "bVar8 = bfd_get_arch(link_info.output_bfd);" (assignment_expression "bVar8 = bfd_get_arch(link_info.output_bfd)" identifier = (call_expression "bfd_get_arch(link_info.output_bfd)" identifier (argument_list "(link_info.output_bfd)" ( (field_expression "link_info.output_bfd" identifier . field_identifier) )))) ;) (expression_statement "bVar9 = (*p_Var2)(stub_file->the_bfd,bVar8,uVar7);" (assignment_expression "bVar9 = (*p_Var2)(stub_file->the_bfd,bVar8,uVar7)" identifier = (call_expression "(*p_Var2)(stub_file->the_bfd,bVar8,uVar7)" (parenthesized_expression "(*p_Var2)" ( (pointer_expression "*p_Var2" * identifier) )) (argument_list "(stub_file->the_bfd,bVar8,uVar7)" ( (field_expression "stub_file->the_bfd" identifier -> field_identifier) , identifier , identifier )))) ;) (expression_statement "plVar5 = stub_file;" (assignment_expression "plVar5 = stub_file" identifier = identifier) ;) (if_statement "if (bVar9 != 0) {\n        puVar1 = &stub_file->the_bfd->field_0x28;\n        *(uint *)puVar1 = *(uint *)puVar1 | 0x20000;\n        ldlang_add_file(plVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(stub_file->the_bfd,&link_info);\n        bfd_elf32_arm_get_bfd_for_interworking(stub_file->the_bfd,&link_info);\n        return;\n      }" if (parenthesized_expression "(bVar9 != 0)" ( (binary_expression "bVar9 != 0" identifier != number_literal) )) (compound_statement "{\n        puVar1 = &stub_file->the_bfd->field_0x28;\n        *(uint *)puVar1 = *(uint *)puVar1 | 0x20000;\n        ldlang_add_file(plVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(stub_file->the_bfd,&link_info);\n        bfd_elf32_arm_get_bfd_for_interworking(stub_file->the_bfd,&link_info);\n        return;\n      }" { (expression_statement "puVar1 = &stub_file->the_bfd->field_0x28;" (assignment_expression "puVar1 = &stub_file->the_bfd->field_0x28" identifier = (pointer_expression "&stub_file->the_bfd->field_0x28" & (field_expression "stub_file->the_bfd->field_0x28" (field_expression "stub_file->the_bfd" identifier -> field_identifier) -> field_identifier))) ;) (expression_statement "*(uint *)puVar1 = *(uint *)puVar1 | 0x20000;" (assignment_expression "*(uint *)puVar1 = *(uint *)puVar1 | 0x20000" (pointer_expression "*(uint *)puVar1" * (cast_expression "(uint *)puVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "*(uint *)puVar1 | 0x20000" (pointer_expression "*(uint *)puVar1" * (cast_expression "(uint *)puVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) | number_literal)) ;) (expression_statement "ldlang_add_file(plVar5);" (call_expression "ldlang_add_file(plVar5)" identifier (argument_list "(plVar5)" ( identifier ))) ;) (expression_statement "bfd_elf32_arm_add_glue_sections_to_bfd(stub_file->the_bfd,&link_info);" (call_expression "bfd_elf32_arm_add_glue_sections_to_bfd(stub_file->the_bfd,&link_info)" identifier (argument_list "(stub_file->the_bfd,&link_info)" ( (field_expression "stub_file->the_bfd" identifier -> field_identifier) , (pointer_expression "&link_info" & identifier) ))) ;) (expression_statement "bfd_elf32_arm_get_bfd_for_interworking(stub_file->the_bfd,&link_info);" (call_expression "bfd_elf32_arm_get_bfd_for_interworking(stub_file->the_bfd,&link_info)" identifier (argument_list "(stub_file->the_bfd,&link_info)" ( (field_expression "stub_file->the_bfd" identifier -> field_identifier) , (pointer_expression "&link_info" & identifier) ))) ;) (return_statement "return;" return ;) })) })) (expression_statement "pcVar10 = (char *)dcgettext(0,"%F%P: can not create BFD: %E\n",5);" (assignment_expression "pcVar10 = (char *)dcgettext(0,"%F%P: can not create BFD: %E\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%F%P: can not create BFD: %E\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%F%P: can not create BFD: %E\n",5)" identifier (argument_list "(0,"%F%P: can not create BFD: %E\n",5)" ( number_literal , (string_literal ""%F%P: can not create BFD: %E\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "einfo(pcVar10);" (call_expression "einfo(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00052770(void)\n\n{\n  uint *puVar1;\n  char *__haystack;\n  code *pcVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int iVar8;\n  \n  iVar5 = DAT_001c4614;\n  __haystack = (char *)**(undefined4 **)(DAT_001c4614 + 4);\n  pcVar3 = strstr(__haystack,"arm");\n  if (pcVar3 == (char *)0x0) {\n    uVar6 = dcgettext(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5);\n    FUN_00034dc0(uVar6,&DAT_000b07e2);\n  }\n  else {\n    if (DAT_001c4050 != 0) {\n      DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);\n      iVar5 = DAT_001c4050;\n      if (DAT_001c2e1c == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }\n      iVar4 = bfd_check_format(DAT_001c2e1c,1);\n      iVar8 = DAT_001c4050;\n      iVar5 = DAT_001c4614;\n      if (iVar4 == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }\n    }\n    bfd_elf32_arm_set_target_params(iVar5,&DAT_001c45e0,&DAT_001c2de0);\n    iVar5 = FUN_00023f40("linker stubs",3,0);\n    DAT_001c404c = iVar5;\n    uVar6 = bfd_create("linker stubs",DAT_001c4614);\n    *(undefined4 *)(iVar5 + 0x10) = uVar6;\n    if (*(int *)(DAT_001c404c + 0x10) != 0) {\n      pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);\n      uVar6 = bfd_get_mach(DAT_001c4614);\n      uVar7 = bfd_get_arch(DAT_001c4614);\n      iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);\n      iVar5 = DAT_001c404c;\n      if (iVar8 != 0) {\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }\n    }\n    uVar6 = dcgettext(0,"%F%P: can not create BFD: %E\n",5);\n    FUN_00034dc0(uVar6);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00052770(void)\n\n{\n  uint *puVar1;\n  char *__haystack;\n  code *pcVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int iVar8;\n  \n  iVar5 = DAT_001c4614;\n  __haystack = (char *)**(undefined4 **)(DAT_001c4614 + 4);\n  pcVar3 = strstr(__haystack,"arm");\n  if (pcVar3 == (char *)0x0) {\n    uVar6 = dcgettext(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5);\n    FUN_00034dc0(uVar6,&DAT_000b07e2);\n  }\n  else {\n    if (DAT_001c4050 != 0) {\n      DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);\n      iVar5 = DAT_001c4050;\n      if (DAT_001c2e1c == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }\n      iVar4 = bfd_check_format(DAT_001c2e1c,1);\n      iVar8 = DAT_001c4050;\n      iVar5 = DAT_001c4614;\n      if (iVar4 == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }\n    }\n    bfd_elf32_arm_set_target_params(iVar5,&DAT_001c45e0,&DAT_001c2de0);\n    iVar5 = FUN_00023f40("linker stubs",3,0);\n    DAT_001c404c = iVar5;\n    uVar6 = bfd_create("linker stubs",DAT_001c4614);\n    *(undefined4 *)(iVar5 + 0x10) = uVar6;\n    if (*(int *)(DAT_001c404c + 0x10) != 0) {\n      pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);\n      uVar6 = bfd_get_mach(DAT_001c4614);\n      uVar7 = bfd_get_arch(DAT_001c4614);\n      iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);\n      iVar5 = DAT_001c404c;\n      if (iVar8 != 0) {\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }\n    }\n    uVar6 = dcgettext(0,"%F%P: can not create BFD: %E\n",5);\n    FUN_00034dc0(uVar6);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00052770(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  uint *puVar1;\n  char *__haystack;\n  code *pcVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int iVar8;\n  \n  iVar5 = DAT_001c4614;\n  __haystack = (char *)**(undefined4 **)(DAT_001c4614 + 4);\n  pcVar3 = strstr(__haystack,"arm");\n  if (pcVar3 == (char *)0x0) {\n    uVar6 = dcgettext(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5);\n    FUN_00034dc0(uVar6,&DAT_000b07e2);\n  }\n  else {\n    if (DAT_001c4050 != 0) {\n      DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);\n      iVar5 = DAT_001c4050;\n      if (DAT_001c2e1c == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }\n      iVar4 = bfd_check_format(DAT_001c2e1c,1);\n      iVar8 = DAT_001c4050;\n      iVar5 = DAT_001c4614;\n      if (iVar4 == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }\n    }\n    bfd_elf32_arm_set_target_params(iVar5,&DAT_001c45e0,&DAT_001c2de0);\n    iVar5 = FUN_00023f40("linker stubs",3,0);\n    DAT_001c404c = iVar5;\n    uVar6 = bfd_create("linker stubs",DAT_001c4614);\n    *(undefined4 *)(iVar5 + 0x10) = uVar6;\n    if (*(int *)(DAT_001c404c + 0x10) != 0) {\n      pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);\n      uVar6 = bfd_get_mach(DAT_001c4614);\n      uVar7 = bfd_get_arch(DAT_001c4614);\n      iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);\n      iVar5 = DAT_001c404c;\n      if (iVar8 != 0) {\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }\n    }\n    uVar6 = dcgettext(0,"%F%P: can not create BFD: %E\n",5);\n    FUN_00034dc0(uVar6);\n  }\n  return;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *__haystack;" primitive_type (pointer_declarator "*__haystack" * identifier) ;) (declaration "code *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (expression_statement "iVar5 = DAT_001c4614;" (assignment_expression "iVar5 = DAT_001c4614" identifier = identifier) ;) (expression_statement "__haystack = (char *)**(undefined4 **)(DAT_001c4614 + 4);" (assignment_expression "__haystack = (char *)**(undefined4 **)(DAT_001c4614 + 4)" identifier = (cast_expression "(char *)**(undefined4 **)(DAT_001c4614 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(DAT_001c4614 + 4)" * (pointer_expression "*(undefined4 **)(DAT_001c4614 + 4)" * (cast_expression "(undefined4 **)(DAT_001c4614 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_001c4614 + 4)" ( (binary_expression "DAT_001c4614 + 4" identifier + number_literal) ))))))) ;) (expression_statement "pcVar3 = strstr(__haystack,"arm");" (assignment_expression "pcVar3 = strstr(__haystack,"arm")" identifier = (call_expression "strstr(__haystack,"arm")" identifier (argument_list "(__haystack,"arm")" ( identifier , (string_literal ""arm"" " string_content ") )))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n    uVar6 = dcgettext(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5);\n    FUN_00034dc0(uVar6,&DAT_000b07e2);\n  }\n  else {\n    if (DAT_001c4050 != 0) {\n      DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);\n      iVar5 = DAT_001c4050;\n      if (DAT_001c2e1c == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }\n      iVar4 = bfd_check_format(DAT_001c2e1c,1);\n      iVar8 = DAT_001c4050;\n      iVar5 = DAT_001c4614;\n      if (iVar4 == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }\n    }\n    bfd_elf32_arm_set_target_params(iVar5,&DAT_001c45e0,&DAT_001c2de0);\n    iVar5 = FUN_00023f40("linker stubs",3,0);\n    DAT_001c404c = iVar5;\n    uVar6 = bfd_create("linker stubs",DAT_001c4614);\n    *(undefined4 *)(iVar5 + 0x10) = uVar6;\n    if (*(int *)(DAT_001c404c + 0x10) != 0) {\n      pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);\n      uVar6 = bfd_get_mach(DAT_001c4614);\n      uVar7 = bfd_get_arch(DAT_001c4614);\n      iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);\n      iVar5 = DAT_001c404c;\n      if (iVar8 != 0) {\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }\n    }\n    uVar6 = dcgettext(0,"%F%P: can not create BFD: %E\n",5);\n    FUN_00034dc0(uVar6);\n  }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar6 = dcgettext(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5);\n    FUN_00034dc0(uVar6,&DAT_000b07e2);\n  }" { (expression_statement "uVar6 = dcgettext(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5);" (assignment_expression "uVar6 = dcgettext(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5)" identifier (argument_list "(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5)" ( number_literal , (string_literal ""%F%P: error: cannot change output format whilst linking %s binaries\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034dc0(uVar6,&DAT_000b07e2);" (call_expression "FUN_00034dc0(uVar6,&DAT_000b07e2)" identifier (argument_list "(uVar6,&DAT_000b07e2)" ( identifier , (pointer_expression "&DAT_000b07e2" & identifier) ))) ;) }) (else_clause "else {\n    if (DAT_001c4050 != 0) {\n      DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);\n      iVar5 = DAT_001c4050;\n      if (DAT_001c2e1c == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }\n      iVar4 = bfd_check_format(DAT_001c2e1c,1);\n      iVar8 = DAT_001c4050;\n      iVar5 = DAT_001c4614;\n      if (iVar4 == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }\n    }\n    bfd_elf32_arm_set_target_params(iVar5,&DAT_001c45e0,&DAT_001c2de0);\n    iVar5 = FUN_00023f40("linker stubs",3,0);\n    DAT_001c404c = iVar5;\n    uVar6 = bfd_create("linker stubs",DAT_001c4614);\n    *(undefined4 *)(iVar5 + 0x10) = uVar6;\n    if (*(int *)(DAT_001c404c + 0x10) != 0) {\n      pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);\n      uVar6 = bfd_get_mach(DAT_001c4614);\n      uVar7 = bfd_get_arch(DAT_001c4614);\n      iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);\n      iVar5 = DAT_001c404c;\n      if (iVar8 != 0) {\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }\n    }\n    uVar6 = dcgettext(0,"%F%P: can not create BFD: %E\n",5);\n    FUN_00034dc0(uVar6);\n  }" else (compound_statement "{\n    if (DAT_001c4050 != 0) {\n      DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);\n      iVar5 = DAT_001c4050;\n      if (DAT_001c2e1c == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }\n      iVar4 = bfd_check_format(DAT_001c2e1c,1);\n      iVar8 = DAT_001c4050;\n      iVar5 = DAT_001c4614;\n      if (iVar4 == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }\n    }\n    bfd_elf32_arm_set_target_params(iVar5,&DAT_001c45e0,&DAT_001c2de0);\n    iVar5 = FUN_00023f40("linker stubs",3,0);\n    DAT_001c404c = iVar5;\n    uVar6 = bfd_create("linker stubs",DAT_001c4614);\n    *(undefined4 *)(iVar5 + 0x10) = uVar6;\n    if (*(int *)(DAT_001c404c + 0x10) != 0) {\n      pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);\n      uVar6 = bfd_get_mach(DAT_001c4614);\n      uVar7 = bfd_get_arch(DAT_001c4614);\n      iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);\n      iVar5 = DAT_001c404c;\n      if (iVar8 != 0) {\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }\n    }\n    uVar6 = dcgettext(0,"%F%P: can not create BFD: %E\n",5);\n    FUN_00034dc0(uVar6);\n  }" { (if_statement "if (DAT_001c4050 != 0) {\n      DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);\n      iVar5 = DAT_001c4050;\n      if (DAT_001c2e1c == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }\n      iVar4 = bfd_check_format(DAT_001c2e1c,1);\n      iVar8 = DAT_001c4050;\n      iVar5 = DAT_001c4614;\n      if (iVar4 == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }\n    }" if (parenthesized_expression "(DAT_001c4050 != 0)" ( (binary_expression "DAT_001c4050 != 0" identifier != number_literal) )) (compound_statement "{\n      DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);\n      iVar5 = DAT_001c4050;\n      if (DAT_001c2e1c == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }\n      iVar4 = bfd_check_format(DAT_001c2e1c,1);\n      iVar8 = DAT_001c4050;\n      iVar5 = DAT_001c4614;\n      if (iVar4 == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }\n    }" { (expression_statement "DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);" (assignment_expression "DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack)" identifier = (call_expression "bfd_openr(DAT_001c4050,__haystack)" identifier (argument_list "(DAT_001c4050,__haystack)" ( identifier , identifier )))) ;) (expression_statement "iVar5 = DAT_001c4050;" (assignment_expression "iVar5 = DAT_001c4050" identifier = identifier) ;) (if_statement "if (DAT_001c2e1c == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }" if (parenthesized_expression "(DAT_001c2e1c == 0)" ( (binary_expression "DAT_001c2e1c == 0" identifier == number_literal) )) (compound_statement "{\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }" { (expression_statement "uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);" (assignment_expression "uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: %s: can\'t open: %E\n",5)" identifier (argument_list "(0,"%F%P: %s: can\'t open: %E\n",5)" ( number_literal , (string_literal ""%F%P: %s: can\'t open: %E\n"" " string_content escape_sequence string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034dc0(uVar6,iVar5);" (call_expression "FUN_00034dc0(uVar6,iVar5)" identifier (argument_list "(uVar6,iVar5)" ( identifier , identifier ))) ;) })) (expression_statement "iVar4 = bfd_check_format(DAT_001c2e1c,1);" (assignment_expression "iVar4 = bfd_check_format(DAT_001c2e1c,1)" identifier = (call_expression "bfd_check_format(DAT_001c2e1c,1)" identifier (argument_list "(DAT_001c2e1c,1)" ( identifier , number_literal )))) ;) (expression_statement "iVar8 = DAT_001c4050;" (assignment_expression "iVar8 = DAT_001c4050" identifier = identifier) ;) (expression_statement "iVar5 = DAT_001c4614;" (assignment_expression "iVar5 = DAT_001c4614" identifier = identifier) ;) (if_statement "if (iVar4 == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }" { (expression_statement "uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);" (assignment_expression "uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5)" identifier (argument_list "(0,"%F%P: %s: not a relocatable file: %E\n",5)" ( number_literal , (string_literal ""%F%P: %s: not a relocatable file: %E\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034dc0(uVar6,iVar8);" (call_expression "FUN_00034dc0(uVar6,iVar8)" identifier (argument_list "(uVar6,iVar8)" ( identifier , identifier ))) ;) (expression_statement "iVar5 = DAT_001c4614;" (assignment_expression "iVar5 = DAT_001c4614" identifier = identifier) ;) })) })) (expression_statement "bfd_elf32_arm_set_target_params(iVar5,&DAT_001c45e0,&DAT_001c2de0);" (call_expression "bfd_elf32_arm_set_target_params(iVar5,&DAT_001c45e0,&DAT_001c2de0)" identifier (argument_list "(iVar5,&DAT_001c45e0,&DAT_001c2de0)" ( identifier , (pointer_expression "&DAT_001c45e0" & identifier) , (pointer_expression "&DAT_001c2de0" & identifier) ))) ;) (expression_statement "iVar5 = FUN_00023f40("linker stubs",3,0);" (assignment_expression "iVar5 = FUN_00023f40("linker stubs",3,0)" identifier = (call_expression "FUN_00023f40("linker stubs",3,0)" identifier (argument_list "("linker stubs",3,0)" ( (string_literal ""linker stubs"" " string_content ") , number_literal , number_literal )))) ;) (expression_statement "DAT_001c404c = iVar5;" (assignment_expression "DAT_001c404c = iVar5" identifier = identifier) ;) (expression_statement "uVar6 = bfd_create("linker stubs",DAT_001c4614);" (assignment_expression "uVar6 = bfd_create("linker stubs",DAT_001c4614)" identifier = (call_expression "bfd_create("linker stubs",DAT_001c4614)" identifier (argument_list "("linker stubs",DAT_001c4614)" ( (string_literal ""linker stubs"" " string_content ") , identifier )))) ;) (expression_statement "*(undefined4 *)(iVar5 + 0x10) = uVar6;" (assignment_expression "*(undefined4 *)(iVar5 + 0x10) = uVar6" (pointer_expression "*(undefined4 *)(iVar5 + 0x10)" * (cast_expression "(undefined4 *)(iVar5 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(int *)(DAT_001c404c + 0x10) != 0) {\n      pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);\n      uVar6 = bfd_get_mach(DAT_001c4614);\n      uVar7 = bfd_get_arch(DAT_001c4614);\n      iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);\n      iVar5 = DAT_001c404c;\n      if (iVar8 != 0) {\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }\n    }" if (parenthesized_expression "(*(int *)(DAT_001c404c + 0x10) != 0)" ( (binary_expression "*(int *)(DAT_001c404c + 0x10) != 0" (pointer_expression "*(int *)(DAT_001c404c + 0x10)" * (cast_expression "(int *)(DAT_001c404c + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c404c + 0x10)" ( (binary_expression "DAT_001c404c + 0x10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);\n      uVar6 = bfd_get_mach(DAT_001c4614);\n      uVar7 = bfd_get_arch(DAT_001c4614);\n      iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);\n      iVar5 = DAT_001c404c;\n      if (iVar8 != 0) {\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }\n    }" { (expression_statement "pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);" (assignment_expression "pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154)" identifier = (pointer_expression "*(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154)" * (cast_expression "(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154)" ( (binary_expression "*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154" (pointer_expression "*(int *)(*(int *)(DAT_001c404c + 0x10) + 4)" * (cast_expression "(int *)(*(int *)(DAT_001c404c + 0x10) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_001c404c + 0x10) + 4)" ( (binary_expression "*(int *)(DAT_001c404c + 0x10) + 4" (pointer_expression "*(int *)(DAT_001c404c + 0x10)" * (cast_expression "(int *)(DAT_001c404c + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c404c + 0x10)" ( (binary_expression "DAT_001c404c + 0x10" identifier + number_literal) )))) + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar6 = bfd_get_mach(DAT_001c4614);" (assignment_expression "uVar6 = bfd_get_mach(DAT_001c4614)" identifier = (call_expression "bfd_get_mach(DAT_001c4614)" identifier (argument_list "(DAT_001c4614)" ( identifier )))) ;) (expression_statement "uVar7 = bfd_get_arch(DAT_001c4614);" (assignment_expression "uVar7 = bfd_get_arch(DAT_001c4614)" identifier = (call_expression "bfd_get_arch(DAT_001c4614)" identifier (argument_list "(DAT_001c4614)" ( identifier )))) ;) (expression_statement "iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);" (assignment_expression "iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6)" identifier = (call_expression "(*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6)" (parenthesized_expression "(*pcVar2)" ( (pointer_expression "*pcVar2" * identifier) )) (argument_list "(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6)" ( (pointer_expression "*(undefined4 *)(DAT_001c404c + 0x10)" * (cast_expression "(undefined4 *)(DAT_001c404c + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c404c + 0x10)" ( (binary_expression "DAT_001c404c + 0x10" identifier + number_literal) )))) , identifier , identifier )))) ;) (expression_statement "iVar5 = DAT_001c404c;" (assignment_expression "iVar5 = DAT_001c404c" identifier = identifier) ;) (if_statement "if (iVar8 != 0) {\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }" { (expression_statement "puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);" (assignment_expression "puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28)" identifier = (cast_expression "(uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_001c404c + 0x10) + 0x28)" ( (binary_expression "*(int *)(DAT_001c404c + 0x10) + 0x28" (pointer_expression "*(int *)(DAT_001c404c + 0x10)" * (cast_expression "(int *)(DAT_001c404c + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c404c + 0x10)" ( (binary_expression "DAT_001c404c + 0x10" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "*puVar1 = *puVar1 | 0x20000;" (assignment_expression "*puVar1 = *puVar1 | 0x20000" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 | 0x20000" (pointer_expression "*puVar1" * identifier) | number_literal)) ;) (expression_statement "FUN_00027740(iVar5);" (call_expression "FUN_00027740(iVar5)" identifier (argument_list "(iVar5)" ( identifier ))) ;) (expression_statement "bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);" (call_expression "bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0)" identifier (argument_list "(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0)" ( (pointer_expression "*(undefined4 *)(DAT_001c404c + 0x10)" * (cast_expression "(undefined4 *)(DAT_001c404c + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c404c + 0x10)" ( (binary_expression "DAT_001c404c + 0x10" identifier + number_literal) )))) , (pointer_expression "&DAT_001c45e0" & identifier) ))) ;) (expression_statement "bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);" (call_expression "bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0)" identifier (argument_list "(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0)" ( (pointer_expression "*(undefined4 *)(DAT_001c404c + 0x10)" * (cast_expression "(undefined4 *)(DAT_001c404c + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c404c + 0x10)" ( (binary_expression "DAT_001c404c + 0x10" identifier + number_literal) )))) , (pointer_expression "&DAT_001c45e0" & identifier) ))) ;) (return_statement "return;" return ;) })) })) (expression_statement "uVar6 = dcgettext(0,"%F%P: can not create BFD: %E\n",5);" (assignment_expression "uVar6 = dcgettext(0,"%F%P: can not create BFD: %E\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: can not create BFD: %E\n",5)" identifier (argument_list "(0,"%F%P: can not create BFD: %E\n",5)" ( number_literal , (string_literal ""%F%P: can not create BFD: %E\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034dc0(uVar6);" (call_expression "FUN_00034dc0(uVar6)" identifier (argument_list "(uVar6)" ( identifier ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) ))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , LIT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) | LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression & IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression & IDENT) ))) ;) (return_statement return ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (return_statement return ;) })))
(function_definition "void FUN_00052770(void)\n\n{\n  uint *puVar1;\n  char *__haystack;\n  code *pcVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int iVar8;\n  \n  iVar5 = DAT_001c4614;\n  __haystack = (char *)**(undefined4 **)(DAT_001c4614 + 4);\n  pcVar3 = strstr(__haystack,"arm");\n  if (pcVar3 == (char *)0x0) {\n    uVar6 = dcgettext(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5);\n    FUN_00034dc0(uVar6,&DAT_000b07e2);\n  }\n  else {\n    if (DAT_001c4050 != 0) {\n      DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);\n      iVar5 = DAT_001c4050;\n      if (DAT_001c2e1c == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }\n      iVar4 = bfd_check_format(DAT_001c2e1c,1);\n      iVar8 = DAT_001c4050;\n      iVar5 = DAT_001c4614;\n      if (iVar4 == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }\n    }\n    bfd_elf32_arm_set_target_params(iVar5,&DAT_001c45e0,&DAT_001c2de0);\n    iVar5 = FUN_00023f40("linker stubs",3,0);\n    DAT_001c404c = iVar5;\n    uVar6 = bfd_create("linker stubs",DAT_001c4614);\n    *(undefined4 *)(iVar5 + 0x10) = uVar6;\n    if (*(int *)(DAT_001c404c + 0x10) != 0) {\n      pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);\n      uVar6 = bfd_get_mach(DAT_001c4614);\n      uVar7 = bfd_get_arch(DAT_001c4614);\n      iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);\n      iVar5 = DAT_001c404c;\n      if (iVar8 != 0) {\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }\n    }\n    uVar6 = dcgettext(0,"%F%P: can not create BFD: %E\n",5);\n    FUN_00034dc0(uVar6);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00052770(void)" (identifier "FUN_00052770") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  uint *puVar1;\n  char *__haystack;\n  code *pcVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int iVar8;\n  \n  iVar5 = DAT_001c4614;\n  __haystack = (char *)**(undefined4 **)(DAT_001c4614 + 4);\n  pcVar3 = strstr(__haystack,"arm");\n  if (pcVar3 == (char *)0x0) {\n    uVar6 = dcgettext(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5);\n    FUN_00034dc0(uVar6,&DAT_000b07e2);\n  }\n  else {\n    if (DAT_001c4050 != 0) {\n      DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);\n      iVar5 = DAT_001c4050;\n      if (DAT_001c2e1c == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }\n      iVar4 = bfd_check_format(DAT_001c2e1c,1);\n      iVar8 = DAT_001c4050;\n      iVar5 = DAT_001c4614;\n      if (iVar4 == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }\n    }\n    bfd_elf32_arm_set_target_params(iVar5,&DAT_001c45e0,&DAT_001c2de0);\n    iVar5 = FUN_00023f40("linker stubs",3,0);\n    DAT_001c404c = iVar5;\n    uVar6 = bfd_create("linker stubs",DAT_001c4614);\n    *(undefined4 *)(iVar5 + 0x10) = uVar6;\n    if (*(int *)(DAT_001c404c + 0x10) != 0) {\n      pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);\n      uVar6 = bfd_get_mach(DAT_001c4614);\n      uVar7 = bfd_get_arch(DAT_001c4614);\n      iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);\n      iVar5 = DAT_001c404c;\n      if (iVar8 != 0) {\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }\n    }\n    uVar6 = dcgettext(0,"%F%P: can not create BFD: %E\n",5);\n    FUN_00034dc0(uVar6);\n  }\n  return;\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "char *__haystack;" (primitive_type "char") (pointer_declarator "*__haystack" (* "*") (identifier "__haystack")) (; ";")) (declaration "code *pcVar2;" (type_identifier "code") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (expression_statement "iVar5 = DAT_001c4614;" (assignment_expression "iVar5 = DAT_001c4614" (identifier "iVar5") (= "=") (identifier "DAT_001c4614")) (; ";")) (expression_statement "__haystack = (char *)**(undefined4 **)(DAT_001c4614 + 4);" (assignment_expression "__haystack = (char *)**(undefined4 **)(DAT_001c4614 + 4)" (identifier "__haystack") (= "=") (cast_expression "(char *)**(undefined4 **)(DAT_001c4614 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "**(undefined4 **)(DAT_001c4614 + 4)" (* "*") (pointer_expression "*(undefined4 **)(DAT_001c4614 + 4)" (* "*") (cast_expression "(undefined4 **)(DAT_001c4614 + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(DAT_001c4614 + 4)" (( "(") (binary_expression "DAT_001c4614 + 4" (identifier "DAT_001c4614") (+ "+") (number_literal "4")) () ")"))))))) (; ";")) (expression_statement "pcVar3 = strstr(__haystack,"arm");" (assignment_expression "pcVar3 = strstr(__haystack,"arm")" (identifier "pcVar3") (= "=") (call_expression "strstr(__haystack,"arm")" (identifier "strstr") (argument_list "(__haystack,"arm")" (( "(") (identifier "__haystack") (, ",") (string_literal ""arm"" (" """) (string_content "arm") (" """)) () ")")))) (; ";")) (if_statement "if (pcVar3 == (char *)0x0) {\n    uVar6 = dcgettext(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5);\n    FUN_00034dc0(uVar6,&DAT_000b07e2);\n  }\n  else {\n    if (DAT_001c4050 != 0) {\n      DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);\n      iVar5 = DAT_001c4050;\n      if (DAT_001c2e1c == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }\n      iVar4 = bfd_check_format(DAT_001c2e1c,1);\n      iVar8 = DAT_001c4050;\n      iVar5 = DAT_001c4614;\n      if (iVar4 == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }\n    }\n    bfd_elf32_arm_set_target_params(iVar5,&DAT_001c45e0,&DAT_001c2de0);\n    iVar5 = FUN_00023f40("linker stubs",3,0);\n    DAT_001c404c = iVar5;\n    uVar6 = bfd_create("linker stubs",DAT_001c4614);\n    *(undefined4 *)(iVar5 + 0x10) = uVar6;\n    if (*(int *)(DAT_001c404c + 0x10) != 0) {\n      pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);\n      uVar6 = bfd_get_mach(DAT_001c4614);\n      uVar7 = bfd_get_arch(DAT_001c4614);\n      iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);\n      iVar5 = DAT_001c404c;\n      if (iVar8 != 0) {\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }\n    }\n    uVar6 = dcgettext(0,"%F%P: can not create BFD: %E\n",5);\n    FUN_00034dc0(uVar6);\n  }" (if "if") (parenthesized_expression "(pcVar3 == (char *)0x0)" (( "(") (binary_expression "pcVar3 == (char *)0x0" (identifier "pcVar3") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar6 = dcgettext(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5);\n    FUN_00034dc0(uVar6,&DAT_000b07e2);\n  }" ({ "{") (expression_statement "uVar6 = dcgettext(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5);" (assignment_expression "uVar6 = dcgettext(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5)" (identifier "uVar6") (= "=") (call_expression "dcgettext(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5)" (identifier "dcgettext") (argument_list "(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%F%P: error: cannot change output format whilst linking %s binaries\n"" (" """) (string_content "%F%P: error: cannot change output format whilst linking %s binaries") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00034dc0(uVar6,&DAT_000b07e2);" (call_expression "FUN_00034dc0(uVar6,&DAT_000b07e2)" (identifier "FUN_00034dc0") (argument_list "(uVar6,&DAT_000b07e2)" (( "(") (identifier "uVar6") (, ",") (pointer_expression "&DAT_000b07e2" (& "&") (identifier "DAT_000b07e2")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n    if (DAT_001c4050 != 0) {\n      DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);\n      iVar5 = DAT_001c4050;\n      if (DAT_001c2e1c == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }\n      iVar4 = bfd_check_format(DAT_001c2e1c,1);\n      iVar8 = DAT_001c4050;\n      iVar5 = DAT_001c4614;\n      if (iVar4 == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }\n    }\n    bfd_elf32_arm_set_target_params(iVar5,&DAT_001c45e0,&DAT_001c2de0);\n    iVar5 = FUN_00023f40("linker stubs",3,0);\n    DAT_001c404c = iVar5;\n    uVar6 = bfd_create("linker stubs",DAT_001c4614);\n    *(undefined4 *)(iVar5 + 0x10) = uVar6;\n    if (*(int *)(DAT_001c404c + 0x10) != 0) {\n      pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);\n      uVar6 = bfd_get_mach(DAT_001c4614);\n      uVar7 = bfd_get_arch(DAT_001c4614);\n      iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);\n      iVar5 = DAT_001c404c;\n      if (iVar8 != 0) {\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }\n    }\n    uVar6 = dcgettext(0,"%F%P: can not create BFD: %E\n",5);\n    FUN_00034dc0(uVar6);\n  }" (else "else") (compound_statement "{\n    if (DAT_001c4050 != 0) {\n      DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);\n      iVar5 = DAT_001c4050;\n      if (DAT_001c2e1c == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }\n      iVar4 = bfd_check_format(DAT_001c2e1c,1);\n      iVar8 = DAT_001c4050;\n      iVar5 = DAT_001c4614;\n      if (iVar4 == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }\n    }\n    bfd_elf32_arm_set_target_params(iVar5,&DAT_001c45e0,&DAT_001c2de0);\n    iVar5 = FUN_00023f40("linker stubs",3,0);\n    DAT_001c404c = iVar5;\n    uVar6 = bfd_create("linker stubs",DAT_001c4614);\n    *(undefined4 *)(iVar5 + 0x10) = uVar6;\n    if (*(int *)(DAT_001c404c + 0x10) != 0) {\n      pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);\n      uVar6 = bfd_get_mach(DAT_001c4614);\n      uVar7 = bfd_get_arch(DAT_001c4614);\n      iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);\n      iVar5 = DAT_001c404c;\n      if (iVar8 != 0) {\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }\n    }\n    uVar6 = dcgettext(0,"%F%P: can not create BFD: %E\n",5);\n    FUN_00034dc0(uVar6);\n  }" ({ "{") (if_statement "if (DAT_001c4050 != 0) {\n      DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);\n      iVar5 = DAT_001c4050;\n      if (DAT_001c2e1c == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }\n      iVar4 = bfd_check_format(DAT_001c2e1c,1);\n      iVar8 = DAT_001c4050;\n      iVar5 = DAT_001c4614;\n      if (iVar4 == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }\n    }" (if "if") (parenthesized_expression "(DAT_001c4050 != 0)" (( "(") (binary_expression "DAT_001c4050 != 0" (identifier "DAT_001c4050") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);\n      iVar5 = DAT_001c4050;\n      if (DAT_001c2e1c == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }\n      iVar4 = bfd_check_format(DAT_001c2e1c,1);\n      iVar8 = DAT_001c4050;\n      iVar5 = DAT_001c4614;\n      if (iVar4 == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }\n    }" ({ "{") (expression_statement "DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);" (assignment_expression "DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack)" (identifier "DAT_001c2e1c") (= "=") (call_expression "bfd_openr(DAT_001c4050,__haystack)" (identifier "bfd_openr") (argument_list "(DAT_001c4050,__haystack)" (( "(") (identifier "DAT_001c4050") (, ",") (identifier "__haystack") () ")")))) (; ";")) (expression_statement "iVar5 = DAT_001c4050;" (assignment_expression "iVar5 = DAT_001c4050" (identifier "iVar5") (= "=") (identifier "DAT_001c4050")) (; ";")) (if_statement "if (DAT_001c2e1c == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }" (if "if") (parenthesized_expression "(DAT_001c2e1c == 0)" (( "(") (binary_expression "DAT_001c2e1c == 0" (identifier "DAT_001c2e1c") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);\n        FUN_00034dc0(uVar6,iVar5);\n      }" ({ "{") (expression_statement "uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);" (assignment_expression "uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5)" (identifier "uVar6") (= "=") (call_expression "dcgettext(0,"%F%P: %s: can\'t open: %E\n",5)" (identifier "dcgettext") (argument_list "(0,"%F%P: %s: can\'t open: %E\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%F%P: %s: can\'t open: %E\n"" (" """) (string_content "%F%P: %s: can") (escape_sequence "\'") (string_content "t open: %E") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00034dc0(uVar6,iVar5);" (call_expression "FUN_00034dc0(uVar6,iVar5)" (identifier "FUN_00034dc0") (argument_list "(uVar6,iVar5)" (( "(") (identifier "uVar6") (, ",") (identifier "iVar5") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar4 = bfd_check_format(DAT_001c2e1c,1);" (assignment_expression "iVar4 = bfd_check_format(DAT_001c2e1c,1)" (identifier "iVar4") (= "=") (call_expression "bfd_check_format(DAT_001c2e1c,1)" (identifier "bfd_check_format") (argument_list "(DAT_001c2e1c,1)" (( "(") (identifier "DAT_001c2e1c") (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "iVar8 = DAT_001c4050;" (assignment_expression "iVar8 = DAT_001c4050" (identifier "iVar8") (= "=") (identifier "DAT_001c4050")) (; ";")) (expression_statement "iVar5 = DAT_001c4614;" (assignment_expression "iVar5 = DAT_001c4614" (identifier "iVar5") (= "=") (identifier "DAT_001c4614")) (; ";")) (if_statement "if (iVar4 == 0) {\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);\n        FUN_00034dc0(uVar6,iVar8);\n        iVar5 = DAT_001c4614;\n      }" ({ "{") (expression_statement "uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);" (assignment_expression "uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5)" (identifier "uVar6") (= "=") (call_expression "dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5)" (identifier "dcgettext") (argument_list "(0,"%F%P: %s: not a relocatable file: %E\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%F%P: %s: not a relocatable file: %E\n"" (" """) (string_content "%F%P: %s: not a relocatable file: %E") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00034dc0(uVar6,iVar8);" (call_expression "FUN_00034dc0(uVar6,iVar8)" (identifier "FUN_00034dc0") (argument_list "(uVar6,iVar8)" (( "(") (identifier "uVar6") (, ",") (identifier "iVar8") () ")"))) (; ";")) (expression_statement "iVar5 = DAT_001c4614;" (assignment_expression "iVar5 = DAT_001c4614" (identifier "iVar5") (= "=") (identifier "DAT_001c4614")) (; ";")) (} "}"))) (} "}"))) (expression_statement "bfd_elf32_arm_set_target_params(iVar5,&DAT_001c45e0,&DAT_001c2de0);" (call_expression "bfd_elf32_arm_set_target_params(iVar5,&DAT_001c45e0,&DAT_001c2de0)" (identifier "bfd_elf32_arm_set_target_params") (argument_list "(iVar5,&DAT_001c45e0,&DAT_001c2de0)" (( "(") (identifier "iVar5") (, ",") (pointer_expression "&DAT_001c45e0" (& "&") (identifier "DAT_001c45e0")) (, ",") (pointer_expression "&DAT_001c2de0" (& "&") (identifier "DAT_001c2de0")) () ")"))) (; ";")) (expression_statement "iVar5 = FUN_00023f40("linker stubs",3,0);" (assignment_expression "iVar5 = FUN_00023f40("linker stubs",3,0)" (identifier "iVar5") (= "=") (call_expression "FUN_00023f40("linker stubs",3,0)" (identifier "FUN_00023f40") (argument_list "("linker stubs",3,0)" (( "(") (string_literal ""linker stubs"" (" """) (string_content "linker stubs") (" """)) (, ",") (number_literal "3") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "DAT_001c404c = iVar5;" (assignment_expression "DAT_001c404c = iVar5" (identifier "DAT_001c404c") (= "=") (identifier "iVar5")) (; ";")) (expression_statement "uVar6 = bfd_create("linker stubs",DAT_001c4614);" (assignment_expression "uVar6 = bfd_create("linker stubs",DAT_001c4614)" (identifier "uVar6") (= "=") (call_expression "bfd_create("linker stubs",DAT_001c4614)" (identifier "bfd_create") (argument_list "("linker stubs",DAT_001c4614)" (( "(") (string_literal ""linker stubs"" (" """) (string_content "linker stubs") (" """)) (, ",") (identifier "DAT_001c4614") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar5 + 0x10) = uVar6;" (assignment_expression "*(undefined4 *)(iVar5 + 0x10) = uVar6" (pointer_expression "*(undefined4 *)(iVar5 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar5 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x10)" (( "(") (binary_expression "iVar5 + 0x10" (identifier "iVar5") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "uVar6")) (; ";")) (if_statement "if (*(int *)(DAT_001c404c + 0x10) != 0) {\n      pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);\n      uVar6 = bfd_get_mach(DAT_001c4614);\n      uVar7 = bfd_get_arch(DAT_001c4614);\n      iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);\n      iVar5 = DAT_001c404c;\n      if (iVar8 != 0) {\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }\n    }" (if "if") (parenthesized_expression "(*(int *)(DAT_001c404c + 0x10) != 0)" (( "(") (binary_expression "*(int *)(DAT_001c404c + 0x10) != 0" (pointer_expression "*(int *)(DAT_001c404c + 0x10)" (* "*") (cast_expression "(int *)(DAT_001c404c + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001c404c + 0x10)" (( "(") (binary_expression "DAT_001c404c + 0x10" (identifier "DAT_001c404c") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);\n      uVar6 = bfd_get_mach(DAT_001c4614);\n      uVar7 = bfd_get_arch(DAT_001c4614);\n      iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);\n      iVar5 = DAT_001c404c;\n      if (iVar8 != 0) {\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }\n    }" ({ "{") (expression_statement "pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);" (assignment_expression "pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154)" (identifier "pcVar2") (= "=") (pointer_expression "*(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154)" (* "*") (cast_expression "(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154)" (( "(") (binary_expression "*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154" (pointer_expression "*(int *)(*(int *)(DAT_001c404c + 0x10) + 4)" (* "*") (cast_expression "(int *)(*(int *)(DAT_001c404c + 0x10) + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_001c404c + 0x10) + 4)" (( "(") (binary_expression "*(int *)(DAT_001c404c + 0x10) + 4" (pointer_expression "*(int *)(DAT_001c404c + 0x10)" (* "*") (cast_expression "(int *)(DAT_001c404c + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001c404c + 0x10)" (( "(") (binary_expression "DAT_001c404c + 0x10" (identifier "DAT_001c404c") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x154")) () ")"))))) (; ";")) (expression_statement "uVar6 = bfd_get_mach(DAT_001c4614);" (assignment_expression "uVar6 = bfd_get_mach(DAT_001c4614)" (identifier "uVar6") (= "=") (call_expression "bfd_get_mach(DAT_001c4614)" (identifier "bfd_get_mach") (argument_list "(DAT_001c4614)" (( "(") (identifier "DAT_001c4614") () ")")))) (; ";")) (expression_statement "uVar7 = bfd_get_arch(DAT_001c4614);" (assignment_expression "uVar7 = bfd_get_arch(DAT_001c4614)" (identifier "uVar7") (= "=") (call_expression "bfd_get_arch(DAT_001c4614)" (identifier "bfd_get_arch") (argument_list "(DAT_001c4614)" (( "(") (identifier "DAT_001c4614") () ")")))) (; ";")) (expression_statement "iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);" (assignment_expression "iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6)" (identifier "iVar8") (= "=") (call_expression "(*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6)" (parenthesized_expression "(*pcVar2)" (( "(") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) () ")")) (argument_list "(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6)" (( "(") (pointer_expression "*(undefined4 *)(DAT_001c404c + 0x10)" (* "*") (cast_expression "(undefined4 *)(DAT_001c404c + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001c404c + 0x10)" (( "(") (binary_expression "DAT_001c404c + 0x10" (identifier "DAT_001c404c") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (identifier "uVar7") (, ",") (identifier "uVar6") () ")")))) (; ";")) (expression_statement "iVar5 = DAT_001c404c;" (assignment_expression "iVar5 = DAT_001c404c" (identifier "iVar5") (= "=") (identifier "DAT_001c404c")) (; ";")) (if_statement "if (iVar8 != 0) {\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }" (if "if") (parenthesized_expression "(iVar8 != 0)" (( "(") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);\n        *puVar1 = *puVar1 | 0x20000;\n        FUN_00027740(iVar5);\n        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);\n        return;\n      }" ({ "{") (expression_statement "puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);" (assignment_expression "puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28)" (identifier "puVar1") (= "=") (cast_expression "(uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_001c404c + 0x10) + 0x28)" (( "(") (binary_expression "*(int *)(DAT_001c404c + 0x10) + 0x28" (pointer_expression "*(int *)(DAT_001c404c + 0x10)" (* "*") (cast_expression "(int *)(DAT_001c404c + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001c404c + 0x10)" (( "(") (binary_expression "DAT_001c404c + 0x10" (identifier "DAT_001c404c") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "0x28")) () ")")))) (; ";")) (expression_statement "*puVar1 = *puVar1 | 0x20000;" (assignment_expression "*puVar1 = *puVar1 | 0x20000" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (binary_expression "*puVar1 | 0x20000" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (| "|") (number_literal "0x20000"))) (; ";")) (expression_statement "FUN_00027740(iVar5);" (call_expression "FUN_00027740(iVar5)" (identifier "FUN_00027740") (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")"))) (; ";")) (expression_statement "bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);" (call_expression "bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0)" (identifier "bfd_elf32_arm_add_glue_sections_to_bfd") (argument_list "(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0)" (( "(") (pointer_expression "*(undefined4 *)(DAT_001c404c + 0x10)" (* "*") (cast_expression "(undefined4 *)(DAT_001c404c + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001c404c + 0x10)" (( "(") (binary_expression "DAT_001c404c + 0x10" (identifier "DAT_001c404c") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (pointer_expression "&DAT_001c45e0" (& "&") (identifier "DAT_001c45e0")) () ")"))) (; ";")) (expression_statement "bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);" (call_expression "bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0)" (identifier "bfd_elf32_arm_get_bfd_for_interworking") (argument_list "(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0)" (( "(") (pointer_expression "*(undefined4 *)(DAT_001c404c + 0x10)" (* "*") (cast_expression "(undefined4 *)(DAT_001c404c + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001c404c + 0x10)" (( "(") (binary_expression "DAT_001c404c + 0x10" (identifier "DAT_001c404c") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (pointer_expression "&DAT_001c45e0" (& "&") (identifier "DAT_001c45e0")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar6 = dcgettext(0,"%F%P: can not create BFD: %E\n",5);" (assignment_expression "uVar6 = dcgettext(0,"%F%P: can not create BFD: %E\n",5)" (identifier "uVar6") (= "=") (call_expression "dcgettext(0,"%F%P: can not create BFD: %E\n",5)" (identifier "dcgettext") (argument_list "(0,"%F%P: can not create BFD: %E\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%F%P: can not create BFD: %E\n"" (" """) (string_content "%F%P: can not create BFD: %E") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00034dc0(uVar6);" (call_expression "FUN_00034dc0(uVar6)" (identifier "FUN_00034dc0") (argument_list "(uVar6)" (( "(") (identifier "uVar6") () ")"))) (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  type_1 *puVar1;
  type_2 *p_Var2;
  char *var_2;
  int var_8;
  type_3 *plVar5;
  type_4 *pbVar6;
  type_5 uVar7;
  type_6 bVar8;
  type_7 var_14;
  char *pcVar10;
  
  pbVar6 = link_info.output_bfd;
  pcVar10 = (link_info.output_bfd)->xvec->name;
  var_2 = var_1(pcVar10,"arm");
  if (var_2 == (char *)0x0) {
    pcVar10 = (char *)var_3(0,
                                "%F%P: error: cannot change output format whilst linking %s binaries\n"
                                ,5);
    var_4(pcVar10,&DAT_000b07e2);
  }
  else {
    if (var_5 != (char *)0x0) {
      params.in_implib_bfd = (type_4 *)var_6(var_5,pcVar10);
      pcVar10 = var_5;
      if (params.in_implib_bfd == (type_4 *)0x0) {
        var_2 = (char *)var_3(0,"%F%P: %s: can\'t open: %E\n",5);
        var_4(var_2,pcVar10);
      }
      var_8 = var_7(params.in_implib_bfd,1);
      pcVar10 = var_5;
      pbVar6 = link_info.output_bfd;
      if (var_8 == 0) {
        var_2 = (char *)var_3(0,"%F%P: %s: not a relocatable file: %E\n",5);
        var_4(var_2,pcVar10);
        pbVar6 = link_info.output_bfd;
      }
    }
    var_9(pbVar6,&link_info,&params);
    plVar5 = var_10("linker stubs",lang_input_file_is_fake_enum,(char *)0x0);
    stub_file = plVar5;
    pbVar6 = (type_4 *)var_11("linker stubs",link_info.output_bfd);
    plVar5->the_bfd = pbVar6;
    if (stub_file->the_bfd != (type_4 *)0x0) {
      p_Var2 = stub_file->the_bfd->xvec->_bfd_set_arch_mach;
      uVar7 = var_12(link_info.output_bfd);
      bVar8 = var_13(link_info.output_bfd);
      var_14 = (*p_Var2)(stub_file->the_bfd,bVar8,uVar7);
      plVar5 = stub_file;
      if (var_14 != 0) {
        puVar1 = &stub_file->the_bfd->field_0x28;
        *(type_8 *)puVar1 = *(type_8 *)puVar1 | 0x20000;
        var_15(plVar5);
        var_16(stub_file->the_bfd,&link_info);
        var_17(stub_file->the_bfd,&link_info);
        return;
      }
    }
    pcVar10 = (char *)var_3(0,"%F%P: can not create BFD: %E\n",5);
    var_4(pcVar10);
  }
  return;
}


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

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

void MASKED(void)

{
  uint *puVar1;
  char *__haystack;
  code *pcVar2;
  char *pcVar3;
  int iVar4;
  int iVar5;
  undefined4 uVar6;
  undefined4 uVar7;
  int iVar8;
  
  iVar5 = DAT_001c4614;
  __haystack = (char *)**(undefined4 **)(DAT_001c4614 + 4);
  pcVar3 = strstr(__haystack,"arm");
  if (pcVar3 == (char *)0x0) {
    uVar6 = dcgettext(0,"%F%P: error: cannot change output format whilst linking %s binaries\n",5);
    FUN_00034dc0(uVar6,&DAT_000b07e2);
  }
  else {
    if (DAT_001c4050 != 0) {
      DAT_001c2e1c = bfd_openr(DAT_001c4050,__haystack);
      iVar5 = DAT_001c4050;
      if (DAT_001c2e1c == 0) {
        uVar6 = dcgettext(0,"%F%P: %s: can\'t open: %E\n",5);
        FUN_00034dc0(uVar6,iVar5);
      }
      iVar4 = bfd_check_format(DAT_001c2e1c,1);
      iVar8 = DAT_001c4050;
      iVar5 = DAT_001c4614;
      if (iVar4 == 0) {
        uVar6 = dcgettext(0,"%F%P: %s: not a relocatable file: %E\n",5);
        FUN_00034dc0(uVar6,iVar8);
        iVar5 = DAT_001c4614;
      }
    }
    bfd_elf32_arm_set_target_params(iVar5,&DAT_001c45e0,&DAT_001c2de0);
    iVar5 = FUN_00023f40("linker stubs",3,0);
    DAT_001c404c = iVar5;
    uVar6 = bfd_create("linker stubs",DAT_001c4614);
    *(undefined4 *)(iVar5 + 0x10) = uVar6;
    if (*(int *)(DAT_001c404c + 0x10) != 0) {
      pcVar2 = *(code **)(*(int *)(*(int *)(DAT_001c404c + 0x10) + 4) + 0x154);
      uVar6 = bfd_get_mach(DAT_001c4614);
      uVar7 = bfd_get_arch(DAT_001c4614);
      iVar8 = (*pcVar2)(*(undefined4 *)(DAT_001c404c + 0x10),uVar7,uVar6);
      iVar5 = DAT_001c404c;
      if (iVar8 != 0) {
        puVar1 = (uint *)(*(int *)(DAT_001c404c + 0x10) + 0x28);
        *puVar1 = *puVar1 | 0x20000;
        FUN_00027740(iVar5);
        bfd_elf32_arm_add_glue_sections_to_bfd(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);
        bfd_elf32_arm_get_bfd_for_interworking(*(undefined4 *)(DAT_001c404c + 0x10),&DAT_001c45e0);
        return;
      }
    }
    uVar6 = dcgettext(0,"%F%P: can not create BFD: %E\n",5);
    FUN_00034dc0(uVar6);
  }
  return;
}

