
bfd_boolean get_32bit_section_headers(Filedata *filedata,bfd_boolean probe)

{
  uint uVar1;
  uchar *__ptr;
  Elf_Internal_Shdr *pEVar2;
  elf_vma eVar3;
  char *pcVar4;
  Filedata *filedata_1;
  uchar *puVar5;
  uint uVar6;
  uint uVar7;
  bool bVar8;
  
  uVar6 = (filedata->file_header).e_shentsize;
  if (probe == 0) {
    uVar7 = (filedata->file_header).e_shnum;
    bVar8 = uVar7 == 0;
  }
  else {
    bVar8 = false;
    uVar7 = 1;
  }
  if (uVar6 == 0) {
    return 0;
  }
  if (bVar8) {
    return 0;
  }
  if (uVar6 < 0x28) {
    if (probe != 0) {
      return 0;
    }
    pcVar4 = (char *)dcgettext(0,
                               "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"
                               ,5);
    error(pcVar4);
    return 0;
  }
  if (((probe & 1U) == 0) && (0x28 < uVar6)) {
    pcVar4 = (char *)dcgettext(0,
                               "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"
                               ,5);
    warn(pcVar4);
  }
  else if (probe != 0) {
    filedata_1 = (Filedata *)0x0;
    goto LAB_001156ac;
  }
  filedata_1 = (Filedata *)dcgettext(0,"section headers",5);
LAB_001156ac:
  __ptr = (uchar *)get_data((void *)0x0,(Filedata *)&filedata->handle,(ulong)&filedata->file_size,
                            (filedata->file_header).e_shoff,(ulong)uVar6,(char *)(ulong)uVar7,
                            filedata_1);
  if (__ptr != (uchar *)0x0) {
    free(filedata->section_headers);
    uVar6 = 0;
    pEVar2 = (Elf_Internal_Shdr *)cmalloc((size_t)(ulong)uVar7,0x50);
    filedata->section_headers = pEVar2;
    puVar5 = __ptr;
    if (pEVar2 != (Elf_Internal_Shdr *)0x0) {
      do {
        eVar3 = (*byte_get)(puVar5,4);
        pEVar2->sh_name = (uint)eVar3;
        eVar3 = (*byte_get)(puVar5 + 4,4);
        pEVar2->sh_type = (uint)eVar3;
        eVar3 = (*byte_get)(puVar5 + 8,4);
        pEVar2->sh_flags = eVar3;
        eVar3 = (*byte_get)(puVar5 + 0xc,4);
        pEVar2->sh_addr = eVar3;
        eVar3 = (*byte_get)(puVar5 + 0x10,4);
        pEVar2->sh_offset = eVar3;
        eVar3 = (*byte_get)(puVar5 + 0x14,4);
        pEVar2->sh_size = eVar3;
        eVar3 = (*byte_get)(puVar5 + 0x18,4);
        pEVar2->sh_link = (uint)eVar3;
        eVar3 = (*byte_get)(puVar5 + 0x1c,4);
        pEVar2->sh_info = (uint)eVar3;
        eVar3 = (*byte_get)(puVar5 + 0x20,4);
        pEVar2->sh_addralign = eVar3;
        eVar3 = (*byte_get)(puVar5 + 0x24,4);
        pEVar2->sh_entsize = eVar3;
        if (probe == 0) {
          uVar1 = pEVar2->sh_link;
          if (uVar7 < uVar1) {
            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);
            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);
          }
          if (((pEVar2->sh_flags & 0x40) != 0) && (uVar1 = pEVar2->sh_info, uVar7 < uVar1)) {
            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);
            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);
          }
        }
        uVar6 = uVar6 + 1;
        pEVar2 = pEVar2 + 1;
        puVar5 = puVar5 + 0x28;
      } while (uVar6 < uVar7);
      free(__ptr);
      return 1;
    }
    if (probe == 0) {
      pcVar4 = (char *)dcgettext(0,"Out of memory reading %u section headers\n",5);
      error(pcVar4,(ulong)uVar7);
    }
  }
  return 0;
}



undefined8 FUN_00115650(long param_1,uint param_2)

{
  uint uVar1;
  undefined4 uVar2;
  void *__ptr;
  undefined4 *puVar3;
  undefined8 uVar4;
  void *pvVar5;
  uint uVar6;
  uint uVar7;
  bool bVar8;
  
  uVar6 = *(uint *)(param_1 + 0x60);
  if (param_2 == 0) {
    uVar7 = *(uint *)(param_1 + 100);
    bVar8 = uVar7 == 0;
  }
  else {
    bVar8 = false;
    uVar7 = 1;
  }
  if (uVar6 == 0) {
    return 0;
  }
  if (bVar8) {
    return 0;
  }
  if (uVar6 < 0x28) {
    if (param_2 != 0) {
      return 0;
    }
    uVar4 = dcgettext(0,
                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"
                      ,5);
    error(uVar4);
    return 0;
  }
  if (((param_2 & 1) == 0) && (0x28 < uVar6)) {
    uVar4 = dcgettext(0,
                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"
                      ,5);
    warn(uVar4);
  }
  else if (param_2 != 0) {
    uVar4 = 0;
    goto LAB_001156ac;
  }
  uVar4 = dcgettext(0,"section headers",5);
LAB_001156ac:
  __ptr = (void *)FUN_001144a0(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,
                               uVar7,uVar4);
  if (__ptr != (void *)0x0) {
    free(*(void **)(param_1 + 0x70));
    uVar6 = 0;
    puVar3 = (undefined4 *)FUN_0014c820(uVar7,0x50);
    *(undefined4 **)(param_1 + 0x70) = puVar3;
    pvVar5 = __ptr;
    if (puVar3 != (undefined4 *)0x0) {
      do {
        uVar2 = (*DAT_00196f88)(pvVar5,4);
        *puVar3 = uVar2;
        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);
        puVar3[1] = uVar2;
        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);
        *(undefined8 *)(puVar3 + 2) = uVar4;
        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);
        *(undefined8 *)(puVar3 + 4) = uVar4;
        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);
        *(undefined8 *)(puVar3 + 6) = uVar4;
        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);
        *(undefined8 *)(puVar3 + 8) = uVar4;
        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);
        puVar3[10] = uVar2;
        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);
        puVar3[0xb] = uVar2;
        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);
        *(undefined8 *)(puVar3 + 0xc) = uVar4;
        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);
        *(undefined8 *)(puVar3 + 0xe) = uVar4;
        if (param_2 == 0) {
          uVar1 = puVar3[10];
          if (uVar7 < uVar1) {
            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);
            warn(uVar4,uVar6,uVar1);
          }
          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {
            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);
            warn(uVar4,uVar6,uVar1);
          }
        }
        uVar6 = uVar6 + 1;
        puVar3 = puVar3 + 0x14;
        pvVar5 = (void *)((long)pvVar5 + 0x28);
      } while (uVar6 < uVar7);
      free(__ptr);
      return 1;
    }
    if (param_2 == 0) {
      uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5);
      error(uVar4,uVar7);
    }
  }
  return 0;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x18
MOV EBX,dword ptr [RDI + 0x60]
TEST ESI,ESI
JNZ 0x00115880
MOV R14D,dword ptr [RDI + 0x64]
TEST R14D,R14D
SETZ AL
TEST EBX,EBX
JZ 0x00115868
TEST AL,AL
JNZ 0x00115868
MOV R13D,ESI
MOV RBP,RDI
CMP EBX,0x27
JBE 0x00115890
TEST SIL,0x1
JNZ 0x001156a1
CMP EBX,0x28
JA 0x001158d8
TEST R13D,R13D
JZ 0x001158f5
XOR EAX,EAX
SUB RSP,0x8
MOV RCX,qword ptr [RBP + 0x38]
MOV R12D,R14D
LEA RDX,[RBP + 0x10]
PUSH RAX
LEA RSI,[RBP + 0x8]
MOV R9,R12
MOV R8D,EBX
XOR EDI,EDI
CALL 0x001144a0
MOV R15,RAX
POP RAX
POP RDX
TEST R15,R15
JZ 0x00115868
MOV RDI,qword ptr [RBP + 0x70]
CALL 0x00107030
MOV RDI,R12
MOV ESI,0x50
XOR R12D,R12D
CALL 0x0014c820
MOV qword ptr [RBP + 0x70],RAX
MOV RBX,RAX
MOV RBP,R15
TEST RAX,RAX
JNZ 0x0011573d
JMP 0x00115840
TEST byte ptr [RBX + 0x8],0x40
JZ 0x00115728
MOV ECX,dword ptr [RBX + 0x2c]
CMP ECX,R14D
JA 0x00115910
NOP word ptr [RAX + RAX*0x1]
ADD R12D,0x1
ADD RBX,0x50
ADD RBP,0x28
CMP R14D,R12D
JBE 0x001158b8
MOV ESI,0x4
MOV RDI,RBP
CALL qword ptr [0x00196f88]
LEA RDI,[RBP + 0x4]
MOV ESI,0x4
MOV dword ptr [RBX],EAX
CALL qword ptr [0x00196f88]
LEA RDI,[RBP + 0x8]
MOV ESI,0x4
MOV dword ptr [RBX + 0x4],EAX
CALL qword ptr [0x00196f88]
LEA RDI,[RBP + 0xc]
MOV ESI,0x4
MOV qword ptr [RBX + 0x8],RAX
CALL qword ptr [0x00196f88]
LEA RDI,[RBP + 0x10]
MOV ESI,0x4
MOV qword ptr [RBX + 0x10],RAX
CALL qword ptr [0x00196f88]
LEA RDI,[RBP + 0x14]
MOV ESI,0x4
MOV qword ptr [RBX + 0x18],RAX
CALL qword ptr [0x00196f88]
LEA RDI,[RBP + 0x18]
MOV ESI,0x4
MOV qword ptr [RBX + 0x20],RAX
CALL qword ptr [0x00196f88]
LEA RDI,[RBP + 0x1c]
MOV ESI,0x4
MOV dword ptr [RBX + 0x28],EAX
CALL qword ptr [0x00196f88]
LEA RDI,[RBP + 0x20]
MOV ESI,0x4
MOV dword ptr [RBX + 0x2c],EAX
CALL qword ptr [0x00196f88]
LEA RDI,[RBP + 0x24]
MOV ESI,0x4
MOV qword ptr [RBX + 0x30],RAX
CALL qword ptr [0x00196f88]
MOV qword ptr [RBX + 0x38],RAX
TEST R13D,R13D
JNZ 0x00115728
MOV ECX,dword ptr [RBX + 0x28]
CMP ECX,R14D
JBE 0x00115710
XOR EDI,EDI
MOV EDX,0x5
LEA RSI,[0x16f638]
MOV dword ptr [RSP + 0xc],ECX
CALL 0x00107130
MOV ECX,dword ptr [RSP + 0xc]
MOV ESI,R12D
MOV RDI,RAX
XOR EAX,EAX
MOV EDX,ECX
CALL 0x001550d0
JMP 0x00115710
TEST R13D,R13D
JNZ 0x00115868
LEA RSI,[0x16f608]
XOR EDI,EDI
MOV EDX,0x5
CALL 0x00107130
MOV ESI,R14D
MOV RDI,RAX
XOR EAX,EAX
CALL 0x00154b80
NOP dword ptr [RAX]
XOR EAX,EAX
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
XOR EAX,EAX
MOV R14D,0x1
JMP 0x00115673
TEST ESI,ESI
JNZ 0x00115868
MOV EDX,0x5
LEA RSI,[0x16f550]
XOR EDI,EDI
CALL 0x00107130
MOV RDI,RAX
XOR EAX,EAX
CALL 0x00154b80
XOR EAX,EAX
JMP 0x0011586a
MOV RDI,R15
CALL 0x00107030
ADD RSP,0x18
MOV EAX,0x1
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
XOR EDI,EDI
MOV EDX,0x5
LEA RSI,[0x16f5a8]
CALL 0x00107130
MOV RDI,RAX
XOR EAX,EAX
CALL 0x001550d0
MOV EDX,0x5
LEA RSI,[0x164f7e]
XOR EDI,EDI
CALL 0x00107130
JMP 0x001156ac
XOR EDI,EDI
MOV EDX,0x5
LEA RSI,[0x16f670]
MOV dword ptr [RSP + 0xc],ECX
CALL 0x00107130
MOV ECX,dword ptr [RSP + 0xc]
MOV ESI,R12D
MOV RDI,RAX
XOR EAX,EAX
MOV EDX,ECX
CALL 0x001550d0
JMP 0x00115728
(translation_unit "undefined8 FUN_00115650(long param_1,uint param_2)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  void *__ptr;\n  undefined4 *puVar3;\n  undefined8 uVar4;\n  void *pvVar5;\n  uint uVar6;\n  uint uVar7;\n  bool bVar8;\n  \n  uVar6 = *(uint *)(param_1 + 0x60);\n  if (param_2 == 0) {\n    uVar7 = *(uint *)(param_1 + 100);\n    bVar8 = uVar7 == 0;\n  }\n  else {\n    bVar8 = false;\n    uVar7 = 1;\n  }\n  if (uVar6 == 0) {\n    return 0;\n  }\n  if (bVar8) {\n    return 0;\n  }\n  if (uVar6 < 0x28) {\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                      ,5);\n    error(uVar4);\n    return 0;\n  }\n  if (((param_2 & 1) == 0) && (0x28 < uVar6)) {\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                      ,5);\n    warn(uVar4);\n  }\n  else if (param_2 != 0) {\n    uVar4 = 0;\n    goto LAB_001156ac;\n  }\n  uVar4 = dcgettext(0,"section headers",5);\nLAB_001156ac:\n  __ptr = (void *)FUN_001144a0(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,\n                               uVar7,uVar4);\n  if (__ptr != (void *)0x0) {\n    free(*(void **)(param_1 + 0x70));\n    uVar6 = 0;\n    puVar3 = (undefined4 *)FUN_0014c820(uVar7,0x50);\n    *(undefined4 **)(param_1 + 0x70) = puVar3;\n    pvVar5 = __ptr;\n    if (puVar3 != (undefined4 *)0x0) {\n      do {\n        uVar2 = (*DAT_00196f88)(pvVar5,4);\n        *puVar3 = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);\n        puVar3[1] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);\n        *(undefined8 *)(puVar3 + 2) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);\n        *(undefined8 *)(puVar3 + 4) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);\n        *(undefined8 *)(puVar3 + 6) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);\n        *(undefined8 *)(puVar3 + 8) = uVar4;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);\n        puVar3[10] = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);\n        puVar3[0xb] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);\n        *(undefined8 *)(puVar3 + 0xc) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);\n        *(undefined8 *)(puVar3 + 0xe) = uVar4;\n        if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        puVar3 = puVar3 + 0x14;\n        pvVar5 = (void *)((long)pvVar5 + 0x28);\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }\n    if (param_2 == 0) {\n      uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(uVar4,uVar7);\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_00115650(long param_1,uint param_2)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  void *__ptr;\n  undefined4 *puVar3;\n  undefined8 uVar4;\n  void *pvVar5;\n  uint uVar6;\n  uint uVar7;\n  bool bVar8;\n  \n  uVar6 = *(uint *)(param_1 + 0x60);\n  if (param_2 == 0) {\n    uVar7 = *(uint *)(param_1 + 100);\n    bVar8 = uVar7 == 0;\n  }\n  else {\n    bVar8 = false;\n    uVar7 = 1;\n  }\n  if (uVar6 == 0) {\n    return 0;\n  }\n  if (bVar8) {\n    return 0;\n  }\n  if (uVar6 < 0x28) {\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                      ,5);\n    error(uVar4);\n    return 0;\n  }\n  if (((param_2 & 1) == 0) && (0x28 < uVar6)) {\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                      ,5);\n    warn(uVar4);\n  }\n  else if (param_2 != 0) {\n    uVar4 = 0;\n    goto LAB_001156ac;\n  }\n  uVar4 = dcgettext(0,"section headers",5);\nLAB_001156ac:\n  __ptr = (void *)FUN_001144a0(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,\n                               uVar7,uVar4);\n  if (__ptr != (void *)0x0) {\n    free(*(void **)(param_1 + 0x70));\n    uVar6 = 0;\n    puVar3 = (undefined4 *)FUN_0014c820(uVar7,0x50);\n    *(undefined4 **)(param_1 + 0x70) = puVar3;\n    pvVar5 = __ptr;\n    if (puVar3 != (undefined4 *)0x0) {\n      do {\n        uVar2 = (*DAT_00196f88)(pvVar5,4);\n        *puVar3 = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);\n        puVar3[1] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);\n        *(undefined8 *)(puVar3 + 2) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);\n        *(undefined8 *)(puVar3 + 4) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);\n        *(undefined8 *)(puVar3 + 6) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);\n        *(undefined8 *)(puVar3 + 8) = uVar4;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);\n        puVar3[10] = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);\n        puVar3[0xb] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);\n        *(undefined8 *)(puVar3 + 0xc) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);\n        *(undefined8 *)(puVar3 + 0xe) = uVar4;\n        if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        puVar3 = puVar3 + 0x14;\n        pvVar5 = (void *)((long)pvVar5 + 0x28);\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }\n    if (param_2 == 0) {\n      uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(uVar4,uVar7);\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00115650(long param_1,uint param_2)" identifier (parameter_list "(long param_1,uint param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  void *__ptr;\n  undefined4 *puVar3;\n  undefined8 uVar4;\n  void *pvVar5;\n  uint uVar6;\n  uint uVar7;\n  bool bVar8;\n  \n  uVar6 = *(uint *)(param_1 + 0x60);\n  if (param_2 == 0) {\n    uVar7 = *(uint *)(param_1 + 100);\n    bVar8 = uVar7 == 0;\n  }\n  else {\n    bVar8 = false;\n    uVar7 = 1;\n  }\n  if (uVar6 == 0) {\n    return 0;\n  }\n  if (bVar8) {\n    return 0;\n  }\n  if (uVar6 < 0x28) {\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                      ,5);\n    error(uVar4);\n    return 0;\n  }\n  if (((param_2 & 1) == 0) && (0x28 < uVar6)) {\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                      ,5);\n    warn(uVar4);\n  }\n  else if (param_2 != 0) {\n    uVar4 = 0;\n    goto LAB_001156ac;\n  }\n  uVar4 = dcgettext(0,"section headers",5);\nLAB_001156ac:\n  __ptr = (void *)FUN_001144a0(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,\n                               uVar7,uVar4);\n  if (__ptr != (void *)0x0) {\n    free(*(void **)(param_1 + 0x70));\n    uVar6 = 0;\n    puVar3 = (undefined4 *)FUN_0014c820(uVar7,0x50);\n    *(undefined4 **)(param_1 + 0x70) = puVar3;\n    pvVar5 = __ptr;\n    if (puVar3 != (undefined4 *)0x0) {\n      do {\n        uVar2 = (*DAT_00196f88)(pvVar5,4);\n        *puVar3 = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);\n        puVar3[1] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);\n        *(undefined8 *)(puVar3 + 2) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);\n        *(undefined8 *)(puVar3 + 4) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);\n        *(undefined8 *)(puVar3 + 6) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);\n        *(undefined8 *)(puVar3 + 8) = uVar4;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);\n        puVar3[10] = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);\n        puVar3[0xb] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);\n        *(undefined8 *)(puVar3 + 0xc) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);\n        *(undefined8 *)(puVar3 + 0xe) = uVar4;\n        if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        puVar3 = puVar3 + 0x14;\n        pvVar5 = (void *)((long)pvVar5 + 0x28);\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }\n    if (param_2 == 0) {\n      uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(uVar4,uVar7);\n    }\n  }\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "void *pvVar5;" primitive_type (pointer_declarator "*pvVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (expression_statement "uVar6 = *(uint *)(param_1 + 0x60);" (assignment_expression "uVar6 = *(uint *)(param_1 + 0x60)" identifier = (pointer_expression "*(uint *)(param_1 + 0x60)" * (cast_expression "(uint *)(param_1 + 0x60)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == 0) {\n    uVar7 = *(uint *)(param_1 + 100);\n    bVar8 = uVar7 == 0;\n  }\n  else {\n    bVar8 = false;\n    uVar7 = 1;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar7 = *(uint *)(param_1 + 100);\n    bVar8 = uVar7 == 0;\n  }" { (expression_statement "uVar7 = *(uint *)(param_1 + 100);" (assignment_expression "uVar7 = *(uint *)(param_1 + 100)" identifier = (pointer_expression "*(uint *)(param_1 + 100)" * (cast_expression "(uint *)(param_1 + 100)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) ))))) ;) (expression_statement "bVar8 = uVar7 == 0;" (assignment_expression "bVar8 = uVar7 == 0" identifier = (binary_expression "uVar7 == 0" identifier == number_literal)) ;) }) (else_clause "else {\n    bVar8 = false;\n    uVar7 = 1;\n  }" else (compound_statement "{\n    bVar8 = false;\n    uVar7 = 1;\n  }" { (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" identifier = false) ;) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) }))) (if_statement "if (uVar6 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (bVar8) {\n    return 0;\n  }" if (parenthesized_expression "(bVar8)" ( identifier )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (uVar6 < 0x28) {\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                      ,5);\n    error(uVar4);\n    return 0;\n  }" if (parenthesized_expression "(uVar6 < 0x28)" ( (binary_expression "uVar6 < 0x28" identifier < number_literal) )) (compound_statement "{\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                      ,5);\n    error(uVar4);\n    return 0;\n  }" { (if_statement "if (param_2 != 0) {\n      return 0;\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                      ,5);" (assignment_expression "uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                      ,5)" identifier = (call_expression "dcgettext(0,\n                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                      ,5)" identifier (argument_list "(0,\n                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                      ,5)" ( number_literal , (string_literal ""The e_shentsize field in the ELF header is less than the size of an ELF section header\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "error(uVar4);" (call_expression "error(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (((param_2 & 1) == 0) && (0x28 < uVar6)) {\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                      ,5);\n    warn(uVar4);\n  }\n  else if (param_2 != 0) {\n    uVar4 = 0;\n    goto LAB_001156ac;\n  }" if (parenthesized_expression "(((param_2 & 1) == 0) && (0x28 < uVar6))" ( (binary_expression "((param_2 & 1) == 0) && (0x28 < uVar6)" (parenthesized_expression "((param_2 & 1) == 0)" ( (binary_expression "(param_2 & 1) == 0" (parenthesized_expression "(param_2 & 1)" ( (binary_expression "param_2 & 1" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(0x28 < uVar6)" ( (binary_expression "0x28 < uVar6" number_literal < identifier) ))) )) (compound_statement "{\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                      ,5);\n    warn(uVar4);\n  }" { (expression_statement "uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                      ,5);" (assignment_expression "uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                      ,5)" identifier = (call_expression "dcgettext(0,\n                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                      ,5)" identifier (argument_list "(0,\n                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                      ,5)" ( number_literal , (string_literal ""The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "warn(uVar4);" (call_expression "warn(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) }) (else_clause "else if (param_2 != 0) {\n    uVar4 = 0;\n    goto LAB_001156ac;\n  }" else (if_statement "if (param_2 != 0) {\n    uVar4 = 0;\n    goto LAB_001156ac;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = 0;\n    goto LAB_001156ac;\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_001156ac;" goto statement_identifier ;) })))) (expression_statement "uVar4 = dcgettext(0,"section headers",5);" (assignment_expression "uVar4 = dcgettext(0,"section headers",5)" identifier = (call_expression "dcgettext(0,"section headers",5)" identifier (argument_list "(0,"section headers",5)" ( number_literal , (string_literal ""section headers"" " string_content ") , number_literal )))) ;) (labeled_statement "LAB_001156ac:\n  __ptr = (void *)FUN_001144a0(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,\n                               uVar7,uVar4);" statement_identifier : (expression_statement "__ptr = (void *)FUN_001144a0(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,\n                               uVar7,uVar4);" (assignment_expression "__ptr = (void *)FUN_001144a0(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,\n                               uVar7,uVar4)" identifier = (cast_expression "(void *)FUN_001144a0(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,\n                               uVar7,uVar4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001144a0(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,\n                               uVar7,uVar4)" identifier (argument_list "(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,\n                               uVar7,uVar4)" ( number_literal , (binary_expression "param_1 + 8" identifier + number_literal) , (binary_expression "param_1 + 0x10" identifier + number_literal) , (pointer_expression "*(undefined8 *)(param_1 + 0x38)" * (cast_expression "(undefined8 *)(param_1 + 0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) , identifier , identifier , identifier ))))) ;)) (if_statement "if (__ptr != (void *)0x0) {\n    free(*(void **)(param_1 + 0x70));\n    uVar6 = 0;\n    puVar3 = (undefined4 *)FUN_0014c820(uVar7,0x50);\n    *(undefined4 **)(param_1 + 0x70) = puVar3;\n    pvVar5 = __ptr;\n    if (puVar3 != (undefined4 *)0x0) {\n      do {\n        uVar2 = (*DAT_00196f88)(pvVar5,4);\n        *puVar3 = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);\n        puVar3[1] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);\n        *(undefined8 *)(puVar3 + 2) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);\n        *(undefined8 *)(puVar3 + 4) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);\n        *(undefined8 *)(puVar3 + 6) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);\n        *(undefined8 *)(puVar3 + 8) = uVar4;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);\n        puVar3[10] = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);\n        puVar3[0xb] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);\n        *(undefined8 *)(puVar3 + 0xc) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);\n        *(undefined8 *)(puVar3 + 0xe) = uVar4;\n        if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        puVar3 = puVar3 + 0x14;\n        pvVar5 = (void *)((long)pvVar5 + 0x28);\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }\n    if (param_2 == 0) {\n      uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(uVar4,uVar7);\n    }\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    free(*(void **)(param_1 + 0x70));\n    uVar6 = 0;\n    puVar3 = (undefined4 *)FUN_0014c820(uVar7,0x50);\n    *(undefined4 **)(param_1 + 0x70) = puVar3;\n    pvVar5 = __ptr;\n    if (puVar3 != (undefined4 *)0x0) {\n      do {\n        uVar2 = (*DAT_00196f88)(pvVar5,4);\n        *puVar3 = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);\n        puVar3[1] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);\n        *(undefined8 *)(puVar3 + 2) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);\n        *(undefined8 *)(puVar3 + 4) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);\n        *(undefined8 *)(puVar3 + 6) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);\n        *(undefined8 *)(puVar3 + 8) = uVar4;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);\n        puVar3[10] = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);\n        puVar3[0xb] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);\n        *(undefined8 *)(puVar3 + 0xc) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);\n        *(undefined8 *)(puVar3 + 0xe) = uVar4;\n        if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        puVar3 = puVar3 + 0x14;\n        pvVar5 = (void *)((long)pvVar5 + 0x28);\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }\n    if (param_2 == 0) {\n      uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(uVar4,uVar7);\n    }\n  }" { (expression_statement "free(*(void **)(param_1 + 0x70));" (call_expression "free(*(void **)(param_1 + 0x70))" identifier (argument_list "(*(void **)(param_1 + 0x70))" ( (pointer_expression "*(void **)(param_1 + 0x70)" * (cast_expression "(void **)(param_1 + 0x70)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) ))) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)FUN_0014c820(uVar7,0x50);" (assignment_expression "puVar3 = (undefined4 *)FUN_0014c820(uVar7,0x50)" identifier = (cast_expression "(undefined4 *)FUN_0014c820(uVar7,0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0014c820(uVar7,0x50)" identifier (argument_list "(uVar7,0x50)" ( identifier , number_literal ))))) ;) (expression_statement "*(undefined4 **)(param_1 + 0x70) = puVar3;" (assignment_expression "*(undefined4 **)(param_1 + 0x70) = puVar3" (pointer_expression "*(undefined4 **)(param_1 + 0x70)" * (cast_expression "(undefined4 **)(param_1 + 0x70)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = identifier) ;) (expression_statement "pvVar5 = __ptr;" (assignment_expression "pvVar5 = __ptr" identifier = identifier) ;) (if_statement "if (puVar3 != (undefined4 *)0x0) {\n      do {\n        uVar2 = (*DAT_00196f88)(pvVar5,4);\n        *puVar3 = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);\n        puVar3[1] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);\n        *(undefined8 *)(puVar3 + 2) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);\n        *(undefined8 *)(puVar3 + 4) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);\n        *(undefined8 *)(puVar3 + 6) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);\n        *(undefined8 *)(puVar3 + 8) = uVar4;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);\n        puVar3[10] = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);\n        puVar3[0xb] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);\n        *(undefined8 *)(puVar3 + 0xc) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);\n        *(undefined8 *)(puVar3 + 0xe) = uVar4;\n        if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        puVar3 = puVar3 + 0x14;\n        pvVar5 = (void *)((long)pvVar5 + 0x28);\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }" if (parenthesized_expression "(puVar3 != (undefined4 *)0x0)" ( (binary_expression "puVar3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      do {\n        uVar2 = (*DAT_00196f88)(pvVar5,4);\n        *puVar3 = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);\n        puVar3[1] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);\n        *(undefined8 *)(puVar3 + 2) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);\n        *(undefined8 *)(puVar3 + 4) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);\n        *(undefined8 *)(puVar3 + 6) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);\n        *(undefined8 *)(puVar3 + 8) = uVar4;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);\n        puVar3[10] = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);\n        puVar3[0xb] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);\n        *(undefined8 *)(puVar3 + 0xc) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);\n        *(undefined8 *)(puVar3 + 0xe) = uVar4;\n        if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        puVar3 = puVar3 + 0x14;\n        pvVar5 = (void *)((long)pvVar5 + 0x28);\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }" { (do_statement "do {\n        uVar2 = (*DAT_00196f88)(pvVar5,4);\n        *puVar3 = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);\n        puVar3[1] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);\n        *(undefined8 *)(puVar3 + 2) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);\n        *(undefined8 *)(puVar3 + 4) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);\n        *(undefined8 *)(puVar3 + 6) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);\n        *(undefined8 *)(puVar3 + 8) = uVar4;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);\n        puVar3[10] = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);\n        puVar3[0xb] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);\n        *(undefined8 *)(puVar3 + 0xc) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);\n        *(undefined8 *)(puVar3 + 0xe) = uVar4;\n        if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        puVar3 = puVar3 + 0x14;\n        pvVar5 = (void *)((long)pvVar5 + 0x28);\n      } while (uVar6 < uVar7);" do (compound_statement "{\n        uVar2 = (*DAT_00196f88)(pvVar5,4);\n        *puVar3 = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);\n        puVar3[1] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);\n        *(undefined8 *)(puVar3 + 2) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);\n        *(undefined8 *)(puVar3 + 4) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);\n        *(undefined8 *)(puVar3 + 6) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);\n        *(undefined8 *)(puVar3 + 8) = uVar4;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);\n        puVar3[10] = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);\n        puVar3[0xb] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);\n        *(undefined8 *)(puVar3 + 0xc) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);\n        *(undefined8 *)(puVar3 + 0xe) = uVar4;\n        if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        puVar3 = puVar3 + 0x14;\n        pvVar5 = (void *)((long)pvVar5 + 0x28);\n      }" { (expression_statement "uVar2 = (*DAT_00196f88)(pvVar5,4);" (assignment_expression "uVar2 = (*DAT_00196f88)(pvVar5,4)" identifier = (call_expression "(*DAT_00196f88)(pvVar5,4)" (parenthesized_expression "(*DAT_00196f88)" ( (pointer_expression "*DAT_00196f88" * identifier) )) (argument_list "(pvVar5,4)" ( identifier , number_literal )))) ;) (expression_statement "*puVar3 = uVar2;" (assignment_expression "*puVar3 = uVar2" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);" (assignment_expression "uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4)" identifier = (call_expression "(*DAT_00196f88)((long)pvVar5 + 4,4)" (parenthesized_expression "(*DAT_00196f88)" ( (pointer_expression "*DAT_00196f88" * identifier) )) (argument_list "((long)pvVar5 + 4,4)" ( (binary_expression "(long)pvVar5 + 4" (cast_expression "(long)pvVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) , number_literal )))) ;) (expression_statement "puVar3[1] = uVar2;" (assignment_expression "puVar3[1] = uVar2" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);" (assignment_expression "uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4)" identifier = (call_expression "(*DAT_00196f88)((long)pvVar5 + 8,4)" (parenthesized_expression "(*DAT_00196f88)" ( (pointer_expression "*DAT_00196f88" * identifier) )) (argument_list "((long)pvVar5 + 8,4)" ( (binary_expression "(long)pvVar5 + 8" (cast_expression "(long)pvVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) , number_literal )))) ;) (expression_statement "*(undefined8 *)(puVar3 + 2) = uVar4;" (assignment_expression "*(undefined8 *)(puVar3 + 2) = uVar4" (pointer_expression "*(undefined8 *)(puVar3 + 2)" * (cast_expression "(undefined8 *)(puVar3 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 2)" ( (binary_expression "puVar3 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);" (assignment_expression "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4)" identifier = (call_expression "(*DAT_00196f88)((long)pvVar5 + 0xc,4)" (parenthesized_expression "(*DAT_00196f88)" ( (pointer_expression "*DAT_00196f88" * identifier) )) (argument_list "((long)pvVar5 + 0xc,4)" ( (binary_expression "(long)pvVar5 + 0xc" (cast_expression "(long)pvVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) , number_literal )))) ;) (expression_statement "*(undefined8 *)(puVar3 + 4) = uVar4;" (assignment_expression "*(undefined8 *)(puVar3 + 4) = uVar4" (pointer_expression "*(undefined8 *)(puVar3 + 4)" * (cast_expression "(undefined8 *)(puVar3 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 4)" ( (binary_expression "puVar3 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);" (assignment_expression "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4)" identifier = (call_expression "(*DAT_00196f88)((long)pvVar5 + 0x10,4)" (parenthesized_expression "(*DAT_00196f88)" ( (pointer_expression "*DAT_00196f88" * identifier) )) (argument_list "((long)pvVar5 + 0x10,4)" ( (binary_expression "(long)pvVar5 + 0x10" (cast_expression "(long)pvVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) , number_literal )))) ;) (expression_statement "*(undefined8 *)(puVar3 + 6) = uVar4;" (assignment_expression "*(undefined8 *)(puVar3 + 6) = uVar4" (pointer_expression "*(undefined8 *)(puVar3 + 6)" * (cast_expression "(undefined8 *)(puVar3 + 6)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 6)" ( (binary_expression "puVar3 + 6" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);" (assignment_expression "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4)" identifier = (call_expression "(*DAT_00196f88)((long)pvVar5 + 0x14,4)" (parenthesized_expression "(*DAT_00196f88)" ( (pointer_expression "*DAT_00196f88" * identifier) )) (argument_list "((long)pvVar5 + 0x14,4)" ( (binary_expression "(long)pvVar5 + 0x14" (cast_expression "(long)pvVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) , number_literal )))) ;) (expression_statement "*(undefined8 *)(puVar3 + 8) = uVar4;" (assignment_expression "*(undefined8 *)(puVar3 + 8) = uVar4" (pointer_expression "*(undefined8 *)(puVar3 + 8)" * (cast_expression "(undefined8 *)(puVar3 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 8)" ( (binary_expression "puVar3 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);" (assignment_expression "uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4)" identifier = (call_expression "(*DAT_00196f88)((long)pvVar5 + 0x18,4)" (parenthesized_expression "(*DAT_00196f88)" ( (pointer_expression "*DAT_00196f88" * identifier) )) (argument_list "((long)pvVar5 + 0x18,4)" ( (binary_expression "(long)pvVar5 + 0x18" (cast_expression "(long)pvVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) , number_literal )))) ;) (expression_statement "puVar3[10] = uVar2;" (assignment_expression "puVar3[10] = uVar2" (subscript_expression "puVar3[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);" (assignment_expression "uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4)" identifier = (call_expression "(*DAT_00196f88)((long)pvVar5 + 0x1c,4)" (parenthesized_expression "(*DAT_00196f88)" ( (pointer_expression "*DAT_00196f88" * identifier) )) (argument_list "((long)pvVar5 + 0x1c,4)" ( (binary_expression "(long)pvVar5 + 0x1c" (cast_expression "(long)pvVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) , number_literal )))) ;) (expression_statement "puVar3[0xb] = uVar2;" (assignment_expression "puVar3[0xb] = uVar2" (subscript_expression "puVar3[0xb]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);" (assignment_expression "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4)" identifier = (call_expression "(*DAT_00196f88)((long)pvVar5 + 0x20,4)" (parenthesized_expression "(*DAT_00196f88)" ( (pointer_expression "*DAT_00196f88" * identifier) )) (argument_list "((long)pvVar5 + 0x20,4)" ( (binary_expression "(long)pvVar5 + 0x20" (cast_expression "(long)pvVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) , number_literal )))) ;) (expression_statement "*(undefined8 *)(puVar3 + 0xc) = uVar4;" (assignment_expression "*(undefined8 *)(puVar3 + 0xc) = uVar4" (pointer_expression "*(undefined8 *)(puVar3 + 0xc)" * (cast_expression "(undefined8 *)(puVar3 + 0xc)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0xc)" ( (binary_expression "puVar3 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);" (assignment_expression "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4)" identifier = (call_expression "(*DAT_00196f88)((long)pvVar5 + 0x24,4)" (parenthesized_expression "(*DAT_00196f88)" ( (pointer_expression "*DAT_00196f88" * identifier) )) (argument_list "((long)pvVar5 + 0x24,4)" ( (binary_expression "(long)pvVar5 + 0x24" (cast_expression "(long)pvVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) , number_literal )))) ;) (expression_statement "*(undefined8 *)(puVar3 + 0xe) = uVar4;" (assignment_expression "*(undefined8 *)(puVar3 + 0xe) = uVar4" (pointer_expression "*(undefined8 *)(puVar3 + 0xe)" * (cast_expression "(undefined8 *)(puVar3 + 0xe)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0xe)" ( (binary_expression "puVar3 + 0xe" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }" { (expression_statement "uVar1 = puVar3[10];" (assignment_expression "uVar1 = puVar3[10]" identifier = (subscript_expression "puVar3[10]" identifier [ number_literal ])) ;) (if_statement "if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }" if (parenthesized_expression "(uVar7 < uVar1)" ( (binary_expression "uVar7 < uVar1" identifier < identifier) )) (compound_statement "{\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }" { (expression_statement "uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);" (assignment_expression "uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5)" identifier = (call_expression "dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5)" identifier (argument_list "(0,"Section %u has an out of range sh_link value of %u\n",5)" ( number_literal , (string_literal ""Section %u has an out of range sh_link value of %u\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "warn(uVar4,uVar6,uVar1);" (call_expression "warn(uVar4,uVar6,uVar1)" identifier (argument_list "(uVar4,uVar6,uVar1)" ( identifier , identifier , identifier ))) ;) })) (if_statement "if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }" if (parenthesized_expression "(((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1))" ( (binary_expression "((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)" (parenthesized_expression "((*(byte *)(puVar3 + 2) & 0x40) != 0)" ( (binary_expression "(*(byte *)(puVar3 + 2) & 0x40) != 0" (parenthesized_expression "(*(byte *)(puVar3 + 2) & 0x40)" ( (binary_expression "*(byte *)(puVar3 + 2) & 0x40" (pointer_expression "*(byte *)(puVar3 + 2)" * (cast_expression "(byte *)(puVar3 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 2)" ( (binary_expression "puVar3 + 2" identifier + number_literal) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "(uVar1 = puVar3[0xb], uVar7 < uVar1)" ( (comma_expression "uVar1 = puVar3[0xb], uVar7 < uVar1" (assignment_expression "uVar1 = puVar3[0xb]" identifier = (subscript_expression "puVar3[0xb]" identifier [ number_literal ])) , (binary_expression "uVar7 < uVar1" identifier < identifier)) ))) )) (compound_statement "{\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }" { (expression_statement "uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);" (assignment_expression "uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5)" identifier = (call_expression "dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5)" identifier (argument_list "(0,"Section %u has an out of range sh_info value of %u\n",5)" ( number_literal , (string_literal ""Section %u has an out of range sh_info value of %u\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "warn(uVar4,uVar6,uVar1);" (call_expression "warn(uVar4,uVar6,uVar1)" identifier (argument_list "(uVar4,uVar6,uVar1)" ( identifier , identifier , identifier ))) ;) })) })) (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (expression_statement "puVar3 = puVar3 + 0x14;" (assignment_expression "puVar3 = puVar3 + 0x14" identifier = (binary_expression "puVar3 + 0x14" identifier + number_literal)) ;) (expression_statement "pvVar5 = (void *)((long)pvVar5 + 0x28);" (assignment_expression "pvVar5 = (void *)((long)pvVar5 + 0x28)" identifier = (cast_expression "(void *)((long)pvVar5 + 0x28)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar5 + 0x28)" ( (binary_expression "(long)pvVar5 + 0x28" (cast_expression "(long)pvVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) }) while (parenthesized_expression "(uVar6 < uVar7)" ( (binary_expression "uVar6 < uVar7" identifier < identifier) )) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (param_2 == 0) {\n      uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(uVar4,uVar7);\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(uVar4,uVar7);\n    }" { (expression_statement "uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5);" (assignment_expression "uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5)" identifier = (call_expression "dcgettext(0,"Out of memory reading %u section headers\n",5)" identifier (argument_list "(0,"Out of memory reading %u section headers\n",5)" ( number_literal , (string_literal ""Out of memory reading %u section headers\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "error(uVar4,uVar7);" (call_expression "error(uVar4,uVar7)" identifier (argument_list "(uVar4,uVar7)" ( identifier , identifier ))) ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "bfd_boolean get_32bit_section_headers(Filedata *filedata,bfd_boolean probe)\n\n{\n  uint uVar1;\n  uchar *__ptr;\n  Elf_Internal_Shdr *pEVar2;\n  elf_vma eVar3;\n  char *pcVar4;\n  Filedata *filedata_1;\n  uchar *puVar5;\n  uint uVar6;\n  uint uVar7;\n  bool bVar8;\n  \n  uVar6 = (filedata->file_header).e_shentsize;\n  if (probe == 0) {\n    uVar7 = (filedata->file_header).e_shnum;\n    bVar8 = uVar7 == 0;\n  }\n  else {\n    bVar8 = false;\n    uVar7 = 1;\n  }\n  if (uVar6 == 0) {\n    return 0;\n  }\n  if (bVar8) {\n    return 0;\n  }\n  if (uVar6 < 0x28) {\n    if (probe != 0) {\n      return 0;\n    }\n    pcVar4 = (char *)dcgettext(0,\n                               "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                               ,5);\n    error(pcVar4);\n    return 0;\n  }\n  if (((probe & 1U) == 0) && (0x28 < uVar6)) {\n    pcVar4 = (char *)dcgettext(0,\n                               "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                               ,5);\n    warn(pcVar4);\n  }\n  else if (probe != 0) {\n    filedata_1 = (Filedata *)0x0;\n    goto LAB_001156ac;\n  }\n  filedata_1 = (Filedata *)dcgettext(0,"section headers",5);\nLAB_001156ac:\n  __ptr = (uchar *)get_data((void *)0x0,(Filedata *)&filedata->handle,(ulong)&filedata->file_size,\n                            (filedata->file_header).e_shoff,(ulong)uVar6,(char *)(ulong)uVar7,\n                            filedata_1);\n  if (__ptr != (uchar *)0x0) {\n    free(filedata->section_headers);\n    uVar6 = 0;\n    pEVar2 = (Elf_Internal_Shdr *)cmalloc((size_t)(ulong)uVar7,0x50);\n    filedata->section_headers = pEVar2;\n    puVar5 = __ptr;\n    if (pEVar2 != (Elf_Internal_Shdr *)0x0) {\n      do {\n        eVar3 = (*byte_get)(puVar5,4);\n        pEVar2->sh_name = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 4,4);\n        pEVar2->sh_type = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 8,4);\n        pEVar2->sh_flags = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0xc,4);\n        pEVar2->sh_addr = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x10,4);\n        pEVar2->sh_offset = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x14,4);\n        pEVar2->sh_size = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x18,4);\n        pEVar2->sh_link = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x1c,4);\n        pEVar2->sh_info = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x20,4);\n        pEVar2->sh_addralign = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x24,4);\n        pEVar2->sh_entsize = eVar3;\n        if (probe == 0) {\n          uVar1 = pEVar2->sh_link;\n          if (uVar7 < uVar1) {\n            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);\n          }\n          if (((pEVar2->sh_flags & 0x40) != 0) && (uVar1 = pEVar2->sh_info, uVar7 < uVar1)) {\n            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        pEVar2 = pEVar2 + 1;\n        puVar5 = puVar5 + 0x28;\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }\n    if (probe == 0) {\n      pcVar4 = (char *)dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(pcVar4,(ulong)uVar7);\n    }\n  }\n  return 0;\n}\n\n" (function_definition "bfd_boolean get_32bit_section_headers(Filedata *filedata,bfd_boolean probe)\n\n{\n  uint uVar1;\n  uchar *__ptr;\n  Elf_Internal_Shdr *pEVar2;\n  elf_vma eVar3;\n  char *pcVar4;\n  Filedata *filedata_1;\n  uchar *puVar5;\n  uint uVar6;\n  uint uVar7;\n  bool bVar8;\n  \n  uVar6 = (filedata->file_header).e_shentsize;\n  if (probe == 0) {\n    uVar7 = (filedata->file_header).e_shnum;\n    bVar8 = uVar7 == 0;\n  }\n  else {\n    bVar8 = false;\n    uVar7 = 1;\n  }\n  if (uVar6 == 0) {\n    return 0;\n  }\n  if (bVar8) {\n    return 0;\n  }\n  if (uVar6 < 0x28) {\n    if (probe != 0) {\n      return 0;\n    }\n    pcVar4 = (char *)dcgettext(0,\n                               "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                               ,5);\n    error(pcVar4);\n    return 0;\n  }\n  if (((probe & 1U) == 0) && (0x28 < uVar6)) {\n    pcVar4 = (char *)dcgettext(0,\n                               "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                               ,5);\n    warn(pcVar4);\n  }\n  else if (probe != 0) {\n    filedata_1 = (Filedata *)0x0;\n    goto LAB_001156ac;\n  }\n  filedata_1 = (Filedata *)dcgettext(0,"section headers",5);\nLAB_001156ac:\n  __ptr = (uchar *)get_data((void *)0x0,(Filedata *)&filedata->handle,(ulong)&filedata->file_size,\n                            (filedata->file_header).e_shoff,(ulong)uVar6,(char *)(ulong)uVar7,\n                            filedata_1);\n  if (__ptr != (uchar *)0x0) {\n    free(filedata->section_headers);\n    uVar6 = 0;\n    pEVar2 = (Elf_Internal_Shdr *)cmalloc((size_t)(ulong)uVar7,0x50);\n    filedata->section_headers = pEVar2;\n    puVar5 = __ptr;\n    if (pEVar2 != (Elf_Internal_Shdr *)0x0) {\n      do {\n        eVar3 = (*byte_get)(puVar5,4);\n        pEVar2->sh_name = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 4,4);\n        pEVar2->sh_type = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 8,4);\n        pEVar2->sh_flags = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0xc,4);\n        pEVar2->sh_addr = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x10,4);\n        pEVar2->sh_offset = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x14,4);\n        pEVar2->sh_size = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x18,4);\n        pEVar2->sh_link = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x1c,4);\n        pEVar2->sh_info = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x20,4);\n        pEVar2->sh_addralign = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x24,4);\n        pEVar2->sh_entsize = eVar3;\n        if (probe == 0) {\n          uVar1 = pEVar2->sh_link;\n          if (uVar7 < uVar1) {\n            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);\n          }\n          if (((pEVar2->sh_flags & 0x40) != 0) && (uVar1 = pEVar2->sh_info, uVar7 < uVar1)) {\n            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        pEVar2 = pEVar2 + 1;\n        puVar5 = puVar5 + 0x28;\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }\n    if (probe == 0) {\n      pcVar4 = (char *)dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(pcVar4,(ulong)uVar7);\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "get_32bit_section_headers(Filedata *filedata,bfd_boolean probe)" identifier (parameter_list "(Filedata *filedata,bfd_boolean probe)" ( (parameter_declaration "Filedata *filedata" type_identifier (pointer_declarator "*filedata" * identifier)) , (parameter_declaration "bfd_boolean probe" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uchar *__ptr;\n  Elf_Internal_Shdr *pEVar2;\n  elf_vma eVar3;\n  char *pcVar4;\n  Filedata *filedata_1;\n  uchar *puVar5;\n  uint uVar6;\n  uint uVar7;\n  bool bVar8;\n  \n  uVar6 = (filedata->file_header).e_shentsize;\n  if (probe == 0) {\n    uVar7 = (filedata->file_header).e_shnum;\n    bVar8 = uVar7 == 0;\n  }\n  else {\n    bVar8 = false;\n    uVar7 = 1;\n  }\n  if (uVar6 == 0) {\n    return 0;\n  }\n  if (bVar8) {\n    return 0;\n  }\n  if (uVar6 < 0x28) {\n    if (probe != 0) {\n      return 0;\n    }\n    pcVar4 = (char *)dcgettext(0,\n                               "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                               ,5);\n    error(pcVar4);\n    return 0;\n  }\n  if (((probe & 1U) == 0) && (0x28 < uVar6)) {\n    pcVar4 = (char *)dcgettext(0,\n                               "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                               ,5);\n    warn(pcVar4);\n  }\n  else if (probe != 0) {\n    filedata_1 = (Filedata *)0x0;\n    goto LAB_001156ac;\n  }\n  filedata_1 = (Filedata *)dcgettext(0,"section headers",5);\nLAB_001156ac:\n  __ptr = (uchar *)get_data((void *)0x0,(Filedata *)&filedata->handle,(ulong)&filedata->file_size,\n                            (filedata->file_header).e_shoff,(ulong)uVar6,(char *)(ulong)uVar7,\n                            filedata_1);\n  if (__ptr != (uchar *)0x0) {\n    free(filedata->section_headers);\n    uVar6 = 0;\n    pEVar2 = (Elf_Internal_Shdr *)cmalloc((size_t)(ulong)uVar7,0x50);\n    filedata->section_headers = pEVar2;\n    puVar5 = __ptr;\n    if (pEVar2 != (Elf_Internal_Shdr *)0x0) {\n      do {\n        eVar3 = (*byte_get)(puVar5,4);\n        pEVar2->sh_name = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 4,4);\n        pEVar2->sh_type = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 8,4);\n        pEVar2->sh_flags = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0xc,4);\n        pEVar2->sh_addr = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x10,4);\n        pEVar2->sh_offset = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x14,4);\n        pEVar2->sh_size = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x18,4);\n        pEVar2->sh_link = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x1c,4);\n        pEVar2->sh_info = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x20,4);\n        pEVar2->sh_addralign = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x24,4);\n        pEVar2->sh_entsize = eVar3;\n        if (probe == 0) {\n          uVar1 = pEVar2->sh_link;\n          if (uVar7 < uVar1) {\n            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);\n          }\n          if (((pEVar2->sh_flags & 0x40) != 0) && (uVar1 = pEVar2->sh_info, uVar7 < uVar1)) {\n            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        pEVar2 = pEVar2 + 1;\n        puVar5 = puVar5 + 0x28;\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }\n    if (probe == 0) {\n      pcVar4 = (char *)dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(pcVar4,(ulong)uVar7);\n    }\n  }\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uchar *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "Elf_Internal_Shdr *pEVar2;" type_identifier (pointer_declarator "*pEVar2" * identifier) ;) (declaration "elf_vma eVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "Filedata *filedata_1;" type_identifier (pointer_declarator "*filedata_1" * identifier) ;) (declaration "uchar *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (expression_statement "uVar6 = (filedata->file_header).e_shentsize;" (assignment_expression "uVar6 = (filedata->file_header).e_shentsize" identifier = (field_expression "(filedata->file_header).e_shentsize" (parenthesized_expression "(filedata->file_header)" ( (field_expression "filedata->file_header" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if (probe == 0) {\n    uVar7 = (filedata->file_header).e_shnum;\n    bVar8 = uVar7 == 0;\n  }\n  else {\n    bVar8 = false;\n    uVar7 = 1;\n  }" if (parenthesized_expression "(probe == 0)" ( (binary_expression "probe == 0" identifier == number_literal) )) (compound_statement "{\n    uVar7 = (filedata->file_header).e_shnum;\n    bVar8 = uVar7 == 0;\n  }" { (expression_statement "uVar7 = (filedata->file_header).e_shnum;" (assignment_expression "uVar7 = (filedata->file_header).e_shnum" identifier = (field_expression "(filedata->file_header).e_shnum" (parenthesized_expression "(filedata->file_header)" ( (field_expression "filedata->file_header" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "bVar8 = uVar7 == 0;" (assignment_expression "bVar8 = uVar7 == 0" identifier = (binary_expression "uVar7 == 0" identifier == number_literal)) ;) }) (else_clause "else {\n    bVar8 = false;\n    uVar7 = 1;\n  }" else (compound_statement "{\n    bVar8 = false;\n    uVar7 = 1;\n  }" { (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" identifier = false) ;) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) }))) (if_statement "if (uVar6 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (bVar8) {\n    return 0;\n  }" if (parenthesized_expression "(bVar8)" ( identifier )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (uVar6 < 0x28) {\n    if (probe != 0) {\n      return 0;\n    }\n    pcVar4 = (char *)dcgettext(0,\n                               "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                               ,5);\n    error(pcVar4);\n    return 0;\n  }" if (parenthesized_expression "(uVar6 < 0x28)" ( (binary_expression "uVar6 < 0x28" identifier < number_literal) )) (compound_statement "{\n    if (probe != 0) {\n      return 0;\n    }\n    pcVar4 = (char *)dcgettext(0,\n                               "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                               ,5);\n    error(pcVar4);\n    return 0;\n  }" { (if_statement "if (probe != 0) {\n      return 0;\n    }" if (parenthesized_expression "(probe != 0)" ( (binary_expression "probe != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pcVar4 = (char *)dcgettext(0,\n                               "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                               ,5);" (assignment_expression "pcVar4 = (char *)dcgettext(0,\n                               "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                               ,5)" identifier = (cast_expression "(char *)dcgettext(0,\n                               "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                               ,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,\n                               "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                               ,5)" identifier (argument_list "(0,\n                               "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                               ,5)" ( number_literal , (string_literal ""The e_shentsize field in the ELF header is less than the size of an ELF section header\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "error(pcVar4);" (call_expression "error(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (((probe & 1U) == 0) && (0x28 < uVar6)) {\n    pcVar4 = (char *)dcgettext(0,\n                               "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                               ,5);\n    warn(pcVar4);\n  }\n  else if (probe != 0) {\n    filedata_1 = (Filedata *)0x0;\n    goto LAB_001156ac;\n  }" if (parenthesized_expression "(((probe & 1U) == 0) && (0x28 < uVar6))" ( (binary_expression "((probe & 1U) == 0) && (0x28 < uVar6)" (parenthesized_expression "((probe & 1U) == 0)" ( (binary_expression "(probe & 1U) == 0" (parenthesized_expression "(probe & 1U)" ( (binary_expression "probe & 1U" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(0x28 < uVar6)" ( (binary_expression "0x28 < uVar6" number_literal < identifier) ))) )) (compound_statement "{\n    pcVar4 = (char *)dcgettext(0,\n                               "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                               ,5);\n    warn(pcVar4);\n  }" { (expression_statement "pcVar4 = (char *)dcgettext(0,\n                               "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                               ,5);" (assignment_expression "pcVar4 = (char *)dcgettext(0,\n                               "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                               ,5)" identifier = (cast_expression "(char *)dcgettext(0,\n                               "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                               ,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,\n                               "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                               ,5)" identifier (argument_list "(0,\n                               "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                               ,5)" ( number_literal , (string_literal ""The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "warn(pcVar4);" (call_expression "warn(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier ))) ;) }) (else_clause "else if (probe != 0) {\n    filedata_1 = (Filedata *)0x0;\n    goto LAB_001156ac;\n  }" else (if_statement "if (probe != 0) {\n    filedata_1 = (Filedata *)0x0;\n    goto LAB_001156ac;\n  }" if (parenthesized_expression "(probe != 0)" ( (binary_expression "probe != 0" identifier != number_literal) )) (compound_statement "{\n    filedata_1 = (Filedata *)0x0;\n    goto LAB_001156ac;\n  }" { (expression_statement "filedata_1 = (Filedata *)0x0;" (assignment_expression "filedata_1 = (Filedata *)0x0" identifier = (cast_expression "(Filedata *)0x0" ( (type_descriptor "Filedata *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_001156ac;" goto statement_identifier ;) })))) (expression_statement "filedata_1 = (Filedata *)dcgettext(0,"section headers",5);" (assignment_expression "filedata_1 = (Filedata *)dcgettext(0,"section headers",5)" identifier = (cast_expression "(Filedata *)dcgettext(0,"section headers",5)" ( (type_descriptor "Filedata *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"section headers",5)" identifier (argument_list "(0,"section headers",5)" ( number_literal , (string_literal ""section headers"" " string_content ") , number_literal ))))) ;) (labeled_statement "LAB_001156ac:\n  __ptr = (uchar *)get_data((void *)0x0,(Filedata *)&filedata->handle,(ulong)&filedata->file_size,\n                            (filedata->file_header).e_shoff,(ulong)uVar6,(char *)(ulong)uVar7,\n                            filedata_1);" statement_identifier : (expression_statement "__ptr = (uchar *)get_data((void *)0x0,(Filedata *)&filedata->handle,(ulong)&filedata->file_size,\n                            (filedata->file_header).e_shoff,(ulong)uVar6,(char *)(ulong)uVar7,\n                            filedata_1);" (assignment_expression "__ptr = (uchar *)get_data((void *)0x0,(Filedata *)&filedata->handle,(ulong)&filedata->file_size,\n                            (filedata->file_header).e_shoff,(ulong)uVar6,(char *)(ulong)uVar7,\n                            filedata_1)" identifier = (cast_expression "(uchar *)get_data((void *)0x0,(Filedata *)&filedata->handle,(ulong)&filedata->file_size,\n                            (filedata->file_header).e_shoff,(ulong)uVar6,(char *)(ulong)uVar7,\n                            filedata_1)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "get_data((void *)0x0,(Filedata *)&filedata->handle,(ulong)&filedata->file_size,\n                            (filedata->file_header).e_shoff,(ulong)uVar6,(char *)(ulong)uVar7,\n                            filedata_1)" identifier (argument_list "((void *)0x0,(Filedata *)&filedata->handle,(ulong)&filedata->file_size,\n                            (filedata->file_header).e_shoff,(ulong)uVar6,(char *)(ulong)uVar7,\n                            filedata_1)" ( (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(Filedata *)&filedata->handle" ( (type_descriptor "Filedata *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&filedata->handle" & (field_expression "filedata->handle" identifier -> field_identifier))) , (binary_expression "(ulong)&filedata->file_size" (parenthesized_expression "(ulong)" ( identifier )) & (field_expression "filedata->file_size" identifier -> field_identifier)) , (field_expression "(filedata->file_header).e_shoff" (parenthesized_expression "(filedata->file_header)" ( (field_expression "filedata->file_header" identifier -> field_identifier) )) . field_identifier) , (cast_expression "(ulong)uVar6" ( (type_descriptor "ulong" type_identifier) ) identifier) , (cast_expression "(char *)(ulong)uVar7" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (cast_expression "(ulong)uVar7" ( (type_descriptor "ulong" type_identifier) ) identifier)) , identifier ))))) ;)) (if_statement "if (__ptr != (uchar *)0x0) {\n    free(filedata->section_headers);\n    uVar6 = 0;\n    pEVar2 = (Elf_Internal_Shdr *)cmalloc((size_t)(ulong)uVar7,0x50);\n    filedata->section_headers = pEVar2;\n    puVar5 = __ptr;\n    if (pEVar2 != (Elf_Internal_Shdr *)0x0) {\n      do {\n        eVar3 = (*byte_get)(puVar5,4);\n        pEVar2->sh_name = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 4,4);\n        pEVar2->sh_type = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 8,4);\n        pEVar2->sh_flags = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0xc,4);\n        pEVar2->sh_addr = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x10,4);\n        pEVar2->sh_offset = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x14,4);\n        pEVar2->sh_size = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x18,4);\n        pEVar2->sh_link = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x1c,4);\n        pEVar2->sh_info = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x20,4);\n        pEVar2->sh_addralign = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x24,4);\n        pEVar2->sh_entsize = eVar3;\n        if (probe == 0) {\n          uVar1 = pEVar2->sh_link;\n          if (uVar7 < uVar1) {\n            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);\n          }\n          if (((pEVar2->sh_flags & 0x40) != 0) && (uVar1 = pEVar2->sh_info, uVar7 < uVar1)) {\n            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        pEVar2 = pEVar2 + 1;\n        puVar5 = puVar5 + 0x28;\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }\n    if (probe == 0) {\n      pcVar4 = (char *)dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(pcVar4,(ulong)uVar7);\n    }\n  }" if (parenthesized_expression "(__ptr != (uchar *)0x0)" ( (binary_expression "__ptr != (uchar *)0x0" identifier != (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(filedata->section_headers);\n    uVar6 = 0;\n    pEVar2 = (Elf_Internal_Shdr *)cmalloc((size_t)(ulong)uVar7,0x50);\n    filedata->section_headers = pEVar2;\n    puVar5 = __ptr;\n    if (pEVar2 != (Elf_Internal_Shdr *)0x0) {\n      do {\n        eVar3 = (*byte_get)(puVar5,4);\n        pEVar2->sh_name = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 4,4);\n        pEVar2->sh_type = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 8,4);\n        pEVar2->sh_flags = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0xc,4);\n        pEVar2->sh_addr = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x10,4);\n        pEVar2->sh_offset = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x14,4);\n        pEVar2->sh_size = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x18,4);\n        pEVar2->sh_link = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x1c,4);\n        pEVar2->sh_info = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x20,4);\n        pEVar2->sh_addralign = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x24,4);\n        pEVar2->sh_entsize = eVar3;\n        if (probe == 0) {\n          uVar1 = pEVar2->sh_link;\n          if (uVar7 < uVar1) {\n            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);\n          }\n          if (((pEVar2->sh_flags & 0x40) != 0) && (uVar1 = pEVar2->sh_info, uVar7 < uVar1)) {\n            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        pEVar2 = pEVar2 + 1;\n        puVar5 = puVar5 + 0x28;\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }\n    if (probe == 0) {\n      pcVar4 = (char *)dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(pcVar4,(ulong)uVar7);\n    }\n  }" { (expression_statement "free(filedata->section_headers);" (call_expression "free(filedata->section_headers)" identifier (argument_list "(filedata->section_headers)" ( (field_expression "filedata->section_headers" identifier -> field_identifier) ))) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "pEVar2 = (Elf_Internal_Shdr *)cmalloc((size_t)(ulong)uVar7,0x50);" (assignment_expression "pEVar2 = (Elf_Internal_Shdr *)cmalloc((size_t)(ulong)uVar7,0x50)" identifier = (cast_expression "(Elf_Internal_Shdr *)cmalloc((size_t)(ulong)uVar7,0x50)" ( (type_descriptor "Elf_Internal_Shdr *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "cmalloc((size_t)(ulong)uVar7,0x50)" identifier (argument_list "((size_t)(ulong)uVar7,0x50)" ( (cast_expression "(size_t)(ulong)uVar7" ( (type_descriptor "size_t" primitive_type) ) (cast_expression "(ulong)uVar7" ( (type_descriptor "ulong" type_identifier) ) identifier)) , number_literal ))))) ;) (expression_statement "filedata->section_headers = pEVar2;" (assignment_expression "filedata->section_headers = pEVar2" (field_expression "filedata->section_headers" identifier -> field_identifier) = identifier) ;) (expression_statement "puVar5 = __ptr;" (assignment_expression "puVar5 = __ptr" identifier = identifier) ;) (if_statement "if (pEVar2 != (Elf_Internal_Shdr *)0x0) {\n      do {\n        eVar3 = (*byte_get)(puVar5,4);\n        pEVar2->sh_name = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 4,4);\n        pEVar2->sh_type = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 8,4);\n        pEVar2->sh_flags = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0xc,4);\n        pEVar2->sh_addr = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x10,4);\n        pEVar2->sh_offset = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x14,4);\n        pEVar2->sh_size = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x18,4);\n        pEVar2->sh_link = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x1c,4);\n        pEVar2->sh_info = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x20,4);\n        pEVar2->sh_addralign = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x24,4);\n        pEVar2->sh_entsize = eVar3;\n        if (probe == 0) {\n          uVar1 = pEVar2->sh_link;\n          if (uVar7 < uVar1) {\n            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);\n          }\n          if (((pEVar2->sh_flags & 0x40) != 0) && (uVar1 = pEVar2->sh_info, uVar7 < uVar1)) {\n            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        pEVar2 = pEVar2 + 1;\n        puVar5 = puVar5 + 0x28;\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }" if (parenthesized_expression "(pEVar2 != (Elf_Internal_Shdr *)0x0)" ( (binary_expression "pEVar2 != (Elf_Internal_Shdr *)0x0" identifier != (cast_expression "(Elf_Internal_Shdr *)0x0" ( (type_descriptor "Elf_Internal_Shdr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      do {\n        eVar3 = (*byte_get)(puVar5,4);\n        pEVar2->sh_name = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 4,4);\n        pEVar2->sh_type = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 8,4);\n        pEVar2->sh_flags = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0xc,4);\n        pEVar2->sh_addr = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x10,4);\n        pEVar2->sh_offset = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x14,4);\n        pEVar2->sh_size = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x18,4);\n        pEVar2->sh_link = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x1c,4);\n        pEVar2->sh_info = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x20,4);\n        pEVar2->sh_addralign = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x24,4);\n        pEVar2->sh_entsize = eVar3;\n        if (probe == 0) {\n          uVar1 = pEVar2->sh_link;\n          if (uVar7 < uVar1) {\n            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);\n          }\n          if (((pEVar2->sh_flags & 0x40) != 0) && (uVar1 = pEVar2->sh_info, uVar7 < uVar1)) {\n            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        pEVar2 = pEVar2 + 1;\n        puVar5 = puVar5 + 0x28;\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }" { (do_statement "do {\n        eVar3 = (*byte_get)(puVar5,4);\n        pEVar2->sh_name = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 4,4);\n        pEVar2->sh_type = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 8,4);\n        pEVar2->sh_flags = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0xc,4);\n        pEVar2->sh_addr = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x10,4);\n        pEVar2->sh_offset = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x14,4);\n        pEVar2->sh_size = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x18,4);\n        pEVar2->sh_link = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x1c,4);\n        pEVar2->sh_info = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x20,4);\n        pEVar2->sh_addralign = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x24,4);\n        pEVar2->sh_entsize = eVar3;\n        if (probe == 0) {\n          uVar1 = pEVar2->sh_link;\n          if (uVar7 < uVar1) {\n            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);\n          }\n          if (((pEVar2->sh_flags & 0x40) != 0) && (uVar1 = pEVar2->sh_info, uVar7 < uVar1)) {\n            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        pEVar2 = pEVar2 + 1;\n        puVar5 = puVar5 + 0x28;\n      } while (uVar6 < uVar7);" do (compound_statement "{\n        eVar3 = (*byte_get)(puVar5,4);\n        pEVar2->sh_name = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 4,4);\n        pEVar2->sh_type = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 8,4);\n        pEVar2->sh_flags = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0xc,4);\n        pEVar2->sh_addr = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x10,4);\n        pEVar2->sh_offset = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x14,4);\n        pEVar2->sh_size = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x18,4);\n        pEVar2->sh_link = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x1c,4);\n        pEVar2->sh_info = (uint)eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x20,4);\n        pEVar2->sh_addralign = eVar3;\n        eVar3 = (*byte_get)(puVar5 + 0x24,4);\n        pEVar2->sh_entsize = eVar3;\n        if (probe == 0) {\n          uVar1 = pEVar2->sh_link;\n          if (uVar7 < uVar1) {\n            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);\n          }\n          if (((pEVar2->sh_flags & 0x40) != 0) && (uVar1 = pEVar2->sh_info, uVar7 < uVar1)) {\n            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        pEVar2 = pEVar2 + 1;\n        puVar5 = puVar5 + 0x28;\n      }" { (expression_statement "eVar3 = (*byte_get)(puVar5,4);" (assignment_expression "eVar3 = (*byte_get)(puVar5,4)" identifier = (call_expression "(*byte_get)(puVar5,4)" (parenthesized_expression "(*byte_get)" ( (pointer_expression "*byte_get" * identifier) )) (argument_list "(puVar5,4)" ( identifier , number_literal )))) ;) (expression_statement "pEVar2->sh_name = (uint)eVar3;" (assignment_expression "pEVar2->sh_name = (uint)eVar3" (field_expression "pEVar2->sh_name" identifier -> field_identifier) = (cast_expression "(uint)eVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "eVar3 = (*byte_get)(puVar5 + 4,4);" (assignment_expression "eVar3 = (*byte_get)(puVar5 + 4,4)" identifier = (call_expression "(*byte_get)(puVar5 + 4,4)" (parenthesized_expression "(*byte_get)" ( (pointer_expression "*byte_get" * identifier) )) (argument_list "(puVar5 + 4,4)" ( (binary_expression "puVar5 + 4" identifier + number_literal) , number_literal )))) ;) (expression_statement "pEVar2->sh_type = (uint)eVar3;" (assignment_expression "pEVar2->sh_type = (uint)eVar3" (field_expression "pEVar2->sh_type" identifier -> field_identifier) = (cast_expression "(uint)eVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "eVar3 = (*byte_get)(puVar5 + 8,4);" (assignment_expression "eVar3 = (*byte_get)(puVar5 + 8,4)" identifier = (call_expression "(*byte_get)(puVar5 + 8,4)" (parenthesized_expression "(*byte_get)" ( (pointer_expression "*byte_get" * identifier) )) (argument_list "(puVar5 + 8,4)" ( (binary_expression "puVar5 + 8" identifier + number_literal) , number_literal )))) ;) (expression_statement "pEVar2->sh_flags = eVar3;" (assignment_expression "pEVar2->sh_flags = eVar3" (field_expression "pEVar2->sh_flags" identifier -> field_identifier) = identifier) ;) (expression_statement "eVar3 = (*byte_get)(puVar5 + 0xc,4);" (assignment_expression "eVar3 = (*byte_get)(puVar5 + 0xc,4)" identifier = (call_expression "(*byte_get)(puVar5 + 0xc,4)" (parenthesized_expression "(*byte_get)" ( (pointer_expression "*byte_get" * identifier) )) (argument_list "(puVar5 + 0xc,4)" ( (binary_expression "puVar5 + 0xc" identifier + number_literal) , number_literal )))) ;) (expression_statement "pEVar2->sh_addr = eVar3;" (assignment_expression "pEVar2->sh_addr = eVar3" (field_expression "pEVar2->sh_addr" identifier -> field_identifier) = identifier) ;) (expression_statement "eVar3 = (*byte_get)(puVar5 + 0x10,4);" (assignment_expression "eVar3 = (*byte_get)(puVar5 + 0x10,4)" identifier = (call_expression "(*byte_get)(puVar5 + 0x10,4)" (parenthesized_expression "(*byte_get)" ( (pointer_expression "*byte_get" * identifier) )) (argument_list "(puVar5 + 0x10,4)" ( (binary_expression "puVar5 + 0x10" identifier + number_literal) , number_literal )))) ;) (expression_statement "pEVar2->sh_offset = eVar3;" (assignment_expression "pEVar2->sh_offset = eVar3" (field_expression "pEVar2->sh_offset" identifier -> field_identifier) = identifier) ;) (expression_statement "eVar3 = (*byte_get)(puVar5 + 0x14,4);" (assignment_expression "eVar3 = (*byte_get)(puVar5 + 0x14,4)" identifier = (call_expression "(*byte_get)(puVar5 + 0x14,4)" (parenthesized_expression "(*byte_get)" ( (pointer_expression "*byte_get" * identifier) )) (argument_list "(puVar5 + 0x14,4)" ( (binary_expression "puVar5 + 0x14" identifier + number_literal) , number_literal )))) ;) (expression_statement "pEVar2->sh_size = eVar3;" (assignment_expression "pEVar2->sh_size = eVar3" (field_expression "pEVar2->sh_size" identifier -> field_identifier) = identifier) ;) (expression_statement "eVar3 = (*byte_get)(puVar5 + 0x18,4);" (assignment_expression "eVar3 = (*byte_get)(puVar5 + 0x18,4)" identifier = (call_expression "(*byte_get)(puVar5 + 0x18,4)" (parenthesized_expression "(*byte_get)" ( (pointer_expression "*byte_get" * identifier) )) (argument_list "(puVar5 + 0x18,4)" ( (binary_expression "puVar5 + 0x18" identifier + number_literal) , number_literal )))) ;) (expression_statement "pEVar2->sh_link = (uint)eVar3;" (assignment_expression "pEVar2->sh_link = (uint)eVar3" (field_expression "pEVar2->sh_link" identifier -> field_identifier) = (cast_expression "(uint)eVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "eVar3 = (*byte_get)(puVar5 + 0x1c,4);" (assignment_expression "eVar3 = (*byte_get)(puVar5 + 0x1c,4)" identifier = (call_expression "(*byte_get)(puVar5 + 0x1c,4)" (parenthesized_expression "(*byte_get)" ( (pointer_expression "*byte_get" * identifier) )) (argument_list "(puVar5 + 0x1c,4)" ( (binary_expression "puVar5 + 0x1c" identifier + number_literal) , number_literal )))) ;) (expression_statement "pEVar2->sh_info = (uint)eVar3;" (assignment_expression "pEVar2->sh_info = (uint)eVar3" (field_expression "pEVar2->sh_info" identifier -> field_identifier) = (cast_expression "(uint)eVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "eVar3 = (*byte_get)(puVar5 + 0x20,4);" (assignment_expression "eVar3 = (*byte_get)(puVar5 + 0x20,4)" identifier = (call_expression "(*byte_get)(puVar5 + 0x20,4)" (parenthesized_expression "(*byte_get)" ( (pointer_expression "*byte_get" * identifier) )) (argument_list "(puVar5 + 0x20,4)" ( (binary_expression "puVar5 + 0x20" identifier + number_literal) , number_literal )))) ;) (expression_statement "pEVar2->sh_addralign = eVar3;" (assignment_expression "pEVar2->sh_addralign = eVar3" (field_expression "pEVar2->sh_addralign" identifier -> field_identifier) = identifier) ;) (expression_statement "eVar3 = (*byte_get)(puVar5 + 0x24,4);" (assignment_expression "eVar3 = (*byte_get)(puVar5 + 0x24,4)" identifier = (call_expression "(*byte_get)(puVar5 + 0x24,4)" (parenthesized_expression "(*byte_get)" ( (pointer_expression "*byte_get" * identifier) )) (argument_list "(puVar5 + 0x24,4)" ( (binary_expression "puVar5 + 0x24" identifier + number_literal) , number_literal )))) ;) (expression_statement "pEVar2->sh_entsize = eVar3;" (assignment_expression "pEVar2->sh_entsize = eVar3" (field_expression "pEVar2->sh_entsize" identifier -> field_identifier) = identifier) ;) (if_statement "if (probe == 0) {\n          uVar1 = pEVar2->sh_link;\n          if (uVar7 < uVar1) {\n            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);\n          }\n          if (((pEVar2->sh_flags & 0x40) != 0) && (uVar1 = pEVar2->sh_info, uVar7 < uVar1)) {\n            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);\n          }\n        }" if (parenthesized_expression "(probe == 0)" ( (binary_expression "probe == 0" identifier == number_literal) )) (compound_statement "{\n          uVar1 = pEVar2->sh_link;\n          if (uVar7 < uVar1) {\n            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);\n          }\n          if (((pEVar2->sh_flags & 0x40) != 0) && (uVar1 = pEVar2->sh_info, uVar7 < uVar1)) {\n            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);\n          }\n        }" { (expression_statement "uVar1 = pEVar2->sh_link;" (assignment_expression "uVar1 = pEVar2->sh_link" identifier = (field_expression "pEVar2->sh_link" identifier -> field_identifier)) ;) (if_statement "if (uVar7 < uVar1) {\n            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);\n          }" if (parenthesized_expression "(uVar7 < uVar1)" ( (binary_expression "uVar7 < uVar1" identifier < identifier) )) (compound_statement "{\n            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);\n          }" { (expression_statement "pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);" (assignment_expression "pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5)" identifier (argument_list "(0,"Section %u has an out of range sh_link value of %u\n",5)" ( number_literal , (string_literal ""Section %u has an out of range sh_link value of %u\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "warn(pcVar4,(ulong)uVar6,(ulong)uVar1);" (call_expression "warn(pcVar4,(ulong)uVar6,(ulong)uVar1)" identifier (argument_list "(pcVar4,(ulong)uVar6,(ulong)uVar1)" ( identifier , (cast_expression "(ulong)uVar6" ( (type_descriptor "ulong" type_identifier) ) identifier) , (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) ))) ;) })) (if_statement "if (((pEVar2->sh_flags & 0x40) != 0) && (uVar1 = pEVar2->sh_info, uVar7 < uVar1)) {\n            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);\n          }" if (parenthesized_expression "(((pEVar2->sh_flags & 0x40) != 0) && (uVar1 = pEVar2->sh_info, uVar7 < uVar1))" ( (binary_expression "((pEVar2->sh_flags & 0x40) != 0) && (uVar1 = pEVar2->sh_info, uVar7 < uVar1)" (parenthesized_expression "((pEVar2->sh_flags & 0x40) != 0)" ( (binary_expression "(pEVar2->sh_flags & 0x40) != 0" (parenthesized_expression "(pEVar2->sh_flags & 0x40)" ( (binary_expression "pEVar2->sh_flags & 0x40" (field_expression "pEVar2->sh_flags" identifier -> field_identifier) & number_literal) )) != number_literal) )) && (parenthesized_expression "(uVar1 = pEVar2->sh_info, uVar7 < uVar1)" ( (comma_expression "uVar1 = pEVar2->sh_info, uVar7 < uVar1" (assignment_expression "uVar1 = pEVar2->sh_info" identifier = (field_expression "pEVar2->sh_info" identifier -> field_identifier)) , (binary_expression "uVar7 < uVar1" identifier < identifier)) ))) )) (compound_statement "{\n            pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(pcVar4,(ulong)uVar6,(ulong)uVar1);\n          }" { (expression_statement "pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);" (assignment_expression "pcVar4 = (char *)dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5)" identifier (argument_list "(0,"Section %u has an out of range sh_info value of %u\n",5)" ( number_literal , (string_literal ""Section %u has an out of range sh_info value of %u\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "warn(pcVar4,(ulong)uVar6,(ulong)uVar1);" (call_expression "warn(pcVar4,(ulong)uVar6,(ulong)uVar1)" identifier (argument_list "(pcVar4,(ulong)uVar6,(ulong)uVar1)" ( identifier , (cast_expression "(ulong)uVar6" ( (type_descriptor "ulong" type_identifier) ) identifier) , (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) ))) ;) })) })) (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (expression_statement "pEVar2 = pEVar2 + 1;" (assignment_expression "pEVar2 = pEVar2 + 1" identifier = (binary_expression "pEVar2 + 1" identifier + number_literal)) ;) (expression_statement "puVar5 = puVar5 + 0x28;" (assignment_expression "puVar5 = puVar5 + 0x28" identifier = (binary_expression "puVar5 + 0x28" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 < uVar7)" ( (binary_expression "uVar6 < uVar7" identifier < identifier) )) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (probe == 0) {\n      pcVar4 = (char *)dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(pcVar4,(ulong)uVar7);\n    }" if (parenthesized_expression "(probe == 0)" ( (binary_expression "probe == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar4 = (char *)dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(pcVar4,(ulong)uVar7);\n    }" { (expression_statement "pcVar4 = (char *)dcgettext(0,"Out of memory reading %u section headers\n",5);" (assignment_expression "pcVar4 = (char *)dcgettext(0,"Out of memory reading %u section headers\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"Out of memory reading %u section headers\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Out of memory reading %u section headers\n",5)" identifier (argument_list "(0,"Out of memory reading %u section headers\n",5)" ( number_literal , (string_literal ""Out of memory reading %u section headers\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "error(pcVar4,(ulong)uVar7);" (call_expression "error(pcVar4,(ulong)uVar7)" identifier (argument_list "(pcVar4,(ulong)uVar7)" ( identifier , (cast_expression "(ulong)uVar7" ( (type_descriptor "ulong" type_identifier) ) identifier) ))) ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined8 FUN_00115650(long param_1,uint param_2)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  void *__ptr;\n  undefined4 *puVar3;\n  undefined8 uVar4;\n  void *pvVar5;\n  uint uVar6;\n  uint uVar7;\n  bool bVar8;\n  \n  uVar6 = *(uint *)(param_1 + 0x60);\n  if (param_2 == 0) {\n    uVar7 = *(uint *)(param_1 + 100);\n    bVar8 = uVar7 == 0;\n  }\n  else {\n    bVar8 = false;\n    uVar7 = 1;\n  }\n  if (uVar6 == 0) {\n    return 0;\n  }\n  if (bVar8) {\n    return 0;\n  }\n  if (uVar6 < 0x28) {\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                      ,5);\n    error(uVar4);\n    return 0;\n  }\n  if (((param_2 & 1) == 0) && (0x28 < uVar6)) {\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                      ,5);\n    warn(uVar4);\n  }\n  else if (param_2 != 0) {\n    uVar4 = 0;\n    goto LAB_001156ac;\n  }\n  uVar4 = dcgettext(0,"section headers",5);\nLAB_001156ac:\n  __ptr = (void *)FUN_001144a0(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,\n                               uVar7,uVar4);\n  if (__ptr != (void *)0x0) {\n    free(*(void **)(param_1 + 0x70));\n    uVar6 = 0;\n    puVar3 = (undefined4 *)FUN_0014c820(uVar7,0x50);\n    *(undefined4 **)(param_1 + 0x70) = puVar3;\n    pvVar5 = __ptr;\n    if (puVar3 != (undefined4 *)0x0) {\n      do {\n        uVar2 = (*DAT_00196f88)(pvVar5,4);\n        *puVar3 = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);\n        puVar3[1] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);\n        *(undefined8 *)(puVar3 + 2) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);\n        *(undefined8 *)(puVar3 + 4) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);\n        *(undefined8 *)(puVar3 + 6) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);\n        *(undefined8 *)(puVar3 + 8) = uVar4;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);\n        puVar3[10] = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);\n        puVar3[0xb] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);\n        *(undefined8 *)(puVar3 + 0xc) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);\n        *(undefined8 *)(puVar3 + 0xe) = uVar4;\n        if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        puVar3 = puVar3 + 0x14;\n        pvVar5 = (void *)((long)pvVar5 + 0x28);\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }\n    if (param_2 == 0) {\n      uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(uVar4,uVar7);\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_00115650(long param_1,uint param_2)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  void *__ptr;\n  undefined4 *puVar3;\n  undefined8 uVar4;\n  void *pvVar5;\n  uint uVar6;\n  uint uVar7;\n  bool bVar8;\n  \n  uVar6 = *(uint *)(param_1 + 0x60);\n  if (param_2 == 0) {\n    uVar7 = *(uint *)(param_1 + 100);\n    bVar8 = uVar7 == 0;\n  }\n  else {\n    bVar8 = false;\n    uVar7 = 1;\n  }\n  if (uVar6 == 0) {\n    return 0;\n  }\n  if (bVar8) {\n    return 0;\n  }\n  if (uVar6 < 0x28) {\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                      ,5);\n    error(uVar4);\n    return 0;\n  }\n  if (((param_2 & 1) == 0) && (0x28 < uVar6)) {\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                      ,5);\n    warn(uVar4);\n  }\n  else if (param_2 != 0) {\n    uVar4 = 0;\n    goto LAB_001156ac;\n  }\n  uVar4 = dcgettext(0,"section headers",5);\nLAB_001156ac:\n  __ptr = (void *)FUN_001144a0(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,\n                               uVar7,uVar4);\n  if (__ptr != (void *)0x0) {\n    free(*(void **)(param_1 + 0x70));\n    uVar6 = 0;\n    puVar3 = (undefined4 *)FUN_0014c820(uVar7,0x50);\n    *(undefined4 **)(param_1 + 0x70) = puVar3;\n    pvVar5 = __ptr;\n    if (puVar3 != (undefined4 *)0x0) {\n      do {\n        uVar2 = (*DAT_00196f88)(pvVar5,4);\n        *puVar3 = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);\n        puVar3[1] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);\n        *(undefined8 *)(puVar3 + 2) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);\n        *(undefined8 *)(puVar3 + 4) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);\n        *(undefined8 *)(puVar3 + 6) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);\n        *(undefined8 *)(puVar3 + 8) = uVar4;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);\n        puVar3[10] = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);\n        puVar3[0xb] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);\n        *(undefined8 *)(puVar3 + 0xc) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);\n        *(undefined8 *)(puVar3 + 0xe) = uVar4;\n        if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        puVar3 = puVar3 + 0x14;\n        pvVar5 = (void *)((long)pvVar5 + 0x28);\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }\n    if (param_2 == 0) {\n      uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(uVar4,uVar7);\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00115650(long param_1,uint param_2)" identifier (parameter_list "(long param_1,uint param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  void *__ptr;\n  undefined4 *puVar3;\n  undefined8 uVar4;\n  void *pvVar5;\n  uint uVar6;\n  uint uVar7;\n  bool bVar8;\n  \n  uVar6 = *(uint *)(param_1 + 0x60);\n  if (param_2 == 0) {\n    uVar7 = *(uint *)(param_1 + 100);\n    bVar8 = uVar7 == 0;\n  }\n  else {\n    bVar8 = false;\n    uVar7 = 1;\n  }\n  if (uVar6 == 0) {\n    return 0;\n  }\n  if (bVar8) {\n    return 0;\n  }\n  if (uVar6 < 0x28) {\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                      ,5);\n    error(uVar4);\n    return 0;\n  }\n  if (((param_2 & 1) == 0) && (0x28 < uVar6)) {\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                      ,5);\n    warn(uVar4);\n  }\n  else if (param_2 != 0) {\n    uVar4 = 0;\n    goto LAB_001156ac;\n  }\n  uVar4 = dcgettext(0,"section headers",5);\nLAB_001156ac:\n  __ptr = (void *)FUN_001144a0(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,\n                               uVar7,uVar4);\n  if (__ptr != (void *)0x0) {\n    free(*(void **)(param_1 + 0x70));\n    uVar6 = 0;\n    puVar3 = (undefined4 *)FUN_0014c820(uVar7,0x50);\n    *(undefined4 **)(param_1 + 0x70) = puVar3;\n    pvVar5 = __ptr;\n    if (puVar3 != (undefined4 *)0x0) {\n      do {\n        uVar2 = (*DAT_00196f88)(pvVar5,4);\n        *puVar3 = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);\n        puVar3[1] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);\n        *(undefined8 *)(puVar3 + 2) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);\n        *(undefined8 *)(puVar3 + 4) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);\n        *(undefined8 *)(puVar3 + 6) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);\n        *(undefined8 *)(puVar3 + 8) = uVar4;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);\n        puVar3[10] = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);\n        puVar3[0xb] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);\n        *(undefined8 *)(puVar3 + 0xc) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);\n        *(undefined8 *)(puVar3 + 0xe) = uVar4;\n        if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        puVar3 = puVar3 + 0x14;\n        pvVar5 = (void *)((long)pvVar5 + 0x28);\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }\n    if (param_2 == 0) {\n      uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(uVar4,uVar7);\n    }\n  }\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "void *pvVar5;" primitive_type (pointer_declarator "*pvVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (expression_statement "uVar6 = *(uint *)(param_1 + 0x60);" (assignment_expression "uVar6 = *(uint *)(param_1 + 0x60)" identifier = (pointer_expression "*(uint *)(param_1 + 0x60)" * (cast_expression "(uint *)(param_1 + 0x60)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == 0) {\n    uVar7 = *(uint *)(param_1 + 100);\n    bVar8 = uVar7 == 0;\n  }\n  else {\n    bVar8 = false;\n    uVar7 = 1;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar7 = *(uint *)(param_1 + 100);\n    bVar8 = uVar7 == 0;\n  }" { (expression_statement "uVar7 = *(uint *)(param_1 + 100);" (assignment_expression "uVar7 = *(uint *)(param_1 + 100)" identifier = (pointer_expression "*(uint *)(param_1 + 100)" * (cast_expression "(uint *)(param_1 + 100)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) ))))) ;) (expression_statement "bVar8 = uVar7 == 0;" (assignment_expression "bVar8 = uVar7 == 0" identifier = (binary_expression "uVar7 == 0" identifier == number_literal)) ;) }) (else_clause "else {\n    bVar8 = false;\n    uVar7 = 1;\n  }" else (compound_statement "{\n    bVar8 = false;\n    uVar7 = 1;\n  }" { (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" identifier = false) ;) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) }))) (if_statement "if (uVar6 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (bVar8) {\n    return 0;\n  }" if (parenthesized_expression "(bVar8)" ( identifier )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (uVar6 < 0x28) {\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                      ,5);\n    error(uVar4);\n    return 0;\n  }" if (parenthesized_expression "(uVar6 < 0x28)" ( (binary_expression "uVar6 < 0x28" identifier < number_literal) )) (compound_statement "{\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                      ,5);\n    error(uVar4);\n    return 0;\n  }" { (if_statement "if (param_2 != 0) {\n      return 0;\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                      ,5);" (assignment_expression "uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                      ,5)" identifier = (call_expression "dcgettext(0,\n                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                      ,5)" identifier (argument_list "(0,\n                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                      ,5)" ( number_literal , (string_literal ""The e_shentsize field in the ELF header is less than the size of an ELF section header\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "error(uVar4);" (call_expression "error(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (((param_2 & 1) == 0) && (0x28 < uVar6)) {\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                      ,5);\n    warn(uVar4);\n  }\n  else if (param_2 != 0) {\n    uVar4 = 0;\n    goto LAB_001156ac;\n  }" if (parenthesized_expression "(((param_2 & 1) == 0) && (0x28 < uVar6))" ( (binary_expression "((param_2 & 1) == 0) && (0x28 < uVar6)" (parenthesized_expression "((param_2 & 1) == 0)" ( (binary_expression "(param_2 & 1) == 0" (parenthesized_expression "(param_2 & 1)" ( (binary_expression "param_2 & 1" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(0x28 < uVar6)" ( (binary_expression "0x28 < uVar6" number_literal < identifier) ))) )) (compound_statement "{\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                      ,5);\n    warn(uVar4);\n  }" { (expression_statement "uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                      ,5);" (assignment_expression "uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                      ,5)" identifier = (call_expression "dcgettext(0,\n                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                      ,5)" identifier (argument_list "(0,\n                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                      ,5)" ( number_literal , (string_literal ""The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "warn(uVar4);" (call_expression "warn(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) }) (else_clause "else if (param_2 != 0) {\n    uVar4 = 0;\n    goto LAB_001156ac;\n  }" else (if_statement "if (param_2 != 0) {\n    uVar4 = 0;\n    goto LAB_001156ac;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = 0;\n    goto LAB_001156ac;\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_001156ac;" goto statement_identifier ;) })))) (expression_statement "uVar4 = dcgettext(0,"section headers",5);" (assignment_expression "uVar4 = dcgettext(0,"section headers",5)" identifier = (call_expression "dcgettext(0,"section headers",5)" identifier (argument_list "(0,"section headers",5)" ( number_literal , (string_literal ""section headers"" " string_content ") , number_literal )))) ;) (labeled_statement "LAB_001156ac:\n  __ptr = (void *)FUN_001144a0(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,\n                               uVar7,uVar4);" statement_identifier : (expression_statement "__ptr = (void *)FUN_001144a0(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,\n                               uVar7,uVar4);" (assignment_expression "__ptr = (void *)FUN_001144a0(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,\n                               uVar7,uVar4)" identifier = (cast_expression "(void *)FUN_001144a0(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,\n                               uVar7,uVar4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001144a0(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,\n                               uVar7,uVar4)" identifier (argument_list "(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,\n                               uVar7,uVar4)" ( number_literal , (binary_expression "param_1 + 8" identifier + number_literal) , (binary_expression "param_1 + 0x10" identifier + number_literal) , (pointer_expression "*(undefined8 *)(param_1 + 0x38)" * (cast_expression "(undefined8 *)(param_1 + 0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) , identifier , identifier , identifier ))))) ;)) (if_statement "if (__ptr != (void *)0x0) {\n    free(*(void **)(param_1 + 0x70));\n    uVar6 = 0;\n    puVar3 = (undefined4 *)FUN_0014c820(uVar7,0x50);\n    *(undefined4 **)(param_1 + 0x70) = puVar3;\n    pvVar5 = __ptr;\n    if (puVar3 != (undefined4 *)0x0) {\n      do {\n        uVar2 = (*DAT_00196f88)(pvVar5,4);\n        *puVar3 = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);\n        puVar3[1] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);\n        *(undefined8 *)(puVar3 + 2) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);\n        *(undefined8 *)(puVar3 + 4) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);\n        *(undefined8 *)(puVar3 + 6) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);\n        *(undefined8 *)(puVar3 + 8) = uVar4;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);\n        puVar3[10] = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);\n        puVar3[0xb] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);\n        *(undefined8 *)(puVar3 + 0xc) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);\n        *(undefined8 *)(puVar3 + 0xe) = uVar4;\n        if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        puVar3 = puVar3 + 0x14;\n        pvVar5 = (void *)((long)pvVar5 + 0x28);\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }\n    if (param_2 == 0) {\n      uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(uVar4,uVar7);\n    }\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    free(*(void **)(param_1 + 0x70));\n    uVar6 = 0;\n    puVar3 = (undefined4 *)FUN_0014c820(uVar7,0x50);\n    *(undefined4 **)(param_1 + 0x70) = puVar3;\n    pvVar5 = __ptr;\n    if (puVar3 != (undefined4 *)0x0) {\n      do {\n        uVar2 = (*DAT_00196f88)(pvVar5,4);\n        *puVar3 = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);\n        puVar3[1] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);\n        *(undefined8 *)(puVar3 + 2) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);\n        *(undefined8 *)(puVar3 + 4) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);\n        *(undefined8 *)(puVar3 + 6) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);\n        *(undefined8 *)(puVar3 + 8) = uVar4;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);\n        puVar3[10] = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);\n        puVar3[0xb] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);\n        *(undefined8 *)(puVar3 + 0xc) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);\n        *(undefined8 *)(puVar3 + 0xe) = uVar4;\n        if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        puVar3 = puVar3 + 0x14;\n        pvVar5 = (void *)((long)pvVar5 + 0x28);\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }\n    if (param_2 == 0) {\n      uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(uVar4,uVar7);\n    }\n  }" { (expression_statement "free(*(void **)(param_1 + 0x70));" (call_expression "free(*(void **)(param_1 + 0x70))" identifier (argument_list "(*(void **)(param_1 + 0x70))" ( (pointer_expression "*(void **)(param_1 + 0x70)" * (cast_expression "(void **)(param_1 + 0x70)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) ))) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)FUN_0014c820(uVar7,0x50);" (assignment_expression "puVar3 = (undefined4 *)FUN_0014c820(uVar7,0x50)" identifier = (cast_expression "(undefined4 *)FUN_0014c820(uVar7,0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0014c820(uVar7,0x50)" identifier (argument_list "(uVar7,0x50)" ( identifier , number_literal ))))) ;) (expression_statement "*(undefined4 **)(param_1 + 0x70) = puVar3;" (assignment_expression "*(undefined4 **)(param_1 + 0x70) = puVar3" (pointer_expression "*(undefined4 **)(param_1 + 0x70)" * (cast_expression "(undefined4 **)(param_1 + 0x70)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = identifier) ;) (expression_statement "pvVar5 = __ptr;" (assignment_expression "pvVar5 = __ptr" identifier = identifier) ;) (if_statement "if (puVar3 != (undefined4 *)0x0) {\n      do {\n        uVar2 = (*DAT_00196f88)(pvVar5,4);\n        *puVar3 = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);\n        puVar3[1] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);\n        *(undefined8 *)(puVar3 + 2) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);\n        *(undefined8 *)(puVar3 + 4) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);\n        *(undefined8 *)(puVar3 + 6) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);\n        *(undefined8 *)(puVar3 + 8) = uVar4;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);\n        puVar3[10] = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);\n        puVar3[0xb] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);\n        *(undefined8 *)(puVar3 + 0xc) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);\n        *(undefined8 *)(puVar3 + 0xe) = uVar4;\n        if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        puVar3 = puVar3 + 0x14;\n        pvVar5 = (void *)((long)pvVar5 + 0x28);\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }" if (parenthesized_expression "(puVar3 != (undefined4 *)0x0)" ( (binary_expression "puVar3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      do {\n        uVar2 = (*DAT_00196f88)(pvVar5,4);\n        *puVar3 = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);\n        puVar3[1] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);\n        *(undefined8 *)(puVar3 + 2) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);\n        *(undefined8 *)(puVar3 + 4) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);\n        *(undefined8 *)(puVar3 + 6) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);\n        *(undefined8 *)(puVar3 + 8) = uVar4;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);\n        puVar3[10] = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);\n        puVar3[0xb] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);\n        *(undefined8 *)(puVar3 + 0xc) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);\n        *(undefined8 *)(puVar3 + 0xe) = uVar4;\n        if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        puVar3 = puVar3 + 0x14;\n        pvVar5 = (void *)((long)pvVar5 + 0x28);\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }" { (do_statement "do {\n        uVar2 = (*DAT_00196f88)(pvVar5,4);\n        *puVar3 = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);\n        puVar3[1] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);\n        *(undefined8 *)(puVar3 + 2) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);\n        *(undefined8 *)(puVar3 + 4) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);\n        *(undefined8 *)(puVar3 + 6) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);\n        *(undefined8 *)(puVar3 + 8) = uVar4;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);\n        puVar3[10] = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);\n        puVar3[0xb] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);\n        *(undefined8 *)(puVar3 + 0xc) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);\n        *(undefined8 *)(puVar3 + 0xe) = uVar4;\n        if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        puVar3 = puVar3 + 0x14;\n        pvVar5 = (void *)((long)pvVar5 + 0x28);\n      } while (uVar6 < uVar7);" do (compound_statement "{\n        uVar2 = (*DAT_00196f88)(pvVar5,4);\n        *puVar3 = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);\n        puVar3[1] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);\n        *(undefined8 *)(puVar3 + 2) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);\n        *(undefined8 *)(puVar3 + 4) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);\n        *(undefined8 *)(puVar3 + 6) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);\n        *(undefined8 *)(puVar3 + 8) = uVar4;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);\n        puVar3[10] = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);\n        puVar3[0xb] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);\n        *(undefined8 *)(puVar3 + 0xc) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);\n        *(undefined8 *)(puVar3 + 0xe) = uVar4;\n        if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        puVar3 = puVar3 + 0x14;\n        pvVar5 = (void *)((long)pvVar5 + 0x28);\n      }" { (expression_statement "uVar2 = (*DAT_00196f88)(pvVar5,4);" (assignment_expression "uVar2 = (*DAT_00196f88)(pvVar5,4)" identifier = (call_expression "(*DAT_00196f88)(pvVar5,4)" (parenthesized_expression "(*DAT_00196f88)" ( (pointer_expression "*DAT_00196f88" * identifier) )) (argument_list "(pvVar5,4)" ( identifier , number_literal )))) ;) (expression_statement "*puVar3 = uVar2;" (assignment_expression "*puVar3 = uVar2" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);" (assignment_expression "uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4)" identifier = (call_expression "(*DAT_00196f88)((long)pvVar5 + 4,4)" (parenthesized_expression "(*DAT_00196f88)" ( (pointer_expression "*DAT_00196f88" * identifier) )) (argument_list "((long)pvVar5 + 4,4)" ( (binary_expression "(long)pvVar5 + 4" (cast_expression "(long)pvVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) , number_literal )))) ;) (expression_statement "puVar3[1] = uVar2;" (assignment_expression "puVar3[1] = uVar2" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);" (assignment_expression "uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4)" identifier = (call_expression "(*DAT_00196f88)((long)pvVar5 + 8,4)" (parenthesized_expression "(*DAT_00196f88)" ( (pointer_expression "*DAT_00196f88" * identifier) )) (argument_list "((long)pvVar5 + 8,4)" ( (binary_expression "(long)pvVar5 + 8" (cast_expression "(long)pvVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) , number_literal )))) ;) (expression_statement "*(undefined8 *)(puVar3 + 2) = uVar4;" (assignment_expression "*(undefined8 *)(puVar3 + 2) = uVar4" (pointer_expression "*(undefined8 *)(puVar3 + 2)" * (cast_expression "(undefined8 *)(puVar3 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 2)" ( (binary_expression "puVar3 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);" (assignment_expression "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4)" identifier = (call_expression "(*DAT_00196f88)((long)pvVar5 + 0xc,4)" (parenthesized_expression "(*DAT_00196f88)" ( (pointer_expression "*DAT_00196f88" * identifier) )) (argument_list "((long)pvVar5 + 0xc,4)" ( (binary_expression "(long)pvVar5 + 0xc" (cast_expression "(long)pvVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) , number_literal )))) ;) (expression_statement "*(undefined8 *)(puVar3 + 4) = uVar4;" (assignment_expression "*(undefined8 *)(puVar3 + 4) = uVar4" (pointer_expression "*(undefined8 *)(puVar3 + 4)" * (cast_expression "(undefined8 *)(puVar3 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 4)" ( (binary_expression "puVar3 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);" (assignment_expression "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4)" identifier = (call_expression "(*DAT_00196f88)((long)pvVar5 + 0x10,4)" (parenthesized_expression "(*DAT_00196f88)" ( (pointer_expression "*DAT_00196f88" * identifier) )) (argument_list "((long)pvVar5 + 0x10,4)" ( (binary_expression "(long)pvVar5 + 0x10" (cast_expression "(long)pvVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) , number_literal )))) ;) (expression_statement "*(undefined8 *)(puVar3 + 6) = uVar4;" (assignment_expression "*(undefined8 *)(puVar3 + 6) = uVar4" (pointer_expression "*(undefined8 *)(puVar3 + 6)" * (cast_expression "(undefined8 *)(puVar3 + 6)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 6)" ( (binary_expression "puVar3 + 6" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);" (assignment_expression "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4)" identifier = (call_expression "(*DAT_00196f88)((long)pvVar5 + 0x14,4)" (parenthesized_expression "(*DAT_00196f88)" ( (pointer_expression "*DAT_00196f88" * identifier) )) (argument_list "((long)pvVar5 + 0x14,4)" ( (binary_expression "(long)pvVar5 + 0x14" (cast_expression "(long)pvVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) , number_literal )))) ;) (expression_statement "*(undefined8 *)(puVar3 + 8) = uVar4;" (assignment_expression "*(undefined8 *)(puVar3 + 8) = uVar4" (pointer_expression "*(undefined8 *)(puVar3 + 8)" * (cast_expression "(undefined8 *)(puVar3 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 8)" ( (binary_expression "puVar3 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);" (assignment_expression "uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4)" identifier = (call_expression "(*DAT_00196f88)((long)pvVar5 + 0x18,4)" (parenthesized_expression "(*DAT_00196f88)" ( (pointer_expression "*DAT_00196f88" * identifier) )) (argument_list "((long)pvVar5 + 0x18,4)" ( (binary_expression "(long)pvVar5 + 0x18" (cast_expression "(long)pvVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) , number_literal )))) ;) (expression_statement "puVar3[10] = uVar2;" (assignment_expression "puVar3[10] = uVar2" (subscript_expression "puVar3[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);" (assignment_expression "uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4)" identifier = (call_expression "(*DAT_00196f88)((long)pvVar5 + 0x1c,4)" (parenthesized_expression "(*DAT_00196f88)" ( (pointer_expression "*DAT_00196f88" * identifier) )) (argument_list "((long)pvVar5 + 0x1c,4)" ( (binary_expression "(long)pvVar5 + 0x1c" (cast_expression "(long)pvVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) , number_literal )))) ;) (expression_statement "puVar3[0xb] = uVar2;" (assignment_expression "puVar3[0xb] = uVar2" (subscript_expression "puVar3[0xb]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);" (assignment_expression "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4)" identifier = (call_expression "(*DAT_00196f88)((long)pvVar5 + 0x20,4)" (parenthesized_expression "(*DAT_00196f88)" ( (pointer_expression "*DAT_00196f88" * identifier) )) (argument_list "((long)pvVar5 + 0x20,4)" ( (binary_expression "(long)pvVar5 + 0x20" (cast_expression "(long)pvVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) , number_literal )))) ;) (expression_statement "*(undefined8 *)(puVar3 + 0xc) = uVar4;" (assignment_expression "*(undefined8 *)(puVar3 + 0xc) = uVar4" (pointer_expression "*(undefined8 *)(puVar3 + 0xc)" * (cast_expression "(undefined8 *)(puVar3 + 0xc)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0xc)" ( (binary_expression "puVar3 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);" (assignment_expression "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4)" identifier = (call_expression "(*DAT_00196f88)((long)pvVar5 + 0x24,4)" (parenthesized_expression "(*DAT_00196f88)" ( (pointer_expression "*DAT_00196f88" * identifier) )) (argument_list "((long)pvVar5 + 0x24,4)" ( (binary_expression "(long)pvVar5 + 0x24" (cast_expression "(long)pvVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) , number_literal )))) ;) (expression_statement "*(undefined8 *)(puVar3 + 0xe) = uVar4;" (assignment_expression "*(undefined8 *)(puVar3 + 0xe) = uVar4" (pointer_expression "*(undefined8 *)(puVar3 + 0xe)" * (cast_expression "(undefined8 *)(puVar3 + 0xe)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0xe)" ( (binary_expression "puVar3 + 0xe" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }" { (expression_statement "uVar1 = puVar3[10];" (assignment_expression "uVar1 = puVar3[10]" identifier = (subscript_expression "puVar3[10]" identifier [ number_literal ])) ;) (if_statement "if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }" if (parenthesized_expression "(uVar7 < uVar1)" ( (binary_expression "uVar7 < uVar1" identifier < identifier) )) (compound_statement "{\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }" { (expression_statement "uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);" (assignment_expression "uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5)" identifier = (call_expression "dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5)" identifier (argument_list "(0,"Section %u has an out of range sh_link value of %u\n",5)" ( number_literal , (string_literal ""Section %u has an out of range sh_link value of %u\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "warn(uVar4,uVar6,uVar1);" (call_expression "warn(uVar4,uVar6,uVar1)" identifier (argument_list "(uVar4,uVar6,uVar1)" ( identifier , identifier , identifier ))) ;) })) (if_statement "if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }" if (parenthesized_expression "(((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1))" ( (binary_expression "((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)" (parenthesized_expression "((*(byte *)(puVar3 + 2) & 0x40) != 0)" ( (binary_expression "(*(byte *)(puVar3 + 2) & 0x40) != 0" (parenthesized_expression "(*(byte *)(puVar3 + 2) & 0x40)" ( (binary_expression "*(byte *)(puVar3 + 2) & 0x40" (pointer_expression "*(byte *)(puVar3 + 2)" * (cast_expression "(byte *)(puVar3 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 2)" ( (binary_expression "puVar3 + 2" identifier + number_literal) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "(uVar1 = puVar3[0xb], uVar7 < uVar1)" ( (comma_expression "uVar1 = puVar3[0xb], uVar7 < uVar1" (assignment_expression "uVar1 = puVar3[0xb]" identifier = (subscript_expression "puVar3[0xb]" identifier [ number_literal ])) , (binary_expression "uVar7 < uVar1" identifier < identifier)) ))) )) (compound_statement "{\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }" { (expression_statement "uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);" (assignment_expression "uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5)" identifier = (call_expression "dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5)" identifier (argument_list "(0,"Section %u has an out of range sh_info value of %u\n",5)" ( number_literal , (string_literal ""Section %u has an out of range sh_info value of %u\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "warn(uVar4,uVar6,uVar1);" (call_expression "warn(uVar4,uVar6,uVar1)" identifier (argument_list "(uVar4,uVar6,uVar1)" ( identifier , identifier , identifier ))) ;) })) })) (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (expression_statement "puVar3 = puVar3 + 0x14;" (assignment_expression "puVar3 = puVar3 + 0x14" identifier = (binary_expression "puVar3 + 0x14" identifier + number_literal)) ;) (expression_statement "pvVar5 = (void *)((long)pvVar5 + 0x28);" (assignment_expression "pvVar5 = (void *)((long)pvVar5 + 0x28)" identifier = (cast_expression "(void *)((long)pvVar5 + 0x28)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar5 + 0x28)" ( (binary_expression "(long)pvVar5 + 0x28" (cast_expression "(long)pvVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) }) while (parenthesized_expression "(uVar6 < uVar7)" ( (binary_expression "uVar6 < uVar7" identifier < identifier) )) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (param_2 == 0) {\n      uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(uVar4,uVar7);\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(uVar4,uVar7);\n    }" { (expression_statement "uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5);" (assignment_expression "uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5)" identifier = (call_expression "dcgettext(0,"Out of memory reading %u section headers\n",5)" identifier (argument_list "(0,"Out of memory reading %u section headers\n",5)" ( number_literal , (string_literal ""Out of memory reading %u section headers\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "error(uVar4,uVar7);" (call_expression "error(uVar4,uVar7)" identifier (argument_list "(uVar4,uVar7)" ( identifier , identifier ))) ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (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 ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) (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 (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) && (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT , IDENT ))))) ;)) (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 ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (do_statement do (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 (sized_type_specifier long)) ) IDENT) + LIT) , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) , (binary_expression IDENT < IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (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 = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) })) (return_statement return LIT ;) })))
(function_definition "undefined8 FUN_00115650(long param_1,uint param_2)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  void *__ptr;\n  undefined4 *puVar3;\n  undefined8 uVar4;\n  void *pvVar5;\n  uint uVar6;\n  uint uVar7;\n  bool bVar8;\n  \n  uVar6 = *(uint *)(param_1 + 0x60);\n  if (param_2 == 0) {\n    uVar7 = *(uint *)(param_1 + 100);\n    bVar8 = uVar7 == 0;\n  }\n  else {\n    bVar8 = false;\n    uVar7 = 1;\n  }\n  if (uVar6 == 0) {\n    return 0;\n  }\n  if (bVar8) {\n    return 0;\n  }\n  if (uVar6 < 0x28) {\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                      ,5);\n    error(uVar4);\n    return 0;\n  }\n  if (((param_2 & 1) == 0) && (0x28 < uVar6)) {\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                      ,5);\n    warn(uVar4);\n  }\n  else if (param_2 != 0) {\n    uVar4 = 0;\n    goto LAB_001156ac;\n  }\n  uVar4 = dcgettext(0,"section headers",5);\nLAB_001156ac:\n  __ptr = (void *)FUN_001144a0(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,\n                               uVar7,uVar4);\n  if (__ptr != (void *)0x0) {\n    free(*(void **)(param_1 + 0x70));\n    uVar6 = 0;\n    puVar3 = (undefined4 *)FUN_0014c820(uVar7,0x50);\n    *(undefined4 **)(param_1 + 0x70) = puVar3;\n    pvVar5 = __ptr;\n    if (puVar3 != (undefined4 *)0x0) {\n      do {\n        uVar2 = (*DAT_00196f88)(pvVar5,4);\n        *puVar3 = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);\n        puVar3[1] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);\n        *(undefined8 *)(puVar3 + 2) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);\n        *(undefined8 *)(puVar3 + 4) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);\n        *(undefined8 *)(puVar3 + 6) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);\n        *(undefined8 *)(puVar3 + 8) = uVar4;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);\n        puVar3[10] = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);\n        puVar3[0xb] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);\n        *(undefined8 *)(puVar3 + 0xc) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);\n        *(undefined8 *)(puVar3 + 0xe) = uVar4;\n        if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        puVar3 = puVar3 + 0x14;\n        pvVar5 = (void *)((long)pvVar5 + 0x28);\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }\n    if (param_2 == 0) {\n      uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(uVar4,uVar7);\n    }\n  }\n  return 0;\n}" (type_identifier "undefined8") (function_declarator "FUN_00115650(long param_1,uint param_2)" (identifier "FUN_00115650") (parameter_list "(long param_1,uint param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  void *__ptr;\n  undefined4 *puVar3;\n  undefined8 uVar4;\n  void *pvVar5;\n  uint uVar6;\n  uint uVar7;\n  bool bVar8;\n  \n  uVar6 = *(uint *)(param_1 + 0x60);\n  if (param_2 == 0) {\n    uVar7 = *(uint *)(param_1 + 100);\n    bVar8 = uVar7 == 0;\n  }\n  else {\n    bVar8 = false;\n    uVar7 = 1;\n  }\n  if (uVar6 == 0) {\n    return 0;\n  }\n  if (bVar8) {\n    return 0;\n  }\n  if (uVar6 < 0x28) {\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                      ,5);\n    error(uVar4);\n    return 0;\n  }\n  if (((param_2 & 1) == 0) && (0x28 < uVar6)) {\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                      ,5);\n    warn(uVar4);\n  }\n  else if (param_2 != 0) {\n    uVar4 = 0;\n    goto LAB_001156ac;\n  }\n  uVar4 = dcgettext(0,"section headers",5);\nLAB_001156ac:\n  __ptr = (void *)FUN_001144a0(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,\n                               uVar7,uVar4);\n  if (__ptr != (void *)0x0) {\n    free(*(void **)(param_1 + 0x70));\n    uVar6 = 0;\n    puVar3 = (undefined4 *)FUN_0014c820(uVar7,0x50);\n    *(undefined4 **)(param_1 + 0x70) = puVar3;\n    pvVar5 = __ptr;\n    if (puVar3 != (undefined4 *)0x0) {\n      do {\n        uVar2 = (*DAT_00196f88)(pvVar5,4);\n        *puVar3 = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);\n        puVar3[1] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);\n        *(undefined8 *)(puVar3 + 2) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);\n        *(undefined8 *)(puVar3 + 4) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);\n        *(undefined8 *)(puVar3 + 6) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);\n        *(undefined8 *)(puVar3 + 8) = uVar4;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);\n        puVar3[10] = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);\n        puVar3[0xb] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);\n        *(undefined8 *)(puVar3 + 0xc) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);\n        *(undefined8 *)(puVar3 + 0xe) = uVar4;\n        if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        puVar3 = puVar3 + 0x14;\n        pvVar5 = (void *)((long)pvVar5 + 0x28);\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }\n    if (param_2 == 0) {\n      uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(uVar4,uVar7);\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (declaration "void *pvVar5;" (primitive_type "void") (pointer_declarator "*pvVar5" (* "*") (identifier "pvVar5")) (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "bool bVar8;" (primitive_type "bool") (identifier "bVar8") (; ";")) (expression_statement "uVar6 = *(uint *)(param_1 + 0x60);" (assignment_expression "uVar6 = *(uint *)(param_1 + 0x60)" (identifier "uVar6") (= "=") (pointer_expression "*(uint *)(param_1 + 0x60)" (* "*") (cast_expression "(uint *)(param_1 + 0x60)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")"))))) (; ";")) (if_statement "if (param_2 == 0) {\n    uVar7 = *(uint *)(param_1 + 100);\n    bVar8 = uVar7 == 0;\n  }\n  else {\n    bVar8 = false;\n    uVar7 = 1;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar7 = *(uint *)(param_1 + 100);\n    bVar8 = uVar7 == 0;\n  }" ({ "{") (expression_statement "uVar7 = *(uint *)(param_1 + 100);" (assignment_expression "uVar7 = *(uint *)(param_1 + 100)" (identifier "uVar7") (= "=") (pointer_expression "*(uint *)(param_1 + 100)" (* "*") (cast_expression "(uint *)(param_1 + 100)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 100)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) () ")"))))) (; ";")) (expression_statement "bVar8 = uVar7 == 0;" (assignment_expression "bVar8 = uVar7 == 0" (identifier "bVar8") (= "=") (binary_expression "uVar7 == 0" (identifier "uVar7") (== "==") (number_literal "0"))) (; ";")) (} "}")) (else_clause "else {\n    bVar8 = false;\n    uVar7 = 1;\n  }" (else "else") (compound_statement "{\n    bVar8 = false;\n    uVar7 = 1;\n  }" ({ "{") (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" (identifier "bVar8") (= "=") (false "false")) (; ";")) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" (identifier "uVar7") (= "=") (number_literal "1")) (; ";")) (} "}")))) (if_statement "if (uVar6 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(uVar6 == 0)" (( "(") (binary_expression "uVar6 == 0" (identifier "uVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (bVar8) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(bVar8)" (( "(") (identifier "bVar8") () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (uVar6 < 0x28) {\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                      ,5);\n    error(uVar4);\n    return 0;\n  }" (if "if") (parenthesized_expression "(uVar6 < 0x28)" (( "(") (binary_expression "uVar6 < 0x28" (identifier "uVar6") (< "<") (number_literal "0x28")) () ")")) (compound_statement "{\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                      ,5);\n    error(uVar4);\n    return 0;\n  }" ({ "{") (if_statement "if (param_2 != 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                      ,5);" (assignment_expression "uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                      ,5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,\n                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                      ,5)" (identifier "dcgettext") (argument_list "(0,\n                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"\n                      ,5)" (( "(") (number_literal "0") (, ",") (string_literal ""The e_shentsize field in the ELF header is less than the size of an ELF section header\n"" (" """) (string_content "The e_shentsize field in the ELF header is less than the size of an ELF section header") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "error(uVar4);" (call_expression "error(uVar4)" (identifier "error") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (((param_2 & 1) == 0) && (0x28 < uVar6)) {\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                      ,5);\n    warn(uVar4);\n  }\n  else if (param_2 != 0) {\n    uVar4 = 0;\n    goto LAB_001156ac;\n  }" (if "if") (parenthesized_expression "(((param_2 & 1) == 0) && (0x28 < uVar6))" (( "(") (binary_expression "((param_2 & 1) == 0) && (0x28 < uVar6)" (parenthesized_expression "((param_2 & 1) == 0)" (( "(") (binary_expression "(param_2 & 1) == 0" (parenthesized_expression "(param_2 & 1)" (( "(") (binary_expression "param_2 & 1" (identifier "param_2") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(0x28 < uVar6)" (( "(") (binary_expression "0x28 < uVar6" (number_literal "0x28") (< "<") (identifier "uVar6")) () ")"))) () ")")) (compound_statement "{\n    uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                      ,5);\n    warn(uVar4);\n  }" ({ "{") (expression_statement "uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                      ,5);" (assignment_expression "uVar4 = dcgettext(0,\n                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                      ,5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,\n                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                      ,5)" (identifier "dcgettext") (argument_list "(0,\n                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"\n                      ,5)" (( "(") (number_literal "0") (, ",") (string_literal ""The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"" (" """) (string_content "The e_shentsize field in the ELF header is larger than the size of an ELF section header") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "warn(uVar4);" (call_expression "warn(uVar4)" (identifier "warn") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (} "}")) (else_clause "else if (param_2 != 0) {\n    uVar4 = 0;\n    goto LAB_001156ac;\n  }" (else "else") (if_statement "if (param_2 != 0) {\n    uVar4 = 0;\n    goto LAB_001156ac;\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = 0;\n    goto LAB_001156ac;\n  }" ({ "{") (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_001156ac;" (goto "goto") (statement_identifier "LAB_001156ac") (; ";")) (} "}"))))) (expression_statement "uVar4 = dcgettext(0,"section headers",5);" (assignment_expression "uVar4 = dcgettext(0,"section headers",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"section headers",5)" (identifier "dcgettext") (argument_list "(0,"section headers",5)" (( "(") (number_literal "0") (, ",") (string_literal ""section headers"" (" """) (string_content "section headers") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (labeled_statement "LAB_001156ac:\n  __ptr = (void *)FUN_001144a0(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,\n                               uVar7,uVar4);" (statement_identifier "LAB_001156ac") (: ":") (expression_statement "__ptr = (void *)FUN_001144a0(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,\n                               uVar7,uVar4);" (assignment_expression "__ptr = (void *)FUN_001144a0(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,\n                               uVar7,uVar4)" (identifier "__ptr") (= "=") (cast_expression "(void *)FUN_001144a0(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,\n                               uVar7,uVar4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001144a0(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,\n                               uVar7,uVar4)" (identifier "FUN_001144a0") (argument_list "(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,\n                               uVar7,uVar4)" (( "(") (number_literal "0") (, ",") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) (, ",") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) (, ",") (pointer_expression "*(undefined8 *)(param_1 + 0x38)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x38)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (, ",") (identifier "uVar6") (, ",") (identifier "uVar7") (, ",") (identifier "uVar4") () ")"))))) (; ";"))) (if_statement "if (__ptr != (void *)0x0) {\n    free(*(void **)(param_1 + 0x70));\n    uVar6 = 0;\n    puVar3 = (undefined4 *)FUN_0014c820(uVar7,0x50);\n    *(undefined4 **)(param_1 + 0x70) = puVar3;\n    pvVar5 = __ptr;\n    if (puVar3 != (undefined4 *)0x0) {\n      do {\n        uVar2 = (*DAT_00196f88)(pvVar5,4);\n        *puVar3 = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);\n        puVar3[1] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);\n        *(undefined8 *)(puVar3 + 2) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);\n        *(undefined8 *)(puVar3 + 4) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);\n        *(undefined8 *)(puVar3 + 6) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);\n        *(undefined8 *)(puVar3 + 8) = uVar4;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);\n        puVar3[10] = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);\n        puVar3[0xb] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);\n        *(undefined8 *)(puVar3 + 0xc) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);\n        *(undefined8 *)(puVar3 + 0xe) = uVar4;\n        if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        puVar3 = puVar3 + 0x14;\n        pvVar5 = (void *)((long)pvVar5 + 0x28);\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }\n    if (param_2 == 0) {\n      uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(uVar4,uVar7);\n    }\n  }" (if "if") (parenthesized_expression "(__ptr != (void *)0x0)" (( "(") (binary_expression "__ptr != (void *)0x0" (identifier "__ptr") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    free(*(void **)(param_1 + 0x70));\n    uVar6 = 0;\n    puVar3 = (undefined4 *)FUN_0014c820(uVar7,0x50);\n    *(undefined4 **)(param_1 + 0x70) = puVar3;\n    pvVar5 = __ptr;\n    if (puVar3 != (undefined4 *)0x0) {\n      do {\n        uVar2 = (*DAT_00196f88)(pvVar5,4);\n        *puVar3 = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);\n        puVar3[1] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);\n        *(undefined8 *)(puVar3 + 2) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);\n        *(undefined8 *)(puVar3 + 4) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);\n        *(undefined8 *)(puVar3 + 6) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);\n        *(undefined8 *)(puVar3 + 8) = uVar4;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);\n        puVar3[10] = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);\n        puVar3[0xb] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);\n        *(undefined8 *)(puVar3 + 0xc) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);\n        *(undefined8 *)(puVar3 + 0xe) = uVar4;\n        if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        puVar3 = puVar3 + 0x14;\n        pvVar5 = (void *)((long)pvVar5 + 0x28);\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }\n    if (param_2 == 0) {\n      uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(uVar4,uVar7);\n    }\n  }" ({ "{") (expression_statement "free(*(void **)(param_1 + 0x70));" (call_expression "free(*(void **)(param_1 + 0x70))" (identifier "free") (argument_list "(*(void **)(param_1 + 0x70))" (( "(") (pointer_expression "*(void **)(param_1 + 0x70)" (* "*") (cast_expression "(void **)(param_1 + 0x70)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) () ")"))) (; ";")) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3 = (undefined4 *)FUN_0014c820(uVar7,0x50);" (assignment_expression "puVar3 = (undefined4 *)FUN_0014c820(uVar7,0x50)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)FUN_0014c820(uVar7,0x50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0014c820(uVar7,0x50)" (identifier "FUN_0014c820") (argument_list "(uVar7,0x50)" (( "(") (identifier "uVar7") (, ",") (number_literal "0x50") () ")"))))) (; ";")) (expression_statement "*(undefined4 **)(param_1 + 0x70) = puVar3;" (assignment_expression "*(undefined4 **)(param_1 + 0x70) = puVar3" (pointer_expression "*(undefined4 **)(param_1 + 0x70)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x70)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) (= "=") (identifier "puVar3")) (; ";")) (expression_statement "pvVar5 = __ptr;" (assignment_expression "pvVar5 = __ptr" (identifier "pvVar5") (= "=") (identifier "__ptr")) (; ";")) (if_statement "if (puVar3 != (undefined4 *)0x0) {\n      do {\n        uVar2 = (*DAT_00196f88)(pvVar5,4);\n        *puVar3 = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);\n        puVar3[1] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);\n        *(undefined8 *)(puVar3 + 2) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);\n        *(undefined8 *)(puVar3 + 4) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);\n        *(undefined8 *)(puVar3 + 6) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);\n        *(undefined8 *)(puVar3 + 8) = uVar4;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);\n        puVar3[10] = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);\n        puVar3[0xb] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);\n        *(undefined8 *)(puVar3 + 0xc) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);\n        *(undefined8 *)(puVar3 + 0xe) = uVar4;\n        if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        puVar3 = puVar3 + 0x14;\n        pvVar5 = (void *)((long)pvVar5 + 0x28);\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }" (if "if") (parenthesized_expression "(puVar3 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar3 != (undefined4 *)0x0" (identifier "puVar3") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      do {\n        uVar2 = (*DAT_00196f88)(pvVar5,4);\n        *puVar3 = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);\n        puVar3[1] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);\n        *(undefined8 *)(puVar3 + 2) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);\n        *(undefined8 *)(puVar3 + 4) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);\n        *(undefined8 *)(puVar3 + 6) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);\n        *(undefined8 *)(puVar3 + 8) = uVar4;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);\n        puVar3[10] = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);\n        puVar3[0xb] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);\n        *(undefined8 *)(puVar3 + 0xc) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);\n        *(undefined8 *)(puVar3 + 0xe) = uVar4;\n        if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        puVar3 = puVar3 + 0x14;\n        pvVar5 = (void *)((long)pvVar5 + 0x28);\n      } while (uVar6 < uVar7);\n      free(__ptr);\n      return 1;\n    }" ({ "{") (do_statement "do {\n        uVar2 = (*DAT_00196f88)(pvVar5,4);\n        *puVar3 = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);\n        puVar3[1] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);\n        *(undefined8 *)(puVar3 + 2) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);\n        *(undefined8 *)(puVar3 + 4) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);\n        *(undefined8 *)(puVar3 + 6) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);\n        *(undefined8 *)(puVar3 + 8) = uVar4;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);\n        puVar3[10] = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);\n        puVar3[0xb] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);\n        *(undefined8 *)(puVar3 + 0xc) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);\n        *(undefined8 *)(puVar3 + 0xe) = uVar4;\n        if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        puVar3 = puVar3 + 0x14;\n        pvVar5 = (void *)((long)pvVar5 + 0x28);\n      } while (uVar6 < uVar7);" (do "do") (compound_statement "{\n        uVar2 = (*DAT_00196f88)(pvVar5,4);\n        *puVar3 = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);\n        puVar3[1] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);\n        *(undefined8 *)(puVar3 + 2) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);\n        *(undefined8 *)(puVar3 + 4) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);\n        *(undefined8 *)(puVar3 + 6) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);\n        *(undefined8 *)(puVar3 + 8) = uVar4;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);\n        puVar3[10] = uVar2;\n        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);\n        puVar3[0xb] = uVar2;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);\n        *(undefined8 *)(puVar3 + 0xc) = uVar4;\n        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);\n        *(undefined8 *)(puVar3 + 0xe) = uVar4;\n        if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }\n        uVar6 = uVar6 + 1;\n        puVar3 = puVar3 + 0x14;\n        pvVar5 = (void *)((long)pvVar5 + 0x28);\n      }" ({ "{") (expression_statement "uVar2 = (*DAT_00196f88)(pvVar5,4);" (assignment_expression "uVar2 = (*DAT_00196f88)(pvVar5,4)" (identifier "uVar2") (= "=") (call_expression "(*DAT_00196f88)(pvVar5,4)" (parenthesized_expression "(*DAT_00196f88)" (( "(") (pointer_expression "*DAT_00196f88" (* "*") (identifier "DAT_00196f88")) () ")")) (argument_list "(pvVar5,4)" (( "(") (identifier "pvVar5") (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "*puVar3 = uVar2;" (assignment_expression "*puVar3 = uVar2" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);" (assignment_expression "uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4)" (identifier "uVar2") (= "=") (call_expression "(*DAT_00196f88)((long)pvVar5 + 4,4)" (parenthesized_expression "(*DAT_00196f88)" (( "(") (pointer_expression "*DAT_00196f88" (* "*") (identifier "DAT_00196f88")) () ")")) (argument_list "((long)pvVar5 + 4,4)" (( "(") (binary_expression "(long)pvVar5 + 4" (cast_expression "(long)pvVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pvVar5")) (+ "+") (number_literal "4")) (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "puVar3[1] = uVar2;" (assignment_expression "puVar3[1] = uVar2" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);" (assignment_expression "uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4)" (identifier "uVar4") (= "=") (call_expression "(*DAT_00196f88)((long)pvVar5 + 8,4)" (parenthesized_expression "(*DAT_00196f88)" (( "(") (pointer_expression "*DAT_00196f88" (* "*") (identifier "DAT_00196f88")) () ")")) (argument_list "((long)pvVar5 + 8,4)" (( "(") (binary_expression "(long)pvVar5 + 8" (cast_expression "(long)pvVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pvVar5")) (+ "+") (number_literal "8")) (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "*(undefined8 *)(puVar3 + 2) = uVar4;" (assignment_expression "*(undefined8 *)(puVar3 + 2) = uVar4" (pointer_expression "*(undefined8 *)(puVar3 + 2)" (* "*") (cast_expression "(undefined8 *)(puVar3 + 2)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 2)" (( "(") (binary_expression "puVar3 + 2" (identifier "puVar3") (+ "+") (number_literal "2")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);" (assignment_expression "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4)" (identifier "uVar4") (= "=") (call_expression "(*DAT_00196f88)((long)pvVar5 + 0xc,4)" (parenthesized_expression "(*DAT_00196f88)" (( "(") (pointer_expression "*DAT_00196f88" (* "*") (identifier "DAT_00196f88")) () ")")) (argument_list "((long)pvVar5 + 0xc,4)" (( "(") (binary_expression "(long)pvVar5 + 0xc" (cast_expression "(long)pvVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pvVar5")) (+ "+") (number_literal "0xc")) (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "*(undefined8 *)(puVar3 + 4) = uVar4;" (assignment_expression "*(undefined8 *)(puVar3 + 4) = uVar4" (pointer_expression "*(undefined8 *)(puVar3 + 4)" (* "*") (cast_expression "(undefined8 *)(puVar3 + 4)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 4)" (( "(") (binary_expression "puVar3 + 4" (identifier "puVar3") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);" (assignment_expression "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4)" (identifier "uVar4") (= "=") (call_expression "(*DAT_00196f88)((long)pvVar5 + 0x10,4)" (parenthesized_expression "(*DAT_00196f88)" (( "(") (pointer_expression "*DAT_00196f88" (* "*") (identifier "DAT_00196f88")) () ")")) (argument_list "((long)pvVar5 + 0x10,4)" (( "(") (binary_expression "(long)pvVar5 + 0x10" (cast_expression "(long)pvVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pvVar5")) (+ "+") (number_literal "0x10")) (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "*(undefined8 *)(puVar3 + 6) = uVar4;" (assignment_expression "*(undefined8 *)(puVar3 + 6) = uVar4" (pointer_expression "*(undefined8 *)(puVar3 + 6)" (* "*") (cast_expression "(undefined8 *)(puVar3 + 6)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 6)" (( "(") (binary_expression "puVar3 + 6" (identifier "puVar3") (+ "+") (number_literal "6")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);" (assignment_expression "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4)" (identifier "uVar4") (= "=") (call_expression "(*DAT_00196f88)((long)pvVar5 + 0x14,4)" (parenthesized_expression "(*DAT_00196f88)" (( "(") (pointer_expression "*DAT_00196f88" (* "*") (identifier "DAT_00196f88")) () ")")) (argument_list "((long)pvVar5 + 0x14,4)" (( "(") (binary_expression "(long)pvVar5 + 0x14" (cast_expression "(long)pvVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pvVar5")) (+ "+") (number_literal "0x14")) (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "*(undefined8 *)(puVar3 + 8) = uVar4;" (assignment_expression "*(undefined8 *)(puVar3 + 8) = uVar4" (pointer_expression "*(undefined8 *)(puVar3 + 8)" (* "*") (cast_expression "(undefined8 *)(puVar3 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 8)" (( "(") (binary_expression "puVar3 + 8" (identifier "puVar3") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);" (assignment_expression "uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4)" (identifier "uVar2") (= "=") (call_expression "(*DAT_00196f88)((long)pvVar5 + 0x18,4)" (parenthesized_expression "(*DAT_00196f88)" (( "(") (pointer_expression "*DAT_00196f88" (* "*") (identifier "DAT_00196f88")) () ")")) (argument_list "((long)pvVar5 + 0x18,4)" (( "(") (binary_expression "(long)pvVar5 + 0x18" (cast_expression "(long)pvVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pvVar5")) (+ "+") (number_literal "0x18")) (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "puVar3[10] = uVar2;" (assignment_expression "puVar3[10] = uVar2" (subscript_expression "puVar3[10]" (identifier "puVar3") ([ "[") (number_literal "10") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);" (assignment_expression "uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4)" (identifier "uVar2") (= "=") (call_expression "(*DAT_00196f88)((long)pvVar5 + 0x1c,4)" (parenthesized_expression "(*DAT_00196f88)" (( "(") (pointer_expression "*DAT_00196f88" (* "*") (identifier "DAT_00196f88")) () ")")) (argument_list "((long)pvVar5 + 0x1c,4)" (( "(") (binary_expression "(long)pvVar5 + 0x1c" (cast_expression "(long)pvVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pvVar5")) (+ "+") (number_literal "0x1c")) (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "puVar3[0xb] = uVar2;" (assignment_expression "puVar3[0xb] = uVar2" (subscript_expression "puVar3[0xb]" (identifier "puVar3") ([ "[") (number_literal "0xb") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);" (assignment_expression "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4)" (identifier "uVar4") (= "=") (call_expression "(*DAT_00196f88)((long)pvVar5 + 0x20,4)" (parenthesized_expression "(*DAT_00196f88)" (( "(") (pointer_expression "*DAT_00196f88" (* "*") (identifier "DAT_00196f88")) () ")")) (argument_list "((long)pvVar5 + 0x20,4)" (( "(") (binary_expression "(long)pvVar5 + 0x20" (cast_expression "(long)pvVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pvVar5")) (+ "+") (number_literal "0x20")) (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "*(undefined8 *)(puVar3 + 0xc) = uVar4;" (assignment_expression "*(undefined8 *)(puVar3 + 0xc) = uVar4" (pointer_expression "*(undefined8 *)(puVar3 + 0xc)" (* "*") (cast_expression "(undefined8 *)(puVar3 + 0xc)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0xc)" (( "(") (binary_expression "puVar3 + 0xc" (identifier "puVar3") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);" (assignment_expression "uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4)" (identifier "uVar4") (= "=") (call_expression "(*DAT_00196f88)((long)pvVar5 + 0x24,4)" (parenthesized_expression "(*DAT_00196f88)" (( "(") (pointer_expression "*DAT_00196f88" (* "*") (identifier "DAT_00196f88")) () ")")) (argument_list "((long)pvVar5 + 0x24,4)" (( "(") (binary_expression "(long)pvVar5 + 0x24" (cast_expression "(long)pvVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pvVar5")) (+ "+") (number_literal "0x24")) (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "*(undefined8 *)(puVar3 + 0xe) = uVar4;" (assignment_expression "*(undefined8 *)(puVar3 + 0xe) = uVar4" (pointer_expression "*(undefined8 *)(puVar3 + 0xe)" (* "*") (cast_expression "(undefined8 *)(puVar3 + 0xe)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0xe)" (( "(") (binary_expression "puVar3 + 0xe" (identifier "puVar3") (+ "+") (number_literal "0xe")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (if_statement "if (param_2 == 0) {\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          uVar1 = puVar3[10];\n          if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }\n        }" ({ "{") (expression_statement "uVar1 = puVar3[10];" (assignment_expression "uVar1 = puVar3[10]" (identifier "uVar1") (= "=") (subscript_expression "puVar3[10]" (identifier "puVar3") ([ "[") (number_literal "10") (] "]"))) (; ";")) (if_statement "if (uVar7 < uVar1) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }" (if "if") (parenthesized_expression "(uVar7 < uVar1)" (( "(") (binary_expression "uVar7 < uVar1" (identifier "uVar7") (< "<") (identifier "uVar1")) () ")")) (compound_statement "{\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }" ({ "{") (expression_statement "uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);" (assignment_expression "uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5)" (identifier "dcgettext") (argument_list "(0,"Section %u has an out of range sh_link value of %u\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Section %u has an out of range sh_link value of %u\n"" (" """) (string_content "Section %u has an out of range sh_link value of %u") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "warn(uVar4,uVar6,uVar1);" (call_expression "warn(uVar4,uVar6,uVar1)" (identifier "warn") (argument_list "(uVar4,uVar6,uVar1)" (( "(") (identifier "uVar4") (, ",") (identifier "uVar6") (, ",") (identifier "uVar1") () ")"))) (; ";")) (} "}"))) (if_statement "if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }" (if "if") (parenthesized_expression "(((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1))" (( "(") (binary_expression "((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)" (parenthesized_expression "((*(byte *)(puVar3 + 2) & 0x40) != 0)" (( "(") (binary_expression "(*(byte *)(puVar3 + 2) & 0x40) != 0" (parenthesized_expression "(*(byte *)(puVar3 + 2) & 0x40)" (( "(") (binary_expression "*(byte *)(puVar3 + 2) & 0x40" (pointer_expression "*(byte *)(puVar3 + 2)" (* "*") (cast_expression "(byte *)(puVar3 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 2)" (( "(") (binary_expression "puVar3 + 2" (identifier "puVar3") (+ "+") (number_literal "2")) () ")")))) (& "&") (number_literal "0x40")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar1 = puVar3[0xb], uVar7 < uVar1)" (( "(") (comma_expression "uVar1 = puVar3[0xb], uVar7 < uVar1" (assignment_expression "uVar1 = puVar3[0xb]" (identifier "uVar1") (= "=") (subscript_expression "puVar3[0xb]" (identifier "puVar3") ([ "[") (number_literal "0xb") (] "]"))) (, ",") (binary_expression "uVar7 < uVar1" (identifier "uVar7") (< "<") (identifier "uVar1"))) () ")"))) () ")")) (compound_statement "{\n            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);\n            warn(uVar4,uVar6,uVar1);\n          }" ({ "{") (expression_statement "uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);" (assignment_expression "uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5)" (identifier "dcgettext") (argument_list "(0,"Section %u has an out of range sh_info value of %u\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Section %u has an out of range sh_info value of %u\n"" (" """) (string_content "Section %u has an out of range sh_info value of %u") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "warn(uVar4,uVar6,uVar1);" (call_expression "warn(uVar4,uVar6,uVar1)" (identifier "warn") (argument_list "(uVar4,uVar6,uVar1)" (( "(") (identifier "uVar4") (, ",") (identifier "uVar6") (, ",") (identifier "uVar1") () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" (identifier "uVar6") (= "=") (binary_expression "uVar6 + 1" (identifier "uVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar3 = puVar3 + 0x14;" (assignment_expression "puVar3 = puVar3 + 0x14" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 0x14" (identifier "puVar3") (+ "+") (number_literal "0x14"))) (; ";")) (expression_statement "pvVar5 = (void *)((long)pvVar5 + 0x28);" (assignment_expression "pvVar5 = (void *)((long)pvVar5 + 0x28)" (identifier "pvVar5") (= "=") (cast_expression "(void *)((long)pvVar5 + 0x28)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)pvVar5 + 0x28)" (( "(") (binary_expression "(long)pvVar5 + 0x28" (cast_expression "(long)pvVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pvVar5")) (+ "+") (number_literal "0x28")) () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar6 < uVar7)" (( "(") (binary_expression "uVar6 < uVar7" (identifier "uVar6") (< "<") (identifier "uVar7")) () ")")) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (param_2 == 0) {\n      uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(uVar4,uVar7);\n    }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5);\n      error(uVar4,uVar7);\n    }" ({ "{") (expression_statement "uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5);" (assignment_expression "uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"Out of memory reading %u section headers\n",5)" (identifier "dcgettext") (argument_list "(0,"Out of memory reading %u section headers\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Out of memory reading %u section headers\n"" (" """) (string_content "Out of memory reading %u section headers") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "error(uVar4,uVar7);" (call_expression "error(uVar4,uVar7)" (identifier "error") (argument_list "(uVar4,uVar7)" (( "(") (identifier "uVar4") (, ",") (identifier "uVar7") () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1 function_1(type_2 *filedata,type_1 var_1)

{
  type_3 var_13;
  type_4 *var_8;
  type_5 *var_11;
  type_6 eVar3;
  char *pcVar4;
  type_2 *filedata_1;
  type_4 *var_12;
  type_3 var_3;
  type_3 var_2;
  bool bVar8;
  
  var_3 = (filedata->file_header).e_shentsize;
  if (var_1 == 0) {
    var_2 = (filedata->file_header).e_shnum;
    bVar8 = var_2 == 0;
  }
  else {
    bVar8 = false;
    var_2 = 1;
  }
  if (var_3 == 0) {
    return 0;
  }
  if (bVar8) {
    return 0;
  }
  if (var_3 < 0x28) {
    if (var_1 != 0) {
      return 0;
    }
    pcVar4 = (char *)var_4(0,
                               "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"
                               ,5);
    var_5(pcVar4);
    return 0;
  }
  if (((var_1 & 1U) == 0) && (0x28 < var_3)) {
    pcVar4 = (char *)var_4(0,
                               "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"
                               ,5);
    var_6(pcVar4);
  }
  else if (var_1 != 0) {
    filedata_1 = (type_2 *)0x0;
    goto LAB_001156ac;
  }
  filedata_1 = (type_2 *)var_4(0,"section headers",5);
LAB_001156ac:
  var_8 = (type_4 *)var_7((void *)0x0,(type_2 *)&filedata->handle,(type_7)&filedata->file_size,
                            (filedata->file_header).e_shoff,(type_7)var_3,(char *)(type_7)var_2,
                            filedata_1);
  if (var_8 != (type_4 *)0x0) {
    var_9(filedata->section_headers);
    var_3 = 0;
    var_11 = (type_5 *)var_10((size_t)(type_7)var_2,0x50);
    filedata->section_headers = var_11;
    var_12 = var_8;
    if (var_11 != (type_5 *)0x0) {
      do {
        eVar3 = (*byte_get)(var_12,4);
        var_11->sh_name = (type_3)eVar3;
        eVar3 = (*byte_get)(var_12 + 4,4);
        var_11->sh_type = (type_3)eVar3;
        eVar3 = (*byte_get)(var_12 + 8,4);
        var_11->sh_flags = eVar3;
        eVar3 = (*byte_get)(var_12 + 0xc,4);
        var_11->sh_addr = eVar3;
        eVar3 = (*byte_get)(var_12 + 0x10,4);
        var_11->sh_offset = eVar3;
        eVar3 = (*byte_get)(var_12 + 0x14,4);
        var_11->sh_size = eVar3;
        eVar3 = (*byte_get)(var_12 + 0x18,4);
        var_11->sh_link = (type_3)eVar3;
        eVar3 = (*byte_get)(var_12 + 0x1c,4);
        var_11->sh_info = (type_3)eVar3;
        eVar3 = (*byte_get)(var_12 + 0x20,4);
        var_11->sh_addralign = eVar3;
        eVar3 = (*byte_get)(var_12 + 0x24,4);
        var_11->sh_entsize = eVar3;
        if (var_1 == 0) {
          var_13 = var_11->sh_link;
          if (var_2 < var_13) {
            pcVar4 = (char *)var_4(0,"Section %u has an out of range sh_link value of %u\n",5);
            var_6(pcVar4,(type_7)var_3,(type_7)var_13);
          }
          if (((var_11->sh_flags & 0x40) != 0) && (var_13 = var_11->sh_info, var_2 < var_13)) {
            pcVar4 = (char *)var_4(0,"Section %u has an out of range sh_info value of %u\n",5);
            var_6(pcVar4,(type_7)var_3,(type_7)var_13);
          }
        }
        var_3 = var_3 + 1;
        var_11 = var_11 + 1;
        var_12 = var_12 + 0x28;
      } while (var_3 < var_2);
      var_9(var_8);
      return 1;
    }
    if (var_1 == 0) {
      pcVar4 = (char *)var_4(0,"Out of memory reading %u section headers\n",5);
      var_5(pcVar4,(type_7)var_2);
    }
  }
  return 0;
}


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

undefined8 MASKED(long param_1,uint param_2)

{
  uint uVar1;
  undefined4 uVar2;
  void *__ptr;
  undefined4 *puVar3;
  undefined8 uVar4;
  void *pvVar5;
  uint uVar6;
  uint uVar7;
  bool bVar8;
  
  uVar6 = *(uint *)(param_1 + 0x60);
  if (param_2 == 0) {
    uVar7 = *(uint *)(param_1 + 100);
    bVar8 = uVar7 == 0;
  }
  else {
    bVar8 = false;
    uVar7 = 1;
  }
  if (uVar6 == 0) {
    return 0;
  }
  if (bVar8) {
    return 0;
  }
  if (uVar6 < 0x28) {
    if (param_2 != 0) {
      return 0;
    }
    uVar4 = dcgettext(0,
                      "The e_shentsize field in the ELF header is less than the size of an ELF section header\n"
                      ,5);
    error(uVar4);
    return 0;
  }
  if (((param_2 & 1) == 0) && (0x28 < uVar6)) {
    uVar4 = dcgettext(0,
                      "The e_shentsize field in the ELF header is larger than the size of an ELF section header\n"
                      ,5);
    warn(uVar4);
  }
  else if (param_2 != 0) {
    uVar4 = 0;
    goto LAB_001156ac;
  }
  uVar4 = dcgettext(0,"section headers",5);
LAB_001156ac:
  __ptr = (void *)FUN_001144a0(0,param_1 + 8,param_1 + 0x10,*(undefined8 *)(param_1 + 0x38),uVar6,
                               uVar7,uVar4);
  if (__ptr != (void *)0x0) {
    free(*(void **)(param_1 + 0x70));
    uVar6 = 0;
    puVar3 = (undefined4 *)FUN_0014c820(uVar7,0x50);
    *(undefined4 **)(param_1 + 0x70) = puVar3;
    pvVar5 = __ptr;
    if (puVar3 != (undefined4 *)0x0) {
      do {
        uVar2 = (*DAT_00196f88)(pvVar5,4);
        *puVar3 = uVar2;
        uVar2 = (*DAT_00196f88)((long)pvVar5 + 4,4);
        puVar3[1] = uVar2;
        uVar4 = (*DAT_00196f88)((long)pvVar5 + 8,4);
        *(undefined8 *)(puVar3 + 2) = uVar4;
        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0xc,4);
        *(undefined8 *)(puVar3 + 4) = uVar4;
        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x10,4);
        *(undefined8 *)(puVar3 + 6) = uVar4;
        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x14,4);
        *(undefined8 *)(puVar3 + 8) = uVar4;
        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x18,4);
        puVar3[10] = uVar2;
        uVar2 = (*DAT_00196f88)((long)pvVar5 + 0x1c,4);
        puVar3[0xb] = uVar2;
        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x20,4);
        *(undefined8 *)(puVar3 + 0xc) = uVar4;
        uVar4 = (*DAT_00196f88)((long)pvVar5 + 0x24,4);
        *(undefined8 *)(puVar3 + 0xe) = uVar4;
        if (param_2 == 0) {
          uVar1 = puVar3[10];
          if (uVar7 < uVar1) {
            uVar4 = dcgettext(0,"Section %u has an out of range sh_link value of %u\n",5);
            warn(uVar4,uVar6,uVar1);
          }
          if (((*(byte *)(puVar3 + 2) & 0x40) != 0) && (uVar1 = puVar3[0xb], uVar7 < uVar1)) {
            uVar4 = dcgettext(0,"Section %u has an out of range sh_info value of %u\n",5);
            warn(uVar4,uVar6,uVar1);
          }
        }
        uVar6 = uVar6 + 1;
        puVar3 = puVar3 + 0x14;
        pvVar5 = (void *)((long)pvVar5 + 0x28);
      } while (uVar6 < uVar7);
      free(__ptr);
      return 1;
    }
    if (param_2 == 0) {
      uVar4 = dcgettext(0,"Out of memory reading %u section headers\n",5);
      error(uVar4,uVar7);
    }
  }
  return 0;
}

