
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

bfd_boolean __regparm3
slurp_rel_relocs(Filedata *filedata,ulong rel_offset,ulong rel_size,Elf_Internal_Rela **relsp,
                ulong *nrelsp)

{
  ushort uVar1;
  char *pcVar2;
  void *__ptr;
  uchar *puVar3;
  uint uVar4;
  uchar *puVar5;
  Elf_Internal_Rela *pEVar6;
  elf_vma eVar7;
  Elf_Internal_Rela *local_28;
  uint local_24;
  
  if (is_32bit_elf == 0) {
    pcVar2 = (char *)dcgettext(0,"64-bit relocation data",5);
    puVar3 = (uchar *)get_data((void *)0x0,filedata,rel_offset,1,(ulonglong)rel_size,pcVar2);
    if (puVar3 == (uchar *)0x0) {
      return 0;
    }
    local_24 = rel_size >> 4;
    local_28 = (Elf_Internal_Rela *)cmalloc(local_24,0x18);
    if (local_28 == (Elf_Internal_Rela *)0x0) {
      free(puVar3);
      pcVar2 = (char *)dcgettext(0,"out of memory parsing relocs\n",5);
      error(pcVar2);
      return 0;
    }
    if (local_24 != 0) {
      pEVar6 = local_28;
      puVar5 = puVar3;
      do {
        while( true ) {
          eVar7 = (*byte_get)(puVar5,8);
          pEVar6->r_offset = eVar7;
          eVar7 = (*byte_get)(puVar5 + 8,8);
          uVar4 = (uint)(eVar7 >> 0x20);
          *(undefined4 *)&pEVar6->r_addend = 0;
          pEVar6->r_info = eVar7;
          uVar1 = (filedata->file_header).e_machine;
          *(undefined4 *)((int)&pEVar6->r_addend + 4) = 0;
          if ((uVar1 != 8) || ((filedata->file_header).e_ident[5] == '\x02')) break;
          puVar5 = puVar5 + 0x10;
          *(int *)((int)&pEVar6->r_info + 4) = (int)eVar7;
          *(uint *)&pEVar6->r_info =
               uVar4 << 0x18 | (uVar4 & 0xff00) << 8 | uVar4 >> 0x18 | uVar4 >> 8 & 0xff00;
          pEVar6 = pEVar6 + 1;
          if (puVar5 == puVar3 + local_24 * 0x10) goto LAB_0001da70;
        }
        puVar5 = puVar5 + 0x10;
        pEVar6 = pEVar6 + 1;
      } while (puVar5 != puVar3 + local_24 * 0x10);
    }
LAB_0001da70:
    free(puVar3);
  }
  else {
    pcVar2 = (char *)dcgettext(0,"32-bit relocation data",5);
    __ptr = get_data((void *)0x0,filedata,rel_offset,1,(ulonglong)rel_size,pcVar2);
    if (__ptr == (void *)0x0) {
      return 0;
    }
    local_24 = rel_size >> 3;
    local_28 = (Elf_Internal_Rela *)cmalloc(local_24,0x18);
    if (local_28 == (Elf_Internal_Rela *)0x0) {
      free(__ptr);
      pcVar2 = (char *)dcgettext(0,"out of memory parsing relocs\n",5);
      error(pcVar2);
      return 0;
    }
    if (local_24 != 0) {
      puVar3 = (uchar *)((int)__ptr + 4);
      pEVar6 = local_28;
      do {
        eVar7 = (*byte_get)(puVar3 + -4,4);
        pEVar6->r_offset = eVar7;
        puVar5 = puVar3 + 8;
        eVar7 = (*byte_get)(puVar3,4);
        *(undefined4 *)&pEVar6->r_addend = 0;
        pEVar6->r_info = eVar7;
        *(undefined4 *)((int)&pEVar6->r_addend + 4) = 0;
        puVar3 = puVar5;
        pEVar6 = pEVar6 + 1;
      } while (puVar5 != (uchar *)((int)__ptr + local_24 * 8 + 4));
    }
    free(__ptr);
  }
  *relsp = local_28;
  *nrelsp = local_24;
  return 1;
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

undefined4 __regparm3
FUN_0001d7b0(int param_1,undefined4 param_2,uint param_3,int *param_4,uint *param_5)

{
  short sVar1;
  undefined4 uVar2;
  void *pvVar3;
  void *pvVar4;
  uint uVar5;
  int iVar6;
  int iVar7;
  undefined8 *puVar8;
  void *pvVar9;
  undefined8 uVar10;
  undefined8 *local_28;
  uint local_24;
  
  if (DAT_000b6324 == 0) {
    uVar2 = dcgettext(0,"64-bit relocation data",5);
    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);
    if (pvVar3 == (void *)0x0) {
      return 0;
    }
    local_24 = param_3 >> 4;
    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);
    if (local_28 == (undefined8 *)0x0) {
      free(pvVar3);
      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);
      error(uVar2);
      return 0;
    }
    if (local_24 != 0) {
      pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3);
      puVar8 = local_28;
      pvVar9 = pvVar3;
      do {
        while( true ) {
          uVar10 = (*DAT_000b9dd8)(pvVar9,8);
          *puVar8 = uVar10;
          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);
          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);
          *(undefined4 *)(puVar8 + 2) = 0;
          puVar8[1] = uVar10;
          sVar1 = *(short *)(param_1 + 0x42);
          *(undefined4 *)((int)puVar8 + 0x14) = 0;
          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;
          pvVar9 = (void *)((int)pvVar9 + 0x10);
          *(int *)((int)puVar8 + 0xc) = (int)uVar10;
          *(uint *)(puVar8 + 1) =
               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;
          puVar8 = puVar8 + 3;
          if (pvVar9 == pvVar4) goto LAB_0001da70;
        }
        pvVar9 = (void *)((int)pvVar9 + 0x10);
        puVar8 = puVar8 + 3;
      } while (pvVar9 != pvVar4);
    }
LAB_0001da70:
    free(pvVar3);
  }
  else {
    uVar2 = dcgettext(0,"32-bit relocation data",5);
    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);
    if (pvVar3 == (void *)0x0) {
      return 0;
    }
    local_24 = param_3 >> 3;
    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);
    if (local_28 == (undefined8 *)0x0) {
      free(pvVar3);
      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);
      error(uVar2);
      return 0;
    }
    if (local_24 != 0) {
      iVar6 = (int)pvVar3 + 4;
      puVar8 = local_28;
      do {
        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);
        *puVar8 = uVar10;
        iVar7 = iVar6 + 8;
        uVar10 = (*DAT_000b9dd8)(iVar6,4);
        *(undefined4 *)(puVar8 + 2) = 0;
        puVar8[1] = uVar10;
        *(undefined4 *)((int)puVar8 + 0x14) = 0;
        iVar6 = iVar7;
        puVar8 = puVar8 + 3;
      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);
    }
    free(pvVar3);
  }
  *param_4 = (int)local_28;
  *param_5 = local_24;
  return 1;
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
MOV EDI,EAX
PUSH ESI
CALL 0x0004ab81
ADD ESI,0x96844
PUSH EBX
SUB ESP,0x2c
MOV dword ptr [ESP + 0xc],ECX
MOV dword ptr [ESP],ECX
MOV EBX,ESI
MOV dword ptr [ESP + 0x8],ESI
MOV ESI,dword ptr [ESI + 0x2324]
MOV dword ptr [ESP + 0x4],0x0
TEST ESI,ESI
JZ 0x0001d920
SUB ESP,0x4
LEA EAX,[EBX + 0xfffc28be]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000130f0
MOV ECX,EBP
MOV EDX,EDI
MOV dword ptr [ESP],EAX
XOR EAX,EAX
PUSH dword ptr [ESP + 0x14]
PUSH dword ptr [ESP + 0x14]
PUSH 0x0
PUSH 0x1
CALL 0x0001bf90
MOV dword ptr [ESP + 0x20],EAX
ADD ESP,0x20
TEST EAX,EAX
JZ 0x0001d910
MOV EDI,dword ptr [ESP + 0xc]
SUB ESP,0x8
SHR EDI,0x3
MOV dword ptr [ESP + 0x20],EDI
PUSH 0x18
PUSH EDI
MOV EBX,dword ptr [ESP + 0x18]
CALL 0x0005dac0
MOV dword ptr [ESP + 0x24],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001d8e0
TEST EDI,EDI
JZ 0x0001d8a9
MOV EAX,dword ptr [ESP]
MOV EDX,dword ptr [ESP + 0x18]
MOV EDI,dword ptr [ESP + 0x14]
LEA EBX,[EAX + 0x4]
LEA EBP,[EAX + EDX*0x8 + 0x4]
MOV EAX,dword ptr [ESP + 0x8]
LEA ESI,[EAX + 0x5dd8]
NOP
SUB ESP,0x8
LEA EAX,[EBX + -0x4]
ADD EDI,0x18
PUSH 0x4
PUSH EAX
CALL dword ptr [ESI]
MOV dword ptr [EDI + -0x18],EAX
MOV dword ptr [EDI + -0x14],EDX
POP ECX
POP EAX
PUSH 0x4
PUSH EBX
ADD EBX,0x8
CALL dword ptr [ESI]
MOV dword ptr [EDI + -0x8],0x0
MOV dword ptr [EDI + -0x10],EAX
MOV dword ptr [EDI + -0xc],EDX
ADD ESP,0x10
MOV dword ptr [EDI + -0x4],0x0
CMP EBX,EBP
JNZ 0x0001d870
SUB ESP,0xc
PUSH dword ptr [ESP + 0xc]
MOV EBX,dword ptr [ESP + 0x18]
CALL 0x000130a0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x40]
MOV EDX,dword ptr [ESP + 0x14]
MOV ESI,0x1
MOV dword ptr [EAX],EDX
MOV EAX,dword ptr [ESP + 0x44]
MOV EDX,dword ptr [ESP + 0x18]
MOV dword ptr [EAX],EDX
ADD ESP,0x2c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH dword ptr [ESP + 0xc]
MOV EDI,dword ptr [ESP + 0x18]
MOV EBX,EDI
CALL 0x000130a0
ADD ESP,0xc
LEA EAX,[EDI + 0xfffc28d5]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000130f0
MOV dword ptr [ESP],EAX
CALL 0x00066870
ADD ESP,0x10
ADD ESP,0x2c
XOR ESI,ESI
POP EBX
MOV EAX,ESI
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH 0x5
MOV EDX,dword ptr [ESP + 0x10]
LEA EAX,[EDX + 0xfffc28f3]
MOV EBX,EDX
PUSH EAX
PUSH 0x0
MOV dword ptr [ESP + 0x18],EDX
CALL 0x000130f0
MOV ECX,EBP
MOV EDX,EDI
MOV dword ptr [ESP],EAX
XOR EAX,EAX
PUSH dword ptr [ESP + 0x14]
PUSH dword ptr [ESP + 0x14]
PUSH 0x0
PUSH 0x1
CALL 0x0001bf90
MOV dword ptr [ESP + 0x3c],EAX
ADD ESP,0x20
TEST EAX,EAX
JZ 0x0001d910
MOV EBP,dword ptr [ESP + 0xc]
SUB ESP,0x8
SHR EBP,0x4
MOV dword ptr [ESP + 0x20],EBP
PUSH 0x18
PUSH EBP
MOV EBX,dword ptr [ESP + 0x18]
CALL 0x0005dac0
MOV dword ptr [ESP + 0x24],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001da90
TEST EBP,EBP
JZ 0x0001da70
MOV EAX,dword ptr [ESP + 0x18]
MOV EDX,dword ptr [ESP + 0x1c]
MOV dword ptr [ESP + 0xc],EDI
MOV EBX,dword ptr [ESP + 0x14]
SHL EAX,0x4
MOV EBP,EDX
ADD EAX,EDX
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,dword ptr [ESP + 0x8]
LEA ESI,[EAX + 0x5dd8]
MOV EDI,ESI
JMP 0x0001d9d0
ADD EBP,0x10
ADD EBX,0x18
CMP EBP,dword ptr [ESP + 0x10]
JZ 0x0001da70
SUB ESP,0x8
PUSH 0x8
PUSH EBP
CALL dword ptr [EDI]
MOV dword ptr [EBX],EAX
MOV dword ptr [EBX + 0x4],EDX
POP EAX
LEA EAX,[EBP + 0x8]
POP EDX
PUSH 0x8
PUSH EAX
CALL dword ptr [EDI]
MOV dword ptr [EBX + 0x10],0x0
MOV dword ptr [EBX + 0x8],EAX
MOV dword ptr [ESP + 0x10],EAX
MOV dword ptr [ESP + 0x14],EDX
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [EBX + 0xc],EDX
CMP word ptr [EAX + 0x42],0x8
MOV dword ptr [EBX + 0x14],0x0
JNZ 0x0001d9c0
CMP byte ptr [EAX + 0x15],0x2
JZ 0x0001d9c0
MOV EDX,dword ptr [ESP + 0x4]
MOV EAX,dword ptr [ESP]
ADD EBP,0x10
ADD EBX,0x18
MOV ESI,EDX
MOV ECX,EDX
SHRD EAX,EDX,0x18
MOV EDX,dword ptr [ESP]
SHR ESI,0x8
SHR ECX,0x18
AND ESI,0xff00
OR ECX,ESI
MOV ESI,EAX
MOV EAX,dword ptr [ESP]
AND ESI,0xff0000
OR ESI,ECX
MOV ECX,dword ptr [ESP + 0x4]
MOV dword ptr [EBX + -0xc],EAX
SHRD EDX,ECX,0x8
AND EDX,0xff000000
OR EDX,ESI
MOV dword ptr [EBX + -0x10],EDX
CMP EBP,dword ptr [ESP + 0x10]
JNZ 0x0001d9d0
LEA ESI,[ESI]
SUB ESP,0xc
PUSH dword ptr [ESP + 0x28]
MOV EBX,dword ptr [ESP + 0x18]
CALL 0x000130a0
ADD ESP,0x10
JMP 0x0001d8bc
SUB ESP,0xc
PUSH dword ptr [ESP + 0x28]
MOV EDI,dword ptr [ESP + 0x18]
MOV EBX,EDI
CALL 0x000130a0
ADD ESP,0xc
LEA EAX,[EDI + 0xfffc28d5]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000130f0
MOV dword ptr [ESP],EAX
CALL 0x00066870
ADD ESP,0x10
JMP 0x0001d8d5
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nundefined4 __regparm3\nFUN_0001d7b0(int param_1,undefined4 param_2,uint param_3,int *param_4,uint *param_5)\n\n{\n  short sVar1;\n  undefined4 uVar2;\n  void *pvVar3;\n  void *pvVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  undefined8 *puVar8;\n  void *pvVar9;\n  undefined8 uVar10;\n  undefined8 *local_28;\n  uint local_24;\n  \n  if (DAT_000b6324 == 0) {\n    uVar2 = dcgettext(0,"64-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 4;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3);\n      puVar8 = local_28;\n      pvVar9 = pvVar3;\n      do {\n        while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }\n        pvVar9 = (void *)((int)pvVar9 + 0x10);\n        puVar8 = puVar8 + 3;\n      } while (pvVar9 != pvVar4);\n    }\nLAB_0001da70:\n    free(pvVar3);\n  }\n  else {\n    uVar2 = dcgettext(0,"32-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 3;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      iVar6 = (int)pvVar3 + 4;\n      puVar8 = local_28;\n      do {\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);\n    }\n    free(pvVar3);\n  }\n  *param_4 = (int)local_28;\n  *param_5 = local_24;\n  return 1;\n}\n\n" comment (function_definition "undefined4 __regparm3\nFUN_0001d7b0(int param_1,undefined4 param_2,uint param_3,int *param_4,uint *param_5)\n\n{\n  short sVar1;\n  undefined4 uVar2;\n  void *pvVar3;\n  void *pvVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  undefined8 *puVar8;\n  void *pvVar9;\n  undefined8 uVar10;\n  undefined8 *local_28;\n  uint local_24;\n  \n  if (DAT_000b6324 == 0) {\n    uVar2 = dcgettext(0,"64-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 4;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3);\n      puVar8 = local_28;\n      pvVar9 = pvVar3;\n      do {\n        while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }\n        pvVar9 = (void *)((int)pvVar9 + 0x10);\n        puVar8 = puVar8 + 3;\n      } while (pvVar9 != pvVar4);\n    }\nLAB_0001da70:\n    free(pvVar3);\n  }\n  else {\n    uVar2 = dcgettext(0,"32-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 3;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      iVar6 = (int)pvVar3 + 4;\n      puVar8 = local_28;\n      do {\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);\n    }\n    free(pvVar3);\n  }\n  *param_4 = (int)local_28;\n  *param_5 = local_24;\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0001d7b0(int param_1,undefined4 param_2,uint param_3,int *param_4,uint *param_5)" identifier (parameter_list "(int param_1,undefined4 param_2,uint param_3,int *param_4,uint *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "uint *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  short sVar1;\n  undefined4 uVar2;\n  void *pvVar3;\n  void *pvVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  undefined8 *puVar8;\n  void *pvVar9;\n  undefined8 uVar10;\n  undefined8 *local_28;\n  uint local_24;\n  \n  if (DAT_000b6324 == 0) {\n    uVar2 = dcgettext(0,"64-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 4;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3);\n      puVar8 = local_28;\n      pvVar9 = pvVar3;\n      do {\n        while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }\n        pvVar9 = (void *)((int)pvVar9 + 0x10);\n        puVar8 = puVar8 + 3;\n      } while (pvVar9 != pvVar4);\n    }\nLAB_0001da70:\n    free(pvVar3);\n  }\n  else {\n    uVar2 = dcgettext(0,"32-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 3;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      iVar6 = (int)pvVar3 + 4;\n      puVar8 = local_28;\n      do {\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);\n    }\n    free(pvVar3);\n  }\n  *param_4 = (int)local_28;\n  *param_5 = local_24;\n  return 1;\n}" { (declaration "short sVar1;" (sized_type_specifier "short" short) identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined8 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "void *pvVar9;" primitive_type (pointer_declarator "*pvVar9" * identifier) ;) (declaration "undefined8 uVar10;" type_identifier identifier ;) (declaration "undefined8 *local_28;" type_identifier (pointer_declarator "*local_28" * identifier) ;) (declaration "uint local_24;" type_identifier identifier ;) (if_statement "if (DAT_000b6324 == 0) {\n    uVar2 = dcgettext(0,"64-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 4;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3);\n      puVar8 = local_28;\n      pvVar9 = pvVar3;\n      do {\n        while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }\n        pvVar9 = (void *)((int)pvVar9 + 0x10);\n        puVar8 = puVar8 + 3;\n      } while (pvVar9 != pvVar4);\n    }\nLAB_0001da70:\n    free(pvVar3);\n  }\n  else {\n    uVar2 = dcgettext(0,"32-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 3;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      iVar6 = (int)pvVar3 + 4;\n      puVar8 = local_28;\n      do {\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);\n    }\n    free(pvVar3);\n  }" if (parenthesized_expression "(DAT_000b6324 == 0)" ( (binary_expression "DAT_000b6324 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = dcgettext(0,"64-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 4;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3);\n      puVar8 = local_28;\n      pvVar9 = pvVar3;\n      do {\n        while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }\n        pvVar9 = (void *)((int)pvVar9 + 0x10);\n        puVar8 = puVar8 + 3;\n      } while (pvVar9 != pvVar4);\n    }\nLAB_0001da70:\n    free(pvVar3);\n  }" { (expression_statement "uVar2 = dcgettext(0,"64-bit relocation data",5);" (assignment_expression "uVar2 = dcgettext(0,"64-bit relocation data",5)" identifier = (call_expression "dcgettext(0,"64-bit relocation data",5)" identifier (argument_list "(0,"64-bit relocation data",5)" ( number_literal , (string_literal ""64-bit relocation data"" " string_content ") , number_literal )))) ;) (expression_statement "pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);" (assignment_expression "pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2)" identifier = (cast_expression "(void *)FUN_0001bf90(1,0,param_3,0,uVar2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001bf90(1,0,param_3,0,uVar2)" identifier (argument_list "(1,0,param_3,0,uVar2)" ( number_literal , number_literal , identifier , number_literal , identifier ))))) ;) (if_statement "if (pvVar3 == (void *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(pvVar3 == (void *)0x0)" ( (binary_expression "pvVar3 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "local_24 = param_3 >> 4;" (assignment_expression "local_24 = param_3 >> 4" identifier = (binary_expression "param_3 >> 4" identifier >> number_literal)) ;) (expression_statement "local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);" (assignment_expression "local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18)" identifier = (cast_expression "(undefined8 *)FUN_0005dac0(local_24,0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005dac0(local_24,0x18)" identifier (argument_list "(local_24,0x18)" ( identifier , number_literal ))))) ;) (if_statement "if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }" if (parenthesized_expression "(local_28 == (undefined8 *)0x0)" ( (binary_expression "local_28 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }" { (expression_statement "free(pvVar3);" (call_expression "free(pvVar3)" identifier (argument_list "(pvVar3)" ( identifier ))) ;) (expression_statement "uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);" (assignment_expression "uVar2 = dcgettext(0,"out of memory parsing relocs\n",5)" identifier = (call_expression "dcgettext(0,"out of memory parsing relocs\n",5)" identifier (argument_list "(0,"out of memory parsing relocs\n",5)" ( number_literal , (string_literal ""out of memory parsing relocs\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "error(uVar2);" (call_expression "error(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (local_24 != 0) {\n      pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3);\n      puVar8 = local_28;\n      pvVar9 = pvVar3;\n      do {\n        while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }\n        pvVar9 = (void *)((int)pvVar9 + 0x10);\n        puVar8 = puVar8 + 3;\n      } while (pvVar9 != pvVar4);\n    }" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (compound_statement "{\n      pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3);\n      puVar8 = local_28;\n      pvVar9 = pvVar3;\n      do {\n        while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }\n        pvVar9 = (void *)((int)pvVar9 + 0x10);\n        puVar8 = puVar8 + 3;\n      } while (pvVar9 != pvVar4);\n    }" { (expression_statement "pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3);" (assignment_expression "pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3)" identifier = (cast_expression "(void *)(local_24 * 0x10 + (int)pvVar3)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24 * 0x10 + (int)pvVar3)" ( (binary_expression "local_24 * 0x10 + (int)pvVar3" (binary_expression "local_24 * 0x10" identifier * number_literal) + (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "puVar8 = local_28;" (assignment_expression "puVar8 = local_28" identifier = identifier) ;) (expression_statement "pvVar9 = pvVar3;" (assignment_expression "pvVar9 = pvVar3" identifier = identifier) ;) (do_statement "do {\n        while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }\n        pvVar9 = (void *)((int)pvVar9 + 0x10);\n        puVar8 = puVar8 + 3;\n      } while (pvVar9 != pvVar4);" do (compound_statement "{\n        while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }\n        pvVar9 = (void *)((int)pvVar9 + 0x10);\n        puVar8 = puVar8 + 3;\n      }" { (while_statement "while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }" { (expression_statement "uVar10 = (*DAT_000b9dd8)(pvVar9,8);" (assignment_expression "uVar10 = (*DAT_000b9dd8)(pvVar9,8)" identifier = (call_expression "(*DAT_000b9dd8)(pvVar9,8)" (parenthesized_expression "(*DAT_000b9dd8)" ( (pointer_expression "*DAT_000b9dd8" * identifier) )) (argument_list "(pvVar9,8)" ( identifier , number_literal )))) ;) (expression_statement "*puVar8 = uVar10;" (assignment_expression "*puVar8 = uVar10" (pointer_expression "*puVar8" * identifier) = identifier) ;) (expression_statement "uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);" (assignment_expression "uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8)" identifier = (call_expression "(*DAT_000b9dd8)((int)pvVar9 + 8,8)" (parenthesized_expression "(*DAT_000b9dd8)" ( (pointer_expression "*DAT_000b9dd8" * identifier) )) (argument_list "((int)pvVar9 + 8,8)" ( (binary_expression "(int)pvVar9 + 8" (cast_expression "(int)pvVar9" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) , number_literal )))) ;) (expression_statement "uVar5 = (uint)((ulonglong)uVar10 >> 0x20);" (assignment_expression "uVar5 = (uint)((ulonglong)uVar10 >> 0x20)" identifier = (call_expression "(uint)((ulonglong)uVar10 >> 0x20)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)uVar10 >> 0x20)" ( (binary_expression "(ulonglong)uVar10 >> 0x20" (cast_expression "(ulonglong)uVar10" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*(undefined4 *)(puVar8 + 2) = 0;" (assignment_expression "*(undefined4 *)(puVar8 + 2) = 0" (pointer_expression "*(undefined4 *)(puVar8 + 2)" * (cast_expression "(undefined4 *)(puVar8 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 2)" ( (binary_expression "puVar8 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "puVar8[1] = uVar10;" (assignment_expression "puVar8[1] = uVar10" (subscript_expression "puVar8[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "sVar1 = *(short *)(param_1 + 0x42);" (assignment_expression "sVar1 = *(short *)(param_1 + 0x42)" identifier = (pointer_expression "*(short *)(param_1 + 0x42)" * (cast_expression "(short *)(param_1 + 0x42)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x42)" ( (binary_expression "param_1 + 0x42" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)((int)puVar8 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((int)puVar8 + 0x14) = 0" (pointer_expression "*(undefined4 *)((int)puVar8 + 0x14)" * (cast_expression "(undefined4 *)((int)puVar8 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar8 + 0x14)" ( (binary_expression "(int)puVar8 + 0x14" (cast_expression "(int)puVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;" if (parenthesized_expression "((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02'))" ( (binary_expression "(sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')" (parenthesized_expression "(sVar1 != 8)" ( (binary_expression "sVar1 != 8" identifier != number_literal) )) || (parenthesized_expression "(*(char *)(param_1 + 0x15) == '\x02')" ( (binary_expression "*(char *)(param_1 + 0x15) == '\x02'" (pointer_expression "*(char *)(param_1 + 0x15)" * (cast_expression "(char *)(param_1 + 0x15)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x15)" ( (binary_expression "param_1 + 0x15" identifier + number_literal) )))) == (char_literal "'\x02'" ' escape_sequence ')) ))) )) (break_statement "break;" break ;)) (expression_statement "pvVar9 = (void *)((int)pvVar9 + 0x10);" (assignment_expression "pvVar9 = (void *)((int)pvVar9 + 0x10)" identifier = (cast_expression "(void *)((int)pvVar9 + 0x10)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar9 + 0x10)" ( (binary_expression "(int)pvVar9 + 0x10" (cast_expression "(int)pvVar9" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "*(int *)((int)puVar8 + 0xc) = (int)uVar10;" (assignment_expression "*(int *)((int)puVar8 + 0xc) = (int)uVar10" (pointer_expression "*(int *)((int)puVar8 + 0xc)" * (cast_expression "(int *)((int)puVar8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar8 + 0xc)" ( (binary_expression "(int)puVar8 + 0xc" (cast_expression "(int)puVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(int)uVar10" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;" (assignment_expression "*(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00" (pointer_expression "*(uint *)(puVar8 + 1)" * (cast_expression "(uint *)(puVar8 + 1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 1)" ( (binary_expression "puVar8 + 1" identifier + number_literal) )))) = (binary_expression "uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00" (binary_expression "uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18" (binary_expression "uVar5 << 0x18 | (uVar5 & 0xff00) << 8" (binary_expression "uVar5 << 0x18" identifier << number_literal) | (binary_expression "(uVar5 & 0xff00) << 8" (parenthesized_expression "(uVar5 & 0xff00)" ( (binary_expression "uVar5 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar5 >> 0x18" identifier >> number_literal)) | (binary_expression "uVar5 >> 8 & 0xff00" (binary_expression "uVar5 >> 8" identifier >> number_literal) & number_literal))) ;) (expression_statement "puVar8 = puVar8 + 3;" (assignment_expression "puVar8 = puVar8 + 3" identifier = (binary_expression "puVar8 + 3" identifier + number_literal)) ;) (if_statement "if (pvVar9 == pvVar4) goto LAB_0001da70;" if (parenthesized_expression "(pvVar9 == pvVar4)" ( (binary_expression "pvVar9 == pvVar4" identifier == identifier) )) (goto_statement "goto LAB_0001da70;" goto statement_identifier ;)) })) (expression_statement "pvVar9 = (void *)((int)pvVar9 + 0x10);" (assignment_expression "pvVar9 = (void *)((int)pvVar9 + 0x10)" identifier = (cast_expression "(void *)((int)pvVar9 + 0x10)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar9 + 0x10)" ( (binary_expression "(int)pvVar9 + 0x10" (cast_expression "(int)pvVar9" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "puVar8 = puVar8 + 3;" (assignment_expression "puVar8 = puVar8 + 3" identifier = (binary_expression "puVar8 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "(pvVar9 != pvVar4)" ( (binary_expression "pvVar9 != pvVar4" identifier != identifier) )) ;) })) (labeled_statement "LAB_0001da70:\n    free(pvVar3);" statement_identifier : (expression_statement "free(pvVar3);" (call_expression "free(pvVar3)" identifier (argument_list "(pvVar3)" ( identifier ))) ;)) }) (else_clause "else {\n    uVar2 = dcgettext(0,"32-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 3;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      iVar6 = (int)pvVar3 + 4;\n      puVar8 = local_28;\n      do {\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);\n    }\n    free(pvVar3);\n  }" else (compound_statement "{\n    uVar2 = dcgettext(0,"32-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 3;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      iVar6 = (int)pvVar3 + 4;\n      puVar8 = local_28;\n      do {\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);\n    }\n    free(pvVar3);\n  }" { (expression_statement "uVar2 = dcgettext(0,"32-bit relocation data",5);" (assignment_expression "uVar2 = dcgettext(0,"32-bit relocation data",5)" identifier = (call_expression "dcgettext(0,"32-bit relocation data",5)" identifier (argument_list "(0,"32-bit relocation data",5)" ( number_literal , (string_literal ""32-bit relocation data"" " string_content ") , number_literal )))) ;) (expression_statement "pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);" (assignment_expression "pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2)" identifier = (cast_expression "(void *)FUN_0001bf90(1,0,param_3,0,uVar2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001bf90(1,0,param_3,0,uVar2)" identifier (argument_list "(1,0,param_3,0,uVar2)" ( number_literal , number_literal , identifier , number_literal , identifier ))))) ;) (if_statement "if (pvVar3 == (void *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(pvVar3 == (void *)0x0)" ( (binary_expression "pvVar3 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "local_24 = param_3 >> 3;" (assignment_expression "local_24 = param_3 >> 3" identifier = (binary_expression "param_3 >> 3" identifier >> number_literal)) ;) (expression_statement "local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);" (assignment_expression "local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18)" identifier = (cast_expression "(undefined8 *)FUN_0005dac0(local_24,0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005dac0(local_24,0x18)" identifier (argument_list "(local_24,0x18)" ( identifier , number_literal ))))) ;) (if_statement "if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }" if (parenthesized_expression "(local_28 == (undefined8 *)0x0)" ( (binary_expression "local_28 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }" { (expression_statement "free(pvVar3);" (call_expression "free(pvVar3)" identifier (argument_list "(pvVar3)" ( identifier ))) ;) (expression_statement "uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);" (assignment_expression "uVar2 = dcgettext(0,"out of memory parsing relocs\n",5)" identifier = (call_expression "dcgettext(0,"out of memory parsing relocs\n",5)" identifier (argument_list "(0,"out of memory parsing relocs\n",5)" ( number_literal , (string_literal ""out of memory parsing relocs\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "error(uVar2);" (call_expression "error(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (local_24 != 0) {\n      iVar6 = (int)pvVar3 + 4;\n      puVar8 = local_28;\n      do {\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);\n    }" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar6 = (int)pvVar3 + 4;\n      puVar8 = local_28;\n      do {\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);\n    }" { (expression_statement "iVar6 = (int)pvVar3 + 4;" (assignment_expression "iVar6 = (int)pvVar3 + 4" identifier = (binary_expression "(int)pvVar3 + 4" (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (expression_statement "puVar8 = local_28;" (assignment_expression "puVar8 = local_28" identifier = identifier) ;) (do_statement "do {\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);" do (compound_statement "{\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      }" { (expression_statement "uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);" (assignment_expression "uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4)" identifier = (call_expression "(*DAT_000b9dd8)(iVar6 + -4,4)" (parenthesized_expression "(*DAT_000b9dd8)" ( (pointer_expression "*DAT_000b9dd8" * identifier) )) (argument_list "(iVar6 + -4,4)" ( (binary_expression "iVar6 + -4" identifier + number_literal) , number_literal )))) ;) (expression_statement "*puVar8 = uVar10;" (assignment_expression "*puVar8 = uVar10" (pointer_expression "*puVar8" * identifier) = identifier) ;) (expression_statement "iVar7 = iVar6 + 8;" (assignment_expression "iVar7 = iVar6 + 8" identifier = (binary_expression "iVar6 + 8" identifier + number_literal)) ;) (expression_statement "uVar10 = (*DAT_000b9dd8)(iVar6,4);" (assignment_expression "uVar10 = (*DAT_000b9dd8)(iVar6,4)" identifier = (call_expression "(*DAT_000b9dd8)(iVar6,4)" (parenthesized_expression "(*DAT_000b9dd8)" ( (pointer_expression "*DAT_000b9dd8" * identifier) )) (argument_list "(iVar6,4)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(puVar8 + 2) = 0;" (assignment_expression "*(undefined4 *)(puVar8 + 2) = 0" (pointer_expression "*(undefined4 *)(puVar8 + 2)" * (cast_expression "(undefined4 *)(puVar8 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 2)" ( (binary_expression "puVar8 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "puVar8[1] = uVar10;" (assignment_expression "puVar8[1] = uVar10" (subscript_expression "puVar8[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 *)((int)puVar8 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((int)puVar8 + 0x14) = 0" (pointer_expression "*(undefined4 *)((int)puVar8 + 0x14)" * (cast_expression "(undefined4 *)((int)puVar8 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar8 + 0x14)" ( (binary_expression "(int)puVar8 + 0x14" (cast_expression "(int)puVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "iVar6 = iVar7;" (assignment_expression "iVar6 = iVar7" identifier = identifier) ;) (expression_statement "puVar8 = puVar8 + 3;" (assignment_expression "puVar8 = puVar8 + 3" identifier = (binary_expression "puVar8 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 != (int)pvVar3 + local_24 * 8 + 4)" ( (binary_expression "iVar7 != (int)pvVar3 + local_24 * 8 + 4" identifier != (binary_expression "(int)pvVar3 + local_24 * 8 + 4" (binary_expression "(int)pvVar3 + local_24 * 8" (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "local_24 * 8" identifier * number_literal)) + number_literal)) )) ;) })) (expression_statement "free(pvVar3);" (call_expression "free(pvVar3)" identifier (argument_list "(pvVar3)" ( identifier ))) ;) }))) (expression_statement "*param_4 = (int)local_28;" (assignment_expression "*param_4 = (int)local_28" (pointer_expression "*param_4" * identifier) = (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*param_5 = local_24;" (assignment_expression "*param_5 = local_24" (pointer_expression "*param_5" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nbfd_boolean __regparm3\nslurp_rel_relocs(Filedata *filedata,ulong rel_offset,ulong rel_size,Elf_Internal_Rela **relsp,\n                ulong *nrelsp)\n\n{\n  ushort uVar1;\n  char *pcVar2;\n  void *__ptr;\n  uchar *puVar3;\n  uint uVar4;\n  uchar *puVar5;\n  Elf_Internal_Rela *pEVar6;\n  elf_vma eVar7;\n  Elf_Internal_Rela *local_28;\n  uint local_24;\n  \n  if (is_32bit_elf == 0) {\n    pcVar2 = (char *)dcgettext(0,"64-bit relocation data",5);\n    puVar3 = (uchar *)get_data((void *)0x0,filedata,rel_offset,1,(ulonglong)rel_size,pcVar2);\n    if (puVar3 == (uchar *)0x0) {\n      return 0;\n    }\n    local_24 = rel_size >> 4;\n    local_28 = (Elf_Internal_Rela *)cmalloc(local_24,0x18);\n    if (local_28 == (Elf_Internal_Rela *)0x0) {\n      free(puVar3);\n      pcVar2 = (char *)dcgettext(0,"out of memory parsing relocs\n",5);\n      error(pcVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      pEVar6 = local_28;\n      puVar5 = puVar3;\n      do {\n        while( true ) {\n          eVar7 = (*byte_get)(puVar5,8);\n          pEVar6->r_offset = eVar7;\n          eVar7 = (*byte_get)(puVar5 + 8,8);\n          uVar4 = (uint)(eVar7 >> 0x20);\n          *(undefined4 *)&pEVar6->r_addend = 0;\n          pEVar6->r_info = eVar7;\n          uVar1 = (filedata->file_header).e_machine;\n          *(undefined4 *)((int)&pEVar6->r_addend + 4) = 0;\n          if ((uVar1 != 8) || ((filedata->file_header).e_ident[5] == '\x02')) break;\n          puVar5 = puVar5 + 0x10;\n          *(int *)((int)&pEVar6->r_info + 4) = (int)eVar7;\n          *(uint *)&pEVar6->r_info =\n               uVar4 << 0x18 | (uVar4 & 0xff00) << 8 | uVar4 >> 0x18 | uVar4 >> 8 & 0xff00;\n          pEVar6 = pEVar6 + 1;\n          if (puVar5 == puVar3 + local_24 * 0x10) goto LAB_0001da70;\n        }\n        puVar5 = puVar5 + 0x10;\n        pEVar6 = pEVar6 + 1;\n      } while (puVar5 != puVar3 + local_24 * 0x10);\n    }\nLAB_0001da70:\n    free(puVar3);\n  }\n  else {\n    pcVar2 = (char *)dcgettext(0,"32-bit relocation data",5);\n    __ptr = get_data((void *)0x0,filedata,rel_offset,1,(ulonglong)rel_size,pcVar2);\n    if (__ptr == (void *)0x0) {\n      return 0;\n    }\n    local_24 = rel_size >> 3;\n    local_28 = (Elf_Internal_Rela *)cmalloc(local_24,0x18);\n    if (local_28 == (Elf_Internal_Rela *)0x0) {\n      free(__ptr);\n      pcVar2 = (char *)dcgettext(0,"out of memory parsing relocs\n",5);\n      error(pcVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      puVar3 = (uchar *)((int)__ptr + 4);\n      pEVar6 = local_28;\n      do {\n        eVar7 = (*byte_get)(puVar3 + -4,4);\n        pEVar6->r_offset = eVar7;\n        puVar5 = puVar3 + 8;\n        eVar7 = (*byte_get)(puVar3,4);\n        *(undefined4 *)&pEVar6->r_addend = 0;\n        pEVar6->r_info = eVar7;\n        *(undefined4 *)((int)&pEVar6->r_addend + 4) = 0;\n        puVar3 = puVar5;\n        pEVar6 = pEVar6 + 1;\n      } while (puVar5 != (uchar *)((int)__ptr + local_24 * 8 + 4));\n    }\n    free(__ptr);\n  }\n  *relsp = local_28;\n  *nrelsp = local_24;\n  return 1;\n}\n\n" comment (function_definition "bfd_boolean __regparm3\nslurp_rel_relocs(Filedata *filedata,ulong rel_offset,ulong rel_size,Elf_Internal_Rela **relsp,\n                ulong *nrelsp)\n\n{\n  ushort uVar1;\n  char *pcVar2;\n  void *__ptr;\n  uchar *puVar3;\n  uint uVar4;\n  uchar *puVar5;\n  Elf_Internal_Rela *pEVar6;\n  elf_vma eVar7;\n  Elf_Internal_Rela *local_28;\n  uint local_24;\n  \n  if (is_32bit_elf == 0) {\n    pcVar2 = (char *)dcgettext(0,"64-bit relocation data",5);\n    puVar3 = (uchar *)get_data((void *)0x0,filedata,rel_offset,1,(ulonglong)rel_size,pcVar2);\n    if (puVar3 == (uchar *)0x0) {\n      return 0;\n    }\n    local_24 = rel_size >> 4;\n    local_28 = (Elf_Internal_Rela *)cmalloc(local_24,0x18);\n    if (local_28 == (Elf_Internal_Rela *)0x0) {\n      free(puVar3);\n      pcVar2 = (char *)dcgettext(0,"out of memory parsing relocs\n",5);\n      error(pcVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      pEVar6 = local_28;\n      puVar5 = puVar3;\n      do {\n        while( true ) {\n          eVar7 = (*byte_get)(puVar5,8);\n          pEVar6->r_offset = eVar7;\n          eVar7 = (*byte_get)(puVar5 + 8,8);\n          uVar4 = (uint)(eVar7 >> 0x20);\n          *(undefined4 *)&pEVar6->r_addend = 0;\n          pEVar6->r_info = eVar7;\n          uVar1 = (filedata->file_header).e_machine;\n          *(undefined4 *)((int)&pEVar6->r_addend + 4) = 0;\n          if ((uVar1 != 8) || ((filedata->file_header).e_ident[5] == '\x02')) break;\n          puVar5 = puVar5 + 0x10;\n          *(int *)((int)&pEVar6->r_info + 4) = (int)eVar7;\n          *(uint *)&pEVar6->r_info =\n               uVar4 << 0x18 | (uVar4 & 0xff00) << 8 | uVar4 >> 0x18 | uVar4 >> 8 & 0xff00;\n          pEVar6 = pEVar6 + 1;\n          if (puVar5 == puVar3 + local_24 * 0x10) goto LAB_0001da70;\n        }\n        puVar5 = puVar5 + 0x10;\n        pEVar6 = pEVar6 + 1;\n      } while (puVar5 != puVar3 + local_24 * 0x10);\n    }\nLAB_0001da70:\n    free(puVar3);\n  }\n  else {\n    pcVar2 = (char *)dcgettext(0,"32-bit relocation data",5);\n    __ptr = get_data((void *)0x0,filedata,rel_offset,1,(ulonglong)rel_size,pcVar2);\n    if (__ptr == (void *)0x0) {\n      return 0;\n    }\n    local_24 = rel_size >> 3;\n    local_28 = (Elf_Internal_Rela *)cmalloc(local_24,0x18);\n    if (local_28 == (Elf_Internal_Rela *)0x0) {\n      free(__ptr);\n      pcVar2 = (char *)dcgettext(0,"out of memory parsing relocs\n",5);\n      error(pcVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      puVar3 = (uchar *)((int)__ptr + 4);\n      pEVar6 = local_28;\n      do {\n        eVar7 = (*byte_get)(puVar3 + -4,4);\n        pEVar6->r_offset = eVar7;\n        puVar5 = puVar3 + 8;\n        eVar7 = (*byte_get)(puVar3,4);\n        *(undefined4 *)&pEVar6->r_addend = 0;\n        pEVar6->r_info = eVar7;\n        *(undefined4 *)((int)&pEVar6->r_addend + 4) = 0;\n        puVar3 = puVar5;\n        pEVar6 = pEVar6 + 1;\n      } while (puVar5 != (uchar *)((int)__ptr + local_24 * 8 + 4));\n    }\n    free(__ptr);\n  }\n  *relsp = local_28;\n  *nrelsp = local_24;\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "slurp_rel_relocs(Filedata *filedata,ulong rel_offset,ulong rel_size,Elf_Internal_Rela **relsp,\n                ulong *nrelsp)" identifier (parameter_list "(Filedata *filedata,ulong rel_offset,ulong rel_size,Elf_Internal_Rela **relsp,\n                ulong *nrelsp)" ( (parameter_declaration "Filedata *filedata" type_identifier (pointer_declarator "*filedata" * identifier)) , (parameter_declaration "ulong rel_offset" type_identifier identifier) , (parameter_declaration "ulong rel_size" type_identifier identifier) , (parameter_declaration "Elf_Internal_Rela **relsp" type_identifier (pointer_declarator "**relsp" * (pointer_declarator "*relsp" * identifier))) , (parameter_declaration "ulong *nrelsp" type_identifier (pointer_declarator "*nrelsp" * identifier)) ))) (compound_statement "{\n  ushort uVar1;\n  char *pcVar2;\n  void *__ptr;\n  uchar *puVar3;\n  uint uVar4;\n  uchar *puVar5;\n  Elf_Internal_Rela *pEVar6;\n  elf_vma eVar7;\n  Elf_Internal_Rela *local_28;\n  uint local_24;\n  \n  if (is_32bit_elf == 0) {\n    pcVar2 = (char *)dcgettext(0,"64-bit relocation data",5);\n    puVar3 = (uchar *)get_data((void *)0x0,filedata,rel_offset,1,(ulonglong)rel_size,pcVar2);\n    if (puVar3 == (uchar *)0x0) {\n      return 0;\n    }\n    local_24 = rel_size >> 4;\n    local_28 = (Elf_Internal_Rela *)cmalloc(local_24,0x18);\n    if (local_28 == (Elf_Internal_Rela *)0x0) {\n      free(puVar3);\n      pcVar2 = (char *)dcgettext(0,"out of memory parsing relocs\n",5);\n      error(pcVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      pEVar6 = local_28;\n      puVar5 = puVar3;\n      do {\n        while( true ) {\n          eVar7 = (*byte_get)(puVar5,8);\n          pEVar6->r_offset = eVar7;\n          eVar7 = (*byte_get)(puVar5 + 8,8);\n          uVar4 = (uint)(eVar7 >> 0x20);\n          *(undefined4 *)&pEVar6->r_addend = 0;\n          pEVar6->r_info = eVar7;\n          uVar1 = (filedata->file_header).e_machine;\n          *(undefined4 *)((int)&pEVar6->r_addend + 4) = 0;\n          if ((uVar1 != 8) || ((filedata->file_header).e_ident[5] == '\x02')) break;\n          puVar5 = puVar5 + 0x10;\n          *(int *)((int)&pEVar6->r_info + 4) = (int)eVar7;\n          *(uint *)&pEVar6->r_info =\n               uVar4 << 0x18 | (uVar4 & 0xff00) << 8 | uVar4 >> 0x18 | uVar4 >> 8 & 0xff00;\n          pEVar6 = pEVar6 + 1;\n          if (puVar5 == puVar3 + local_24 * 0x10) goto LAB_0001da70;\n        }\n        puVar5 = puVar5 + 0x10;\n        pEVar6 = pEVar6 + 1;\n      } while (puVar5 != puVar3 + local_24 * 0x10);\n    }\nLAB_0001da70:\n    free(puVar3);\n  }\n  else {\n    pcVar2 = (char *)dcgettext(0,"32-bit relocation data",5);\n    __ptr = get_data((void *)0x0,filedata,rel_offset,1,(ulonglong)rel_size,pcVar2);\n    if (__ptr == (void *)0x0) {\n      return 0;\n    }\n    local_24 = rel_size >> 3;\n    local_28 = (Elf_Internal_Rela *)cmalloc(local_24,0x18);\n    if (local_28 == (Elf_Internal_Rela *)0x0) {\n      free(__ptr);\n      pcVar2 = (char *)dcgettext(0,"out of memory parsing relocs\n",5);\n      error(pcVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      puVar3 = (uchar *)((int)__ptr + 4);\n      pEVar6 = local_28;\n      do {\n        eVar7 = (*byte_get)(puVar3 + -4,4);\n        pEVar6->r_offset = eVar7;\n        puVar5 = puVar3 + 8;\n        eVar7 = (*byte_get)(puVar3,4);\n        *(undefined4 *)&pEVar6->r_addend = 0;\n        pEVar6->r_info = eVar7;\n        *(undefined4 *)((int)&pEVar6->r_addend + 4) = 0;\n        puVar3 = puVar5;\n        pEVar6 = pEVar6 + 1;\n      } while (puVar5 != (uchar *)((int)__ptr + local_24 * 8 + 4));\n    }\n    free(__ptr);\n  }\n  *relsp = local_28;\n  *nrelsp = local_24;\n  return 1;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "uchar *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uchar *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "Elf_Internal_Rela *pEVar6;" type_identifier (pointer_declarator "*pEVar6" * identifier) ;) (declaration "elf_vma eVar7;" type_identifier identifier ;) (declaration "Elf_Internal_Rela *local_28;" type_identifier (pointer_declarator "*local_28" * identifier) ;) (declaration "uint local_24;" type_identifier identifier ;) (if_statement "if (is_32bit_elf == 0) {\n    pcVar2 = (char *)dcgettext(0,"64-bit relocation data",5);\n    puVar3 = (uchar *)get_data((void *)0x0,filedata,rel_offset,1,(ulonglong)rel_size,pcVar2);\n    if (puVar3 == (uchar *)0x0) {\n      return 0;\n    }\n    local_24 = rel_size >> 4;\n    local_28 = (Elf_Internal_Rela *)cmalloc(local_24,0x18);\n    if (local_28 == (Elf_Internal_Rela *)0x0) {\n      free(puVar3);\n      pcVar2 = (char *)dcgettext(0,"out of memory parsing relocs\n",5);\n      error(pcVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      pEVar6 = local_28;\n      puVar5 = puVar3;\n      do {\n        while( true ) {\n          eVar7 = (*byte_get)(puVar5,8);\n          pEVar6->r_offset = eVar7;\n          eVar7 = (*byte_get)(puVar5 + 8,8);\n          uVar4 = (uint)(eVar7 >> 0x20);\n          *(undefined4 *)&pEVar6->r_addend = 0;\n          pEVar6->r_info = eVar7;\n          uVar1 = (filedata->file_header).e_machine;\n          *(undefined4 *)((int)&pEVar6->r_addend + 4) = 0;\n          if ((uVar1 != 8) || ((filedata->file_header).e_ident[5] == '\x02')) break;\n          puVar5 = puVar5 + 0x10;\n          *(int *)((int)&pEVar6->r_info + 4) = (int)eVar7;\n          *(uint *)&pEVar6->r_info =\n               uVar4 << 0x18 | (uVar4 & 0xff00) << 8 | uVar4 >> 0x18 | uVar4 >> 8 & 0xff00;\n          pEVar6 = pEVar6 + 1;\n          if (puVar5 == puVar3 + local_24 * 0x10) goto LAB_0001da70;\n        }\n        puVar5 = puVar5 + 0x10;\n        pEVar6 = pEVar6 + 1;\n      } while (puVar5 != puVar3 + local_24 * 0x10);\n    }\nLAB_0001da70:\n    free(puVar3);\n  }\n  else {\n    pcVar2 = (char *)dcgettext(0,"32-bit relocation data",5);\n    __ptr = get_data((void *)0x0,filedata,rel_offset,1,(ulonglong)rel_size,pcVar2);\n    if (__ptr == (void *)0x0) {\n      return 0;\n    }\n    local_24 = rel_size >> 3;\n    local_28 = (Elf_Internal_Rela *)cmalloc(local_24,0x18);\n    if (local_28 == (Elf_Internal_Rela *)0x0) {\n      free(__ptr);\n      pcVar2 = (char *)dcgettext(0,"out of memory parsing relocs\n",5);\n      error(pcVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      puVar3 = (uchar *)((int)__ptr + 4);\n      pEVar6 = local_28;\n      do {\n        eVar7 = (*byte_get)(puVar3 + -4,4);\n        pEVar6->r_offset = eVar7;\n        puVar5 = puVar3 + 8;\n        eVar7 = (*byte_get)(puVar3,4);\n        *(undefined4 *)&pEVar6->r_addend = 0;\n        pEVar6->r_info = eVar7;\n        *(undefined4 *)((int)&pEVar6->r_addend + 4) = 0;\n        puVar3 = puVar5;\n        pEVar6 = pEVar6 + 1;\n      } while (puVar5 != (uchar *)((int)__ptr + local_24 * 8 + 4));\n    }\n    free(__ptr);\n  }" if (parenthesized_expression "(is_32bit_elf == 0)" ( (binary_expression "is_32bit_elf == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar2 = (char *)dcgettext(0,"64-bit relocation data",5);\n    puVar3 = (uchar *)get_data((void *)0x0,filedata,rel_offset,1,(ulonglong)rel_size,pcVar2);\n    if (puVar3 == (uchar *)0x0) {\n      return 0;\n    }\n    local_24 = rel_size >> 4;\n    local_28 = (Elf_Internal_Rela *)cmalloc(local_24,0x18);\n    if (local_28 == (Elf_Internal_Rela *)0x0) {\n      free(puVar3);\n      pcVar2 = (char *)dcgettext(0,"out of memory parsing relocs\n",5);\n      error(pcVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      pEVar6 = local_28;\n      puVar5 = puVar3;\n      do {\n        while( true ) {\n          eVar7 = (*byte_get)(puVar5,8);\n          pEVar6->r_offset = eVar7;\n          eVar7 = (*byte_get)(puVar5 + 8,8);\n          uVar4 = (uint)(eVar7 >> 0x20);\n          *(undefined4 *)&pEVar6->r_addend = 0;\n          pEVar6->r_info = eVar7;\n          uVar1 = (filedata->file_header).e_machine;\n          *(undefined4 *)((int)&pEVar6->r_addend + 4) = 0;\n          if ((uVar1 != 8) || ((filedata->file_header).e_ident[5] == '\x02')) break;\n          puVar5 = puVar5 + 0x10;\n          *(int *)((int)&pEVar6->r_info + 4) = (int)eVar7;\n          *(uint *)&pEVar6->r_info =\n               uVar4 << 0x18 | (uVar4 & 0xff00) << 8 | uVar4 >> 0x18 | uVar4 >> 8 & 0xff00;\n          pEVar6 = pEVar6 + 1;\n          if (puVar5 == puVar3 + local_24 * 0x10) goto LAB_0001da70;\n        }\n        puVar5 = puVar5 + 0x10;\n        pEVar6 = pEVar6 + 1;\n      } while (puVar5 != puVar3 + local_24 * 0x10);\n    }\nLAB_0001da70:\n    free(puVar3);\n  }" { (expression_statement "pcVar2 = (char *)dcgettext(0,"64-bit relocation data",5);" (assignment_expression "pcVar2 = (char *)dcgettext(0,"64-bit relocation data",5)" identifier = (cast_expression "(char *)dcgettext(0,"64-bit relocation data",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"64-bit relocation data",5)" identifier (argument_list "(0,"64-bit relocation data",5)" ( number_literal , (string_literal ""64-bit relocation data"" " string_content ") , number_literal ))))) ;) (expression_statement "puVar3 = (uchar *)get_data((void *)0x0,filedata,rel_offset,1,(ulonglong)rel_size,pcVar2);" (assignment_expression "puVar3 = (uchar *)get_data((void *)0x0,filedata,rel_offset,1,(ulonglong)rel_size,pcVar2)" identifier = (cast_expression "(uchar *)get_data((void *)0x0,filedata,rel_offset,1,(ulonglong)rel_size,pcVar2)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "get_data((void *)0x0,filedata,rel_offset,1,(ulonglong)rel_size,pcVar2)" identifier (argument_list "((void *)0x0,filedata,rel_offset,1,(ulonglong)rel_size,pcVar2)" ( (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , identifier , number_literal , (cast_expression "(ulonglong)rel_size" ( (type_descriptor "ulonglong" type_identifier) ) identifier) , identifier ))))) ;) (if_statement "if (puVar3 == (uchar *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(puVar3 == (uchar *)0x0)" ( (binary_expression "puVar3 == (uchar *)0x0" identifier == (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "local_24 = rel_size >> 4;" (assignment_expression "local_24 = rel_size >> 4" identifier = (binary_expression "rel_size >> 4" identifier >> number_literal)) ;) (expression_statement "local_28 = (Elf_Internal_Rela *)cmalloc(local_24,0x18);" (assignment_expression "local_28 = (Elf_Internal_Rela *)cmalloc(local_24,0x18)" identifier = (cast_expression "(Elf_Internal_Rela *)cmalloc(local_24,0x18)" ( (type_descriptor "Elf_Internal_Rela *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "cmalloc(local_24,0x18)" identifier (argument_list "(local_24,0x18)" ( identifier , number_literal ))))) ;) (if_statement "if (local_28 == (Elf_Internal_Rela *)0x0) {\n      free(puVar3);\n      pcVar2 = (char *)dcgettext(0,"out of memory parsing relocs\n",5);\n      error(pcVar2);\n      return 0;\n    }" if (parenthesized_expression "(local_28 == (Elf_Internal_Rela *)0x0)" ( (binary_expression "local_28 == (Elf_Internal_Rela *)0x0" identifier == (cast_expression "(Elf_Internal_Rela *)0x0" ( (type_descriptor "Elf_Internal_Rela *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      free(puVar3);\n      pcVar2 = (char *)dcgettext(0,"out of memory parsing relocs\n",5);\n      error(pcVar2);\n      return 0;\n    }" { (expression_statement "free(puVar3);" (call_expression "free(puVar3)" identifier (argument_list "(puVar3)" ( identifier ))) ;) (expression_statement "pcVar2 = (char *)dcgettext(0,"out of memory parsing relocs\n",5);" (assignment_expression "pcVar2 = (char *)dcgettext(0,"out of memory parsing relocs\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"out of memory parsing relocs\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"out of memory parsing relocs\n",5)" identifier (argument_list "(0,"out of memory parsing relocs\n",5)" ( number_literal , (string_literal ""out of memory parsing relocs\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "error(pcVar2);" (call_expression "error(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (local_24 != 0) {\n      pEVar6 = local_28;\n      puVar5 = puVar3;\n      do {\n        while( true ) {\n          eVar7 = (*byte_get)(puVar5,8);\n          pEVar6->r_offset = eVar7;\n          eVar7 = (*byte_get)(puVar5 + 8,8);\n          uVar4 = (uint)(eVar7 >> 0x20);\n          *(undefined4 *)&pEVar6->r_addend = 0;\n          pEVar6->r_info = eVar7;\n          uVar1 = (filedata->file_header).e_machine;\n          *(undefined4 *)((int)&pEVar6->r_addend + 4) = 0;\n          if ((uVar1 != 8) || ((filedata->file_header).e_ident[5] == '\x02')) break;\n          puVar5 = puVar5 + 0x10;\n          *(int *)((int)&pEVar6->r_info + 4) = (int)eVar7;\n          *(uint *)&pEVar6->r_info =\n               uVar4 << 0x18 | (uVar4 & 0xff00) << 8 | uVar4 >> 0x18 | uVar4 >> 8 & 0xff00;\n          pEVar6 = pEVar6 + 1;\n          if (puVar5 == puVar3 + local_24 * 0x10) goto LAB_0001da70;\n        }\n        puVar5 = puVar5 + 0x10;\n        pEVar6 = pEVar6 + 1;\n      } while (puVar5 != puVar3 + local_24 * 0x10);\n    }" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (compound_statement "{\n      pEVar6 = local_28;\n      puVar5 = puVar3;\n      do {\n        while( true ) {\n          eVar7 = (*byte_get)(puVar5,8);\n          pEVar6->r_offset = eVar7;\n          eVar7 = (*byte_get)(puVar5 + 8,8);\n          uVar4 = (uint)(eVar7 >> 0x20);\n          *(undefined4 *)&pEVar6->r_addend = 0;\n          pEVar6->r_info = eVar7;\n          uVar1 = (filedata->file_header).e_machine;\n          *(undefined4 *)((int)&pEVar6->r_addend + 4) = 0;\n          if ((uVar1 != 8) || ((filedata->file_header).e_ident[5] == '\x02')) break;\n          puVar5 = puVar5 + 0x10;\n          *(int *)((int)&pEVar6->r_info + 4) = (int)eVar7;\n          *(uint *)&pEVar6->r_info =\n               uVar4 << 0x18 | (uVar4 & 0xff00) << 8 | uVar4 >> 0x18 | uVar4 >> 8 & 0xff00;\n          pEVar6 = pEVar6 + 1;\n          if (puVar5 == puVar3 + local_24 * 0x10) goto LAB_0001da70;\n        }\n        puVar5 = puVar5 + 0x10;\n        pEVar6 = pEVar6 + 1;\n      } while (puVar5 != puVar3 + local_24 * 0x10);\n    }" { (expression_statement "pEVar6 = local_28;" (assignment_expression "pEVar6 = local_28" identifier = identifier) ;) (expression_statement "puVar5 = puVar3;" (assignment_expression "puVar5 = puVar3" identifier = identifier) ;) (do_statement "do {\n        while( true ) {\n          eVar7 = (*byte_get)(puVar5,8);\n          pEVar6->r_offset = eVar7;\n          eVar7 = (*byte_get)(puVar5 + 8,8);\n          uVar4 = (uint)(eVar7 >> 0x20);\n          *(undefined4 *)&pEVar6->r_addend = 0;\n          pEVar6->r_info = eVar7;\n          uVar1 = (filedata->file_header).e_machine;\n          *(undefined4 *)((int)&pEVar6->r_addend + 4) = 0;\n          if ((uVar1 != 8) || ((filedata->file_header).e_ident[5] == '\x02')) break;\n          puVar5 = puVar5 + 0x10;\n          *(int *)((int)&pEVar6->r_info + 4) = (int)eVar7;\n          *(uint *)&pEVar6->r_info =\n               uVar4 << 0x18 | (uVar4 & 0xff00) << 8 | uVar4 >> 0x18 | uVar4 >> 8 & 0xff00;\n          pEVar6 = pEVar6 + 1;\n          if (puVar5 == puVar3 + local_24 * 0x10) goto LAB_0001da70;\n        }\n        puVar5 = puVar5 + 0x10;\n        pEVar6 = pEVar6 + 1;\n      } while (puVar5 != puVar3 + local_24 * 0x10);" do (compound_statement "{\n        while( true ) {\n          eVar7 = (*byte_get)(puVar5,8);\n          pEVar6->r_offset = eVar7;\n          eVar7 = (*byte_get)(puVar5 + 8,8);\n          uVar4 = (uint)(eVar7 >> 0x20);\n          *(undefined4 *)&pEVar6->r_addend = 0;\n          pEVar6->r_info = eVar7;\n          uVar1 = (filedata->file_header).e_machine;\n          *(undefined4 *)((int)&pEVar6->r_addend + 4) = 0;\n          if ((uVar1 != 8) || ((filedata->file_header).e_ident[5] == '\x02')) break;\n          puVar5 = puVar5 + 0x10;\n          *(int *)((int)&pEVar6->r_info + 4) = (int)eVar7;\n          *(uint *)&pEVar6->r_info =\n               uVar4 << 0x18 | (uVar4 & 0xff00) << 8 | uVar4 >> 0x18 | uVar4 >> 8 & 0xff00;\n          pEVar6 = pEVar6 + 1;\n          if (puVar5 == puVar3 + local_24 * 0x10) goto LAB_0001da70;\n        }\n        puVar5 = puVar5 + 0x10;\n        pEVar6 = pEVar6 + 1;\n      }" { (while_statement "while( true ) {\n          eVar7 = (*byte_get)(puVar5,8);\n          pEVar6->r_offset = eVar7;\n          eVar7 = (*byte_get)(puVar5 + 8,8);\n          uVar4 = (uint)(eVar7 >> 0x20);\n          *(undefined4 *)&pEVar6->r_addend = 0;\n          pEVar6->r_info = eVar7;\n          uVar1 = (filedata->file_header).e_machine;\n          *(undefined4 *)((int)&pEVar6->r_addend + 4) = 0;\n          if ((uVar1 != 8) || ((filedata->file_header).e_ident[5] == '\x02')) break;\n          puVar5 = puVar5 + 0x10;\n          *(int *)((int)&pEVar6->r_info + 4) = (int)eVar7;\n          *(uint *)&pEVar6->r_info =\n               uVar4 << 0x18 | (uVar4 & 0xff00) << 8 | uVar4 >> 0x18 | uVar4 >> 8 & 0xff00;\n          pEVar6 = pEVar6 + 1;\n          if (puVar5 == puVar3 + local_24 * 0x10) goto LAB_0001da70;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          eVar7 = (*byte_get)(puVar5,8);\n          pEVar6->r_offset = eVar7;\n          eVar7 = (*byte_get)(puVar5 + 8,8);\n          uVar4 = (uint)(eVar7 >> 0x20);\n          *(undefined4 *)&pEVar6->r_addend = 0;\n          pEVar6->r_info = eVar7;\n          uVar1 = (filedata->file_header).e_machine;\n          *(undefined4 *)((int)&pEVar6->r_addend + 4) = 0;\n          if ((uVar1 != 8) || ((filedata->file_header).e_ident[5] == '\x02')) break;\n          puVar5 = puVar5 + 0x10;\n          *(int *)((int)&pEVar6->r_info + 4) = (int)eVar7;\n          *(uint *)&pEVar6->r_info =\n               uVar4 << 0x18 | (uVar4 & 0xff00) << 8 | uVar4 >> 0x18 | uVar4 >> 8 & 0xff00;\n          pEVar6 = pEVar6 + 1;\n          if (puVar5 == puVar3 + local_24 * 0x10) goto LAB_0001da70;\n        }" { (expression_statement "eVar7 = (*byte_get)(puVar5,8);" (assignment_expression "eVar7 = (*byte_get)(puVar5,8)" identifier = (call_expression "(*byte_get)(puVar5,8)" (parenthesized_expression "(*byte_get)" ( (pointer_expression "*byte_get" * identifier) )) (argument_list "(puVar5,8)" ( identifier , number_literal )))) ;) (expression_statement "pEVar6->r_offset = eVar7;" (assignment_expression "pEVar6->r_offset = eVar7" (field_expression "pEVar6->r_offset" identifier -> field_identifier) = identifier) ;) (expression_statement "eVar7 = (*byte_get)(puVar5 + 8,8);" (assignment_expression "eVar7 = (*byte_get)(puVar5 + 8,8)" identifier = (call_expression "(*byte_get)(puVar5 + 8,8)" (parenthesized_expression "(*byte_get)" ( (pointer_expression "*byte_get" * identifier) )) (argument_list "(puVar5 + 8,8)" ( (binary_expression "puVar5 + 8" identifier + number_literal) , number_literal )))) ;) (expression_statement "uVar4 = (uint)(eVar7 >> 0x20);" (assignment_expression "uVar4 = (uint)(eVar7 >> 0x20)" identifier = (call_expression "(uint)(eVar7 >> 0x20)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(eVar7 >> 0x20)" ( (binary_expression "eVar7 >> 0x20" identifier >> number_literal) )))) ;) (expression_statement "*(undefined4 *)&pEVar6->r_addend = 0;" (assignment_expression "*(undefined4 *)&pEVar6->r_addend = 0" (pointer_expression "*(undefined4 *)&pEVar6->r_addend" * (cast_expression "(undefined4 *)&pEVar6->r_addend" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pEVar6->r_addend" & (field_expression "pEVar6->r_addend" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "pEVar6->r_info = eVar7;" (assignment_expression "pEVar6->r_info = eVar7" (field_expression "pEVar6->r_info" identifier -> field_identifier) = identifier) ;) (expression_statement "uVar1 = (filedata->file_header).e_machine;" (assignment_expression "uVar1 = (filedata->file_header).e_machine" identifier = (field_expression "(filedata->file_header).e_machine" (parenthesized_expression "(filedata->file_header)" ( (field_expression "filedata->file_header" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "*(undefined4 *)((int)&pEVar6->r_addend + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&pEVar6->r_addend + 4) = 0" (pointer_expression "*(undefined4 *)((int)&pEVar6->r_addend + 4)" * (cast_expression "(undefined4 *)((int)&pEVar6->r_addend + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pEVar6->r_addend + 4)" ( (binary_expression "(int)&pEVar6->r_addend + 4" (cast_expression "(int)&pEVar6->r_addend" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pEVar6->r_addend" & (field_expression "pEVar6->r_addend" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (if_statement "if ((uVar1 != 8) || ((filedata->file_header).e_ident[5] == '\x02')) break;" if (parenthesized_expression "((uVar1 != 8) || ((filedata->file_header).e_ident[5] == '\x02'))" ( (binary_expression "(uVar1 != 8) || ((filedata->file_header).e_ident[5] == '\x02')" (parenthesized_expression "(uVar1 != 8)" ( (binary_expression "uVar1 != 8" identifier != number_literal) )) || (parenthesized_expression "((filedata->file_header).e_ident[5] == '\x02')" ( (binary_expression "(filedata->file_header).e_ident[5] == '\x02'" (subscript_expression "(filedata->file_header).e_ident[5]" (field_expression "(filedata->file_header).e_ident" (parenthesized_expression "(filedata->file_header)" ( (field_expression "filedata->file_header" identifier -> field_identifier) )) . field_identifier) [ number_literal ]) == (char_literal "'\x02'" ' escape_sequence ')) ))) )) (break_statement "break;" break ;)) (expression_statement "puVar5 = puVar5 + 0x10;" (assignment_expression "puVar5 = puVar5 + 0x10" identifier = (binary_expression "puVar5 + 0x10" identifier + number_literal)) ;) (expression_statement "*(int *)((int)&pEVar6->r_info + 4) = (int)eVar7;" (assignment_expression "*(int *)((int)&pEVar6->r_info + 4) = (int)eVar7" (pointer_expression "*(int *)((int)&pEVar6->r_info + 4)" * (cast_expression "(int *)((int)&pEVar6->r_info + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pEVar6->r_info + 4)" ( (binary_expression "(int)&pEVar6->r_info + 4" (cast_expression "(int)&pEVar6->r_info" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pEVar6->r_info" & (field_expression "pEVar6->r_info" identifier -> field_identifier))) + number_literal) )))) = (cast_expression "(int)eVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(uint *)&pEVar6->r_info =\n               uVar4 << 0x18 | (uVar4 & 0xff00) << 8 | uVar4 >> 0x18 | uVar4 >> 8 & 0xff00;" (assignment_expression "*(uint *)&pEVar6->r_info =\n               uVar4 << 0x18 | (uVar4 & 0xff00) << 8 | uVar4 >> 0x18 | uVar4 >> 8 & 0xff00" (pointer_expression "*(uint *)&pEVar6->r_info" * (cast_expression "(uint *)&pEVar6->r_info" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pEVar6->r_info" & (field_expression "pEVar6->r_info" identifier -> field_identifier)))) = (binary_expression "uVar4 << 0x18 | (uVar4 & 0xff00) << 8 | uVar4 >> 0x18 | uVar4 >> 8 & 0xff00" (binary_expression "uVar4 << 0x18 | (uVar4 & 0xff00) << 8 | uVar4 >> 0x18" (binary_expression "uVar4 << 0x18 | (uVar4 & 0xff00) << 8" (binary_expression "uVar4 << 0x18" identifier << number_literal) | (binary_expression "(uVar4 & 0xff00) << 8" (parenthesized_expression "(uVar4 & 0xff00)" ( (binary_expression "uVar4 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar4 >> 0x18" identifier >> number_literal)) | (binary_expression "uVar4 >> 8 & 0xff00" (binary_expression "uVar4 >> 8" identifier >> number_literal) & number_literal))) ;) (expression_statement "pEVar6 = pEVar6 + 1;" (assignment_expression "pEVar6 = pEVar6 + 1" identifier = (binary_expression "pEVar6 + 1" identifier + number_literal)) ;) (if_statement "if (puVar5 == puVar3 + local_24 * 0x10) goto LAB_0001da70;" if (parenthesized_expression "(puVar5 == puVar3 + local_24 * 0x10)" ( (binary_expression "puVar5 == puVar3 + local_24 * 0x10" identifier == (binary_expression "puVar3 + local_24 * 0x10" identifier + (binary_expression "local_24 * 0x10" identifier * number_literal))) )) (goto_statement "goto LAB_0001da70;" goto statement_identifier ;)) })) (expression_statement "puVar5 = puVar5 + 0x10;" (assignment_expression "puVar5 = puVar5 + 0x10" identifier = (binary_expression "puVar5 + 0x10" identifier + number_literal)) ;) (expression_statement "pEVar6 = pEVar6 + 1;" (assignment_expression "pEVar6 = pEVar6 + 1" identifier = (binary_expression "pEVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar5 != puVar3 + local_24 * 0x10)" ( (binary_expression "puVar5 != puVar3 + local_24 * 0x10" identifier != (binary_expression "puVar3 + local_24 * 0x10" identifier + (binary_expression "local_24 * 0x10" identifier * number_literal))) )) ;) })) (labeled_statement "LAB_0001da70:\n    free(puVar3);" statement_identifier : (expression_statement "free(puVar3);" (call_expression "free(puVar3)" identifier (argument_list "(puVar3)" ( identifier ))) ;)) }) (else_clause "else {\n    pcVar2 = (char *)dcgettext(0,"32-bit relocation data",5);\n    __ptr = get_data((void *)0x0,filedata,rel_offset,1,(ulonglong)rel_size,pcVar2);\n    if (__ptr == (void *)0x0) {\n      return 0;\n    }\n    local_24 = rel_size >> 3;\n    local_28 = (Elf_Internal_Rela *)cmalloc(local_24,0x18);\n    if (local_28 == (Elf_Internal_Rela *)0x0) {\n      free(__ptr);\n      pcVar2 = (char *)dcgettext(0,"out of memory parsing relocs\n",5);\n      error(pcVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      puVar3 = (uchar *)((int)__ptr + 4);\n      pEVar6 = local_28;\n      do {\n        eVar7 = (*byte_get)(puVar3 + -4,4);\n        pEVar6->r_offset = eVar7;\n        puVar5 = puVar3 + 8;\n        eVar7 = (*byte_get)(puVar3,4);\n        *(undefined4 *)&pEVar6->r_addend = 0;\n        pEVar6->r_info = eVar7;\n        *(undefined4 *)((int)&pEVar6->r_addend + 4) = 0;\n        puVar3 = puVar5;\n        pEVar6 = pEVar6 + 1;\n      } while (puVar5 != (uchar *)((int)__ptr + local_24 * 8 + 4));\n    }\n    free(__ptr);\n  }" else (compound_statement "{\n    pcVar2 = (char *)dcgettext(0,"32-bit relocation data",5);\n    __ptr = get_data((void *)0x0,filedata,rel_offset,1,(ulonglong)rel_size,pcVar2);\n    if (__ptr == (void *)0x0) {\n      return 0;\n    }\n    local_24 = rel_size >> 3;\n    local_28 = (Elf_Internal_Rela *)cmalloc(local_24,0x18);\n    if (local_28 == (Elf_Internal_Rela *)0x0) {\n      free(__ptr);\n      pcVar2 = (char *)dcgettext(0,"out of memory parsing relocs\n",5);\n      error(pcVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      puVar3 = (uchar *)((int)__ptr + 4);\n      pEVar6 = local_28;\n      do {\n        eVar7 = (*byte_get)(puVar3 + -4,4);\n        pEVar6->r_offset = eVar7;\n        puVar5 = puVar3 + 8;\n        eVar7 = (*byte_get)(puVar3,4);\n        *(undefined4 *)&pEVar6->r_addend = 0;\n        pEVar6->r_info = eVar7;\n        *(undefined4 *)((int)&pEVar6->r_addend + 4) = 0;\n        puVar3 = puVar5;\n        pEVar6 = pEVar6 + 1;\n      } while (puVar5 != (uchar *)((int)__ptr + local_24 * 8 + 4));\n    }\n    free(__ptr);\n  }" { (expression_statement "pcVar2 = (char *)dcgettext(0,"32-bit relocation data",5);" (assignment_expression "pcVar2 = (char *)dcgettext(0,"32-bit relocation data",5)" identifier = (cast_expression "(char *)dcgettext(0,"32-bit relocation data",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"32-bit relocation data",5)" identifier (argument_list "(0,"32-bit relocation data",5)" ( number_literal , (string_literal ""32-bit relocation data"" " string_content ") , number_literal ))))) ;) (expression_statement "__ptr = get_data((void *)0x0,filedata,rel_offset,1,(ulonglong)rel_size,pcVar2);" (assignment_expression "__ptr = get_data((void *)0x0,filedata,rel_offset,1,(ulonglong)rel_size,pcVar2)" identifier = (call_expression "get_data((void *)0x0,filedata,rel_offset,1,(ulonglong)rel_size,pcVar2)" identifier (argument_list "((void *)0x0,filedata,rel_offset,1,(ulonglong)rel_size,pcVar2)" ( (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , identifier , number_literal , (cast_expression "(ulonglong)rel_size" ( (type_descriptor "ulonglong" type_identifier) ) identifier) , identifier )))) ;) (if_statement "if (__ptr == (void *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(__ptr == (void *)0x0)" ( (binary_expression "__ptr == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "local_24 = rel_size >> 3;" (assignment_expression "local_24 = rel_size >> 3" identifier = (binary_expression "rel_size >> 3" identifier >> number_literal)) ;) (expression_statement "local_28 = (Elf_Internal_Rela *)cmalloc(local_24,0x18);" (assignment_expression "local_28 = (Elf_Internal_Rela *)cmalloc(local_24,0x18)" identifier = (cast_expression "(Elf_Internal_Rela *)cmalloc(local_24,0x18)" ( (type_descriptor "Elf_Internal_Rela *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "cmalloc(local_24,0x18)" identifier (argument_list "(local_24,0x18)" ( identifier , number_literal ))))) ;) (if_statement "if (local_28 == (Elf_Internal_Rela *)0x0) {\n      free(__ptr);\n      pcVar2 = (char *)dcgettext(0,"out of memory parsing relocs\n",5);\n      error(pcVar2);\n      return 0;\n    }" if (parenthesized_expression "(local_28 == (Elf_Internal_Rela *)0x0)" ( (binary_expression "local_28 == (Elf_Internal_Rela *)0x0" identifier == (cast_expression "(Elf_Internal_Rela *)0x0" ( (type_descriptor "Elf_Internal_Rela *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      free(__ptr);\n      pcVar2 = (char *)dcgettext(0,"out of memory parsing relocs\n",5);\n      error(pcVar2);\n      return 0;\n    }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "pcVar2 = (char *)dcgettext(0,"out of memory parsing relocs\n",5);" (assignment_expression "pcVar2 = (char *)dcgettext(0,"out of memory parsing relocs\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"out of memory parsing relocs\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"out of memory parsing relocs\n",5)" identifier (argument_list "(0,"out of memory parsing relocs\n",5)" ( number_literal , (string_literal ""out of memory parsing relocs\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "error(pcVar2);" (call_expression "error(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (local_24 != 0) {\n      puVar3 = (uchar *)((int)__ptr + 4);\n      pEVar6 = local_28;\n      do {\n        eVar7 = (*byte_get)(puVar3 + -4,4);\n        pEVar6->r_offset = eVar7;\n        puVar5 = puVar3 + 8;\n        eVar7 = (*byte_get)(puVar3,4);\n        *(undefined4 *)&pEVar6->r_addend = 0;\n        pEVar6->r_info = eVar7;\n        *(undefined4 *)((int)&pEVar6->r_addend + 4) = 0;\n        puVar3 = puVar5;\n        pEVar6 = pEVar6 + 1;\n      } while (puVar5 != (uchar *)((int)__ptr + local_24 * 8 + 4));\n    }" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (compound_statement "{\n      puVar3 = (uchar *)((int)__ptr + 4);\n      pEVar6 = local_28;\n      do {\n        eVar7 = (*byte_get)(puVar3 + -4,4);\n        pEVar6->r_offset = eVar7;\n        puVar5 = puVar3 + 8;\n        eVar7 = (*byte_get)(puVar3,4);\n        *(undefined4 *)&pEVar6->r_addend = 0;\n        pEVar6->r_info = eVar7;\n        *(undefined4 *)((int)&pEVar6->r_addend + 4) = 0;\n        puVar3 = puVar5;\n        pEVar6 = pEVar6 + 1;\n      } while (puVar5 != (uchar *)((int)__ptr + local_24 * 8 + 4));\n    }" { (expression_statement "puVar3 = (uchar *)((int)__ptr + 4);" (assignment_expression "puVar3 = (uchar *)((int)__ptr + 4)" identifier = (cast_expression "(uchar *)((int)__ptr + 4)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__ptr + 4)" ( (binary_expression "(int)__ptr + 4" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "pEVar6 = local_28;" (assignment_expression "pEVar6 = local_28" identifier = identifier) ;) (do_statement "do {\n        eVar7 = (*byte_get)(puVar3 + -4,4);\n        pEVar6->r_offset = eVar7;\n        puVar5 = puVar3 + 8;\n        eVar7 = (*byte_get)(puVar3,4);\n        *(undefined4 *)&pEVar6->r_addend = 0;\n        pEVar6->r_info = eVar7;\n        *(undefined4 *)((int)&pEVar6->r_addend + 4) = 0;\n        puVar3 = puVar5;\n        pEVar6 = pEVar6 + 1;\n      } while (puVar5 != (uchar *)((int)__ptr + local_24 * 8 + 4));" do (compound_statement "{\n        eVar7 = (*byte_get)(puVar3 + -4,4);\n        pEVar6->r_offset = eVar7;\n        puVar5 = puVar3 + 8;\n        eVar7 = (*byte_get)(puVar3,4);\n        *(undefined4 *)&pEVar6->r_addend = 0;\n        pEVar6->r_info = eVar7;\n        *(undefined4 *)((int)&pEVar6->r_addend + 4) = 0;\n        puVar3 = puVar5;\n        pEVar6 = pEVar6 + 1;\n      }" { (expression_statement "eVar7 = (*byte_get)(puVar3 + -4,4);" (assignment_expression "eVar7 = (*byte_get)(puVar3 + -4,4)" identifier = (call_expression "(*byte_get)(puVar3 + -4,4)" (parenthesized_expression "(*byte_get)" ( (pointer_expression "*byte_get" * identifier) )) (argument_list "(puVar3 + -4,4)" ( (binary_expression "puVar3 + -4" identifier + number_literal) , number_literal )))) ;) (expression_statement "pEVar6->r_offset = eVar7;" (assignment_expression "pEVar6->r_offset = eVar7" (field_expression "pEVar6->r_offset" identifier -> field_identifier) = identifier) ;) (expression_statement "puVar5 = puVar3 + 8;" (assignment_expression "puVar5 = puVar3 + 8" identifier = (binary_expression "puVar3 + 8" identifier + number_literal)) ;) (expression_statement "eVar7 = (*byte_get)(puVar3,4);" (assignment_expression "eVar7 = (*byte_get)(puVar3,4)" identifier = (call_expression "(*byte_get)(puVar3,4)" (parenthesized_expression "(*byte_get)" ( (pointer_expression "*byte_get" * identifier) )) (argument_list "(puVar3,4)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)&pEVar6->r_addend = 0;" (assignment_expression "*(undefined4 *)&pEVar6->r_addend = 0" (pointer_expression "*(undefined4 *)&pEVar6->r_addend" * (cast_expression "(undefined4 *)&pEVar6->r_addend" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pEVar6->r_addend" & (field_expression "pEVar6->r_addend" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "pEVar6->r_info = eVar7;" (assignment_expression "pEVar6->r_info = eVar7" (field_expression "pEVar6->r_info" identifier -> field_identifier) = identifier) ;) (expression_statement "*(undefined4 *)((int)&pEVar6->r_addend + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&pEVar6->r_addend + 4) = 0" (pointer_expression "*(undefined4 *)((int)&pEVar6->r_addend + 4)" * (cast_expression "(undefined4 *)((int)&pEVar6->r_addend + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pEVar6->r_addend + 4)" ( (binary_expression "(int)&pEVar6->r_addend + 4" (cast_expression "(int)&pEVar6->r_addend" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pEVar6->r_addend" & (field_expression "pEVar6->r_addend" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "puVar3 = puVar5;" (assignment_expression "puVar3 = puVar5" identifier = identifier) ;) (expression_statement "pEVar6 = pEVar6 + 1;" (assignment_expression "pEVar6 = pEVar6 + 1" identifier = (binary_expression "pEVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar5 != (uchar *)((int)__ptr + local_24 * 8 + 4))" ( (binary_expression "puVar5 != (uchar *)((int)__ptr + local_24 * 8 + 4)" identifier != (cast_expression "(uchar *)((int)__ptr + local_24 * 8 + 4)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__ptr + local_24 * 8 + 4)" ( (binary_expression "(int)__ptr + local_24 * 8 + 4" (binary_expression "(int)__ptr + local_24 * 8" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "local_24 * 8" identifier * number_literal)) + number_literal) )))) )) ;) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) }))) (expression_statement "*relsp = local_28;" (assignment_expression "*relsp = local_28" (pointer_expression "*relsp" * identifier) = identifier) ;) (expression_statement "*nrelsp = local_24;" (assignment_expression "*nrelsp = local_24" (pointer_expression "*nrelsp" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 __regparm3\nFUN_0001d7b0(int param_1,undefined4 param_2,uint param_3,int *param_4,uint *param_5)\n\n{\n  short sVar1;\n  undefined4 uVar2;\n  void *pvVar3;\n  void *pvVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  undefined8 *puVar8;\n  void *pvVar9;\n  undefined8 uVar10;\n  undefined8 *local_28;\n  uint local_24;\n  \n  if (DAT_000b6324 == 0) {\n    uVar2 = dcgettext(0,"64-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 4;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3);\n      puVar8 = local_28;\n      pvVar9 = pvVar3;\n      do {\n        while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }\n        pvVar9 = (void *)((int)pvVar9 + 0x10);\n        puVar8 = puVar8 + 3;\n      } while (pvVar9 != pvVar4);\n    }\nLAB_0001da70:\n    free(pvVar3);\n  }\n  else {\n    uVar2 = dcgettext(0,"32-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 3;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      iVar6 = (int)pvVar3 + 4;\n      puVar8 = local_28;\n      do {\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);\n    }\n    free(pvVar3);\n  }\n  *param_4 = (int)local_28;\n  *param_5 = local_24;\n  return 1;\n}\n\n" (function_definition "undefined4 __regparm3\nFUN_0001d7b0(int param_1,undefined4 param_2,uint param_3,int *param_4,uint *param_5)\n\n{\n  short sVar1;\n  undefined4 uVar2;\n  void *pvVar3;\n  void *pvVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  undefined8 *puVar8;\n  void *pvVar9;\n  undefined8 uVar10;\n  undefined8 *local_28;\n  uint local_24;\n  \n  if (DAT_000b6324 == 0) {\n    uVar2 = dcgettext(0,"64-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 4;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3);\n      puVar8 = local_28;\n      pvVar9 = pvVar3;\n      do {\n        while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }\n        pvVar9 = (void *)((int)pvVar9 + 0x10);\n        puVar8 = puVar8 + 3;\n      } while (pvVar9 != pvVar4);\n    }\nLAB_0001da70:\n    free(pvVar3);\n  }\n  else {\n    uVar2 = dcgettext(0,"32-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 3;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      iVar6 = (int)pvVar3 + 4;\n      puVar8 = local_28;\n      do {\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);\n    }\n    free(pvVar3);\n  }\n  *param_4 = (int)local_28;\n  *param_5 = local_24;\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0001d7b0(int param_1,undefined4 param_2,uint param_3,int *param_4,uint *param_5)" identifier (parameter_list "(int param_1,undefined4 param_2,uint param_3,int *param_4,uint *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "uint *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  short sVar1;\n  undefined4 uVar2;\n  void *pvVar3;\n  void *pvVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  undefined8 *puVar8;\n  void *pvVar9;\n  undefined8 uVar10;\n  undefined8 *local_28;\n  uint local_24;\n  \n  if (DAT_000b6324 == 0) {\n    uVar2 = dcgettext(0,"64-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 4;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3);\n      puVar8 = local_28;\n      pvVar9 = pvVar3;\n      do {\n        while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }\n        pvVar9 = (void *)((int)pvVar9 + 0x10);\n        puVar8 = puVar8 + 3;\n      } while (pvVar9 != pvVar4);\n    }\nLAB_0001da70:\n    free(pvVar3);\n  }\n  else {\n    uVar2 = dcgettext(0,"32-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 3;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      iVar6 = (int)pvVar3 + 4;\n      puVar8 = local_28;\n      do {\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);\n    }\n    free(pvVar3);\n  }\n  *param_4 = (int)local_28;\n  *param_5 = local_24;\n  return 1;\n}" { (declaration "short sVar1;" (sized_type_specifier "short" short) identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined8 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "void *pvVar9;" primitive_type (pointer_declarator "*pvVar9" * identifier) ;) (declaration "undefined8 uVar10;" type_identifier identifier ;) (declaration "undefined8 *local_28;" type_identifier (pointer_declarator "*local_28" * identifier) ;) (declaration "uint local_24;" type_identifier identifier ;) (if_statement "if (DAT_000b6324 == 0) {\n    uVar2 = dcgettext(0,"64-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 4;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3);\n      puVar8 = local_28;\n      pvVar9 = pvVar3;\n      do {\n        while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }\n        pvVar9 = (void *)((int)pvVar9 + 0x10);\n        puVar8 = puVar8 + 3;\n      } while (pvVar9 != pvVar4);\n    }\nLAB_0001da70:\n    free(pvVar3);\n  }\n  else {\n    uVar2 = dcgettext(0,"32-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 3;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      iVar6 = (int)pvVar3 + 4;\n      puVar8 = local_28;\n      do {\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);\n    }\n    free(pvVar3);\n  }" if (parenthesized_expression "(DAT_000b6324 == 0)" ( (binary_expression "DAT_000b6324 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = dcgettext(0,"64-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 4;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3);\n      puVar8 = local_28;\n      pvVar9 = pvVar3;\n      do {\n        while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }\n        pvVar9 = (void *)((int)pvVar9 + 0x10);\n        puVar8 = puVar8 + 3;\n      } while (pvVar9 != pvVar4);\n    }\nLAB_0001da70:\n    free(pvVar3);\n  }" { (expression_statement "uVar2 = dcgettext(0,"64-bit relocation data",5);" (assignment_expression "uVar2 = dcgettext(0,"64-bit relocation data",5)" identifier = (call_expression "dcgettext(0,"64-bit relocation data",5)" identifier (argument_list "(0,"64-bit relocation data",5)" ( number_literal , (string_literal ""64-bit relocation data"" " string_content ") , number_literal )))) ;) (expression_statement "pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);" (assignment_expression "pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2)" identifier = (cast_expression "(void *)FUN_0001bf90(1,0,param_3,0,uVar2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001bf90(1,0,param_3,0,uVar2)" identifier (argument_list "(1,0,param_3,0,uVar2)" ( number_literal , number_literal , identifier , number_literal , identifier ))))) ;) (if_statement "if (pvVar3 == (void *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(pvVar3 == (void *)0x0)" ( (binary_expression "pvVar3 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "local_24 = param_3 >> 4;" (assignment_expression "local_24 = param_3 >> 4" identifier = (binary_expression "param_3 >> 4" identifier >> number_literal)) ;) (expression_statement "local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);" (assignment_expression "local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18)" identifier = (cast_expression "(undefined8 *)FUN_0005dac0(local_24,0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005dac0(local_24,0x18)" identifier (argument_list "(local_24,0x18)" ( identifier , number_literal ))))) ;) (if_statement "if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }" if (parenthesized_expression "(local_28 == (undefined8 *)0x0)" ( (binary_expression "local_28 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }" { (expression_statement "free(pvVar3);" (call_expression "free(pvVar3)" identifier (argument_list "(pvVar3)" ( identifier ))) ;) (expression_statement "uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);" (assignment_expression "uVar2 = dcgettext(0,"out of memory parsing relocs\n",5)" identifier = (call_expression "dcgettext(0,"out of memory parsing relocs\n",5)" identifier (argument_list "(0,"out of memory parsing relocs\n",5)" ( number_literal , (string_literal ""out of memory parsing relocs\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "error(uVar2);" (call_expression "error(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (local_24 != 0) {\n      pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3);\n      puVar8 = local_28;\n      pvVar9 = pvVar3;\n      do {\n        while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }\n        pvVar9 = (void *)((int)pvVar9 + 0x10);\n        puVar8 = puVar8 + 3;\n      } while (pvVar9 != pvVar4);\n    }" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (compound_statement "{\n      pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3);\n      puVar8 = local_28;\n      pvVar9 = pvVar3;\n      do {\n        while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }\n        pvVar9 = (void *)((int)pvVar9 + 0x10);\n        puVar8 = puVar8 + 3;\n      } while (pvVar9 != pvVar4);\n    }" { (expression_statement "pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3);" (assignment_expression "pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3)" identifier = (cast_expression "(void *)(local_24 * 0x10 + (int)pvVar3)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24 * 0x10 + (int)pvVar3)" ( (binary_expression "local_24 * 0x10 + (int)pvVar3" (binary_expression "local_24 * 0x10" identifier * number_literal) + (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "puVar8 = local_28;" (assignment_expression "puVar8 = local_28" identifier = identifier) ;) (expression_statement "pvVar9 = pvVar3;" (assignment_expression "pvVar9 = pvVar3" identifier = identifier) ;) (do_statement "do {\n        while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }\n        pvVar9 = (void *)((int)pvVar9 + 0x10);\n        puVar8 = puVar8 + 3;\n      } while (pvVar9 != pvVar4);" do (compound_statement "{\n        while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }\n        pvVar9 = (void *)((int)pvVar9 + 0x10);\n        puVar8 = puVar8 + 3;\n      }" { (while_statement "while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }" { (expression_statement "uVar10 = (*DAT_000b9dd8)(pvVar9,8);" (assignment_expression "uVar10 = (*DAT_000b9dd8)(pvVar9,8)" identifier = (call_expression "(*DAT_000b9dd8)(pvVar9,8)" (parenthesized_expression "(*DAT_000b9dd8)" ( (pointer_expression "*DAT_000b9dd8" * identifier) )) (argument_list "(pvVar9,8)" ( identifier , number_literal )))) ;) (expression_statement "*puVar8 = uVar10;" (assignment_expression "*puVar8 = uVar10" (pointer_expression "*puVar8" * identifier) = identifier) ;) (expression_statement "uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);" (assignment_expression "uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8)" identifier = (call_expression "(*DAT_000b9dd8)((int)pvVar9 + 8,8)" (parenthesized_expression "(*DAT_000b9dd8)" ( (pointer_expression "*DAT_000b9dd8" * identifier) )) (argument_list "((int)pvVar9 + 8,8)" ( (binary_expression "(int)pvVar9 + 8" (cast_expression "(int)pvVar9" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) , number_literal )))) ;) (expression_statement "uVar5 = (uint)((ulonglong)uVar10 >> 0x20);" (assignment_expression "uVar5 = (uint)((ulonglong)uVar10 >> 0x20)" identifier = (call_expression "(uint)((ulonglong)uVar10 >> 0x20)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)uVar10 >> 0x20)" ( (binary_expression "(ulonglong)uVar10 >> 0x20" (cast_expression "(ulonglong)uVar10" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*(undefined4 *)(puVar8 + 2) = 0;" (assignment_expression "*(undefined4 *)(puVar8 + 2) = 0" (pointer_expression "*(undefined4 *)(puVar8 + 2)" * (cast_expression "(undefined4 *)(puVar8 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 2)" ( (binary_expression "puVar8 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "puVar8[1] = uVar10;" (assignment_expression "puVar8[1] = uVar10" (subscript_expression "puVar8[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "sVar1 = *(short *)(param_1 + 0x42);" (assignment_expression "sVar1 = *(short *)(param_1 + 0x42)" identifier = (pointer_expression "*(short *)(param_1 + 0x42)" * (cast_expression "(short *)(param_1 + 0x42)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x42)" ( (binary_expression "param_1 + 0x42" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)((int)puVar8 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((int)puVar8 + 0x14) = 0" (pointer_expression "*(undefined4 *)((int)puVar8 + 0x14)" * (cast_expression "(undefined4 *)((int)puVar8 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar8 + 0x14)" ( (binary_expression "(int)puVar8 + 0x14" (cast_expression "(int)puVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;" if (parenthesized_expression "((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02'))" ( (binary_expression "(sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')" (parenthesized_expression "(sVar1 != 8)" ( (binary_expression "sVar1 != 8" identifier != number_literal) )) || (parenthesized_expression "(*(char *)(param_1 + 0x15) == '\x02')" ( (binary_expression "*(char *)(param_1 + 0x15) == '\x02'" (pointer_expression "*(char *)(param_1 + 0x15)" * (cast_expression "(char *)(param_1 + 0x15)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x15)" ( (binary_expression "param_1 + 0x15" identifier + number_literal) )))) == (char_literal "'\x02'" ' escape_sequence ')) ))) )) (break_statement "break;" break ;)) (expression_statement "pvVar9 = (void *)((int)pvVar9 + 0x10);" (assignment_expression "pvVar9 = (void *)((int)pvVar9 + 0x10)" identifier = (cast_expression "(void *)((int)pvVar9 + 0x10)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar9 + 0x10)" ( (binary_expression "(int)pvVar9 + 0x10" (cast_expression "(int)pvVar9" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "*(int *)((int)puVar8 + 0xc) = (int)uVar10;" (assignment_expression "*(int *)((int)puVar8 + 0xc) = (int)uVar10" (pointer_expression "*(int *)((int)puVar8 + 0xc)" * (cast_expression "(int *)((int)puVar8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar8 + 0xc)" ( (binary_expression "(int)puVar8 + 0xc" (cast_expression "(int)puVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(int)uVar10" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;" (assignment_expression "*(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00" (pointer_expression "*(uint *)(puVar8 + 1)" * (cast_expression "(uint *)(puVar8 + 1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 1)" ( (binary_expression "puVar8 + 1" identifier + number_literal) )))) = (binary_expression "uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00" (binary_expression "uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18" (binary_expression "uVar5 << 0x18 | (uVar5 & 0xff00) << 8" (binary_expression "uVar5 << 0x18" identifier << number_literal) | (binary_expression "(uVar5 & 0xff00) << 8" (parenthesized_expression "(uVar5 & 0xff00)" ( (binary_expression "uVar5 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar5 >> 0x18" identifier >> number_literal)) | (binary_expression "uVar5 >> 8 & 0xff00" (binary_expression "uVar5 >> 8" identifier >> number_literal) & number_literal))) ;) (expression_statement "puVar8 = puVar8 + 3;" (assignment_expression "puVar8 = puVar8 + 3" identifier = (binary_expression "puVar8 + 3" identifier + number_literal)) ;) (if_statement "if (pvVar9 == pvVar4) goto LAB_0001da70;" if (parenthesized_expression "(pvVar9 == pvVar4)" ( (binary_expression "pvVar9 == pvVar4" identifier == identifier) )) (goto_statement "goto LAB_0001da70;" goto statement_identifier ;)) })) (expression_statement "pvVar9 = (void *)((int)pvVar9 + 0x10);" (assignment_expression "pvVar9 = (void *)((int)pvVar9 + 0x10)" identifier = (cast_expression "(void *)((int)pvVar9 + 0x10)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar9 + 0x10)" ( (binary_expression "(int)pvVar9 + 0x10" (cast_expression "(int)pvVar9" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "puVar8 = puVar8 + 3;" (assignment_expression "puVar8 = puVar8 + 3" identifier = (binary_expression "puVar8 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "(pvVar9 != pvVar4)" ( (binary_expression "pvVar9 != pvVar4" identifier != identifier) )) ;) })) (labeled_statement "LAB_0001da70:\n    free(pvVar3);" statement_identifier : (expression_statement "free(pvVar3);" (call_expression "free(pvVar3)" identifier (argument_list "(pvVar3)" ( identifier ))) ;)) }) (else_clause "else {\n    uVar2 = dcgettext(0,"32-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 3;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      iVar6 = (int)pvVar3 + 4;\n      puVar8 = local_28;\n      do {\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);\n    }\n    free(pvVar3);\n  }" else (compound_statement "{\n    uVar2 = dcgettext(0,"32-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 3;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      iVar6 = (int)pvVar3 + 4;\n      puVar8 = local_28;\n      do {\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);\n    }\n    free(pvVar3);\n  }" { (expression_statement "uVar2 = dcgettext(0,"32-bit relocation data",5);" (assignment_expression "uVar2 = dcgettext(0,"32-bit relocation data",5)" identifier = (call_expression "dcgettext(0,"32-bit relocation data",5)" identifier (argument_list "(0,"32-bit relocation data",5)" ( number_literal , (string_literal ""32-bit relocation data"" " string_content ") , number_literal )))) ;) (expression_statement "pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);" (assignment_expression "pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2)" identifier = (cast_expression "(void *)FUN_0001bf90(1,0,param_3,0,uVar2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001bf90(1,0,param_3,0,uVar2)" identifier (argument_list "(1,0,param_3,0,uVar2)" ( number_literal , number_literal , identifier , number_literal , identifier ))))) ;) (if_statement "if (pvVar3 == (void *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(pvVar3 == (void *)0x0)" ( (binary_expression "pvVar3 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "local_24 = param_3 >> 3;" (assignment_expression "local_24 = param_3 >> 3" identifier = (binary_expression "param_3 >> 3" identifier >> number_literal)) ;) (expression_statement "local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);" (assignment_expression "local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18)" identifier = (cast_expression "(undefined8 *)FUN_0005dac0(local_24,0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005dac0(local_24,0x18)" identifier (argument_list "(local_24,0x18)" ( identifier , number_literal ))))) ;) (if_statement "if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }" if (parenthesized_expression "(local_28 == (undefined8 *)0x0)" ( (binary_expression "local_28 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }" { (expression_statement "free(pvVar3);" (call_expression "free(pvVar3)" identifier (argument_list "(pvVar3)" ( identifier ))) ;) (expression_statement "uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);" (assignment_expression "uVar2 = dcgettext(0,"out of memory parsing relocs\n",5)" identifier = (call_expression "dcgettext(0,"out of memory parsing relocs\n",5)" identifier (argument_list "(0,"out of memory parsing relocs\n",5)" ( number_literal , (string_literal ""out of memory parsing relocs\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "error(uVar2);" (call_expression "error(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (local_24 != 0) {\n      iVar6 = (int)pvVar3 + 4;\n      puVar8 = local_28;\n      do {\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);\n    }" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar6 = (int)pvVar3 + 4;\n      puVar8 = local_28;\n      do {\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);\n    }" { (expression_statement "iVar6 = (int)pvVar3 + 4;" (assignment_expression "iVar6 = (int)pvVar3 + 4" identifier = (binary_expression "(int)pvVar3 + 4" (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (expression_statement "puVar8 = local_28;" (assignment_expression "puVar8 = local_28" identifier = identifier) ;) (do_statement "do {\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);" do (compound_statement "{\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      }" { (expression_statement "uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);" (assignment_expression "uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4)" identifier = (call_expression "(*DAT_000b9dd8)(iVar6 + -4,4)" (parenthesized_expression "(*DAT_000b9dd8)" ( (pointer_expression "*DAT_000b9dd8" * identifier) )) (argument_list "(iVar6 + -4,4)" ( (binary_expression "iVar6 + -4" identifier + number_literal) , number_literal )))) ;) (expression_statement "*puVar8 = uVar10;" (assignment_expression "*puVar8 = uVar10" (pointer_expression "*puVar8" * identifier) = identifier) ;) (expression_statement "iVar7 = iVar6 + 8;" (assignment_expression "iVar7 = iVar6 + 8" identifier = (binary_expression "iVar6 + 8" identifier + number_literal)) ;) (expression_statement "uVar10 = (*DAT_000b9dd8)(iVar6,4);" (assignment_expression "uVar10 = (*DAT_000b9dd8)(iVar6,4)" identifier = (call_expression "(*DAT_000b9dd8)(iVar6,4)" (parenthesized_expression "(*DAT_000b9dd8)" ( (pointer_expression "*DAT_000b9dd8" * identifier) )) (argument_list "(iVar6,4)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(puVar8 + 2) = 0;" (assignment_expression "*(undefined4 *)(puVar8 + 2) = 0" (pointer_expression "*(undefined4 *)(puVar8 + 2)" * (cast_expression "(undefined4 *)(puVar8 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 2)" ( (binary_expression "puVar8 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "puVar8[1] = uVar10;" (assignment_expression "puVar8[1] = uVar10" (subscript_expression "puVar8[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 *)((int)puVar8 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((int)puVar8 + 0x14) = 0" (pointer_expression "*(undefined4 *)((int)puVar8 + 0x14)" * (cast_expression "(undefined4 *)((int)puVar8 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar8 + 0x14)" ( (binary_expression "(int)puVar8 + 0x14" (cast_expression "(int)puVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "iVar6 = iVar7;" (assignment_expression "iVar6 = iVar7" identifier = identifier) ;) (expression_statement "puVar8 = puVar8 + 3;" (assignment_expression "puVar8 = puVar8 + 3" identifier = (binary_expression "puVar8 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 != (int)pvVar3 + local_24 * 8 + 4)" ( (binary_expression "iVar7 != (int)pvVar3 + local_24 * 8 + 4" identifier != (binary_expression "(int)pvVar3 + local_24 * 8 + 4" (binary_expression "(int)pvVar3 + local_24 * 8" (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "local_24 * 8" identifier * number_literal)) + number_literal)) )) ;) })) (expression_statement "free(pvVar3);" (call_expression "free(pvVar3)" identifier (argument_list "(pvVar3)" ( identifier ))) ;) }))) (expression_statement "*param_4 = (int)local_28;" (assignment_expression "*param_4 = (int)local_28" (pointer_expression "*param_4" * identifier) = (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*param_5 = local_24;" (assignment_expression "*param_5 = local_24" (pointer_expression "*param_5" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier short) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT , IDENT , LIT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT * LIT) + (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) 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 (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) ))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (binary_expression (binary_expression IDENT << LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT >> LIT)) | (binary_expression (binary_expression IDENT >> LIT) & LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT , IDENT , LIT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( 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 (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression IDENT * LIT)) + LIT)) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3\nFUN_0001d7b0(int param_1,undefined4 param_2,uint param_3,int *param_4,uint *param_5)\n\n{\n  short sVar1;\n  undefined4 uVar2;\n  void *pvVar3;\n  void *pvVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  undefined8 *puVar8;\n  void *pvVar9;\n  undefined8 uVar10;\n  undefined8 *local_28;\n  uint local_24;\n  \n  if (DAT_000b6324 == 0) {\n    uVar2 = dcgettext(0,"64-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 4;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3);\n      puVar8 = local_28;\n      pvVar9 = pvVar3;\n      do {\n        while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }\n        pvVar9 = (void *)((int)pvVar9 + 0x10);\n        puVar8 = puVar8 + 3;\n      } while (pvVar9 != pvVar4);\n    }\nLAB_0001da70:\n    free(pvVar3);\n  }\n  else {\n    uVar2 = dcgettext(0,"32-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 3;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      iVar6 = (int)pvVar3 + 4;\n      puVar8 = local_28;\n      do {\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);\n    }\n    free(pvVar3);\n  }\n  *param_4 = (int)local_28;\n  *param_5 = local_24;\n  return 1;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001d7b0(int param_1,undefined4 param_2,uint param_3,int *param_4,uint *param_5)" (identifier "FUN_0001d7b0") (parameter_list "(int param_1,undefined4 param_2,uint param_3,int *param_4,uint *param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "uint *param_5" (type_identifier "uint") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  short sVar1;\n  undefined4 uVar2;\n  void *pvVar3;\n  void *pvVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  undefined8 *puVar8;\n  void *pvVar9;\n  undefined8 uVar10;\n  undefined8 *local_28;\n  uint local_24;\n  \n  if (DAT_000b6324 == 0) {\n    uVar2 = dcgettext(0,"64-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 4;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3);\n      puVar8 = local_28;\n      pvVar9 = pvVar3;\n      do {\n        while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }\n        pvVar9 = (void *)((int)pvVar9 + 0x10);\n        puVar8 = puVar8 + 3;\n      } while (pvVar9 != pvVar4);\n    }\nLAB_0001da70:\n    free(pvVar3);\n  }\n  else {\n    uVar2 = dcgettext(0,"32-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 3;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      iVar6 = (int)pvVar3 + 4;\n      puVar8 = local_28;\n      do {\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);\n    }\n    free(pvVar3);\n  }\n  *param_4 = (int)local_28;\n  *param_5 = local_24;\n  return 1;\n}" ({ "{") (declaration "short sVar1;" (sized_type_specifier "short" (short "short")) (identifier "sVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "void *pvVar3;" (primitive_type "void") (pointer_declarator "*pvVar3" (* "*") (identifier "pvVar3")) (; ";")) (declaration "void *pvVar4;" (primitive_type "void") (pointer_declarator "*pvVar4" (* "*") (identifier "pvVar4")) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "undefined8 *puVar8;" (type_identifier "undefined8") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "void *pvVar9;" (primitive_type "void") (pointer_declarator "*pvVar9" (* "*") (identifier "pvVar9")) (; ";")) (declaration "undefined8 uVar10;" (type_identifier "undefined8") (identifier "uVar10") (; ";")) (declaration "undefined8 *local_28;" (type_identifier "undefined8") (pointer_declarator "*local_28" (* "*") (identifier "local_28")) (; ";")) (declaration "uint local_24;" (type_identifier "uint") (identifier "local_24") (; ";")) (if_statement "if (DAT_000b6324 == 0) {\n    uVar2 = dcgettext(0,"64-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 4;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3);\n      puVar8 = local_28;\n      pvVar9 = pvVar3;\n      do {\n        while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }\n        pvVar9 = (void *)((int)pvVar9 + 0x10);\n        puVar8 = puVar8 + 3;\n      } while (pvVar9 != pvVar4);\n    }\nLAB_0001da70:\n    free(pvVar3);\n  }\n  else {\n    uVar2 = dcgettext(0,"32-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 3;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      iVar6 = (int)pvVar3 + 4;\n      puVar8 = local_28;\n      do {\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);\n    }\n    free(pvVar3);\n  }" (if "if") (parenthesized_expression "(DAT_000b6324 == 0)" (( "(") (binary_expression "DAT_000b6324 == 0" (identifier "DAT_000b6324") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = dcgettext(0,"64-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 4;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3);\n      puVar8 = local_28;\n      pvVar9 = pvVar3;\n      do {\n        while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }\n        pvVar9 = (void *)((int)pvVar9 + 0x10);\n        puVar8 = puVar8 + 3;\n      } while (pvVar9 != pvVar4);\n    }\nLAB_0001da70:\n    free(pvVar3);\n  }" ({ "{") (expression_statement "uVar2 = dcgettext(0,"64-bit relocation data",5);" (assignment_expression "uVar2 = dcgettext(0,"64-bit relocation data",5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"64-bit relocation data",5)" (identifier "dcgettext") (argument_list "(0,"64-bit relocation data",5)" (( "(") (number_literal "0") (, ",") (string_literal ""64-bit relocation data"" (" """) (string_content "64-bit relocation data") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);" (assignment_expression "pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2)" (identifier "pvVar3") (= "=") (cast_expression "(void *)FUN_0001bf90(1,0,param_3,0,uVar2)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001bf90(1,0,param_3,0,uVar2)" (identifier "FUN_0001bf90") (argument_list "(1,0,param_3,0,uVar2)" (( "(") (number_literal "1") (, ",") (number_literal "0") (, ",") (identifier "param_3") (, ",") (number_literal "0") (, ",") (identifier "uVar2") () ")"))))) (; ";")) (if_statement "if (pvVar3 == (void *)0x0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(pvVar3 == (void *)0x0)" (( "(") (binary_expression "pvVar3 == (void *)0x0" (identifier "pvVar3") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "local_24 = param_3 >> 4;" (assignment_expression "local_24 = param_3 >> 4" (identifier "local_24") (= "=") (binary_expression "param_3 >> 4" (identifier "param_3") (>> ">>") (number_literal "4"))) (; ";")) (expression_statement "local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);" (assignment_expression "local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18)" (identifier "local_28") (= "=") (cast_expression "(undefined8 *)FUN_0005dac0(local_24,0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0005dac0(local_24,0x18)" (identifier "FUN_0005dac0") (argument_list "(local_24,0x18)" (( "(") (identifier "local_24") (, ",") (number_literal "0x18") () ")"))))) (; ";")) (if_statement "if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }" (if "if") (parenthesized_expression "(local_28 == (undefined8 *)0x0)" (( "(") (binary_expression "local_28 == (undefined8 *)0x0" (identifier "local_28") (== "==") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }" ({ "{") (expression_statement "free(pvVar3);" (call_expression "free(pvVar3)" (identifier "free") (argument_list "(pvVar3)" (( "(") (identifier "pvVar3") () ")"))) (; ";")) (expression_statement "uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);" (assignment_expression "uVar2 = dcgettext(0,"out of memory parsing relocs\n",5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"out of memory parsing relocs\n",5)" (identifier "dcgettext") (argument_list "(0,"out of memory parsing relocs\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""out of memory parsing relocs\n"" (" """) (string_content "out of memory parsing relocs") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "error(uVar2);" (call_expression "error(uVar2)" (identifier "error") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (local_24 != 0) {\n      pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3);\n      puVar8 = local_28;\n      pvVar9 = pvVar3;\n      do {\n        while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }\n        pvVar9 = (void *)((int)pvVar9 + 0x10);\n        puVar8 = puVar8 + 3;\n      } while (pvVar9 != pvVar4);\n    }" (if "if") (parenthesized_expression "(local_24 != 0)" (( "(") (binary_expression "local_24 != 0" (identifier "local_24") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3);\n      puVar8 = local_28;\n      pvVar9 = pvVar3;\n      do {\n        while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }\n        pvVar9 = (void *)((int)pvVar9 + 0x10);\n        puVar8 = puVar8 + 3;\n      } while (pvVar9 != pvVar4);\n    }" ({ "{") (expression_statement "pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3);" (assignment_expression "pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3)" (identifier "pvVar4") (= "=") (cast_expression "(void *)(local_24 * 0x10 + (int)pvVar3)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_24 * 0x10 + (int)pvVar3)" (( "(") (binary_expression "local_24 * 0x10 + (int)pvVar3" (binary_expression "local_24 * 0x10" (identifier "local_24") (* "*") (number_literal "0x10")) (+ "+") (cast_expression "(int)pvVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar3"))) () ")")))) (; ";")) (expression_statement "puVar8 = local_28;" (assignment_expression "puVar8 = local_28" (identifier "puVar8") (= "=") (identifier "local_28")) (; ";")) (expression_statement "pvVar9 = pvVar3;" (assignment_expression "pvVar9 = pvVar3" (identifier "pvVar9") (= "=") (identifier "pvVar3")) (; ";")) (do_statement "do {\n        while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }\n        pvVar9 = (void *)((int)pvVar9 + 0x10);\n        puVar8 = puVar8 + 3;\n      } while (pvVar9 != pvVar4);" (do "do") (compound_statement "{\n        while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }\n        pvVar9 = (void *)((int)pvVar9 + 0x10);\n        puVar8 = puVar8 + 3;\n      }" ({ "{") (while_statement "while( true ) {\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n          uVar10 = (*DAT_000b9dd8)(pvVar9,8);\n          *puVar8 = uVar10;\n          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);\n          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);\n          *(undefined4 *)(puVar8 + 2) = 0;\n          puVar8[1] = uVar10;\n          sVar1 = *(short *)(param_1 + 0x42);\n          *(undefined4 *)((int)puVar8 + 0x14) = 0;\n          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;\n          pvVar9 = (void *)((int)pvVar9 + 0x10);\n          *(int *)((int)puVar8 + 0xc) = (int)uVar10;\n          *(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;\n          puVar8 = puVar8 + 3;\n          if (pvVar9 == pvVar4) goto LAB_0001da70;\n        }" ({ "{") (expression_statement "uVar10 = (*DAT_000b9dd8)(pvVar9,8);" (assignment_expression "uVar10 = (*DAT_000b9dd8)(pvVar9,8)" (identifier "uVar10") (= "=") (call_expression "(*DAT_000b9dd8)(pvVar9,8)" (parenthesized_expression "(*DAT_000b9dd8)" (( "(") (pointer_expression "*DAT_000b9dd8" (* "*") (identifier "DAT_000b9dd8")) () ")")) (argument_list "(pvVar9,8)" (( "(") (identifier "pvVar9") (, ",") (number_literal "8") () ")")))) (; ";")) (expression_statement "*puVar8 = uVar10;" (assignment_expression "*puVar8 = uVar10" (pointer_expression "*puVar8" (* "*") (identifier "puVar8")) (= "=") (identifier "uVar10")) (; ";")) (expression_statement "uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);" (assignment_expression "uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8)" (identifier "uVar10") (= "=") (call_expression "(*DAT_000b9dd8)((int)pvVar9 + 8,8)" (parenthesized_expression "(*DAT_000b9dd8)" (( "(") (pointer_expression "*DAT_000b9dd8" (* "*") (identifier "DAT_000b9dd8")) () ")")) (argument_list "((int)pvVar9 + 8,8)" (( "(") (binary_expression "(int)pvVar9 + 8" (cast_expression "(int)pvVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar9")) (+ "+") (number_literal "8")) (, ",") (number_literal "8") () ")")))) (; ";")) (expression_statement "uVar5 = (uint)((ulonglong)uVar10 >> 0x20);" (assignment_expression "uVar5 = (uint)((ulonglong)uVar10 >> 0x20)" (identifier "uVar5") (= "=") (call_expression "(uint)((ulonglong)uVar10 >> 0x20)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((ulonglong)uVar10 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar10 >> 0x20" (cast_expression "(ulonglong)uVar10" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar10")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "*(undefined4 *)(puVar8 + 2) = 0;" (assignment_expression "*(undefined4 *)(puVar8 + 2) = 0" (pointer_expression "*(undefined4 *)(puVar8 + 2)" (* "*") (cast_expression "(undefined4 *)(puVar8 + 2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + 2)" (( "(") (binary_expression "puVar8 + 2" (identifier "puVar8") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar8[1] = uVar10;" (assignment_expression "puVar8[1] = uVar10" (subscript_expression "puVar8[1]" (identifier "puVar8") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar10")) (; ";")) (expression_statement "sVar1 = *(short *)(param_1 + 0x42);" (assignment_expression "sVar1 = *(short *)(param_1 + 0x42)" (identifier "sVar1") (= "=") (pointer_expression "*(short *)(param_1 + 0x42)" (* "*") (cast_expression "(short *)(param_1 + 0x42)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x42)" (( "(") (binary_expression "param_1 + 0x42" (identifier "param_1") (+ "+") (number_literal "0x42")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)((int)puVar8 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((int)puVar8 + 0x14) = 0" (pointer_expression "*(undefined4 *)((int)puVar8 + 0x14)" (* "*") (cast_expression "(undefined4 *)((int)puVar8 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar8 + 0x14)" (( "(") (binary_expression "(int)puVar8 + 0x14" (cast_expression "(int)puVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar8")) (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;" (if "if") (parenthesized_expression "((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02'))" (( "(") (binary_expression "(sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')" (parenthesized_expression "(sVar1 != 8)" (( "(") (binary_expression "sVar1 != 8" (identifier "sVar1") (!= "!=") (number_literal "8")) () ")")) (|| "||") (parenthesized_expression "(*(char *)(param_1 + 0x15) == '\x02')" (( "(") (binary_expression "*(char *)(param_1 + 0x15) == '\x02'" (pointer_expression "*(char *)(param_1 + 0x15)" (* "*") (cast_expression "(char *)(param_1 + 0x15)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x15)" (( "(") (binary_expression "param_1 + 0x15" (identifier "param_1") (+ "+") (number_literal "0x15")) () ")")))) (== "==") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pvVar9 = (void *)((int)pvVar9 + 0x10);" (assignment_expression "pvVar9 = (void *)((int)pvVar9 + 0x10)" (identifier "pvVar9") (= "=") (cast_expression "(void *)((int)pvVar9 + 0x10)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar9 + 0x10)" (( "(") (binary_expression "(int)pvVar9 + 0x10" (cast_expression "(int)pvVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar9")) (+ "+") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "*(int *)((int)puVar8 + 0xc) = (int)uVar10;" (assignment_expression "*(int *)((int)puVar8 + 0xc) = (int)uVar10" (pointer_expression "*(int *)((int)puVar8 + 0xc)" (* "*") (cast_expression "(int *)((int)puVar8 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar8 + 0xc)" (( "(") (binary_expression "(int)puVar8 + 0xc" (cast_expression "(int)puVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar8")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (cast_expression "(int)uVar10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar10"))) (; ";")) (expression_statement "*(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;" (assignment_expression "*(uint *)(puVar8 + 1) =\n               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00" (pointer_expression "*(uint *)(puVar8 + 1)" (* "*") (cast_expression "(uint *)(puVar8 + 1)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + 1)" (( "(") (binary_expression "puVar8 + 1" (identifier "puVar8") (+ "+") (number_literal "1")) () ")")))) (= "=") (binary_expression "uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00" (binary_expression "uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18" (binary_expression "uVar5 << 0x18 | (uVar5 & 0xff00) << 8" (binary_expression "uVar5 << 0x18" (identifier "uVar5") (<< "<<") (number_literal "0x18")) (| "|") (binary_expression "(uVar5 & 0xff00) << 8" (parenthesized_expression "(uVar5 & 0xff00)" (( "(") (binary_expression "uVar5 & 0xff00" (identifier "uVar5") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar5 >> 0x18" (identifier "uVar5") (>> ">>") (number_literal "0x18"))) (| "|") (binary_expression "uVar5 >> 8 & 0xff00" (binary_expression "uVar5 >> 8" (identifier "uVar5") (>> ">>") (number_literal "8")) (& "&") (number_literal "0xff00")))) (; ";")) (expression_statement "puVar8 = puVar8 + 3;" (assignment_expression "puVar8 = puVar8 + 3" (identifier "puVar8") (= "=") (binary_expression "puVar8 + 3" (identifier "puVar8") (+ "+") (number_literal "3"))) (; ";")) (if_statement "if (pvVar9 == pvVar4) goto LAB_0001da70;" (if "if") (parenthesized_expression "(pvVar9 == pvVar4)" (( "(") (binary_expression "pvVar9 == pvVar4" (identifier "pvVar9") (== "==") (identifier "pvVar4")) () ")")) (goto_statement "goto LAB_0001da70;" (goto "goto") (statement_identifier "LAB_0001da70") (; ";"))) (} "}"))) (expression_statement "pvVar9 = (void *)((int)pvVar9 + 0x10);" (assignment_expression "pvVar9 = (void *)((int)pvVar9 + 0x10)" (identifier "pvVar9") (= "=") (cast_expression "(void *)((int)pvVar9 + 0x10)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar9 + 0x10)" (( "(") (binary_expression "(int)pvVar9 + 0x10" (cast_expression "(int)pvVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar9")) (+ "+") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "puVar8 = puVar8 + 3;" (assignment_expression "puVar8 = puVar8 + 3" (identifier "puVar8") (= "=") (binary_expression "puVar8 + 3" (identifier "puVar8") (+ "+") (number_literal "3"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pvVar9 != pvVar4)" (( "(") (binary_expression "pvVar9 != pvVar4" (identifier "pvVar9") (!= "!=") (identifier "pvVar4")) () ")")) (; ";")) (} "}"))) (labeled_statement "LAB_0001da70:\n    free(pvVar3);" (statement_identifier "LAB_0001da70") (: ":") (expression_statement "free(pvVar3);" (call_expression "free(pvVar3)" (identifier "free") (argument_list "(pvVar3)" (( "(") (identifier "pvVar3") () ")"))) (; ";"))) (} "}")) (else_clause "else {\n    uVar2 = dcgettext(0,"32-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 3;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      iVar6 = (int)pvVar3 + 4;\n      puVar8 = local_28;\n      do {\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);\n    }\n    free(pvVar3);\n  }" (else "else") (compound_statement "{\n    uVar2 = dcgettext(0,"32-bit relocation data",5);\n    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);\n    if (pvVar3 == (void *)0x0) {\n      return 0;\n    }\n    local_24 = param_3 >> 3;\n    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);\n    if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }\n    if (local_24 != 0) {\n      iVar6 = (int)pvVar3 + 4;\n      puVar8 = local_28;\n      do {\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);\n    }\n    free(pvVar3);\n  }" ({ "{") (expression_statement "uVar2 = dcgettext(0,"32-bit relocation data",5);" (assignment_expression "uVar2 = dcgettext(0,"32-bit relocation data",5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"32-bit relocation data",5)" (identifier "dcgettext") (argument_list "(0,"32-bit relocation data",5)" (( "(") (number_literal "0") (, ",") (string_literal ""32-bit relocation data"" (" """) (string_content "32-bit relocation data") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);" (assignment_expression "pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2)" (identifier "pvVar3") (= "=") (cast_expression "(void *)FUN_0001bf90(1,0,param_3,0,uVar2)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001bf90(1,0,param_3,0,uVar2)" (identifier "FUN_0001bf90") (argument_list "(1,0,param_3,0,uVar2)" (( "(") (number_literal "1") (, ",") (number_literal "0") (, ",") (identifier "param_3") (, ",") (number_literal "0") (, ",") (identifier "uVar2") () ")"))))) (; ";")) (if_statement "if (pvVar3 == (void *)0x0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(pvVar3 == (void *)0x0)" (( "(") (binary_expression "pvVar3 == (void *)0x0" (identifier "pvVar3") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "local_24 = param_3 >> 3;" (assignment_expression "local_24 = param_3 >> 3" (identifier "local_24") (= "=") (binary_expression "param_3 >> 3" (identifier "param_3") (>> ">>") (number_literal "3"))) (; ";")) (expression_statement "local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);" (assignment_expression "local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18)" (identifier "local_28") (= "=") (cast_expression "(undefined8 *)FUN_0005dac0(local_24,0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0005dac0(local_24,0x18)" (identifier "FUN_0005dac0") (argument_list "(local_24,0x18)" (( "(") (identifier "local_24") (, ",") (number_literal "0x18") () ")"))))) (; ";")) (if_statement "if (local_28 == (undefined8 *)0x0) {\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }" (if "if") (parenthesized_expression "(local_28 == (undefined8 *)0x0)" (( "(") (binary_expression "local_28 == (undefined8 *)0x0" (identifier "local_28") (== "==") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      free(pvVar3);\n      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);\n      error(uVar2);\n      return 0;\n    }" ({ "{") (expression_statement "free(pvVar3);" (call_expression "free(pvVar3)" (identifier "free") (argument_list "(pvVar3)" (( "(") (identifier "pvVar3") () ")"))) (; ";")) (expression_statement "uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);" (assignment_expression "uVar2 = dcgettext(0,"out of memory parsing relocs\n",5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"out of memory parsing relocs\n",5)" (identifier "dcgettext") (argument_list "(0,"out of memory parsing relocs\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""out of memory parsing relocs\n"" (" """) (string_content "out of memory parsing relocs") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "error(uVar2);" (call_expression "error(uVar2)" (identifier "error") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (local_24 != 0) {\n      iVar6 = (int)pvVar3 + 4;\n      puVar8 = local_28;\n      do {\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);\n    }" (if "if") (parenthesized_expression "(local_24 != 0)" (( "(") (binary_expression "local_24 != 0" (identifier "local_24") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar6 = (int)pvVar3 + 4;\n      puVar8 = local_28;\n      do {\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);\n    }" ({ "{") (expression_statement "iVar6 = (int)pvVar3 + 4;" (assignment_expression "iVar6 = (int)pvVar3 + 4" (identifier "iVar6") (= "=") (binary_expression "(int)pvVar3 + 4" (cast_expression "(int)pvVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar3")) (+ "+") (number_literal "4"))) (; ";")) (expression_statement "puVar8 = local_28;" (assignment_expression "puVar8 = local_28" (identifier "puVar8") (= "=") (identifier "local_28")) (; ";")) (do_statement "do {\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);" (do "do") (compound_statement "{\n        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);\n        *puVar8 = uVar10;\n        iVar7 = iVar6 + 8;\n        uVar10 = (*DAT_000b9dd8)(iVar6,4);\n        *(undefined4 *)(puVar8 + 2) = 0;\n        puVar8[1] = uVar10;\n        *(undefined4 *)((int)puVar8 + 0x14) = 0;\n        iVar6 = iVar7;\n        puVar8 = puVar8 + 3;\n      }" ({ "{") (expression_statement "uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);" (assignment_expression "uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4)" (identifier "uVar10") (= "=") (call_expression "(*DAT_000b9dd8)(iVar6 + -4,4)" (parenthesized_expression "(*DAT_000b9dd8)" (( "(") (pointer_expression "*DAT_000b9dd8" (* "*") (identifier "DAT_000b9dd8")) () ")")) (argument_list "(iVar6 + -4,4)" (( "(") (binary_expression "iVar6 + -4" (identifier "iVar6") (+ "+") (number_literal "-4")) (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "*puVar8 = uVar10;" (assignment_expression "*puVar8 = uVar10" (pointer_expression "*puVar8" (* "*") (identifier "puVar8")) (= "=") (identifier "uVar10")) (; ";")) (expression_statement "iVar7 = iVar6 + 8;" (assignment_expression "iVar7 = iVar6 + 8" (identifier "iVar7") (= "=") (binary_expression "iVar6 + 8" (identifier "iVar6") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "uVar10 = (*DAT_000b9dd8)(iVar6,4);" (assignment_expression "uVar10 = (*DAT_000b9dd8)(iVar6,4)" (identifier "uVar10") (= "=") (call_expression "(*DAT_000b9dd8)(iVar6,4)" (parenthesized_expression "(*DAT_000b9dd8)" (( "(") (pointer_expression "*DAT_000b9dd8" (* "*") (identifier "DAT_000b9dd8")) () ")")) (argument_list "(iVar6,4)" (( "(") (identifier "iVar6") (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(puVar8 + 2) = 0;" (assignment_expression "*(undefined4 *)(puVar8 + 2) = 0" (pointer_expression "*(undefined4 *)(puVar8 + 2)" (* "*") (cast_expression "(undefined4 *)(puVar8 + 2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + 2)" (( "(") (binary_expression "puVar8 + 2" (identifier "puVar8") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar8[1] = uVar10;" (assignment_expression "puVar8[1] = uVar10" (subscript_expression "puVar8[1]" (identifier "puVar8") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar10")) (; ";")) (expression_statement "*(undefined4 *)((int)puVar8 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((int)puVar8 + 0x14) = 0" (pointer_expression "*(undefined4 *)((int)puVar8 + 0x14)" (* "*") (cast_expression "(undefined4 *)((int)puVar8 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar8 + 0x14)" (( "(") (binary_expression "(int)puVar8 + 0x14" (cast_expression "(int)puVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar8")) (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar6 = iVar7;" (assignment_expression "iVar6 = iVar7" (identifier "iVar6") (= "=") (identifier "iVar7")) (; ";")) (expression_statement "puVar8 = puVar8 + 3;" (assignment_expression "puVar8 = puVar8 + 3" (identifier "puVar8") (= "=") (binary_expression "puVar8 + 3" (identifier "puVar8") (+ "+") (number_literal "3"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar7 != (int)pvVar3 + local_24 * 8 + 4)" (( "(") (binary_expression "iVar7 != (int)pvVar3 + local_24 * 8 + 4" (identifier "iVar7") (!= "!=") (binary_expression "(int)pvVar3 + local_24 * 8 + 4" (binary_expression "(int)pvVar3 + local_24 * 8" (cast_expression "(int)pvVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar3")) (+ "+") (binary_expression "local_24 * 8" (identifier "local_24") (* "*") (number_literal "8"))) (+ "+") (number_literal "4"))) () ")")) (; ";")) (} "}"))) (expression_statement "free(pvVar3);" (call_expression "free(pvVar3)" (identifier "free") (argument_list "(pvVar3)" (( "(") (identifier "pvVar3") () ")"))) (; ";")) (} "}")))) (expression_statement "*param_4 = (int)local_28;" (assignment_expression "*param_4 = (int)local_28" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (cast_expression "(int)local_28" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_28"))) (; ";")) (expression_statement "*param_5 = local_24;" (assignment_expression "*param_5 = local_24" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "local_24")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

type_1 __regparm3
function_1(type_2 *filedata,type_3 rel_offset,type_3 var_5,type_4 **relsp,
                type_3 *nrelsp)

{
  type_5 var_13;
  char *pcVar2;
  void *var_16;
  type_6 *var_4;
  type_7 var_14;
  type_6 *var_11;
  type_4 *var_15;
  type_8 var_12;
  type_4 *var_7;
  type_7 var_10;
  
  if (var_1 == 0) {
    pcVar2 = (char *)var_2(0,"64-bit relocation data",5);
    var_4 = (type_6 *)var_3((void *)0x0,filedata,rel_offset,1,(type_9)var_5,pcVar2);
    if (var_4 == (type_6 *)0x0) {
      return 0;
    }
    var_10 = var_5 >> 4;
    var_7 = (type_4 *)var_6(var_10,0x18);
    if (var_7 == (type_4 *)0x0) {
      var_8(var_4);
      pcVar2 = (char *)var_2(0,"out of memory parsing relocs\n",5);
      var_9(pcVar2);
      return 0;
    }
    if (var_10 != 0) {
      var_15 = var_7;
      var_11 = var_4;
      do {
        while( true ) {
          var_12 = (*byte_get)(var_11,8);
          var_15->r_offset = var_12;
          var_12 = (*byte_get)(var_11 + 8,8);
          var_14 = (type_7)(var_12 >> 0x20);
          *(type_10 *)&var_15->r_addend = 0;
          var_15->r_info = var_12;
          var_13 = (filedata->file_header).e_machine;
          *(type_10 *)((int)&var_15->r_addend + 4) = 0;
          if ((var_13 != 8) || ((filedata->file_header).e_ident[5] == '\x02')) break;
          var_11 = var_11 + 0x10;
          *(int *)((int)&var_15->r_info + 4) = (int)var_12;
          *(type_7 *)&var_15->r_info =
               var_14 << 0x18 | (var_14 & 0xff00) << 8 | var_14 >> 0x18 | var_14 >> 8 & 0xff00;
          var_15 = var_15 + 1;
          if (var_11 == var_4 + var_10 * 0x10) goto LAB_0001da70;
        }
        var_11 = var_11 + 0x10;
        var_15 = var_15 + 1;
      } while (var_11 != var_4 + var_10 * 0x10);
    }
LAB_0001da70:
    var_8(var_4);
  }
  else {
    pcVar2 = (char *)var_2(0,"32-bit relocation data",5);
    var_16 = var_3((void *)0x0,filedata,rel_offset,1,(type_9)var_5,pcVar2);
    if (var_16 == (void *)0x0) {
      return 0;
    }
    var_10 = var_5 >> 3;
    var_7 = (type_4 *)var_6(var_10,0x18);
    if (var_7 == (type_4 *)0x0) {
      var_8(var_16);
      pcVar2 = (char *)var_2(0,"out of memory parsing relocs\n",5);
      var_9(pcVar2);
      return 0;
    }
    if (var_10 != 0) {
      var_4 = (type_6 *)((int)var_16 + 4);
      var_15 = var_7;
      do {
        var_12 = (*byte_get)(var_4 + -4,4);
        var_15->r_offset = var_12;
        var_11 = var_4 + 8;
        var_12 = (*byte_get)(var_4,4);
        *(type_10 *)&var_15->r_addend = 0;
        var_15->r_info = var_12;
        *(type_10 *)((int)&var_15->r_addend + 4) = 0;
        var_4 = var_11;
        var_15 = var_15 + 1;
      } while (var_11 != (type_6 *)((int)var_16 + var_10 * 8 + 4));
    }
    var_8(var_16);
  }
  *relsp = var_7;
  *nrelsp = var_10;
  return 1;
}


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

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

undefined4 __regparm3
MASKED(int param_1,undefined4 param_2,uint param_3,int *param_4,uint *param_5)

{
  short sVar1;
  undefined4 uVar2;
  void *pvVar3;
  void *pvVar4;
  uint uVar5;
  int iVar6;
  int iVar7;
  undefined8 *puVar8;
  void *pvVar9;
  undefined8 uVar10;
  undefined8 *local_28;
  uint local_24;
  
  if (DAT_000b6324 == 0) {
    uVar2 = dcgettext(0,"64-bit relocation data",5);
    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);
    if (pvVar3 == (void *)0x0) {
      return 0;
    }
    local_24 = param_3 >> 4;
    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);
    if (local_28 == (undefined8 *)0x0) {
      free(pvVar3);
      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);
      error(uVar2);
      return 0;
    }
    if (local_24 != 0) {
      pvVar4 = (void *)(local_24 * 0x10 + (int)pvVar3);
      puVar8 = local_28;
      pvVar9 = pvVar3;
      do {
        while( true ) {
          uVar10 = (*DAT_000b9dd8)(pvVar9,8);
          *puVar8 = uVar10;
          uVar10 = (*DAT_000b9dd8)((int)pvVar9 + 8,8);
          uVar5 = (uint)((ulonglong)uVar10 >> 0x20);
          *(undefined4 *)(puVar8 + 2) = 0;
          puVar8[1] = uVar10;
          sVar1 = *(short *)(param_1 + 0x42);
          *(undefined4 *)((int)puVar8 + 0x14) = 0;
          if ((sVar1 != 8) || (*(char *)(param_1 + 0x15) == '\x02')) break;
          pvVar9 = (void *)((int)pvVar9 + 0x10);
          *(int *)((int)puVar8 + 0xc) = (int)uVar10;
          *(uint *)(puVar8 + 1) =
               uVar5 << 0x18 | (uVar5 & 0xff00) << 8 | uVar5 >> 0x18 | uVar5 >> 8 & 0xff00;
          puVar8 = puVar8 + 3;
          if (pvVar9 == pvVar4) goto LAB_0001da70;
        }
        pvVar9 = (void *)((int)pvVar9 + 0x10);
        puVar8 = puVar8 + 3;
      } while (pvVar9 != pvVar4);
    }
LAB_0001da70:
    free(pvVar3);
  }
  else {
    uVar2 = dcgettext(0,"32-bit relocation data",5);
    pvVar3 = (void *)FUN_0001bf90(1,0,param_3,0,uVar2);
    if (pvVar3 == (void *)0x0) {
      return 0;
    }
    local_24 = param_3 >> 3;
    local_28 = (undefined8 *)FUN_0005dac0(local_24,0x18);
    if (local_28 == (undefined8 *)0x0) {
      free(pvVar3);
      uVar2 = dcgettext(0,"out of memory parsing relocs\n",5);
      error(uVar2);
      return 0;
    }
    if (local_24 != 0) {
      iVar6 = (int)pvVar3 + 4;
      puVar8 = local_28;
      do {
        uVar10 = (*DAT_000b9dd8)(iVar6 + -4,4);
        *puVar8 = uVar10;
        iVar7 = iVar6 + 8;
        uVar10 = (*DAT_000b9dd8)(iVar6,4);
        *(undefined4 *)(puVar8 + 2) = 0;
        puVar8[1] = uVar10;
        *(undefined4 *)((int)puVar8 + 0x14) = 0;
        iVar6 = iVar7;
        puVar8 = puVar8 + 3;
      } while (iVar7 != (int)pvVar3 + local_24 * 8 + 4);
    }
    free(pvVar3);
  }
  *param_4 = (int)local_28;
  *param_5 = local_24;
  return 1;
}

