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

bfd_boolean write_build_id(bfd *abfd)

{
  output_elf_obj_tdata *poVar1;
  void *pvVar2;
  asection *paVar3;
  void *pvVar4;
  bfd_target *pbVar5;
  int iVar6;
  bfd_size_type bVar7;
  char *pcVar8;
  bfd_boolean bVar9;
  bfd_size_type bVar10;
  uchar *puVar11;
  
  pbVar5 = abfd->xvec;
  poVar1 = ((abfd->tdata).elf_obj_data)->o;
  pvVar2 = pbVar5->backend_data;
  pcVar8 = (poVar1->build_id).style;
  paVar3 = (poVar1->build_id).sec;
  if (paVar3->output_section == (bfd_section *)(PTR__bfd_std_section_000bafc4 + 0x150)) {
    pcVar8 = (char *)dcgettext(0,
                               "%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n"
                               ,5);
    einfo(pcVar8);
    bVar9 = 1;
  }
  else {
    pvVar4 = paVar3->output_section->used_by_bfd;
    bVar10 = paVar3->size;
    if (*(int *)((int)pvVar4 + 0x30) == 0) {
      puVar11 = paVar3->contents;
      if (puVar11 == (uchar *)0x0) {
        puVar11 = (uchar *)xmalloc(bVar10);
        paVar3->contents = puVar11;
        bVar10 = paVar3->size;
        pbVar5 = abfd->xvec;
      }
    }
    else {
      puVar11 = (uchar *)(*(int *)((int)pvVar4 + 0x30) + paVar3->output_offset);
    }
    (*pbVar5->bfd_h_putx32)(4,puVar11);
    (*abfd->xvec->bfd_h_putx32)(bVar10 - 0x10,puVar11 + 4);
    (*abfd->xvec->bfd_h_putx32)(3,puVar11 + 8);
    builtin_memcpy(puVar11 + 0xc,"GNU",4);
    generate_build_id(abfd,pcVar8,*(checksum_fn *)(*(int *)((int)pvVar2 + 0x18c) + 0x18),
                      puVar11 + 0x10,bVar10 - 0x10);
    bVar10 = paVar3->size;
    iVar6 = bfd_seek(abfd,paVar3->output_offset + *(uint *)((int)pvVar4 + 0x10),
                     *(int *)((int)pvVar4 + 0x14) +
                     (uint)CARRY4(paVar3->output_offset,*(uint *)((int)pvVar4 + 0x10)),0);
    bVar9 = 0;
    if (iVar6 == 0) {
      bVar7 = bfd_bwrite(puVar11,bVar10,abfd);
      return (uint)(bVar7 == bVar10);
    }
  }
  return bVar9;
}



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

bool FUN_00037160(int param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  bool bVar6;
  int iVar7;
  int iVar8;
  
  iVar3 = *(int *)(param_1 + 4);
  iVar4 = *(int *)(*(int *)(param_1 + 0x9c) + 0x910);
  iVar1 = *(int *)(iVar3 + 0x1c0);
  uVar5 = *(undefined4 *)(iVar4 + 0x14);
  iVar4 = *(int *)(iVar4 + 0x18);
  if (*(undefined **)(iVar4 + 0x3c) == PTR__bfd_std_section_000bafc4 + 0x150) {
    uVar5 = dcgettext(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)
    ;
    FUN_00031730(uVar5);
    bVar6 = true;
  }
  else {
    iVar2 = *(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c);
    iVar7 = *(int *)(iVar4 + 0x24);
    if (*(int *)(iVar2 + 0x30) == 0) {
      iVar8 = *(int *)(iVar4 + 0x6c);
      if (iVar8 == 0) {
        iVar8 = xmalloc(iVar7);
        *(int *)(iVar4 + 0x6c) = iVar8;
        iVar7 = *(int *)(iVar4 + 0x24);
        iVar3 = *(int *)(param_1 + 4);
      }
    }
    else {
      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);
    }
    (**(code **)(iVar3 + 0x54))(4,iVar8);
    (**(code **)(*(int *)(param_1 + 4) + 0x54))(iVar7 + -0x10,iVar8 + 4);
    (**(code **)(*(int *)(param_1 + 4) + 0x54))(3,iVar8 + 8);
    *(undefined4 *)(iVar8 + 0xc) = 0x554e47;
    FUN_000354a0(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,
                 iVar7 + -0x10);
    iVar3 = *(int *)(iVar4 + 0x24);
    iVar4 = bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),
                     *(int *)(iVar2 + 0x14) +
                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0);
    bVar6 = false;
    if (iVar4 == 0) {
      iVar4 = bfd_bwrite(iVar8,iVar3,param_1);
      return iVar4 == iVar3;
    }
  }
  return bVar6;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015a10
ADD EBX,0x83e97
SUB ESP,0x1c
MOV EDI,dword ptr [ESP + 0x30]
MOV EDX,dword ptr [EDI + 0x9c]
MOV EAX,dword ptr [EDI + 0x4]
MOV EDX,dword ptr [EDX + 0x910]
MOV ESI,dword ptr [EAX + 0x1c0]
MOV ECX,dword ptr [EDX + 0x14]
MOV EDX,dword ptr [EDX + 0x18]
MOV dword ptr [ESP],ESI
MOV ESI,dword ptr [EBX + 0xffffffc4]
MOV dword ptr [ESP + 0x4],ECX
MOV ECX,dword ptr [EDX + 0x3c]
ADD ESI,0x150
CMP ECX,ESI
JZ 0x000372a0
MOV ECX,dword ptr [ECX + 0x8c]
MOV EBP,dword ptr [EDX + 0x24]
MOV ESI,dword ptr [ECX + 0x30]
MOV dword ptr [ESP + 0x8],ECX
TEST ESI,ESI
JZ 0x00037270
ADD ESI,dword ptr [EDX + 0x38]
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0x8
SUB EBP,0x10
PUSH ESI
PUSH 0x4
CALL dword ptr [EAX + 0x54]
POP EAX
MOV EAX,dword ptr [EDI + 0x4]
LEA ECX,[ESI + 0x4]
POP EDX
PUSH ECX
PUSH EBP
CALL dword ptr [EAX + 0x54]
POP ECX
LEA ECX,[ESI + 0x8]
POP EAX
MOV EAX,dword ptr [EDI + 0x4]
PUSH ECX
PUSH 0x3
CALL dword ptr [EAX + 0x54]
LEA EAX,[ESI + 0x10]
MOV dword ptr [ESI + 0xc],0x554e47
MOV dword ptr [ESP],EBP
PUSH EAX
MOV EAX,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [EAX + 0x18c]
PUSH dword ptr [EAX + 0x18]
PUSH dword ptr [ESP + 0x1c]
PUSH EDI
CALL 0x000354a0
MOV EDX,dword ptr [ESP + 0x2c]
ADD ESP,0x20
MOV EBP,dword ptr [EDX + 0x24]
MOV EAX,dword ptr [EDX + 0x38]
PUSH 0x0
XOR EDX,EDX
MOV ECX,dword ptr [ESP + 0xc]
ADD EAX,dword ptr [ECX + 0x10]
ADC EDX,dword ptr [ECX + 0x14]
PUSH EDX
PUSH EAX
PUSH EDI
CALL 0x00014c30
ADD ESP,0x10
XOR EDX,EDX
TEST EAX,EAX
JZ 0x00037250
ADD ESP,0x1c
MOV EAX,EDX
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH EDI
PUSH EBP
PUSH ESI
CALL 0x00014650
ADD ESP,0x10
XOR EDX,EDX
CMP EAX,EBP
SETZ DL
ADD ESP,0x1c
POP EBX
MOV EAX,EDX
POP ESI
POP EDI
POP EBP
RET
MOV ESI,dword ptr [EDX + 0x6c]
TEST ESI,ESI
JNZ 0x000371ca
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0xc
PUSH EBP
CALL 0x00014c58
MOV EDX,dword ptr [ESP + 0x1c]
ADD ESP,0x10
MOV ESI,EAX
MOV dword ptr [EDX + 0x6c],EAX
MOV EBP,dword ptr [EDX + 0x24]
MOV EAX,dword ptr [EDI + 0x4]
JMP 0x000371ca
SUB ESP,0x4
LEA EAX,[EBX + 0xfffc2f8c]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000142e0
MOV dword ptr [ESP],EAX
CALL 0x00031730
ADD ESP,0x10
MOV EDX,0x1
JMP 0x00037246
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool FUN_00037160(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  bool bVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar3 = *(int *)(param_1 + 4);\n  iVar4 = *(int *)(*(int *)(param_1 + 0x9c) + 0x910);\n  iVar1 = *(int *)(iVar3 + 0x1c0);\n  uVar5 = *(undefined4 *)(iVar4 + 0x14);\n  iVar4 = *(int *)(iVar4 + 0x18);\n  if (*(undefined **)(iVar4 + 0x3c) == PTR__bfd_std_section_000bafc4 + 0x150) {\n    uVar5 = dcgettext(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)\n    ;\n    FUN_00031730(uVar5);\n    bVar6 = true;\n  }\n  else {\n    iVar2 = *(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c);\n    iVar7 = *(int *)(iVar4 + 0x24);\n    if (*(int *)(iVar2 + 0x30) == 0) {\n      iVar8 = *(int *)(iVar4 + 0x6c);\n      if (iVar8 == 0) {\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }\n    }\n    else {\n      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);\n    }\n    (**(code **)(iVar3 + 0x54))(4,iVar8);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(iVar7 + -0x10,iVar8 + 4);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(3,iVar8 + 8);\n    *(undefined4 *)(iVar8 + 0xc) = 0x554e47;\n    FUN_000354a0(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,\n                 iVar7 + -0x10);\n    iVar3 = *(int *)(iVar4 + 0x24);\n    iVar4 = bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0);\n    bVar6 = false;\n    if (iVar4 == 0) {\n      iVar4 = bfd_bwrite(iVar8,iVar3,param_1);\n      return iVar4 == iVar3;\n    }\n  }\n  return bVar6;\n}\n\n" comment (function_definition "bool FUN_00037160(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  bool bVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar3 = *(int *)(param_1 + 4);\n  iVar4 = *(int *)(*(int *)(param_1 + 0x9c) + 0x910);\n  iVar1 = *(int *)(iVar3 + 0x1c0);\n  uVar5 = *(undefined4 *)(iVar4 + 0x14);\n  iVar4 = *(int *)(iVar4 + 0x18);\n  if (*(undefined **)(iVar4 + 0x3c) == PTR__bfd_std_section_000bafc4 + 0x150) {\n    uVar5 = dcgettext(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)\n    ;\n    FUN_00031730(uVar5);\n    bVar6 = true;\n  }\n  else {\n    iVar2 = *(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c);\n    iVar7 = *(int *)(iVar4 + 0x24);\n    if (*(int *)(iVar2 + 0x30) == 0) {\n      iVar8 = *(int *)(iVar4 + 0x6c);\n      if (iVar8 == 0) {\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }\n    }\n    else {\n      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);\n    }\n    (**(code **)(iVar3 + 0x54))(4,iVar8);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(iVar7 + -0x10,iVar8 + 4);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(3,iVar8 + 8);\n    *(undefined4 *)(iVar8 + 0xc) = 0x554e47;\n    FUN_000354a0(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,\n                 iVar7 + -0x10);\n    iVar3 = *(int *)(iVar4 + 0x24);\n    iVar4 = bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0);\n    bVar6 = false;\n    if (iVar4 == 0) {\n      iVar4 = bfd_bwrite(iVar8,iVar3,param_1);\n      return iVar4 == iVar3;\n    }\n  }\n  return bVar6;\n}" primitive_type (function_declarator "FUN_00037160(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  bool bVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar3 = *(int *)(param_1 + 4);\n  iVar4 = *(int *)(*(int *)(param_1 + 0x9c) + 0x910);\n  iVar1 = *(int *)(iVar3 + 0x1c0);\n  uVar5 = *(undefined4 *)(iVar4 + 0x14);\n  iVar4 = *(int *)(iVar4 + 0x18);\n  if (*(undefined **)(iVar4 + 0x3c) == PTR__bfd_std_section_000bafc4 + 0x150) {\n    uVar5 = dcgettext(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)\n    ;\n    FUN_00031730(uVar5);\n    bVar6 = true;\n  }\n  else {\n    iVar2 = *(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c);\n    iVar7 = *(int *)(iVar4 + 0x24);\n    if (*(int *)(iVar2 + 0x30) == 0) {\n      iVar8 = *(int *)(iVar4 + 0x6c);\n      if (iVar8 == 0) {\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }\n    }\n    else {\n      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);\n    }\n    (**(code **)(iVar3 + 0x54))(4,iVar8);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(iVar7 + -0x10,iVar8 + 4);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(3,iVar8 + 8);\n    *(undefined4 *)(iVar8 + 0xc) = 0x554e47;\n    FUN_000354a0(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,\n                 iVar7 + -0x10);\n    iVar3 = *(int *)(iVar4 + 0x24);\n    iVar4 = bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0);\n    bVar6 = false;\n    if (iVar4 == 0) {\n      iVar4 = bfd_bwrite(iVar8,iVar3,param_1);\n      return iVar4 == iVar3;\n    }\n  }\n  return bVar6;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (expression_statement "iVar3 = *(int *)(param_1 + 4);" (assignment_expression "iVar3 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(*(int *)(param_1 + 0x9c) + 0x910);" (assignment_expression "iVar4 = *(int *)(*(int *)(param_1 + 0x9c) + 0x910)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x9c) + 0x910)" * (cast_expression "(int *)(*(int *)(param_1 + 0x9c) + 0x910)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x9c) + 0x910)" ( (binary_expression "*(int *)(param_1 + 0x9c) + 0x910" (pointer_expression "*(int *)(param_1 + 0x9c)" * (cast_expression "(int *)(param_1 + 0x9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x9c)" ( (binary_expression "param_1 + 0x9c" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "iVar1 = *(int *)(iVar3 + 0x1c0);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0x1c0)" identifier = (pointer_expression "*(int *)(iVar3 + 0x1c0)" * (cast_expression "(int *)(iVar3 + 0x1c0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c0)" ( (binary_expression "iVar3 + 0x1c0" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(undefined4 *)(iVar4 + 0x14);" (assignment_expression "uVar5 = *(undefined4 *)(iVar4 + 0x14)" identifier = (pointer_expression "*(undefined4 *)(iVar4 + 0x14)" * (cast_expression "(undefined4 *)(iVar4 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(iVar4 + 0x18);" (assignment_expression "iVar4 = *(int *)(iVar4 + 0x18)" identifier = (pointer_expression "*(int *)(iVar4 + 0x18)" * (cast_expression "(int *)(iVar4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x18)" ( (binary_expression "iVar4 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (*(undefined **)(iVar4 + 0x3c) == PTR__bfd_std_section_000bafc4 + 0x150) {\n    uVar5 = dcgettext(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)\n    ;\n    FUN_00031730(uVar5);\n    bVar6 = true;\n  }\n  else {\n    iVar2 = *(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c);\n    iVar7 = *(int *)(iVar4 + 0x24);\n    if (*(int *)(iVar2 + 0x30) == 0) {\n      iVar8 = *(int *)(iVar4 + 0x6c);\n      if (iVar8 == 0) {\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }\n    }\n    else {\n      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);\n    }\n    (**(code **)(iVar3 + 0x54))(4,iVar8);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(iVar7 + -0x10,iVar8 + 4);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(3,iVar8 + 8);\n    *(undefined4 *)(iVar8 + 0xc) = 0x554e47;\n    FUN_000354a0(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,\n                 iVar7 + -0x10);\n    iVar3 = *(int *)(iVar4 + 0x24);\n    iVar4 = bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0);\n    bVar6 = false;\n    if (iVar4 == 0) {\n      iVar4 = bfd_bwrite(iVar8,iVar3,param_1);\n      return iVar4 == iVar3;\n    }\n  }" if (parenthesized_expression "(*(undefined **)(iVar4 + 0x3c) == PTR__bfd_std_section_000bafc4 + 0x150)" ( (binary_expression "*(undefined **)(iVar4 + 0x3c) == PTR__bfd_std_section_000bafc4 + 0x150" (pointer_expression "*(undefined **)(iVar4 + 0x3c)" * (cast_expression "(undefined **)(iVar4 + 0x3c)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x3c)" ( (binary_expression "iVar4 + 0x3c" identifier + number_literal) )))) == (binary_expression "PTR__bfd_std_section_000bafc4 + 0x150" identifier + number_literal)) )) (compound_statement "{\n    uVar5 = dcgettext(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)\n    ;\n    FUN_00031730(uVar5);\n    bVar6 = true;\n  }" { (expression_statement "uVar5 = dcgettext(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)\n    ;" (assignment_expression "uVar5 = dcgettext(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)" identifier = (call_expression "dcgettext(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)" identifier (argument_list "(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)" ( number_literal , (string_literal ""%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00031730(uVar5);" (call_expression "FUN_00031730(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "bVar6 = true;" (assignment_expression "bVar6 = true" identifier = true) ;) }) (else_clause "else {\n    iVar2 = *(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c);\n    iVar7 = *(int *)(iVar4 + 0x24);\n    if (*(int *)(iVar2 + 0x30) == 0) {\n      iVar8 = *(int *)(iVar4 + 0x6c);\n      if (iVar8 == 0) {\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }\n    }\n    else {\n      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);\n    }\n    (**(code **)(iVar3 + 0x54))(4,iVar8);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(iVar7 + -0x10,iVar8 + 4);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(3,iVar8 + 8);\n    *(undefined4 *)(iVar8 + 0xc) = 0x554e47;\n    FUN_000354a0(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,\n                 iVar7 + -0x10);\n    iVar3 = *(int *)(iVar4 + 0x24);\n    iVar4 = bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0);\n    bVar6 = false;\n    if (iVar4 == 0) {\n      iVar4 = bfd_bwrite(iVar8,iVar3,param_1);\n      return iVar4 == iVar3;\n    }\n  }" else (compound_statement "{\n    iVar2 = *(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c);\n    iVar7 = *(int *)(iVar4 + 0x24);\n    if (*(int *)(iVar2 + 0x30) == 0) {\n      iVar8 = *(int *)(iVar4 + 0x6c);\n      if (iVar8 == 0) {\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }\n    }\n    else {\n      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);\n    }\n    (**(code **)(iVar3 + 0x54))(4,iVar8);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(iVar7 + -0x10,iVar8 + 4);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(3,iVar8 + 8);\n    *(undefined4 *)(iVar8 + 0xc) = 0x554e47;\n    FUN_000354a0(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,\n                 iVar7 + -0x10);\n    iVar3 = *(int *)(iVar4 + 0x24);\n    iVar4 = bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0);\n    bVar6 = false;\n    if (iVar4 == 0) {\n      iVar4 = bfd_bwrite(iVar8,iVar3,param_1);\n      return iVar4 == iVar3;\n    }\n  }" { (expression_statement "iVar2 = *(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c);" (assignment_expression "iVar2 = *(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c)" identifier = (pointer_expression "*(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c)" * (cast_expression "(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(undefined **)(iVar4 + 0x3c) + 0x8c)" ( (binary_expression "*(undefined **)(iVar4 + 0x3c) + 0x8c" (pointer_expression "*(undefined **)(iVar4 + 0x3c)" * (cast_expression "(undefined **)(iVar4 + 0x3c)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x3c)" ( (binary_expression "iVar4 + 0x3c" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "iVar7 = *(int *)(iVar4 + 0x24);" (assignment_expression "iVar7 = *(int *)(iVar4 + 0x24)" identifier = (pointer_expression "*(int *)(iVar4 + 0x24)" * (cast_expression "(int *)(iVar4 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x24)" ( (binary_expression "iVar4 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar2 + 0x30) == 0) {\n      iVar8 = *(int *)(iVar4 + 0x6c);\n      if (iVar8 == 0) {\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }\n    }\n    else {\n      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);\n    }" if (parenthesized_expression "(*(int *)(iVar2 + 0x30) == 0)" ( (binary_expression "*(int *)(iVar2 + 0x30) == 0" (pointer_expression "*(int *)(iVar2 + 0x30)" * (cast_expression "(int *)(iVar2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x30)" ( (binary_expression "iVar2 + 0x30" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar8 = *(int *)(iVar4 + 0x6c);\n      if (iVar8 == 0) {\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }\n    }" { (expression_statement "iVar8 = *(int *)(iVar4 + 0x6c);" (assignment_expression "iVar8 = *(int *)(iVar4 + 0x6c)" identifier = (pointer_expression "*(int *)(iVar4 + 0x6c)" * (cast_expression "(int *)(iVar4 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x6c)" ( (binary_expression "iVar4 + 0x6c" identifier + number_literal) ))))) ;) (if_statement "if (iVar8 == 0) {\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }" { (expression_statement "iVar8 = xmalloc(iVar7);" (assignment_expression "iVar8 = xmalloc(iVar7)" identifier = (call_expression "xmalloc(iVar7)" identifier (argument_list "(iVar7)" ( identifier )))) ;) (expression_statement "*(int *)(iVar4 + 0x6c) = iVar8;" (assignment_expression "*(int *)(iVar4 + 0x6c) = iVar8" (pointer_expression "*(int *)(iVar4 + 0x6c)" * (cast_expression "(int *)(iVar4 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x6c)" ( (binary_expression "iVar4 + 0x6c" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar7 = *(int *)(iVar4 + 0x24);" (assignment_expression "iVar7 = *(int *)(iVar4 + 0x24)" identifier = (pointer_expression "*(int *)(iVar4 + 0x24)" * (cast_expression "(int *)(iVar4 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x24)" ( (binary_expression "iVar4 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 4);" (assignment_expression "iVar3 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) })) }) (else_clause "else {\n      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);\n    }" else (compound_statement "{\n      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);\n    }" { (expression_statement "iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);" (assignment_expression "iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38)" identifier = (binary_expression "*(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38)" (pointer_expression "*(int *)(iVar2 + 0x30)" * (cast_expression "(int *)(iVar2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x30)" ( (binary_expression "iVar2 + 0x30" identifier + number_literal) )))) + (pointer_expression "*(int *)(iVar4 + 0x38)" * (cast_expression "(int *)(iVar4 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x38)" ( (binary_expression "iVar4 + 0x38" identifier + number_literal) )))))) ;) }))) (expression_statement "(**(code **)(iVar3 + 0x54))(4,iVar8);" (call_expression "(**(code **)(iVar3 + 0x54))(4,iVar8)" (parenthesized_expression "(**(code **)(iVar3 + 0x54))" ( (pointer_expression "**(code **)(iVar3 + 0x54)" * (pointer_expression "*(code **)(iVar3 + 0x54)" * (cast_expression "(code **)(iVar3 + 0x54)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x54)" ( (binary_expression "iVar3 + 0x54" identifier + number_literal) ))))) )) (argument_list "(4,iVar8)" ( number_literal , identifier ))) ;) (expression_statement "(**(code **)(*(int *)(param_1 + 4) + 0x54))(iVar7 + -0x10,iVar8 + 4);" (call_expression "(**(code **)(*(int *)(param_1 + 4) + 0x54))(iVar7 + -0x10,iVar8 + 4)" (parenthesized_expression "(**(code **)(*(int *)(param_1 + 4) + 0x54))" ( (pointer_expression "**(code **)(*(int *)(param_1 + 4) + 0x54)" * (pointer_expression "*(code **)(*(int *)(param_1 + 4) + 0x54)" * (cast_expression "(code **)(*(int *)(param_1 + 4) + 0x54)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 0x54)" ( (binary_expression "*(int *)(param_1 + 4) + 0x54" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(iVar7 + -0x10,iVar8 + 4)" ( (binary_expression "iVar7 + -0x10" identifier + number_literal) , (binary_expression "iVar8 + 4" identifier + number_literal) ))) ;) (expression_statement "(**(code **)(*(int *)(param_1 + 4) + 0x54))(3,iVar8 + 8);" (call_expression "(**(code **)(*(int *)(param_1 + 4) + 0x54))(3,iVar8 + 8)" (parenthesized_expression "(**(code **)(*(int *)(param_1 + 4) + 0x54))" ( (pointer_expression "**(code **)(*(int *)(param_1 + 4) + 0x54)" * (pointer_expression "*(code **)(*(int *)(param_1 + 4) + 0x54)" * (cast_expression "(code **)(*(int *)(param_1 + 4) + 0x54)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 0x54)" ( (binary_expression "*(int *)(param_1 + 4) + 0x54" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(3,iVar8 + 8)" ( number_literal , (binary_expression "iVar8 + 8" identifier + number_literal) ))) ;) (expression_statement "*(undefined4 *)(iVar8 + 0xc) = 0x554e47;" (assignment_expression "*(undefined4 *)(iVar8 + 0xc) = 0x554e47" (pointer_expression "*(undefined4 *)(iVar8 + 0xc)" * (cast_expression "(undefined4 *)(iVar8 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0xc)" ( (binary_expression "iVar8 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_000354a0(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,\n                 iVar7 + -0x10);" (call_expression "FUN_000354a0(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,\n                 iVar7 + -0x10)" identifier (argument_list "(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,\n                 iVar7 + -0x10)" ( identifier , identifier , (pointer_expression "*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18)" * (cast_expression "(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 0x18c) + 0x18)" ( (binary_expression "*(int *)(iVar1 + 0x18c) + 0x18" (pointer_expression "*(int *)(iVar1 + 0x18c)" * (cast_expression "(int *)(iVar1 + 0x18c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18c)" ( (binary_expression "iVar1 + 0x18c" identifier + number_literal) )))) + number_literal) )))) , (binary_expression "iVar8 + 0x10" identifier + number_literal) , (binary_expression "iVar7 + -0x10" identifier + number_literal) ))) ;) (expression_statement "iVar3 = *(int *)(iVar4 + 0x24);" (assignment_expression "iVar3 = *(int *)(iVar4 + 0x24)" identifier = (pointer_expression "*(int *)(iVar4 + 0x24)" * (cast_expression "(int *)(iVar4 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x24)" ( (binary_expression "iVar4 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0);" (assignment_expression "iVar4 = bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0)" identifier = (call_expression "bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0)" identifier (argument_list "(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0)" ( identifier , (binary_expression "*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10)" (pointer_expression "*(uint *)(iVar4 + 0x38)" * (cast_expression "(uint *)(iVar4 + 0x38)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x38)" ( (binary_expression "iVar4 + 0x38" identifier + number_literal) )))) + (pointer_expression "*(uint *)(iVar2 + 0x10)" * (cast_expression "(uint *)(iVar2 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) ))))) , (binary_expression "*(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10))" (pointer_expression "*(int *)(iVar2 + 0x14)" * (cast_expression "(int *)(iVar2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) + (cast_expression "(uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10))" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10))" identifier (argument_list "(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10))" ( (pointer_expression "*(uint *)(iVar4 + 0x38)" * (cast_expression "(uint *)(iVar4 + 0x38)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x38)" ( (binary_expression "iVar4 + 0x38" identifier + number_literal) )))) , (pointer_expression "*(uint *)(iVar2 + 0x10)" * (cast_expression "(uint *)(iVar2 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) ))))) , number_literal )))) ;) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" identifier = false) ;) (if_statement "if (iVar4 == 0) {\n      iVar4 = bfd_bwrite(iVar8,iVar3,param_1);\n      return iVar4 == iVar3;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar4 = bfd_bwrite(iVar8,iVar3,param_1);\n      return iVar4 == iVar3;\n    }" { (expression_statement "iVar4 = bfd_bwrite(iVar8,iVar3,param_1);" (assignment_expression "iVar4 = bfd_bwrite(iVar8,iVar3,param_1)" identifier = (call_expression "bfd_bwrite(iVar8,iVar3,param_1)" identifier (argument_list "(iVar8,iVar3,param_1)" ( identifier , identifier , identifier )))) ;) (return_statement "return iVar4 == iVar3;" return (binary_expression "iVar4 == iVar3" identifier == identifier) ;) })) }))) (return_statement "return bVar6;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nbfd_boolean write_build_id(bfd *abfd)\n\n{\n  output_elf_obj_tdata *poVar1;\n  void *pvVar2;\n  asection *paVar3;\n  void *pvVar4;\n  bfd_target *pbVar5;\n  int iVar6;\n  bfd_size_type bVar7;\n  char *pcVar8;\n  bfd_boolean bVar9;\n  bfd_size_type bVar10;\n  uchar *puVar11;\n  \n  pbVar5 = abfd->xvec;\n  poVar1 = ((abfd->tdata).elf_obj_data)->o;\n  pvVar2 = pbVar5->backend_data;\n  pcVar8 = (poVar1->build_id).style;\n  paVar3 = (poVar1->build_id).sec;\n  if (paVar3->output_section == (bfd_section *)(PTR__bfd_std_section_000bafc4 + 0x150)) {\n    pcVar8 = (char *)dcgettext(0,\n                               "%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n"\n                               ,5);\n    einfo(pcVar8);\n    bVar9 = 1;\n  }\n  else {\n    pvVar4 = paVar3->output_section->used_by_bfd;\n    bVar10 = paVar3->size;\n    if (*(int *)((int)pvVar4 + 0x30) == 0) {\n      puVar11 = paVar3->contents;\n      if (puVar11 == (uchar *)0x0) {\n        puVar11 = (uchar *)xmalloc(bVar10);\n        paVar3->contents = puVar11;\n        bVar10 = paVar3->size;\n        pbVar5 = abfd->xvec;\n      }\n    }\n    else {\n      puVar11 = (uchar *)(*(int *)((int)pvVar4 + 0x30) + paVar3->output_offset);\n    }\n    (*pbVar5->bfd_h_putx32)(4,puVar11);\n    (*abfd->xvec->bfd_h_putx32)(bVar10 - 0x10,puVar11 + 4);\n    (*abfd->xvec->bfd_h_putx32)(3,puVar11 + 8);\n    builtin_memcpy(puVar11 + 0xc,"GNU",4);\n    generate_build_id(abfd,pcVar8,*(checksum_fn *)(*(int *)((int)pvVar2 + 0x18c) + 0x18),\n                      puVar11 + 0x10,bVar10 - 0x10);\n    bVar10 = paVar3->size;\n    iVar6 = bfd_seek(abfd,paVar3->output_offset + *(uint *)((int)pvVar4 + 0x10),\n                     *(int *)((int)pvVar4 + 0x14) +\n                     (uint)CARRY4(paVar3->output_offset,*(uint *)((int)pvVar4 + 0x10)),0);\n    bVar9 = 0;\n    if (iVar6 == 0) {\n      bVar7 = bfd_bwrite(puVar11,bVar10,abfd);\n      return (uint)(bVar7 == bVar10);\n    }\n  }\n  return bVar9;\n}\n\n" comment comment (function_definition "bfd_boolean write_build_id(bfd *abfd)\n\n{\n  output_elf_obj_tdata *poVar1;\n  void *pvVar2;\n  asection *paVar3;\n  void *pvVar4;\n  bfd_target *pbVar5;\n  int iVar6;\n  bfd_size_type bVar7;\n  char *pcVar8;\n  bfd_boolean bVar9;\n  bfd_size_type bVar10;\n  uchar *puVar11;\n  \n  pbVar5 = abfd->xvec;\n  poVar1 = ((abfd->tdata).elf_obj_data)->o;\n  pvVar2 = pbVar5->backend_data;\n  pcVar8 = (poVar1->build_id).style;\n  paVar3 = (poVar1->build_id).sec;\n  if (paVar3->output_section == (bfd_section *)(PTR__bfd_std_section_000bafc4 + 0x150)) {\n    pcVar8 = (char *)dcgettext(0,\n                               "%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n"\n                               ,5);\n    einfo(pcVar8);\n    bVar9 = 1;\n  }\n  else {\n    pvVar4 = paVar3->output_section->used_by_bfd;\n    bVar10 = paVar3->size;\n    if (*(int *)((int)pvVar4 + 0x30) == 0) {\n      puVar11 = paVar3->contents;\n      if (puVar11 == (uchar *)0x0) {\n        puVar11 = (uchar *)xmalloc(bVar10);\n        paVar3->contents = puVar11;\n        bVar10 = paVar3->size;\n        pbVar5 = abfd->xvec;\n      }\n    }\n    else {\n      puVar11 = (uchar *)(*(int *)((int)pvVar4 + 0x30) + paVar3->output_offset);\n    }\n    (*pbVar5->bfd_h_putx32)(4,puVar11);\n    (*abfd->xvec->bfd_h_putx32)(bVar10 - 0x10,puVar11 + 4);\n    (*abfd->xvec->bfd_h_putx32)(3,puVar11 + 8);\n    builtin_memcpy(puVar11 + 0xc,"GNU",4);\n    generate_build_id(abfd,pcVar8,*(checksum_fn *)(*(int *)((int)pvVar2 + 0x18c) + 0x18),\n                      puVar11 + 0x10,bVar10 - 0x10);\n    bVar10 = paVar3->size;\n    iVar6 = bfd_seek(abfd,paVar3->output_offset + *(uint *)((int)pvVar4 + 0x10),\n                     *(int *)((int)pvVar4 + 0x14) +\n                     (uint)CARRY4(paVar3->output_offset,*(uint *)((int)pvVar4 + 0x10)),0);\n    bVar9 = 0;\n    if (iVar6 == 0) {\n      bVar7 = bfd_bwrite(puVar11,bVar10,abfd);\n      return (uint)(bVar7 == bVar10);\n    }\n  }\n  return bVar9;\n}" type_identifier (function_declarator "write_build_id(bfd *abfd)" identifier (parameter_list "(bfd *abfd)" ( (parameter_declaration "bfd *abfd" type_identifier (pointer_declarator "*abfd" * identifier)) ))) (compound_statement "{\n  output_elf_obj_tdata *poVar1;\n  void *pvVar2;\n  asection *paVar3;\n  void *pvVar4;\n  bfd_target *pbVar5;\n  int iVar6;\n  bfd_size_type bVar7;\n  char *pcVar8;\n  bfd_boolean bVar9;\n  bfd_size_type bVar10;\n  uchar *puVar11;\n  \n  pbVar5 = abfd->xvec;\n  poVar1 = ((abfd->tdata).elf_obj_data)->o;\n  pvVar2 = pbVar5->backend_data;\n  pcVar8 = (poVar1->build_id).style;\n  paVar3 = (poVar1->build_id).sec;\n  if (paVar3->output_section == (bfd_section *)(PTR__bfd_std_section_000bafc4 + 0x150)) {\n    pcVar8 = (char *)dcgettext(0,\n                               "%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n"\n                               ,5);\n    einfo(pcVar8);\n    bVar9 = 1;\n  }\n  else {\n    pvVar4 = paVar3->output_section->used_by_bfd;\n    bVar10 = paVar3->size;\n    if (*(int *)((int)pvVar4 + 0x30) == 0) {\n      puVar11 = paVar3->contents;\n      if (puVar11 == (uchar *)0x0) {\n        puVar11 = (uchar *)xmalloc(bVar10);\n        paVar3->contents = puVar11;\n        bVar10 = paVar3->size;\n        pbVar5 = abfd->xvec;\n      }\n    }\n    else {\n      puVar11 = (uchar *)(*(int *)((int)pvVar4 + 0x30) + paVar3->output_offset);\n    }\n    (*pbVar5->bfd_h_putx32)(4,puVar11);\n    (*abfd->xvec->bfd_h_putx32)(bVar10 - 0x10,puVar11 + 4);\n    (*abfd->xvec->bfd_h_putx32)(3,puVar11 + 8);\n    builtin_memcpy(puVar11 + 0xc,"GNU",4);\n    generate_build_id(abfd,pcVar8,*(checksum_fn *)(*(int *)((int)pvVar2 + 0x18c) + 0x18),\n                      puVar11 + 0x10,bVar10 - 0x10);\n    bVar10 = paVar3->size;\n    iVar6 = bfd_seek(abfd,paVar3->output_offset + *(uint *)((int)pvVar4 + 0x10),\n                     *(int *)((int)pvVar4 + 0x14) +\n                     (uint)CARRY4(paVar3->output_offset,*(uint *)((int)pvVar4 + 0x10)),0);\n    bVar9 = 0;\n    if (iVar6 == 0) {\n      bVar7 = bfd_bwrite(puVar11,bVar10,abfd);\n      return (uint)(bVar7 == bVar10);\n    }\n  }\n  return bVar9;\n}" { (declaration "output_elf_obj_tdata *poVar1;" type_identifier (pointer_declarator "*poVar1" * identifier) ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "asection *paVar3;" type_identifier (pointer_declarator "*paVar3" * identifier) ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "bfd_target *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "bfd_size_type bVar7;" type_identifier identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "bfd_boolean bVar9;" type_identifier identifier ;) (declaration "bfd_size_type bVar10;" type_identifier identifier ;) (declaration "uchar *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (expression_statement "pbVar5 = abfd->xvec;" (assignment_expression "pbVar5 = abfd->xvec" identifier = (field_expression "abfd->xvec" identifier -> field_identifier)) ;) (expression_statement "poVar1 = ((abfd->tdata).elf_obj_data)->o;" (assignment_expression "poVar1 = ((abfd->tdata).elf_obj_data)->o" identifier = (field_expression "((abfd->tdata).elf_obj_data)->o" (parenthesized_expression "((abfd->tdata).elf_obj_data)" ( (field_expression "(abfd->tdata).elf_obj_data" (parenthesized_expression "(abfd->tdata)" ( (field_expression "abfd->tdata" identifier -> field_identifier) )) . field_identifier) )) -> field_identifier)) ;) (expression_statement "pvVar2 = pbVar5->backend_data;" (assignment_expression "pvVar2 = pbVar5->backend_data" identifier = (field_expression "pbVar5->backend_data" identifier -> field_identifier)) ;) (expression_statement "pcVar8 = (poVar1->build_id).style;" (assignment_expression "pcVar8 = (poVar1->build_id).style" identifier = (field_expression "(poVar1->build_id).style" (parenthesized_expression "(poVar1->build_id)" ( (field_expression "poVar1->build_id" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "paVar3 = (poVar1->build_id).sec;" (assignment_expression "paVar3 = (poVar1->build_id).sec" identifier = (field_expression "(poVar1->build_id).sec" (parenthesized_expression "(poVar1->build_id)" ( (field_expression "poVar1->build_id" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if (paVar3->output_section == (bfd_section *)(PTR__bfd_std_section_000bafc4 + 0x150)) {\n    pcVar8 = (char *)dcgettext(0,\n                               "%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n"\n                               ,5);\n    einfo(pcVar8);\n    bVar9 = 1;\n  }\n  else {\n    pvVar4 = paVar3->output_section->used_by_bfd;\n    bVar10 = paVar3->size;\n    if (*(int *)((int)pvVar4 + 0x30) == 0) {\n      puVar11 = paVar3->contents;\n      if (puVar11 == (uchar *)0x0) {\n        puVar11 = (uchar *)xmalloc(bVar10);\n        paVar3->contents = puVar11;\n        bVar10 = paVar3->size;\n        pbVar5 = abfd->xvec;\n      }\n    }\n    else {\n      puVar11 = (uchar *)(*(int *)((int)pvVar4 + 0x30) + paVar3->output_offset);\n    }\n    (*pbVar5->bfd_h_putx32)(4,puVar11);\n    (*abfd->xvec->bfd_h_putx32)(bVar10 - 0x10,puVar11 + 4);\n    (*abfd->xvec->bfd_h_putx32)(3,puVar11 + 8);\n    builtin_memcpy(puVar11 + 0xc,"GNU",4);\n    generate_build_id(abfd,pcVar8,*(checksum_fn *)(*(int *)((int)pvVar2 + 0x18c) + 0x18),\n                      puVar11 + 0x10,bVar10 - 0x10);\n    bVar10 = paVar3->size;\n    iVar6 = bfd_seek(abfd,paVar3->output_offset + *(uint *)((int)pvVar4 + 0x10),\n                     *(int *)((int)pvVar4 + 0x14) +\n                     (uint)CARRY4(paVar3->output_offset,*(uint *)((int)pvVar4 + 0x10)),0);\n    bVar9 = 0;\n    if (iVar6 == 0) {\n      bVar7 = bfd_bwrite(puVar11,bVar10,abfd);\n      return (uint)(bVar7 == bVar10);\n    }\n  }" if (parenthesized_expression "(paVar3->output_section == (bfd_section *)(PTR__bfd_std_section_000bafc4 + 0x150))" ( (binary_expression "paVar3->output_section == (bfd_section *)(PTR__bfd_std_section_000bafc4 + 0x150)" (field_expression "paVar3->output_section" identifier -> field_identifier) == (cast_expression "(bfd_section *)(PTR__bfd_std_section_000bafc4 + 0x150)" ( (type_descriptor "bfd_section *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__bfd_std_section_000bafc4 + 0x150)" ( (binary_expression "PTR__bfd_std_section_000bafc4 + 0x150" identifier + number_literal) )))) )) (compound_statement "{\n    pcVar8 = (char *)dcgettext(0,\n                               "%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n"\n                               ,5);\n    einfo(pcVar8);\n    bVar9 = 1;\n  }" { (expression_statement "pcVar8 = (char *)dcgettext(0,\n                               "%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n"\n                               ,5);" (assignment_expression "pcVar8 = (char *)dcgettext(0,\n                               "%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n"\n                               ,5)" identifier = (cast_expression "(char *)dcgettext(0,\n                               "%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n"\n                               ,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,\n                               "%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n"\n                               ,5)" identifier (argument_list "(0,\n                               "%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n"\n                               ,5)" ( number_literal , (string_literal ""%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "einfo(pcVar8);" (call_expression "einfo(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier ))) ;) (expression_statement "bVar9 = 1;" (assignment_expression "bVar9 = 1" identifier = number_literal) ;) }) (else_clause "else {\n    pvVar4 = paVar3->output_section->used_by_bfd;\n    bVar10 = paVar3->size;\n    if (*(int *)((int)pvVar4 + 0x30) == 0) {\n      puVar11 = paVar3->contents;\n      if (puVar11 == (uchar *)0x0) {\n        puVar11 = (uchar *)xmalloc(bVar10);\n        paVar3->contents = puVar11;\n        bVar10 = paVar3->size;\n        pbVar5 = abfd->xvec;\n      }\n    }\n    else {\n      puVar11 = (uchar *)(*(int *)((int)pvVar4 + 0x30) + paVar3->output_offset);\n    }\n    (*pbVar5->bfd_h_putx32)(4,puVar11);\n    (*abfd->xvec->bfd_h_putx32)(bVar10 - 0x10,puVar11 + 4);\n    (*abfd->xvec->bfd_h_putx32)(3,puVar11 + 8);\n    builtin_memcpy(puVar11 + 0xc,"GNU",4);\n    generate_build_id(abfd,pcVar8,*(checksum_fn *)(*(int *)((int)pvVar2 + 0x18c) + 0x18),\n                      puVar11 + 0x10,bVar10 - 0x10);\n    bVar10 = paVar3->size;\n    iVar6 = bfd_seek(abfd,paVar3->output_offset + *(uint *)((int)pvVar4 + 0x10),\n                     *(int *)((int)pvVar4 + 0x14) +\n                     (uint)CARRY4(paVar3->output_offset,*(uint *)((int)pvVar4 + 0x10)),0);\n    bVar9 = 0;\n    if (iVar6 == 0) {\n      bVar7 = bfd_bwrite(puVar11,bVar10,abfd);\n      return (uint)(bVar7 == bVar10);\n    }\n  }" else (compound_statement "{\n    pvVar4 = paVar3->output_section->used_by_bfd;\n    bVar10 = paVar3->size;\n    if (*(int *)((int)pvVar4 + 0x30) == 0) {\n      puVar11 = paVar3->contents;\n      if (puVar11 == (uchar *)0x0) {\n        puVar11 = (uchar *)xmalloc(bVar10);\n        paVar3->contents = puVar11;\n        bVar10 = paVar3->size;\n        pbVar5 = abfd->xvec;\n      }\n    }\n    else {\n      puVar11 = (uchar *)(*(int *)((int)pvVar4 + 0x30) + paVar3->output_offset);\n    }\n    (*pbVar5->bfd_h_putx32)(4,puVar11);\n    (*abfd->xvec->bfd_h_putx32)(bVar10 - 0x10,puVar11 + 4);\n    (*abfd->xvec->bfd_h_putx32)(3,puVar11 + 8);\n    builtin_memcpy(puVar11 + 0xc,"GNU",4);\n    generate_build_id(abfd,pcVar8,*(checksum_fn *)(*(int *)((int)pvVar2 + 0x18c) + 0x18),\n                      puVar11 + 0x10,bVar10 - 0x10);\n    bVar10 = paVar3->size;\n    iVar6 = bfd_seek(abfd,paVar3->output_offset + *(uint *)((int)pvVar4 + 0x10),\n                     *(int *)((int)pvVar4 + 0x14) +\n                     (uint)CARRY4(paVar3->output_offset,*(uint *)((int)pvVar4 + 0x10)),0);\n    bVar9 = 0;\n    if (iVar6 == 0) {\n      bVar7 = bfd_bwrite(puVar11,bVar10,abfd);\n      return (uint)(bVar7 == bVar10);\n    }\n  }" { (expression_statement "pvVar4 = paVar3->output_section->used_by_bfd;" (assignment_expression "pvVar4 = paVar3->output_section->used_by_bfd" identifier = (field_expression "paVar3->output_section->used_by_bfd" (field_expression "paVar3->output_section" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "bVar10 = paVar3->size;" (assignment_expression "bVar10 = paVar3->size" identifier = (field_expression "paVar3->size" identifier -> field_identifier)) ;) (if_statement "if (*(int *)((int)pvVar4 + 0x30) == 0) {\n      puVar11 = paVar3->contents;\n      if (puVar11 == (uchar *)0x0) {\n        puVar11 = (uchar *)xmalloc(bVar10);\n        paVar3->contents = puVar11;\n        bVar10 = paVar3->size;\n        pbVar5 = abfd->xvec;\n      }\n    }\n    else {\n      puVar11 = (uchar *)(*(int *)((int)pvVar4 + 0x30) + paVar3->output_offset);\n    }" if (parenthesized_expression "(*(int *)((int)pvVar4 + 0x30) == 0)" ( (binary_expression "*(int *)((int)pvVar4 + 0x30) == 0" (pointer_expression "*(int *)((int)pvVar4 + 0x30)" * (cast_expression "(int *)((int)pvVar4 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar4 + 0x30)" ( (binary_expression "(int)pvVar4 + 0x30" (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n      puVar11 = paVar3->contents;\n      if (puVar11 == (uchar *)0x0) {\n        puVar11 = (uchar *)xmalloc(bVar10);\n        paVar3->contents = puVar11;\n        bVar10 = paVar3->size;\n        pbVar5 = abfd->xvec;\n      }\n    }" { (expression_statement "puVar11 = paVar3->contents;" (assignment_expression "puVar11 = paVar3->contents" identifier = (field_expression "paVar3->contents" identifier -> field_identifier)) ;) (if_statement "if (puVar11 == (uchar *)0x0) {\n        puVar11 = (uchar *)xmalloc(bVar10);\n        paVar3->contents = puVar11;\n        bVar10 = paVar3->size;\n        pbVar5 = abfd->xvec;\n      }" if (parenthesized_expression "(puVar11 == (uchar *)0x0)" ( (binary_expression "puVar11 == (uchar *)0x0" identifier == (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        puVar11 = (uchar *)xmalloc(bVar10);\n        paVar3->contents = puVar11;\n        bVar10 = paVar3->size;\n        pbVar5 = abfd->xvec;\n      }" { (expression_statement "puVar11 = (uchar *)xmalloc(bVar10);" (assignment_expression "puVar11 = (uchar *)xmalloc(bVar10)" identifier = (cast_expression "(uchar *)xmalloc(bVar10)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(bVar10)" identifier (argument_list "(bVar10)" ( identifier ))))) ;) (expression_statement "paVar3->contents = puVar11;" (assignment_expression "paVar3->contents = puVar11" (field_expression "paVar3->contents" identifier -> field_identifier) = identifier) ;) (expression_statement "bVar10 = paVar3->size;" (assignment_expression "bVar10 = paVar3->size" identifier = (field_expression "paVar3->size" identifier -> field_identifier)) ;) (expression_statement "pbVar5 = abfd->xvec;" (assignment_expression "pbVar5 = abfd->xvec" identifier = (field_expression "abfd->xvec" identifier -> field_identifier)) ;) })) }) (else_clause "else {\n      puVar11 = (uchar *)(*(int *)((int)pvVar4 + 0x30) + paVar3->output_offset);\n    }" else (compound_statement "{\n      puVar11 = (uchar *)(*(int *)((int)pvVar4 + 0x30) + paVar3->output_offset);\n    }" { (expression_statement "puVar11 = (uchar *)(*(int *)((int)pvVar4 + 0x30) + paVar3->output_offset);" (assignment_expression "puVar11 = (uchar *)(*(int *)((int)pvVar4 + 0x30) + paVar3->output_offset)" identifier = (cast_expression "(uchar *)(*(int *)((int)pvVar4 + 0x30) + paVar3->output_offset)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)((int)pvVar4 + 0x30) + paVar3->output_offset)" ( (binary_expression "*(int *)((int)pvVar4 + 0x30) + paVar3->output_offset" (pointer_expression "*(int *)((int)pvVar4 + 0x30)" * (cast_expression "(int *)((int)pvVar4 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar4 + 0x30)" ( (binary_expression "(int)pvVar4 + 0x30" (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + (field_expression "paVar3->output_offset" identifier -> field_identifier)) )))) ;) }))) (expression_statement "(*pbVar5->bfd_h_putx32)(4,puVar11);" (call_expression "(*pbVar5->bfd_h_putx32)(4,puVar11)" (parenthesized_expression "(*pbVar5->bfd_h_putx32)" ( (pointer_expression "*pbVar5->bfd_h_putx32" * (field_expression "pbVar5->bfd_h_putx32" identifier -> field_identifier)) )) (argument_list "(4,puVar11)" ( number_literal , identifier ))) ;) (expression_statement "(*abfd->xvec->bfd_h_putx32)(bVar10 - 0x10,puVar11 + 4);" (call_expression "(*abfd->xvec->bfd_h_putx32)(bVar10 - 0x10,puVar11 + 4)" (parenthesized_expression "(*abfd->xvec->bfd_h_putx32)" ( (pointer_expression "*abfd->xvec->bfd_h_putx32" * (field_expression "abfd->xvec->bfd_h_putx32" (field_expression "abfd->xvec" identifier -> field_identifier) -> field_identifier)) )) (argument_list "(bVar10 - 0x10,puVar11 + 4)" ( (binary_expression "bVar10 - 0x10" identifier - number_literal) , (binary_expression "puVar11 + 4" identifier + number_literal) ))) ;) (expression_statement "(*abfd->xvec->bfd_h_putx32)(3,puVar11 + 8);" (call_expression "(*abfd->xvec->bfd_h_putx32)(3,puVar11 + 8)" (parenthesized_expression "(*abfd->xvec->bfd_h_putx32)" ( (pointer_expression "*abfd->xvec->bfd_h_putx32" * (field_expression "abfd->xvec->bfd_h_putx32" (field_expression "abfd->xvec" identifier -> field_identifier) -> field_identifier)) )) (argument_list "(3,puVar11 + 8)" ( number_literal , (binary_expression "puVar11 + 8" identifier + number_literal) ))) ;) (expression_statement "builtin_memcpy(puVar11 + 0xc,"GNU",4);" (call_expression "builtin_memcpy(puVar11 + 0xc,"GNU",4)" identifier (argument_list "(puVar11 + 0xc,"GNU",4)" ( (binary_expression "puVar11 + 0xc" identifier + number_literal) , (string_literal ""GNU"" " string_content ") , number_literal ))) ;) (expression_statement "generate_build_id(abfd,pcVar8,*(checksum_fn *)(*(int *)((int)pvVar2 + 0x18c) + 0x18),\n                      puVar11 + 0x10,bVar10 - 0x10);" (call_expression "generate_build_id(abfd,pcVar8,*(checksum_fn *)(*(int *)((int)pvVar2 + 0x18c) + 0x18),\n                      puVar11 + 0x10,bVar10 - 0x10)" identifier (argument_list "(abfd,pcVar8,*(checksum_fn *)(*(int *)((int)pvVar2 + 0x18c) + 0x18),\n                      puVar11 + 0x10,bVar10 - 0x10)" ( identifier , identifier , (pointer_expression "*(checksum_fn *)(*(int *)((int)pvVar2 + 0x18c) + 0x18)" * (cast_expression "(checksum_fn *)(*(int *)((int)pvVar2 + 0x18c) + 0x18)" ( (type_descriptor "checksum_fn *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)((int)pvVar2 + 0x18c) + 0x18)" ( (binary_expression "*(int *)((int)pvVar2 + 0x18c) + 0x18" (pointer_expression "*(int *)((int)pvVar2 + 0x18c)" * (cast_expression "(int *)((int)pvVar2 + 0x18c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar2 + 0x18c)" ( (binary_expression "(int)pvVar2 + 0x18c" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) )))) , (binary_expression "puVar11 + 0x10" identifier + number_literal) , (binary_expression "bVar10 - 0x10" identifier - number_literal) ))) ;) (expression_statement "bVar10 = paVar3->size;" (assignment_expression "bVar10 = paVar3->size" identifier = (field_expression "paVar3->size" identifier -> field_identifier)) ;) (expression_statement "iVar6 = bfd_seek(abfd,paVar3->output_offset + *(uint *)((int)pvVar4 + 0x10),\n                     *(int *)((int)pvVar4 + 0x14) +\n                     (uint)CARRY4(paVar3->output_offset,*(uint *)((int)pvVar4 + 0x10)),0);" (assignment_expression "iVar6 = bfd_seek(abfd,paVar3->output_offset + *(uint *)((int)pvVar4 + 0x10),\n                     *(int *)((int)pvVar4 + 0x14) +\n                     (uint)CARRY4(paVar3->output_offset,*(uint *)((int)pvVar4 + 0x10)),0)" identifier = (call_expression "bfd_seek(abfd,paVar3->output_offset + *(uint *)((int)pvVar4 + 0x10),\n                     *(int *)((int)pvVar4 + 0x14) +\n                     (uint)CARRY4(paVar3->output_offset,*(uint *)((int)pvVar4 + 0x10)),0)" identifier (argument_list "(abfd,paVar3->output_offset + *(uint *)((int)pvVar4 + 0x10),\n                     *(int *)((int)pvVar4 + 0x14) +\n                     (uint)CARRY4(paVar3->output_offset,*(uint *)((int)pvVar4 + 0x10)),0)" ( identifier , (binary_expression "paVar3->output_offset + *(uint *)((int)pvVar4 + 0x10)" (field_expression "paVar3->output_offset" identifier -> field_identifier) + (pointer_expression "*(uint *)((int)pvVar4 + 0x10)" * (cast_expression "(uint *)((int)pvVar4 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar4 + 0x10)" ( (binary_expression "(int)pvVar4 + 0x10" (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) , (binary_expression "*(int *)((int)pvVar4 + 0x14) +\n                     (uint)CARRY4(paVar3->output_offset,*(uint *)((int)pvVar4 + 0x10))" (pointer_expression "*(int *)((int)pvVar4 + 0x14)" * (cast_expression "(int *)((int)pvVar4 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar4 + 0x14)" ( (binary_expression "(int)pvVar4 + 0x14" (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + (cast_expression "(uint)CARRY4(paVar3->output_offset,*(uint *)((int)pvVar4 + 0x10))" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(paVar3->output_offset,*(uint *)((int)pvVar4 + 0x10))" identifier (argument_list "(paVar3->output_offset,*(uint *)((int)pvVar4 + 0x10))" ( (field_expression "paVar3->output_offset" identifier -> field_identifier) , (pointer_expression "*(uint *)((int)pvVar4 + 0x10)" * (cast_expression "(uint *)((int)pvVar4 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar4 + 0x10)" ( (binary_expression "(int)pvVar4 + 0x10" (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))))) , number_literal )))) ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (if_statement "if (iVar6 == 0) {\n      bVar7 = bfd_bwrite(puVar11,bVar10,abfd);\n      return (uint)(bVar7 == bVar10);\n    }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n      bVar7 = bfd_bwrite(puVar11,bVar10,abfd);\n      return (uint)(bVar7 == bVar10);\n    }" { (expression_statement "bVar7 = bfd_bwrite(puVar11,bVar10,abfd);" (assignment_expression "bVar7 = bfd_bwrite(puVar11,bVar10,abfd)" identifier = (call_expression "bfd_bwrite(puVar11,bVar10,abfd)" identifier (argument_list "(puVar11,bVar10,abfd)" ( identifier , identifier , identifier )))) ;) (return_statement "return (uint)(bVar7 == bVar10);" return (call_expression "(uint)(bVar7 == bVar10)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(bVar7 == bVar10)" ( (binary_expression "bVar7 == bVar10" identifier == identifier) ))) ;) })) }))) (return_statement "return bVar9;" return identifier ;) })))
(translation_unit "bool FUN_00037160(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  bool bVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar3 = *(int *)(param_1 + 4);\n  iVar4 = *(int *)(*(int *)(param_1 + 0x9c) + 0x910);\n  iVar1 = *(int *)(iVar3 + 0x1c0);\n  uVar5 = *(undefined4 *)(iVar4 + 0x14);\n  iVar4 = *(int *)(iVar4 + 0x18);\n  if (*(undefined **)(iVar4 + 0x3c) == PTR__bfd_std_section_000bafc4 + 0x150) {\n    uVar5 = dcgettext(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)\n    ;\n    FUN_00031730(uVar5);\n    bVar6 = true;\n  }\n  else {\n    iVar2 = *(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c);\n    iVar7 = *(int *)(iVar4 + 0x24);\n    if (*(int *)(iVar2 + 0x30) == 0) {\n      iVar8 = *(int *)(iVar4 + 0x6c);\n      if (iVar8 == 0) {\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }\n    }\n    else {\n      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);\n    }\n    (**(code **)(iVar3 + 0x54))(4,iVar8);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(iVar7 + -0x10,iVar8 + 4);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(3,iVar8 + 8);\n    *(undefined4 *)(iVar8 + 0xc) = 0x554e47;\n    FUN_000354a0(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,\n                 iVar7 + -0x10);\n    iVar3 = *(int *)(iVar4 + 0x24);\n    iVar4 = bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0);\n    bVar6 = false;\n    if (iVar4 == 0) {\n      iVar4 = bfd_bwrite(iVar8,iVar3,param_1);\n      return iVar4 == iVar3;\n    }\n  }\n  return bVar6;\n}\n\n" (function_definition "bool FUN_00037160(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  bool bVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar3 = *(int *)(param_1 + 4);\n  iVar4 = *(int *)(*(int *)(param_1 + 0x9c) + 0x910);\n  iVar1 = *(int *)(iVar3 + 0x1c0);\n  uVar5 = *(undefined4 *)(iVar4 + 0x14);\n  iVar4 = *(int *)(iVar4 + 0x18);\n  if (*(undefined **)(iVar4 + 0x3c) == PTR__bfd_std_section_000bafc4 + 0x150) {\n    uVar5 = dcgettext(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)\n    ;\n    FUN_00031730(uVar5);\n    bVar6 = true;\n  }\n  else {\n    iVar2 = *(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c);\n    iVar7 = *(int *)(iVar4 + 0x24);\n    if (*(int *)(iVar2 + 0x30) == 0) {\n      iVar8 = *(int *)(iVar4 + 0x6c);\n      if (iVar8 == 0) {\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }\n    }\n    else {\n      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);\n    }\n    (**(code **)(iVar3 + 0x54))(4,iVar8);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(iVar7 + -0x10,iVar8 + 4);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(3,iVar8 + 8);\n    *(undefined4 *)(iVar8 + 0xc) = 0x554e47;\n    FUN_000354a0(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,\n                 iVar7 + -0x10);\n    iVar3 = *(int *)(iVar4 + 0x24);\n    iVar4 = bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0);\n    bVar6 = false;\n    if (iVar4 == 0) {\n      iVar4 = bfd_bwrite(iVar8,iVar3,param_1);\n      return iVar4 == iVar3;\n    }\n  }\n  return bVar6;\n}" primitive_type (function_declarator "FUN_00037160(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  bool bVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar3 = *(int *)(param_1 + 4);\n  iVar4 = *(int *)(*(int *)(param_1 + 0x9c) + 0x910);\n  iVar1 = *(int *)(iVar3 + 0x1c0);\n  uVar5 = *(undefined4 *)(iVar4 + 0x14);\n  iVar4 = *(int *)(iVar4 + 0x18);\n  if (*(undefined **)(iVar4 + 0x3c) == PTR__bfd_std_section_000bafc4 + 0x150) {\n    uVar5 = dcgettext(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)\n    ;\n    FUN_00031730(uVar5);\n    bVar6 = true;\n  }\n  else {\n    iVar2 = *(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c);\n    iVar7 = *(int *)(iVar4 + 0x24);\n    if (*(int *)(iVar2 + 0x30) == 0) {\n      iVar8 = *(int *)(iVar4 + 0x6c);\n      if (iVar8 == 0) {\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }\n    }\n    else {\n      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);\n    }\n    (**(code **)(iVar3 + 0x54))(4,iVar8);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(iVar7 + -0x10,iVar8 + 4);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(3,iVar8 + 8);\n    *(undefined4 *)(iVar8 + 0xc) = 0x554e47;\n    FUN_000354a0(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,\n                 iVar7 + -0x10);\n    iVar3 = *(int *)(iVar4 + 0x24);\n    iVar4 = bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0);\n    bVar6 = false;\n    if (iVar4 == 0) {\n      iVar4 = bfd_bwrite(iVar8,iVar3,param_1);\n      return iVar4 == iVar3;\n    }\n  }\n  return bVar6;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (expression_statement "iVar3 = *(int *)(param_1 + 4);" (assignment_expression "iVar3 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(*(int *)(param_1 + 0x9c) + 0x910);" (assignment_expression "iVar4 = *(int *)(*(int *)(param_1 + 0x9c) + 0x910)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x9c) + 0x910)" * (cast_expression "(int *)(*(int *)(param_1 + 0x9c) + 0x910)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x9c) + 0x910)" ( (binary_expression "*(int *)(param_1 + 0x9c) + 0x910" (pointer_expression "*(int *)(param_1 + 0x9c)" * (cast_expression "(int *)(param_1 + 0x9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x9c)" ( (binary_expression "param_1 + 0x9c" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "iVar1 = *(int *)(iVar3 + 0x1c0);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0x1c0)" identifier = (pointer_expression "*(int *)(iVar3 + 0x1c0)" * (cast_expression "(int *)(iVar3 + 0x1c0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c0)" ( (binary_expression "iVar3 + 0x1c0" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(undefined4 *)(iVar4 + 0x14);" (assignment_expression "uVar5 = *(undefined4 *)(iVar4 + 0x14)" identifier = (pointer_expression "*(undefined4 *)(iVar4 + 0x14)" * (cast_expression "(undefined4 *)(iVar4 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(iVar4 + 0x18);" (assignment_expression "iVar4 = *(int *)(iVar4 + 0x18)" identifier = (pointer_expression "*(int *)(iVar4 + 0x18)" * (cast_expression "(int *)(iVar4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x18)" ( (binary_expression "iVar4 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (*(undefined **)(iVar4 + 0x3c) == PTR__bfd_std_section_000bafc4 + 0x150) {\n    uVar5 = dcgettext(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)\n    ;\n    FUN_00031730(uVar5);\n    bVar6 = true;\n  }\n  else {\n    iVar2 = *(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c);\n    iVar7 = *(int *)(iVar4 + 0x24);\n    if (*(int *)(iVar2 + 0x30) == 0) {\n      iVar8 = *(int *)(iVar4 + 0x6c);\n      if (iVar8 == 0) {\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }\n    }\n    else {\n      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);\n    }\n    (**(code **)(iVar3 + 0x54))(4,iVar8);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(iVar7 + -0x10,iVar8 + 4);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(3,iVar8 + 8);\n    *(undefined4 *)(iVar8 + 0xc) = 0x554e47;\n    FUN_000354a0(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,\n                 iVar7 + -0x10);\n    iVar3 = *(int *)(iVar4 + 0x24);\n    iVar4 = bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0);\n    bVar6 = false;\n    if (iVar4 == 0) {\n      iVar4 = bfd_bwrite(iVar8,iVar3,param_1);\n      return iVar4 == iVar3;\n    }\n  }" if (parenthesized_expression "(*(undefined **)(iVar4 + 0x3c) == PTR__bfd_std_section_000bafc4 + 0x150)" ( (binary_expression "*(undefined **)(iVar4 + 0x3c) == PTR__bfd_std_section_000bafc4 + 0x150" (pointer_expression "*(undefined **)(iVar4 + 0x3c)" * (cast_expression "(undefined **)(iVar4 + 0x3c)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x3c)" ( (binary_expression "iVar4 + 0x3c" identifier + number_literal) )))) == (binary_expression "PTR__bfd_std_section_000bafc4 + 0x150" identifier + number_literal)) )) (compound_statement "{\n    uVar5 = dcgettext(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)\n    ;\n    FUN_00031730(uVar5);\n    bVar6 = true;\n  }" { (expression_statement "uVar5 = dcgettext(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)\n    ;" (assignment_expression "uVar5 = dcgettext(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)" identifier = (call_expression "dcgettext(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)" identifier (argument_list "(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)" ( number_literal , (string_literal ""%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00031730(uVar5);" (call_expression "FUN_00031730(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "bVar6 = true;" (assignment_expression "bVar6 = true" identifier = true) ;) }) (else_clause "else {\n    iVar2 = *(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c);\n    iVar7 = *(int *)(iVar4 + 0x24);\n    if (*(int *)(iVar2 + 0x30) == 0) {\n      iVar8 = *(int *)(iVar4 + 0x6c);\n      if (iVar8 == 0) {\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }\n    }\n    else {\n      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);\n    }\n    (**(code **)(iVar3 + 0x54))(4,iVar8);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(iVar7 + -0x10,iVar8 + 4);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(3,iVar8 + 8);\n    *(undefined4 *)(iVar8 + 0xc) = 0x554e47;\n    FUN_000354a0(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,\n                 iVar7 + -0x10);\n    iVar3 = *(int *)(iVar4 + 0x24);\n    iVar4 = bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0);\n    bVar6 = false;\n    if (iVar4 == 0) {\n      iVar4 = bfd_bwrite(iVar8,iVar3,param_1);\n      return iVar4 == iVar3;\n    }\n  }" else (compound_statement "{\n    iVar2 = *(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c);\n    iVar7 = *(int *)(iVar4 + 0x24);\n    if (*(int *)(iVar2 + 0x30) == 0) {\n      iVar8 = *(int *)(iVar4 + 0x6c);\n      if (iVar8 == 0) {\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }\n    }\n    else {\n      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);\n    }\n    (**(code **)(iVar3 + 0x54))(4,iVar8);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(iVar7 + -0x10,iVar8 + 4);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(3,iVar8 + 8);\n    *(undefined4 *)(iVar8 + 0xc) = 0x554e47;\n    FUN_000354a0(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,\n                 iVar7 + -0x10);\n    iVar3 = *(int *)(iVar4 + 0x24);\n    iVar4 = bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0);\n    bVar6 = false;\n    if (iVar4 == 0) {\n      iVar4 = bfd_bwrite(iVar8,iVar3,param_1);\n      return iVar4 == iVar3;\n    }\n  }" { (expression_statement "iVar2 = *(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c);" (assignment_expression "iVar2 = *(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c)" identifier = (pointer_expression "*(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c)" * (cast_expression "(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(undefined **)(iVar4 + 0x3c) + 0x8c)" ( (binary_expression "*(undefined **)(iVar4 + 0x3c) + 0x8c" (pointer_expression "*(undefined **)(iVar4 + 0x3c)" * (cast_expression "(undefined **)(iVar4 + 0x3c)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x3c)" ( (binary_expression "iVar4 + 0x3c" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "iVar7 = *(int *)(iVar4 + 0x24);" (assignment_expression "iVar7 = *(int *)(iVar4 + 0x24)" identifier = (pointer_expression "*(int *)(iVar4 + 0x24)" * (cast_expression "(int *)(iVar4 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x24)" ( (binary_expression "iVar4 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar2 + 0x30) == 0) {\n      iVar8 = *(int *)(iVar4 + 0x6c);\n      if (iVar8 == 0) {\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }\n    }\n    else {\n      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);\n    }" if (parenthesized_expression "(*(int *)(iVar2 + 0x30) == 0)" ( (binary_expression "*(int *)(iVar2 + 0x30) == 0" (pointer_expression "*(int *)(iVar2 + 0x30)" * (cast_expression "(int *)(iVar2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x30)" ( (binary_expression "iVar2 + 0x30" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar8 = *(int *)(iVar4 + 0x6c);\n      if (iVar8 == 0) {\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }\n    }" { (expression_statement "iVar8 = *(int *)(iVar4 + 0x6c);" (assignment_expression "iVar8 = *(int *)(iVar4 + 0x6c)" identifier = (pointer_expression "*(int *)(iVar4 + 0x6c)" * (cast_expression "(int *)(iVar4 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x6c)" ( (binary_expression "iVar4 + 0x6c" identifier + number_literal) ))))) ;) (if_statement "if (iVar8 == 0) {\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }" { (expression_statement "iVar8 = xmalloc(iVar7);" (assignment_expression "iVar8 = xmalloc(iVar7)" identifier = (call_expression "xmalloc(iVar7)" identifier (argument_list "(iVar7)" ( identifier )))) ;) (expression_statement "*(int *)(iVar4 + 0x6c) = iVar8;" (assignment_expression "*(int *)(iVar4 + 0x6c) = iVar8" (pointer_expression "*(int *)(iVar4 + 0x6c)" * (cast_expression "(int *)(iVar4 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x6c)" ( (binary_expression "iVar4 + 0x6c" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar7 = *(int *)(iVar4 + 0x24);" (assignment_expression "iVar7 = *(int *)(iVar4 + 0x24)" identifier = (pointer_expression "*(int *)(iVar4 + 0x24)" * (cast_expression "(int *)(iVar4 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x24)" ( (binary_expression "iVar4 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 4);" (assignment_expression "iVar3 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) })) }) (else_clause "else {\n      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);\n    }" else (compound_statement "{\n      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);\n    }" { (expression_statement "iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);" (assignment_expression "iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38)" identifier = (binary_expression "*(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38)" (pointer_expression "*(int *)(iVar2 + 0x30)" * (cast_expression "(int *)(iVar2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x30)" ( (binary_expression "iVar2 + 0x30" identifier + number_literal) )))) + (pointer_expression "*(int *)(iVar4 + 0x38)" * (cast_expression "(int *)(iVar4 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x38)" ( (binary_expression "iVar4 + 0x38" identifier + number_literal) )))))) ;) }))) (expression_statement "(**(code **)(iVar3 + 0x54))(4,iVar8);" (call_expression "(**(code **)(iVar3 + 0x54))(4,iVar8)" (parenthesized_expression "(**(code **)(iVar3 + 0x54))" ( (pointer_expression "**(code **)(iVar3 + 0x54)" * (pointer_expression "*(code **)(iVar3 + 0x54)" * (cast_expression "(code **)(iVar3 + 0x54)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x54)" ( (binary_expression "iVar3 + 0x54" identifier + number_literal) ))))) )) (argument_list "(4,iVar8)" ( number_literal , identifier ))) ;) (expression_statement "(**(code **)(*(int *)(param_1 + 4) + 0x54))(iVar7 + -0x10,iVar8 + 4);" (call_expression "(**(code **)(*(int *)(param_1 + 4) + 0x54))(iVar7 + -0x10,iVar8 + 4)" (parenthesized_expression "(**(code **)(*(int *)(param_1 + 4) + 0x54))" ( (pointer_expression "**(code **)(*(int *)(param_1 + 4) + 0x54)" * (pointer_expression "*(code **)(*(int *)(param_1 + 4) + 0x54)" * (cast_expression "(code **)(*(int *)(param_1 + 4) + 0x54)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 0x54)" ( (binary_expression "*(int *)(param_1 + 4) + 0x54" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(iVar7 + -0x10,iVar8 + 4)" ( (binary_expression "iVar7 + -0x10" identifier + number_literal) , (binary_expression "iVar8 + 4" identifier + number_literal) ))) ;) (expression_statement "(**(code **)(*(int *)(param_1 + 4) + 0x54))(3,iVar8 + 8);" (call_expression "(**(code **)(*(int *)(param_1 + 4) + 0x54))(3,iVar8 + 8)" (parenthesized_expression "(**(code **)(*(int *)(param_1 + 4) + 0x54))" ( (pointer_expression "**(code **)(*(int *)(param_1 + 4) + 0x54)" * (pointer_expression "*(code **)(*(int *)(param_1 + 4) + 0x54)" * (cast_expression "(code **)(*(int *)(param_1 + 4) + 0x54)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 0x54)" ( (binary_expression "*(int *)(param_1 + 4) + 0x54" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(3,iVar8 + 8)" ( number_literal , (binary_expression "iVar8 + 8" identifier + number_literal) ))) ;) (expression_statement "*(undefined4 *)(iVar8 + 0xc) = 0x554e47;" (assignment_expression "*(undefined4 *)(iVar8 + 0xc) = 0x554e47" (pointer_expression "*(undefined4 *)(iVar8 + 0xc)" * (cast_expression "(undefined4 *)(iVar8 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0xc)" ( (binary_expression "iVar8 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_000354a0(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,\n                 iVar7 + -0x10);" (call_expression "FUN_000354a0(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,\n                 iVar7 + -0x10)" identifier (argument_list "(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,\n                 iVar7 + -0x10)" ( identifier , identifier , (pointer_expression "*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18)" * (cast_expression "(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 0x18c) + 0x18)" ( (binary_expression "*(int *)(iVar1 + 0x18c) + 0x18" (pointer_expression "*(int *)(iVar1 + 0x18c)" * (cast_expression "(int *)(iVar1 + 0x18c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18c)" ( (binary_expression "iVar1 + 0x18c" identifier + number_literal) )))) + number_literal) )))) , (binary_expression "iVar8 + 0x10" identifier + number_literal) , (binary_expression "iVar7 + -0x10" identifier + number_literal) ))) ;) (expression_statement "iVar3 = *(int *)(iVar4 + 0x24);" (assignment_expression "iVar3 = *(int *)(iVar4 + 0x24)" identifier = (pointer_expression "*(int *)(iVar4 + 0x24)" * (cast_expression "(int *)(iVar4 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x24)" ( (binary_expression "iVar4 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0);" (assignment_expression "iVar4 = bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0)" identifier = (call_expression "bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0)" identifier (argument_list "(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0)" ( identifier , (binary_expression "*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10)" (pointer_expression "*(uint *)(iVar4 + 0x38)" * (cast_expression "(uint *)(iVar4 + 0x38)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x38)" ( (binary_expression "iVar4 + 0x38" identifier + number_literal) )))) + (pointer_expression "*(uint *)(iVar2 + 0x10)" * (cast_expression "(uint *)(iVar2 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) ))))) , (binary_expression "*(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10))" (pointer_expression "*(int *)(iVar2 + 0x14)" * (cast_expression "(int *)(iVar2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) + (cast_expression "(uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10))" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10))" identifier (argument_list "(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10))" ( (pointer_expression "*(uint *)(iVar4 + 0x38)" * (cast_expression "(uint *)(iVar4 + 0x38)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x38)" ( (binary_expression "iVar4 + 0x38" identifier + number_literal) )))) , (pointer_expression "*(uint *)(iVar2 + 0x10)" * (cast_expression "(uint *)(iVar2 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) ))))) , number_literal )))) ;) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" identifier = false) ;) (if_statement "if (iVar4 == 0) {\n      iVar4 = bfd_bwrite(iVar8,iVar3,param_1);\n      return iVar4 == iVar3;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar4 = bfd_bwrite(iVar8,iVar3,param_1);\n      return iVar4 == iVar3;\n    }" { (expression_statement "iVar4 = bfd_bwrite(iVar8,iVar3,param_1);" (assignment_expression "iVar4 = bfd_bwrite(iVar8,iVar3,param_1)" identifier = (call_expression "bfd_bwrite(iVar8,iVar3,param_1)" identifier (argument_list "(iVar8,iVar3,param_1)" ( identifier , identifier , identifier )))) ;) (return_statement "return iVar4 == iVar3;" return (binary_expression "iVar4 == iVar3" identifier == identifier) ;) })) }))) (return_statement "return bVar6;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (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) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (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 ))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( LIT , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (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 IDENT + LIT) )))) + LIT) ))))) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (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 IDENT + LIT) )))) + LIT) ))))) )) (argument_list ( LIT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (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) )))) , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))))) , LIT )))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (return_statement return (binary_expression IDENT == IDENT) ;) })) }))) (return_statement return IDENT ;) })))
(function_definition "bool FUN_00037160(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  bool bVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar3 = *(int *)(param_1 + 4);\n  iVar4 = *(int *)(*(int *)(param_1 + 0x9c) + 0x910);\n  iVar1 = *(int *)(iVar3 + 0x1c0);\n  uVar5 = *(undefined4 *)(iVar4 + 0x14);\n  iVar4 = *(int *)(iVar4 + 0x18);\n  if (*(undefined **)(iVar4 + 0x3c) == PTR__bfd_std_section_000bafc4 + 0x150) {\n    uVar5 = dcgettext(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)\n    ;\n    FUN_00031730(uVar5);\n    bVar6 = true;\n  }\n  else {\n    iVar2 = *(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c);\n    iVar7 = *(int *)(iVar4 + 0x24);\n    if (*(int *)(iVar2 + 0x30) == 0) {\n      iVar8 = *(int *)(iVar4 + 0x6c);\n      if (iVar8 == 0) {\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }\n    }\n    else {\n      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);\n    }\n    (**(code **)(iVar3 + 0x54))(4,iVar8);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(iVar7 + -0x10,iVar8 + 4);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(3,iVar8 + 8);\n    *(undefined4 *)(iVar8 + 0xc) = 0x554e47;\n    FUN_000354a0(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,\n                 iVar7 + -0x10);\n    iVar3 = *(int *)(iVar4 + 0x24);\n    iVar4 = bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0);\n    bVar6 = false;\n    if (iVar4 == 0) {\n      iVar4 = bfd_bwrite(iVar8,iVar3,param_1);\n      return iVar4 == iVar3;\n    }\n  }\n  return bVar6;\n}" (primitive_type "bool") (function_declarator "FUN_00037160(int param_1)" (identifier "FUN_00037160") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  bool bVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar3 = *(int *)(param_1 + 4);\n  iVar4 = *(int *)(*(int *)(param_1 + 0x9c) + 0x910);\n  iVar1 = *(int *)(iVar3 + 0x1c0);\n  uVar5 = *(undefined4 *)(iVar4 + 0x14);\n  iVar4 = *(int *)(iVar4 + 0x18);\n  if (*(undefined **)(iVar4 + 0x3c) == PTR__bfd_std_section_000bafc4 + 0x150) {\n    uVar5 = dcgettext(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)\n    ;\n    FUN_00031730(uVar5);\n    bVar6 = true;\n  }\n  else {\n    iVar2 = *(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c);\n    iVar7 = *(int *)(iVar4 + 0x24);\n    if (*(int *)(iVar2 + 0x30) == 0) {\n      iVar8 = *(int *)(iVar4 + 0x6c);\n      if (iVar8 == 0) {\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }\n    }\n    else {\n      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);\n    }\n    (**(code **)(iVar3 + 0x54))(4,iVar8);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(iVar7 + -0x10,iVar8 + 4);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(3,iVar8 + 8);\n    *(undefined4 *)(iVar8 + 0xc) = 0x554e47;\n    FUN_000354a0(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,\n                 iVar7 + -0x10);\n    iVar3 = *(int *)(iVar4 + 0x24);\n    iVar4 = bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0);\n    bVar6 = false;\n    if (iVar4 == 0) {\n      iVar4 = bfd_bwrite(iVar8,iVar3,param_1);\n      return iVar4 == iVar3;\n    }\n  }\n  return bVar6;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "bool bVar6;" (primitive_type "bool") (identifier "bVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 4);" (assignment_expression "iVar3 = *(int *)(param_1 + 4)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "iVar4 = *(int *)(*(int *)(param_1 + 0x9c) + 0x910);" (assignment_expression "iVar4 = *(int *)(*(int *)(param_1 + 0x9c) + 0x910)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(*(int *)(param_1 + 0x9c) + 0x910)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x9c) + 0x910)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x9c) + 0x910)" (( "(") (binary_expression "*(int *)(param_1 + 0x9c) + 0x910" (pointer_expression "*(int *)(param_1 + 0x9c)" (* "*") (cast_expression "(int *)(param_1 + 0x9c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x9c)" (( "(") (binary_expression "param_1 + 0x9c" (identifier "param_1") (+ "+") (number_literal "0x9c")) () ")")))) (+ "+") (number_literal "0x910")) () ")"))))) (; ";")) (expression_statement "iVar1 = *(int *)(iVar3 + 0x1c0);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0x1c0)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar3 + 0x1c0)" (* "*") (cast_expression "(int *)(iVar3 + 0x1c0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1c0)" (( "(") (binary_expression "iVar3 + 0x1c0" (identifier "iVar3") (+ "+") (number_literal "0x1c0")) () ")"))))) (; ";")) (expression_statement "uVar5 = *(undefined4 *)(iVar4 + 0x14);" (assignment_expression "uVar5 = *(undefined4 *)(iVar4 + 0x14)" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)(iVar4 + 0x14)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x14)" (( "(") (binary_expression "iVar4 + 0x14" (identifier "iVar4") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar4 = *(int *)(iVar4 + 0x18);" (assignment_expression "iVar4 = *(int *)(iVar4 + 0x18)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar4 + 0x18)" (* "*") (cast_expression "(int *)(iVar4 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x18)" (( "(") (binary_expression "iVar4 + 0x18" (identifier "iVar4") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (if_statement "if (*(undefined **)(iVar4 + 0x3c) == PTR__bfd_std_section_000bafc4 + 0x150) {\n    uVar5 = dcgettext(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)\n    ;\n    FUN_00031730(uVar5);\n    bVar6 = true;\n  }\n  else {\n    iVar2 = *(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c);\n    iVar7 = *(int *)(iVar4 + 0x24);\n    if (*(int *)(iVar2 + 0x30) == 0) {\n      iVar8 = *(int *)(iVar4 + 0x6c);\n      if (iVar8 == 0) {\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }\n    }\n    else {\n      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);\n    }\n    (**(code **)(iVar3 + 0x54))(4,iVar8);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(iVar7 + -0x10,iVar8 + 4);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(3,iVar8 + 8);\n    *(undefined4 *)(iVar8 + 0xc) = 0x554e47;\n    FUN_000354a0(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,\n                 iVar7 + -0x10);\n    iVar3 = *(int *)(iVar4 + 0x24);\n    iVar4 = bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0);\n    bVar6 = false;\n    if (iVar4 == 0) {\n      iVar4 = bfd_bwrite(iVar8,iVar3,param_1);\n      return iVar4 == iVar3;\n    }\n  }" (if "if") (parenthesized_expression "(*(undefined **)(iVar4 + 0x3c) == PTR__bfd_std_section_000bafc4 + 0x150)" (( "(") (binary_expression "*(undefined **)(iVar4 + 0x3c) == PTR__bfd_std_section_000bafc4 + 0x150" (pointer_expression "*(undefined **)(iVar4 + 0x3c)" (* "*") (cast_expression "(undefined **)(iVar4 + 0x3c)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + 0x3c)" (( "(") (binary_expression "iVar4 + 0x3c" (identifier "iVar4") (+ "+") (number_literal "0x3c")) () ")")))) (== "==") (binary_expression "PTR__bfd_std_section_000bafc4 + 0x150" (identifier "PTR__bfd_std_section_000bafc4") (+ "+") (number_literal "0x150"))) () ")")) (compound_statement "{\n    uVar5 = dcgettext(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)\n    ;\n    FUN_00031730(uVar5);\n    bVar6 = true;\n  }" ({ "{") (expression_statement "uVar5 = dcgettext(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)\n    ;" (assignment_expression "uVar5 = dcgettext(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)" (identifier "uVar5") (= "=") (call_expression "dcgettext(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)" (identifier "dcgettext") (argument_list "(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n"" (" """) (string_content "%P: warning: .note.gnu.build-id section discarded, --build-id ignored") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00031730(uVar5);" (call_expression "FUN_00031730(uVar5)" (identifier "FUN_00031730") (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "bVar6 = true;" (assignment_expression "bVar6 = true" (identifier "bVar6") (= "=") (true "true")) (; ";")) (} "}")) (else_clause "else {\n    iVar2 = *(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c);\n    iVar7 = *(int *)(iVar4 + 0x24);\n    if (*(int *)(iVar2 + 0x30) == 0) {\n      iVar8 = *(int *)(iVar4 + 0x6c);\n      if (iVar8 == 0) {\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }\n    }\n    else {\n      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);\n    }\n    (**(code **)(iVar3 + 0x54))(4,iVar8);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(iVar7 + -0x10,iVar8 + 4);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(3,iVar8 + 8);\n    *(undefined4 *)(iVar8 + 0xc) = 0x554e47;\n    FUN_000354a0(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,\n                 iVar7 + -0x10);\n    iVar3 = *(int *)(iVar4 + 0x24);\n    iVar4 = bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0);\n    bVar6 = false;\n    if (iVar4 == 0) {\n      iVar4 = bfd_bwrite(iVar8,iVar3,param_1);\n      return iVar4 == iVar3;\n    }\n  }" (else "else") (compound_statement "{\n    iVar2 = *(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c);\n    iVar7 = *(int *)(iVar4 + 0x24);\n    if (*(int *)(iVar2 + 0x30) == 0) {\n      iVar8 = *(int *)(iVar4 + 0x6c);\n      if (iVar8 == 0) {\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }\n    }\n    else {\n      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);\n    }\n    (**(code **)(iVar3 + 0x54))(4,iVar8);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(iVar7 + -0x10,iVar8 + 4);\n    (**(code **)(*(int *)(param_1 + 4) + 0x54))(3,iVar8 + 8);\n    *(undefined4 *)(iVar8 + 0xc) = 0x554e47;\n    FUN_000354a0(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,\n                 iVar7 + -0x10);\n    iVar3 = *(int *)(iVar4 + 0x24);\n    iVar4 = bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0);\n    bVar6 = false;\n    if (iVar4 == 0) {\n      iVar4 = bfd_bwrite(iVar8,iVar3,param_1);\n      return iVar4 == iVar3;\n    }\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c);" (assignment_expression "iVar2 = *(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c)" (* "*") (cast_expression "(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(undefined **)(iVar4 + 0x3c) + 0x8c)" (( "(") (binary_expression "*(undefined **)(iVar4 + 0x3c) + 0x8c" (pointer_expression "*(undefined **)(iVar4 + 0x3c)" (* "*") (cast_expression "(undefined **)(iVar4 + 0x3c)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + 0x3c)" (( "(") (binary_expression "iVar4 + 0x3c" (identifier "iVar4") (+ "+") (number_literal "0x3c")) () ")")))) (+ "+") (number_literal "0x8c")) () ")"))))) (; ";")) (expression_statement "iVar7 = *(int *)(iVar4 + 0x24);" (assignment_expression "iVar7 = *(int *)(iVar4 + 0x24)" (identifier "iVar7") (= "=") (pointer_expression "*(int *)(iVar4 + 0x24)" (* "*") (cast_expression "(int *)(iVar4 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x24)" (( "(") (binary_expression "iVar4 + 0x24" (identifier "iVar4") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (if_statement "if (*(int *)(iVar2 + 0x30) == 0) {\n      iVar8 = *(int *)(iVar4 + 0x6c);\n      if (iVar8 == 0) {\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }\n    }\n    else {\n      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar2 + 0x30) == 0)" (( "(") (binary_expression "*(int *)(iVar2 + 0x30) == 0" (pointer_expression "*(int *)(iVar2 + 0x30)" (* "*") (cast_expression "(int *)(iVar2 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x30)" (( "(") (binary_expression "iVar2 + 0x30" (identifier "iVar2") (+ "+") (number_literal "0x30")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar8 = *(int *)(iVar4 + 0x6c);\n      if (iVar8 == 0) {\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }\n    }" ({ "{") (expression_statement "iVar8 = *(int *)(iVar4 + 0x6c);" (assignment_expression "iVar8 = *(int *)(iVar4 + 0x6c)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(iVar4 + 0x6c)" (* "*") (cast_expression "(int *)(iVar4 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x6c)" (( "(") (binary_expression "iVar4 + 0x6c" (identifier "iVar4") (+ "+") (number_literal "0x6c")) () ")"))))) (; ";")) (if_statement "if (iVar8 == 0) {\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }" (if "if") (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar8 = xmalloc(iVar7);\n        *(int *)(iVar4 + 0x6c) = iVar8;\n        iVar7 = *(int *)(iVar4 + 0x24);\n        iVar3 = *(int *)(param_1 + 4);\n      }" ({ "{") (expression_statement "iVar8 = xmalloc(iVar7);" (assignment_expression "iVar8 = xmalloc(iVar7)" (identifier "iVar8") (= "=") (call_expression "xmalloc(iVar7)" (identifier "xmalloc") (argument_list "(iVar7)" (( "(") (identifier "iVar7") () ")")))) (; ";")) (expression_statement "*(int *)(iVar4 + 0x6c) = iVar8;" (assignment_expression "*(int *)(iVar4 + 0x6c) = iVar8" (pointer_expression "*(int *)(iVar4 + 0x6c)" (* "*") (cast_expression "(int *)(iVar4 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x6c)" (( "(") (binary_expression "iVar4 + 0x6c" (identifier "iVar4") (+ "+") (number_literal "0x6c")) () ")")))) (= "=") (identifier "iVar8")) (; ";")) (expression_statement "iVar7 = *(int *)(iVar4 + 0x24);" (assignment_expression "iVar7 = *(int *)(iVar4 + 0x24)" (identifier "iVar7") (= "=") (pointer_expression "*(int *)(iVar4 + 0x24)" (* "*") (cast_expression "(int *)(iVar4 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x24)" (( "(") (binary_expression "iVar4 + 0x24" (identifier "iVar4") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 4);" (assignment_expression "iVar3 = *(int *)(param_1 + 4)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);\n    }" (else "else") (compound_statement "{\n      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);\n    }" ({ "{") (expression_statement "iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);" (assignment_expression "iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38)" (identifier "iVar8") (= "=") (binary_expression "*(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38)" (pointer_expression "*(int *)(iVar2 + 0x30)" (* "*") (cast_expression "(int *)(iVar2 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x30)" (( "(") (binary_expression "iVar2 + 0x30" (identifier "iVar2") (+ "+") (number_literal "0x30")) () ")")))) (+ "+") (pointer_expression "*(int *)(iVar4 + 0x38)" (* "*") (cast_expression "(int *)(iVar4 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x38)" (( "(") (binary_expression "iVar4 + 0x38" (identifier "iVar4") (+ "+") (number_literal "0x38")) () ")")))))) (; ";")) (} "}")))) (expression_statement "(**(code **)(iVar3 + 0x54))(4,iVar8);" (call_expression "(**(code **)(iVar3 + 0x54))(4,iVar8)" (parenthesized_expression "(**(code **)(iVar3 + 0x54))" (( "(") (pointer_expression "**(code **)(iVar3 + 0x54)" (* "*") (pointer_expression "*(code **)(iVar3 + 0x54)" (* "*") (cast_expression "(code **)(iVar3 + 0x54)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 0x54)" (( "(") (binary_expression "iVar3 + 0x54" (identifier "iVar3") (+ "+") (number_literal "0x54")) () ")"))))) () ")")) (argument_list "(4,iVar8)" (( "(") (number_literal "4") (, ",") (identifier "iVar8") () ")"))) (; ";")) (expression_statement "(**(code **)(*(int *)(param_1 + 4) + 0x54))(iVar7 + -0x10,iVar8 + 4);" (call_expression "(**(code **)(*(int *)(param_1 + 4) + 0x54))(iVar7 + -0x10,iVar8 + 4)" (parenthesized_expression "(**(code **)(*(int *)(param_1 + 4) + 0x54))" (( "(") (pointer_expression "**(code **)(*(int *)(param_1 + 4) + 0x54)" (* "*") (pointer_expression "*(code **)(*(int *)(param_1 + 4) + 0x54)" (* "*") (cast_expression "(code **)(*(int *)(param_1 + 4) + 0x54)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 4) + 0x54)" (( "(") (binary_expression "*(int *)(param_1 + 4) + 0x54" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x54")) () ")"))))) () ")")) (argument_list "(iVar7 + -0x10,iVar8 + 4)" (( "(") (binary_expression "iVar7 + -0x10" (identifier "iVar7") (+ "+") (number_literal "-0x10")) (, ",") (binary_expression "iVar8 + 4" (identifier "iVar8") (+ "+") (number_literal "4")) () ")"))) (; ";")) (expression_statement "(**(code **)(*(int *)(param_1 + 4) + 0x54))(3,iVar8 + 8);" (call_expression "(**(code **)(*(int *)(param_1 + 4) + 0x54))(3,iVar8 + 8)" (parenthesized_expression "(**(code **)(*(int *)(param_1 + 4) + 0x54))" (( "(") (pointer_expression "**(code **)(*(int *)(param_1 + 4) + 0x54)" (* "*") (pointer_expression "*(code **)(*(int *)(param_1 + 4) + 0x54)" (* "*") (cast_expression "(code **)(*(int *)(param_1 + 4) + 0x54)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 4) + 0x54)" (( "(") (binary_expression "*(int *)(param_1 + 4) + 0x54" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x54")) () ")"))))) () ")")) (argument_list "(3,iVar8 + 8)" (( "(") (number_literal "3") (, ",") (binary_expression "iVar8 + 8" (identifier "iVar8") (+ "+") (number_literal "8")) () ")"))) (; ";")) (expression_statement "*(undefined4 *)(iVar8 + 0xc) = 0x554e47;" (assignment_expression "*(undefined4 *)(iVar8 + 0xc) = 0x554e47" (pointer_expression "*(undefined4 *)(iVar8 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar8 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0xc)" (( "(") (binary_expression "iVar8 + 0xc" (identifier "iVar8") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0x554e47")) (; ";")) (expression_statement "FUN_000354a0(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,\n                 iVar7 + -0x10);" (call_expression "FUN_000354a0(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,\n                 iVar7 + -0x10)" (identifier "FUN_000354a0") (argument_list "(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,\n                 iVar7 + -0x10)" (( "(") (identifier "param_1") (, ",") (identifier "uVar5") (, ",") (pointer_expression "*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18)" (* "*") (cast_expression "(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar1 + 0x18c) + 0x18)" (( "(") (binary_expression "*(int *)(iVar1 + 0x18c) + 0x18" (pointer_expression "*(int *)(iVar1 + 0x18c)" (* "*") (cast_expression "(int *)(iVar1 + 0x18c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x18c)" (( "(") (binary_expression "iVar1 + 0x18c" (identifier "iVar1") (+ "+") (number_literal "0x18c")) () ")")))) (+ "+") (number_literal "0x18")) () ")")))) (, ",") (binary_expression "iVar8 + 0x10" (identifier "iVar8") (+ "+") (number_literal "0x10")) (, ",") (binary_expression "iVar7 + -0x10" (identifier "iVar7") (+ "+") (number_literal "-0x10")) () ")"))) (; ";")) (expression_statement "iVar3 = *(int *)(iVar4 + 0x24);" (assignment_expression "iVar3 = *(int *)(iVar4 + 0x24)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar4 + 0x24)" (* "*") (cast_expression "(int *)(iVar4 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x24)" (( "(") (binary_expression "iVar4 + 0x24" (identifier "iVar4") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (expression_statement "iVar4 = bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0);" (assignment_expression "iVar4 = bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0)" (identifier "iVar4") (= "=") (call_expression "bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0)" (identifier "bfd_seek") (argument_list "(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),\n                     *(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0)" (( "(") (identifier "param_1") (, ",") (binary_expression "*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10)" (pointer_expression "*(uint *)(iVar4 + 0x38)" (* "*") (cast_expression "(uint *)(iVar4 + 0x38)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x38)" (( "(") (binary_expression "iVar4 + 0x38" (identifier "iVar4") (+ "+") (number_literal "0x38")) () ")")))) (+ "+") (pointer_expression "*(uint *)(iVar2 + 0x10)" (* "*") (cast_expression "(uint *)(iVar2 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")"))))) (, ",") (binary_expression "*(int *)(iVar2 + 0x14) +\n                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10))" (pointer_expression "*(int *)(iVar2 + 0x14)" (* "*") (cast_expression "(int *)(iVar2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x14)" (( "(") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (cast_expression "(uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10))" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (call_expression "CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10))" (identifier "CARRY4") (argument_list "(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10))" (( "(") (pointer_expression "*(uint *)(iVar4 + 0x38)" (* "*") (cast_expression "(uint *)(iVar4 + 0x38)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x38)" (( "(") (binary_expression "iVar4 + 0x38" (identifier "iVar4") (+ "+") (number_literal "0x38")) () ")")))) (, ",") (pointer_expression "*(uint *)(iVar2 + 0x10)" (* "*") (cast_expression "(uint *)(iVar2 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")")))) () ")"))))) (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" (identifier "bVar6") (= "=") (false "false")) (; ";")) (if_statement "if (iVar4 == 0) {\n      iVar4 = bfd_bwrite(iVar8,iVar3,param_1);\n      return iVar4 == iVar3;\n    }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar4 = bfd_bwrite(iVar8,iVar3,param_1);\n      return iVar4 == iVar3;\n    }" ({ "{") (expression_statement "iVar4 = bfd_bwrite(iVar8,iVar3,param_1);" (assignment_expression "iVar4 = bfd_bwrite(iVar8,iVar3,param_1)" (identifier "iVar4") (= "=") (call_expression "bfd_bwrite(iVar8,iVar3,param_1)" (identifier "bfd_bwrite") (argument_list "(iVar8,iVar3,param_1)" (( "(") (identifier "iVar8") (, ",") (identifier "iVar3") (, ",") (identifier "param_1") () ")")))) (; ";")) (return_statement "return iVar4 == iVar3;" (return "return") (binary_expression "iVar4 == iVar3" (identifier "iVar4") (== "==") (identifier "iVar3")) (; ";")) (} "}"))) (} "}")))) (return_statement "return bVar6;" (return "return") (identifier "bVar6") (; ";")) (} "}")))

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

type_1 function_1(type_2 *abfd)

{
  type_3 *poVar1;
  void *pvVar2;
  type_4 *paVar3;
  void *pvVar4;
  type_5 *pbVar5;
  int var_11;
  type_6 var_13;
  char *pcVar8;
  type_1 bVar9;
  type_6 var_6;
  type_7 *var_4;
  
  pbVar5 = abfd->xvec;
  poVar1 = ((abfd->tdata).elf_obj_data)->o;
  pvVar2 = pbVar5->backend_data;
  pcVar8 = (poVar1->build_id).style;
  paVar3 = (poVar1->build_id).sec;
  if (paVar3->output_section == (type_8 *)(var_1 + 0x150)) {
    pcVar8 = (char *)var_2(0,
                               "%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n"
                               ,5);
    var_3(pcVar8);
    bVar9 = 1;
  }
  else {
    pvVar4 = paVar3->output_section->used_by_bfd;
    var_6 = paVar3->size;
    if (*(int *)((int)pvVar4 + 0x30) == 0) {
      var_4 = paVar3->contents;
      if (var_4 == (type_7 *)0x0) {
        var_4 = (type_7 *)var_5(var_6);
        paVar3->contents = var_4;
        var_6 = paVar3->size;
        pbVar5 = abfd->xvec;
      }
    }
    else {
      var_4 = (type_7 *)(*(int *)((int)pvVar4 + 0x30) + paVar3->output_offset);
    }
    (*pbVar5->bfd_h_putx32)(4,var_4);
    (*abfd->xvec->bfd_h_putx32)(var_6 - 0x10,var_4 + 4);
    (*abfd->xvec->bfd_h_putx32)(3,var_4 + 8);
    var_7(var_4 + 0xc,"GNU",4);
    var_8(abfd,pcVar8,*(type_9 *)(*(int *)((int)pvVar2 + 0x18c) + 0x18),
                      var_4 + 0x10,var_6 - 0x10);
    var_6 = paVar3->size;
    var_11 = var_9(abfd,paVar3->output_offset + *(type_10 *)((int)pvVar4 + 0x10),
                     *(int *)((int)pvVar4 + 0x14) +
                     (type_10)var_10(paVar3->output_offset,*(type_10 *)((int)pvVar4 + 0x10)),0);
    bVar9 = 0;
    if (var_11 == 0) {
      var_13 = var_12(var_4,var_6,abfd);
      return (type_10)(var_13 == var_6);
    }
  }
  return bVar9;
}


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

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

bool MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  bool bVar6;
  int iVar7;
  int iVar8;
  
  iVar3 = *(int *)(param_1 + 4);
  iVar4 = *(int *)(*(int *)(param_1 + 0x9c) + 0x910);
  iVar1 = *(int *)(iVar3 + 0x1c0);
  uVar5 = *(undefined4 *)(iVar4 + 0x14);
  iVar4 = *(int *)(iVar4 + 0x18);
  if (*(undefined **)(iVar4 + 0x3c) == PTR__bfd_std_section_000bafc4 + 0x150) {
    uVar5 = dcgettext(0,"%P: warning: .note.gnu.build-id section discarded, --build-id ignored\n",5)
    ;
    FUN_00031730(uVar5);
    bVar6 = true;
  }
  else {
    iVar2 = *(int *)(*(undefined **)(iVar4 + 0x3c) + 0x8c);
    iVar7 = *(int *)(iVar4 + 0x24);
    if (*(int *)(iVar2 + 0x30) == 0) {
      iVar8 = *(int *)(iVar4 + 0x6c);
      if (iVar8 == 0) {
        iVar8 = xmalloc(iVar7);
        *(int *)(iVar4 + 0x6c) = iVar8;
        iVar7 = *(int *)(iVar4 + 0x24);
        iVar3 = *(int *)(param_1 + 4);
      }
    }
    else {
      iVar8 = *(int *)(iVar2 + 0x30) + *(int *)(iVar4 + 0x38);
    }
    (**(code **)(iVar3 + 0x54))(4,iVar8);
    (**(code **)(*(int *)(param_1 + 4) + 0x54))(iVar7 + -0x10,iVar8 + 4);
    (**(code **)(*(int *)(param_1 + 4) + 0x54))(3,iVar8 + 8);
    *(undefined4 *)(iVar8 + 0xc) = 0x554e47;
    FUN_000354a0(param_1,uVar5,*(undefined4 *)(*(int *)(iVar1 + 0x18c) + 0x18),iVar8 + 0x10,
                 iVar7 + -0x10);
    iVar3 = *(int *)(iVar4 + 0x24);
    iVar4 = bfd_seek(param_1,*(uint *)(iVar4 + 0x38) + *(uint *)(iVar2 + 0x10),
                     *(int *)(iVar2 + 0x14) +
                     (uint)CARRY4(*(uint *)(iVar4 + 0x38),*(uint *)(iVar2 + 0x10)),0);
    bVar6 = false;
    if (iVar4 == 0) {
      iVar4 = bfd_bwrite(iVar8,iVar3,param_1);
      return iVar4 == iVar3;
    }
  }
  return bVar6;
}

