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

bfd_vma * __regparm3 get_dynamic_data(Filedata *filedata,bfd_size_type number,uint ent_size)

{
  uint uVar1;
  longlong lVar2;
  void *__ptr;
  size_t sVar3;
  bfd_vma *pbVar4;
  char *pcVar5;
  char *pcVar6;
  int in_ECX;
  uint uVar7;
  bfd_vma *pbVar8;
  uchar *puVar9;
  bool bVar10;
  elf_vma eVar11;
  bfd_vma in_stack_ffffffc4;
  
  if (in_ECX == 0) {
    lVar2 = (ulonglong)ent_size * (number & 0xffffffff);
    uVar7 = (uint)((ulonglong)lVar2 >> 0x20);
    uVar1 = *(uint *)((int)&filedata->file_size + 4);
    if (uVar1 < uVar7 || uVar1 - uVar7 < (uint)((uint)filedata->file_size < (uint)lVar2)) {
      pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4);
      pcVar5 = "Invalid number of dynamic entries: %s\n";
    }
    else {
      __ptr = cmalloc(ent_size,(size_t)number);
      if (__ptr != (void *)0x0) {
        sVar3 = fread(__ptr,(size_t)number,ent_size,(FILE *)filedata->handle);
        if (sVar3 != ent_size) {
          pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4);
          pcVar6 = (char *)dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);
          error(pcVar6,pcVar5);
          free(__ptr);
          return (bfd_vma *)0x0;
        }
        pbVar4 = (bfd_vma *)cmalloc(ent_size,8);
        if (pbVar4 == (bfd_vma *)0x0) {
          pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4);
          pcVar6 = (char *)dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);
          error(pcVar6,pcVar5);
          free(__ptr);
        }
        else {
          if (ent_size != 0) {
            pbVar8 = pbVar4 + (ent_size - 1);
            puVar9 = (uchar *)((size_t)number * (ent_size - 1) + (int)__ptr);
            do {
              eVar11 = (*byte_get)(puVar9,(size_t)number);
              *pbVar8 = eVar11;
              bVar10 = pbVar8 != pbVar4;
              pbVar8 = pbVar8 + -1;
              puVar9 = puVar9 + -(size_t)number;
            } while (bVar10);
          }
          free(__ptr);
        }
        return pbVar4;
      }
      pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4);
      pcVar5 = "Out of memory reading %s dynamic entries\n";
    }
    number._0_4_ = 5;
    pcVar5 = (char *)dcgettext(0,pcVar5,5);
  }
  else {
    pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4);
    pcVar5 = (char *)dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5);
  }
  error(pcVar5,pcVar6,(size_t)number);
  return (bfd_vma *)0x0;
}



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

undefined8 * __regparm3 FUN_0001e0f0(int param_1,uint param_2,int param_3,uint param_4)

{
  void *__ptr;
  size_t sVar1;
  undefined8 *puVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  uint uVar5;
  undefined8 *puVar6;
  void *pvVar7;
  bool bVar8;
  undefined8 uVar9;
  char *pcVar10;
  
  if (param_3 == 0) {
    uVar5 = (uint)((ulonglong)param_2 * (ulonglong)param_4 >> 0x20);
    if (*(uint *)(param_1 + 0xc) < uVar5 ||
        *(uint *)(param_1 + 0xc) - uVar5 <
        (uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))) {
      uVar4 = FUN_0001bf20();
      pcVar10 = "Invalid number of dynamic entries: %s\n";
    }
    else {
      __ptr = (void *)FUN_0005da30(param_2,param_4);
      if (__ptr != (void *)0x0) {
        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));
        if (sVar1 != param_2) {
          uVar3 = FUN_0001bf20();
          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);
          error(uVar4,uVar3);
          free(__ptr);
          return (undefined8 *)0x0;
        }
        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);
        if (puVar2 == (undefined8 *)0x0) {
          uVar3 = FUN_0001bf20();
          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);
          error(uVar4,uVar3);
          free(__ptr);
        }
        else {
          if (param_2 != 0) {
            puVar6 = puVar2 + (param_2 - 1);
            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);
            do {
              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);
              *puVar6 = uVar9;
              bVar8 = puVar6 != puVar2;
              puVar6 = puVar6 + -1;
              pvVar7 = (void *)((int)pvVar7 - param_4);
            } while (bVar8);
          }
          free(__ptr);
        }
        return puVar2;
      }
      uVar4 = FUN_0001bf20();
      pcVar10 = "Out of memory reading %s dynamic entries\n";
    }
    param_4 = 5;
    uVar3 = dcgettext(0,pcVar10,5);
  }
  else {
    uVar4 = FUN_0001bf20();
    uVar3 = dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5);
  }
  error(uVar3,uVar4,param_4);
  return (undefined8 *)0x0;
}


PUSH EBP
MOV EBP,ECX
PUSH EDI
MOV EDI,EDX
PUSH ESI
CALL 0x0004ab81
ADD ESI,0x95f04
PUSH EBX
SUB ESP,0x2c
MOV dword ptr [ESP + 0xc],EDX
MOV dword ptr [ESP + 0x10],ESI
MOV ESI,EAX
TEST ECX,ECX
JNZ 0x0001e270
MOV EAX,EDX
MUL dword ptr [ESP + 0x40]
MOV ECX,EDX
MOV EDX,EAX
MOV EAX,dword ptr [ESI + 0xc]
CMP dword ptr [ESI + 0x8],EDX
SBB EAX,ECX
JC 0x0001e2b8
MOV dword ptr [ESP + 0x18],EDX
SUB ESP,0x8
MOV dword ptr [ESP + 0x24],ECX
PUSH dword ptr [ESP + 0x48]
PUSH EDI
MOV EBX,dword ptr [ESP + 0x20]
CALL 0x0005da30
MOV dword ptr [ESP + 0x24],EAX
ADD ESP,0x10
TEST EAX,EAX
MOV EDX,dword ptr [ESP + 0x18]
MOV ECX,dword ptr [ESP + 0x1c]
JZ 0x0001e2f0
MOV dword ptr [ESP + 0x18],EDX
MOV dword ptr [ESP + 0x1c],ECX
PUSH dword ptr [ESI + 0x4]
PUSH EDI
PUSH dword ptr [ESP + 0x48]
PUSH dword ptr [ESP + 0x20]
MOV EBX,dword ptr [ESP + 0x20]
CALL 0x00013180
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x18]
MOV ECX,dword ptr [ESP + 0x1c]
CMP EAX,EDI
JNZ 0x0001e220
SUB ESP,0x8
PUSH 0x8
PUSH EDI
MOV EBX,dword ptr [ESP + 0x20]
CALL 0x0005da30
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x0001e317
MOV EBP,dword ptr [ESP + 0xc]
MOV EAX,EDI
ADD EAX,-0x1
TEST EBP,EBP
JZ 0x0001e201
MOV EDI,dword ptr [ESP + 0x40]
LEA EBX,[ESI + EAX*0x8]
MOV dword ptr [ESP + 0xc],ESI
IMUL EDI,EAX
MOV EAX,dword ptr [ESP + 0x10]
ADD EDI,dword ptr [ESP + 0x14]
MOV ESI,EDI
MOV EDI,dword ptr [ESP + 0x40]
LEA EBP,[EAX + 0x5dd4]
JMP 0x0001e1e2
MOV EBX,EAX
SUB ESP,0x8
PUSH EDI
PUSH ESI
SUB ESI,EDI
CALL dword ptr [EBP]
MOV dword ptr [EBX],EAX
LEA EAX,[EBX + -0x8]
ADD ESP,0x10
MOV dword ptr [EBX + 0x4],EDX
CMP EBX,dword ptr [ESP + 0xc]
JNZ 0x0001e1e0
MOV ESI,dword ptr [ESP + 0xc]
SUB ESP,0xc
PUSH dword ptr [ESP + 0x20]
MOV EBX,dword ptr [ESP + 0x20]
CALL 0x000130a0
ADD ESP,0x10
ADD ESP,0x2c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDI,dword ptr [ESP + 0x10]
LEA EAX,[EDI + 0xfffda680]
MOV EBX,EDI
CALL 0x0001bf20
SUB ESP,0x4
MOV ESI,EAX
LEA EAX,[EDI + 0xfffccb50]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000130f0
POP EDX
POP ECX
PUSH ESI
PUSH EAX
CALL 0x000666b0
POP ESI
PUSH dword ptr [ESP + 0x20]
XOR ESI,ESI
CALL 0x000130a0
ADD ESP,0x10
MOV EAX,ESI
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDI,dword ptr [ESP + 0x10]
LEA EAX,[EDI + 0xfffda680]
MOV EBX,EDI
CALL 0x0001bf20
SUB ESP,0x4
MOV ESI,EAX
LEA EAX,[EDI + 0xfffccac0]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000130f0
ADD ESP,0xc
PUSH dword ptr [ESP + 0x44]
PUSH ESI
XOR ESI,ESI
PUSH EAX
CALL 0x000666b0
ADD ESP,0x10
MOV EAX,ESI
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,EDI
MOV EDI,dword ptr [ESP + 0x10]
MOV ECX,EBP
LEA EAX,[EDI + 0xfffda680]
MOV EBX,EDI
CALL 0x0001bf20
SUB ESP,0x4
MOV ESI,EAX
LEA EAX,[EDI + 0xfffccafc]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000130f0
POP EDI
POP EBP
JMP 0x0001e29d
MOV EDX,EDI
MOV EDI,dword ptr [ESP + 0x10]
MOV ECX,EBP
LEA EAX,[EDI + 0xfffda680]
MOV EBX,EDI
CALL 0x0001bf20
SUB ESP,0x4
MOV ESI,EAX
LEA EAX,[EDI + 0xfffccb24]
PUSH 0x5
PUSH EAX
PUSH 0x0
JMP 0x0001e2dd
MOV ECX,EBP
MOV EBP,dword ptr [ESP + 0x10]
MOV EDX,EDI
LEA EAX,[EBP + 0xfffda680]
MOV EBX,EBP
CALL 0x0001bf20
SUB ESP,0x4
MOV EDI,EAX
LEA EAX,[EBP + 0xfffccb7c]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000130f0
POP EDX
POP ECX
PUSH EDI
PUSH EAX
CALL 0x000666b0
POP EDI
PUSH dword ptr [ESP + 0x20]
CALL 0x000130a0
ADD ESP,0x10
JMP 0x0001e214
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nundefined8 * __regparm3 FUN_0001e0f0(int param_1,uint param_2,int param_3,uint param_4)\n\n{\n  void *__ptr;\n  size_t sVar1;\n  undefined8 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  undefined8 *puVar6;\n  void *pvVar7;\n  bool bVar8;\n  undefined8 uVar9;\n  char *pcVar10;\n  \n  if (param_3 == 0) {\n    uVar5 = (uint)((ulonglong)param_2 * (ulonglong)param_4 >> 0x20);\n    if (*(uint *)(param_1 + 0xc) < uVar5 ||\n        *(uint *)(param_1 + 0xc) - uVar5 <\n        (uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))) {\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Invalid number of dynamic entries: %s\n";\n    }\n    else {\n      __ptr = (void *)FUN_0005da30(param_2,param_4);\n      if (__ptr != (void *)0x0) {\n        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));\n        if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }\n        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);\n        if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }\n        return puVar2;\n      }\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Out of memory reading %s dynamic entries\n";\n    }\n    param_4 = 5;\n    uVar3 = dcgettext(0,pcVar10,5);\n  }\n  else {\n    uVar4 = FUN_0001bf20();\n    uVar3 = dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5);\n  }\n  error(uVar3,uVar4,param_4);\n  return (undefined8 *)0x0;\n}\n\n" comment (ERROR "undefined8 * __regparm3 FUN_0001e0f0(int param_1,uint param_2,int param_3,uint param_4)" (binary_expression "undefined8 * __regparm3 FUN_0001e0f0(int param_1,uint param_2,int param_3,uint param_4)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_0001e0f0(int param_1,uint param_2,int param_3,uint param_4)" identifier (argument_list "(int param_1,uint param_2,int param_3,uint param_4)" ( (ERROR "int" identifier) identifier , (ERROR "uint" identifier) identifier , (ERROR "int" identifier) identifier , (ERROR "uint" identifier) identifier ))))) (compound_statement "{\n  void *__ptr;\n  size_t sVar1;\n  undefined8 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  undefined8 *puVar6;\n  void *pvVar7;\n  bool bVar8;\n  undefined8 uVar9;\n  char *pcVar10;\n  \n  if (param_3 == 0) {\n    uVar5 = (uint)((ulonglong)param_2 * (ulonglong)param_4 >> 0x20);\n    if (*(uint *)(param_1 + 0xc) < uVar5 ||\n        *(uint *)(param_1 + 0xc) - uVar5 <\n        (uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))) {\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Invalid number of dynamic entries: %s\n";\n    }\n    else {\n      __ptr = (void *)FUN_0005da30(param_2,param_4);\n      if (__ptr != (void *)0x0) {\n        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));\n        if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }\n        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);\n        if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }\n        return puVar2;\n      }\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Out of memory reading %s dynamic entries\n";\n    }\n    param_4 = 5;\n    uVar3 = dcgettext(0,pcVar10,5);\n  }\n  else {\n    uVar4 = FUN_0001bf20();\n    uVar3 = dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5);\n  }\n  error(uVar3,uVar4,param_4);\n  return (undefined8 *)0x0;\n}" { (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined8 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "void *pvVar7;" primitive_type (pointer_declarator "*pvVar7" * identifier) ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "undefined8 uVar9;" type_identifier identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (if_statement "if (param_3 == 0) {\n    uVar5 = (uint)((ulonglong)param_2 * (ulonglong)param_4 >> 0x20);\n    if (*(uint *)(param_1 + 0xc) < uVar5 ||\n        *(uint *)(param_1 + 0xc) - uVar5 <\n        (uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))) {\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Invalid number of dynamic entries: %s\n";\n    }\n    else {\n      __ptr = (void *)FUN_0005da30(param_2,param_4);\n      if (__ptr != (void *)0x0) {\n        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));\n        if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }\n        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);\n        if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }\n        return puVar2;\n      }\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Out of memory reading %s dynamic entries\n";\n    }\n    param_4 = 5;\n    uVar3 = dcgettext(0,pcVar10,5);\n  }\n  else {\n    uVar4 = FUN_0001bf20();\n    uVar3 = dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5);\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar5 = (uint)((ulonglong)param_2 * (ulonglong)param_4 >> 0x20);\n    if (*(uint *)(param_1 + 0xc) < uVar5 ||\n        *(uint *)(param_1 + 0xc) - uVar5 <\n        (uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))) {\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Invalid number of dynamic entries: %s\n";\n    }\n    else {\n      __ptr = (void *)FUN_0005da30(param_2,param_4);\n      if (__ptr != (void *)0x0) {\n        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));\n        if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }\n        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);\n        if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }\n        return puVar2;\n      }\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Out of memory reading %s dynamic entries\n";\n    }\n    param_4 = 5;\n    uVar3 = dcgettext(0,pcVar10,5);\n  }" { (expression_statement "uVar5 = (uint)((ulonglong)param_2 * (ulonglong)param_4 >> 0x20);" (assignment_expression "uVar5 = (uint)((ulonglong)param_2 * (ulonglong)param_4 >> 0x20)" identifier = (call_expression "(uint)((ulonglong)param_2 * (ulonglong)param_4 >> 0x20)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)param_2 * (ulonglong)param_4 >> 0x20)" ( (binary_expression "(ulonglong)param_2 * (ulonglong)param_4 >> 0x20" (binary_expression "(ulonglong)param_2 * (ulonglong)param_4" (cast_expression "(ulonglong)param_2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)param_4" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) )))) ;) (if_statement "if (*(uint *)(param_1 + 0xc) < uVar5 ||\n        *(uint *)(param_1 + 0xc) - uVar5 <\n        (uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))) {\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Invalid number of dynamic entries: %s\n";\n    }\n    else {\n      __ptr = (void *)FUN_0005da30(param_2,param_4);\n      if (__ptr != (void *)0x0) {\n        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));\n        if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }\n        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);\n        if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }\n        return puVar2;\n      }\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Out of memory reading %s dynamic entries\n";\n    }" if (parenthesized_expression "(*(uint *)(param_1 + 0xc) < uVar5 ||\n        *(uint *)(param_1 + 0xc) - uVar5 <\n        (uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4)))" ( (binary_expression "*(uint *)(param_1 + 0xc) < uVar5 ||\n        *(uint *)(param_1 + 0xc) - uVar5 <\n        (uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))" (binary_expression "*(uint *)(param_1 + 0xc) < uVar5" (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) < identifier) || (binary_expression "*(uint *)(param_1 + 0xc) - uVar5 <\n        (uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))" (binary_expression "*(uint *)(param_1 + 0xc) - uVar5" (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) - identifier) < (call_expression "(uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))" ( (binary_expression "*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4)" (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) < (call_expression "(uint)((ulonglong)param_2 * (ulonglong)param_4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)param_2 * (ulonglong)param_4)" ( (binary_expression "(ulonglong)param_2 * (ulonglong)param_4" (cast_expression "(ulonglong)param_2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)param_4" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ))))) )) (compound_statement "{\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Invalid number of dynamic entries: %s\n";\n    }" { (expression_statement "uVar4 = FUN_0001bf20();" (assignment_expression "uVar4 = FUN_0001bf20()" identifier = (call_expression "FUN_0001bf20()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar10 = "Invalid number of dynamic entries: %s\n";" (assignment_expression "pcVar10 = "Invalid number of dynamic entries: %s\n"" identifier = (string_literal ""Invalid number of dynamic entries: %s\n"" " string_content escape_sequence ")) ;) }) (else_clause "else {\n      __ptr = (void *)FUN_0005da30(param_2,param_4);\n      if (__ptr != (void *)0x0) {\n        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));\n        if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }\n        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);\n        if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }\n        return puVar2;\n      }\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Out of memory reading %s dynamic entries\n";\n    }" else (compound_statement "{\n      __ptr = (void *)FUN_0005da30(param_2,param_4);\n      if (__ptr != (void *)0x0) {\n        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));\n        if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }\n        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);\n        if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }\n        return puVar2;\n      }\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Out of memory reading %s dynamic entries\n";\n    }" { (expression_statement "__ptr = (void *)FUN_0005da30(param_2,param_4);" (assignment_expression "__ptr = (void *)FUN_0005da30(param_2,param_4)" identifier = (cast_expression "(void *)FUN_0005da30(param_2,param_4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005da30(param_2,param_4)" identifier (argument_list "(param_2,param_4)" ( identifier , identifier ))))) ;) (if_statement "if (__ptr != (void *)0x0) {\n        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));\n        if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }\n        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);\n        if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }\n        return puVar2;\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        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));\n        if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }\n        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);\n        if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }\n        return puVar2;\n      }" { (expression_statement "sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));" (assignment_expression "sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4))" identifier = (call_expression "fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4))" identifier (argument_list "(__ptr,param_4,param_2,*(FILE **)(param_1 + 4))" ( identifier , identifier , identifier , (pointer_expression "*(FILE **)(param_1 + 4)" * (cast_expression "(FILE **)(param_1 + 4)" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) )))) ;) (if_statement "if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }" if (parenthesized_expression "(sVar1 != param_2)" ( (binary_expression "sVar1 != param_2" identifier != identifier) )) (compound_statement "{\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }" { (expression_statement "uVar3 = FUN_0001bf20();" (assignment_expression "uVar3 = FUN_0001bf20()" identifier = (call_expression "FUN_0001bf20()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);" (assignment_expression "uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5)" identifier = (call_expression "dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5)" identifier (argument_list "(0,"Unable to read in %s bytes of dynamic data\n",5)" ( number_literal , (string_literal ""Unable to read in %s bytes of dynamic data\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "error(uVar4,uVar3);" (call_expression "error(uVar4,uVar3)" identifier (argument_list "(uVar4,uVar3)" ( identifier , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return (undefined8 *)0x0;" return (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "puVar2 = (undefined8 *)FUN_0005da30(param_2,8);" (assignment_expression "puVar2 = (undefined8 *)FUN_0005da30(param_2,8)" identifier = (cast_expression "(undefined8 *)FUN_0005da30(param_2,8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005da30(param_2,8)" identifier (argument_list "(param_2,8)" ( identifier , number_literal ))))) ;) (if_statement "if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }" if (parenthesized_expression "(puVar2 == (undefined8 *)0x0)" ( (binary_expression "puVar2 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }" { (expression_statement "uVar3 = FUN_0001bf20();" (assignment_expression "uVar3 = FUN_0001bf20()" identifier = (call_expression "FUN_0001bf20()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);" (assignment_expression "uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5)" identifier = (call_expression "dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5)" identifier (argument_list "(0,"Out of memory allocating space for %s dynamic entries\n",5)" ( number_literal , (string_literal ""Out of memory allocating space for %s dynamic entries\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "error(uVar4,uVar3);" (call_expression "error(uVar4,uVar3)" identifier (argument_list "(uVar4,uVar3)" ( identifier , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) }) (else_clause "else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }" else (compound_statement "{\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }" { (if_statement "if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }" { (expression_statement "puVar6 = puVar2 + (param_2 - 1);" (assignment_expression "puVar6 = puVar2 + (param_2 - 1)" identifier = (binary_expression "puVar2 + (param_2 - 1)" identifier + (parenthesized_expression "(param_2 - 1)" ( (binary_expression "param_2 - 1" identifier - number_literal) )))) ;) (expression_statement "pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);" (assignment_expression "pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr)" identifier = (cast_expression "(void *)(param_4 * (param_2 - 1) + (int)__ptr)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 * (param_2 - 1) + (int)__ptr)" ( (binary_expression "param_4 * (param_2 - 1) + (int)__ptr" (binary_expression "param_4 * (param_2 - 1)" identifier * (parenthesized_expression "(param_2 - 1)" ( (binary_expression "param_2 - 1" identifier - number_literal) ))) + (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (do_statement "do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);" do (compound_statement "{\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            }" { (expression_statement "uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);" (assignment_expression "uVar9 = (*DAT_000b9dd4)(pvVar7,param_4)" identifier = (call_expression "(*DAT_000b9dd4)(pvVar7,param_4)" (parenthesized_expression "(*DAT_000b9dd4)" ( (pointer_expression "*DAT_000b9dd4" * identifier) )) (argument_list "(pvVar7,param_4)" ( identifier , identifier )))) ;) (expression_statement "*puVar6 = uVar9;" (assignment_expression "*puVar6 = uVar9" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "bVar8 = puVar6 != puVar2;" (assignment_expression "bVar8 = puVar6 != puVar2" identifier = (binary_expression "puVar6 != puVar2" identifier != identifier)) ;) (expression_statement "puVar6 = puVar6 + -1;" (assignment_expression "puVar6 = puVar6 + -1" identifier = (binary_expression "puVar6 + -1" identifier + number_literal)) ;) (expression_statement "pvVar7 = (void *)((int)pvVar7 - param_4);" (assignment_expression "pvVar7 = (void *)((int)pvVar7 - param_4)" identifier = (cast_expression "(void *)((int)pvVar7 - param_4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar7 - param_4)" ( (binary_expression "(int)pvVar7 - param_4" (cast_expression "(int)pvVar7" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) ;) }) while (parenthesized_expression "(bVar8)" ( identifier )) ;) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) }))) (return_statement "return puVar2;" return identifier ;) })) (expression_statement "uVar4 = FUN_0001bf20();" (assignment_expression "uVar4 = FUN_0001bf20()" identifier = (call_expression "FUN_0001bf20()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar10 = "Out of memory reading %s dynamic entries\n";" (assignment_expression "pcVar10 = "Out of memory reading %s dynamic entries\n"" identifier = (string_literal ""Out of memory reading %s dynamic entries\n"" " string_content escape_sequence ")) ;) }))) (expression_statement "param_4 = 5;" (assignment_expression "param_4 = 5" identifier = number_literal) ;) (expression_statement "uVar3 = dcgettext(0,pcVar10,5);" (assignment_expression "uVar3 = dcgettext(0,pcVar10,5)" identifier = (call_expression "dcgettext(0,pcVar10,5)" identifier (argument_list "(0,pcVar10,5)" ( number_literal , identifier , number_literal )))) ;) }) (else_clause "else {\n    uVar4 = FUN_0001bf20();\n    uVar3 = dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5);\n  }" else (compound_statement "{\n    uVar4 = FUN_0001bf20();\n    uVar3 = dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5);\n  }" { (expression_statement "uVar4 = FUN_0001bf20();" (assignment_expression "uVar4 = FUN_0001bf20()" identifier = (call_expression "FUN_0001bf20()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5);" (assignment_expression "uVar3 = dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5)" identifier = (call_expression "dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5)" identifier (argument_list "(0,"Size truncation prevents reading %s elements of size %u\n",5)" ( number_literal , (string_literal ""Size truncation prevents reading %s elements of size %u\n"" " string_content escape_sequence ") , number_literal )))) ;) }))) (expression_statement "error(uVar3,uVar4,param_4);" (call_expression "error(uVar3,uVar4,param_4)" identifier (argument_list "(uVar3,uVar4,param_4)" ( identifier , identifier , identifier ))) ;) (return_statement "return (undefined8 *)0x0;" return (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nbfd_vma * __regparm3 get_dynamic_data(Filedata *filedata,bfd_size_type number,uint ent_size)\n\n{\n  uint uVar1;\n  longlong lVar2;\n  void *__ptr;\n  size_t sVar3;\n  bfd_vma *pbVar4;\n  char *pcVar5;\n  char *pcVar6;\n  int in_ECX;\n  uint uVar7;\n  bfd_vma *pbVar8;\n  uchar *puVar9;\n  bool bVar10;\n  elf_vma eVar11;\n  bfd_vma in_stack_ffffffc4;\n  \n  if (in_ECX == 0) {\n    lVar2 = (ulonglong)ent_size * (number & 0xffffffff);\n    uVar7 = (uint)((ulonglong)lVar2 >> 0x20);\n    uVar1 = *(uint *)((int)&filedata->file_size + 4);\n    if (uVar1 < uVar7 || uVar1 - uVar7 < (uint)((uint)filedata->file_size < (uint)lVar2)) {\n      pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4);\n      pcVar5 = "Invalid number of dynamic entries: %s\n";\n    }\n    else {\n      __ptr = cmalloc(ent_size,(size_t)number);\n      if (__ptr != (void *)0x0) {\n        sVar3 = fread(__ptr,(size_t)number,ent_size,(FILE *)filedata->handle);\n        if (sVar3 != ent_size) {\n          pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4);\n          pcVar6 = (char *)dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(pcVar6,pcVar5);\n          free(__ptr);\n          return (bfd_vma *)0x0;\n        }\n        pbVar4 = (bfd_vma *)cmalloc(ent_size,8);\n        if (pbVar4 == (bfd_vma *)0x0) {\n          pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4);\n          pcVar6 = (char *)dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(pcVar6,pcVar5);\n          free(__ptr);\n        }\n        else {\n          if (ent_size != 0) {\n            pbVar8 = pbVar4 + (ent_size - 1);\n            puVar9 = (uchar *)((size_t)number * (ent_size - 1) + (int)__ptr);\n            do {\n              eVar11 = (*byte_get)(puVar9,(size_t)number);\n              *pbVar8 = eVar11;\n              bVar10 = pbVar8 != pbVar4;\n              pbVar8 = pbVar8 + -1;\n              puVar9 = puVar9 + -(size_t)number;\n            } while (bVar10);\n          }\n          free(__ptr);\n        }\n        return pbVar4;\n      }\n      pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4);\n      pcVar5 = "Out of memory reading %s dynamic entries\n";\n    }\n    number._0_4_ = 5;\n    pcVar5 = (char *)dcgettext(0,pcVar5,5);\n  }\n  else {\n    pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4);\n    pcVar5 = (char *)dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5);\n  }\n  error(pcVar5,pcVar6,(size_t)number);\n  return (bfd_vma *)0x0;\n}\n\n" comment (ERROR "bfd_vma * __regparm3 get_dynamic_data(Filedata *filedata,bfd_size_type number,uint ent_size)" (binary_expression "bfd_vma * __regparm3 get_dynamic_data(Filedata *filedata,bfd_size_type number,uint ent_size)" identifier * (ERROR "__regparm3" identifier) (call_expression "get_dynamic_data(Filedata *filedata,bfd_size_type number,uint ent_size)" identifier (argument_list "(Filedata *filedata,bfd_size_type number,uint ent_size)" ( (binary_expression "Filedata *filedata" identifier * identifier) , identifier (ERROR "number" identifier) , (ERROR "uint" identifier) identifier ))))) (compound_statement "{\n  uint uVar1;\n  longlong lVar2;\n  void *__ptr;\n  size_t sVar3;\n  bfd_vma *pbVar4;\n  char *pcVar5;\n  char *pcVar6;\n  int in_ECX;\n  uint uVar7;\n  bfd_vma *pbVar8;\n  uchar *puVar9;\n  bool bVar10;\n  elf_vma eVar11;\n  bfd_vma in_stack_ffffffc4;\n  \n  if (in_ECX == 0) {\n    lVar2 = (ulonglong)ent_size * (number & 0xffffffff);\n    uVar7 = (uint)((ulonglong)lVar2 >> 0x20);\n    uVar1 = *(uint *)((int)&filedata->file_size + 4);\n    if (uVar1 < uVar7 || uVar1 - uVar7 < (uint)((uint)filedata->file_size < (uint)lVar2)) {\n      pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4);\n      pcVar5 = "Invalid number of dynamic entries: %s\n";\n    }\n    else {\n      __ptr = cmalloc(ent_size,(size_t)number);\n      if (__ptr != (void *)0x0) {\n        sVar3 = fread(__ptr,(size_t)number,ent_size,(FILE *)filedata->handle);\n        if (sVar3 != ent_size) {\n          pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4);\n          pcVar6 = (char *)dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(pcVar6,pcVar5);\n          free(__ptr);\n          return (bfd_vma *)0x0;\n        }\n        pbVar4 = (bfd_vma *)cmalloc(ent_size,8);\n        if (pbVar4 == (bfd_vma *)0x0) {\n          pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4);\n          pcVar6 = (char *)dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(pcVar6,pcVar5);\n          free(__ptr);\n        }\n        else {\n          if (ent_size != 0) {\n            pbVar8 = pbVar4 + (ent_size - 1);\n            puVar9 = (uchar *)((size_t)number * (ent_size - 1) + (int)__ptr);\n            do {\n              eVar11 = (*byte_get)(puVar9,(size_t)number);\n              *pbVar8 = eVar11;\n              bVar10 = pbVar8 != pbVar4;\n              pbVar8 = pbVar8 + -1;\n              puVar9 = puVar9 + -(size_t)number;\n            } while (bVar10);\n          }\n          free(__ptr);\n        }\n        return pbVar4;\n      }\n      pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4);\n      pcVar5 = "Out of memory reading %s dynamic entries\n";\n    }\n    number._0_4_ = 5;\n    pcVar5 = (char *)dcgettext(0,pcVar5,5);\n  }\n  else {\n    pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4);\n    pcVar5 = (char *)dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5);\n  }\n  error(pcVar5,pcVar6,(size_t)number);\n  return (bfd_vma *)0x0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "longlong lVar2;" type_identifier identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "bfd_vma *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "int in_ECX;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "bfd_vma *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "uchar *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "bool bVar10;" primitive_type identifier ;) (declaration "elf_vma eVar11;" type_identifier identifier ;) (declaration "bfd_vma in_stack_ffffffc4;" type_identifier identifier ;) (if_statement "if (in_ECX == 0) {\n    lVar2 = (ulonglong)ent_size * (number & 0xffffffff);\n    uVar7 = (uint)((ulonglong)lVar2 >> 0x20);\n    uVar1 = *(uint *)((int)&filedata->file_size + 4);\n    if (uVar1 < uVar7 || uVar1 - uVar7 < (uint)((uint)filedata->file_size < (uint)lVar2)) {\n      pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4);\n      pcVar5 = "Invalid number of dynamic entries: %s\n";\n    }\n    else {\n      __ptr = cmalloc(ent_size,(size_t)number);\n      if (__ptr != (void *)0x0) {\n        sVar3 = fread(__ptr,(size_t)number,ent_size,(FILE *)filedata->handle);\n        if (sVar3 != ent_size) {\n          pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4);\n          pcVar6 = (char *)dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(pcVar6,pcVar5);\n          free(__ptr);\n          return (bfd_vma *)0x0;\n        }\n        pbVar4 = (bfd_vma *)cmalloc(ent_size,8);\n        if (pbVar4 == (bfd_vma *)0x0) {\n          pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4);\n          pcVar6 = (char *)dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(pcVar6,pcVar5);\n          free(__ptr);\n        }\n        else {\n          if (ent_size != 0) {\n            pbVar8 = pbVar4 + (ent_size - 1);\n            puVar9 = (uchar *)((size_t)number * (ent_size - 1) + (int)__ptr);\n            do {\n              eVar11 = (*byte_get)(puVar9,(size_t)number);\n              *pbVar8 = eVar11;\n              bVar10 = pbVar8 != pbVar4;\n              pbVar8 = pbVar8 + -1;\n              puVar9 = puVar9 + -(size_t)number;\n            } while (bVar10);\n          }\n          free(__ptr);\n        }\n        return pbVar4;\n      }\n      pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4);\n      pcVar5 = "Out of memory reading %s dynamic entries\n";\n    }\n    number._0_4_ = 5;\n    pcVar5 = (char *)dcgettext(0,pcVar5,5);\n  }\n  else {\n    pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4);\n    pcVar5 = (char *)dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5);\n  }" if (parenthesized_expression "(in_ECX == 0)" ( (binary_expression "in_ECX == 0" identifier == number_literal) )) (compound_statement "{\n    lVar2 = (ulonglong)ent_size * (number & 0xffffffff);\n    uVar7 = (uint)((ulonglong)lVar2 >> 0x20);\n    uVar1 = *(uint *)((int)&filedata->file_size + 4);\n    if (uVar1 < uVar7 || uVar1 - uVar7 < (uint)((uint)filedata->file_size < (uint)lVar2)) {\n      pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4);\n      pcVar5 = "Invalid number of dynamic entries: %s\n";\n    }\n    else {\n      __ptr = cmalloc(ent_size,(size_t)number);\n      if (__ptr != (void *)0x0) {\n        sVar3 = fread(__ptr,(size_t)number,ent_size,(FILE *)filedata->handle);\n        if (sVar3 != ent_size) {\n          pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4);\n          pcVar6 = (char *)dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(pcVar6,pcVar5);\n          free(__ptr);\n          return (bfd_vma *)0x0;\n        }\n        pbVar4 = (bfd_vma *)cmalloc(ent_size,8);\n        if (pbVar4 == (bfd_vma *)0x0) {\n          pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4);\n          pcVar6 = (char *)dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(pcVar6,pcVar5);\n          free(__ptr);\n        }\n        else {\n          if (ent_size != 0) {\n            pbVar8 = pbVar4 + (ent_size - 1);\n            puVar9 = (uchar *)((size_t)number * (ent_size - 1) + (int)__ptr);\n            do {\n              eVar11 = (*byte_get)(puVar9,(size_t)number);\n              *pbVar8 = eVar11;\n              bVar10 = pbVar8 != pbVar4;\n              pbVar8 = pbVar8 + -1;\n              puVar9 = puVar9 + -(size_t)number;\n            } while (bVar10);\n          }\n          free(__ptr);\n        }\n        return pbVar4;\n      }\n      pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4);\n      pcVar5 = "Out of memory reading %s dynamic entries\n";\n    }\n    number._0_4_ = 5;\n    pcVar5 = (char *)dcgettext(0,pcVar5,5);\n  }" { (expression_statement "lVar2 = (ulonglong)ent_size * (number & 0xffffffff);" (assignment_expression "lVar2 = (ulonglong)ent_size * (number & 0xffffffff)" identifier = (binary_expression "(ulonglong)ent_size * (number & 0xffffffff)" (cast_expression "(ulonglong)ent_size" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (parenthesized_expression "(number & 0xffffffff)" ( (binary_expression "number & 0xffffffff" identifier & number_literal) )))) ;) (expression_statement "uVar7 = (uint)((ulonglong)lVar2 >> 0x20);" (assignment_expression "uVar7 = (uint)((ulonglong)lVar2 >> 0x20)" identifier = (call_expression "(uint)((ulonglong)lVar2 >> 0x20)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)lVar2 >> 0x20)" ( (binary_expression "(ulonglong)lVar2 >> 0x20" (cast_expression "(ulonglong)lVar2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar1 = *(uint *)((int)&filedata->file_size + 4);" (assignment_expression "uVar1 = *(uint *)((int)&filedata->file_size + 4)" identifier = (pointer_expression "*(uint *)((int)&filedata->file_size + 4)" * (cast_expression "(uint *)((int)&filedata->file_size + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&filedata->file_size + 4)" ( (binary_expression "(int)&filedata->file_size + 4" (cast_expression "(int)&filedata->file_size" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&filedata->file_size" & (field_expression "filedata->file_size" identifier -> field_identifier))) + number_literal) ))))) ;) (if_statement "if (uVar1 < uVar7 || uVar1 - uVar7 < (uint)((uint)filedata->file_size < (uint)lVar2)) {\n      pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4);\n      pcVar5 = "Invalid number of dynamic entries: %s\n";\n    }\n    else {\n      __ptr = cmalloc(ent_size,(size_t)number);\n      if (__ptr != (void *)0x0) {\n        sVar3 = fread(__ptr,(size_t)number,ent_size,(FILE *)filedata->handle);\n        if (sVar3 != ent_size) {\n          pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4);\n          pcVar6 = (char *)dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(pcVar6,pcVar5);\n          free(__ptr);\n          return (bfd_vma *)0x0;\n        }\n        pbVar4 = (bfd_vma *)cmalloc(ent_size,8);\n        if (pbVar4 == (bfd_vma *)0x0) {\n          pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4);\n          pcVar6 = (char *)dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(pcVar6,pcVar5);\n          free(__ptr);\n        }\n        else {\n          if (ent_size != 0) {\n            pbVar8 = pbVar4 + (ent_size - 1);\n            puVar9 = (uchar *)((size_t)number * (ent_size - 1) + (int)__ptr);\n            do {\n              eVar11 = (*byte_get)(puVar9,(size_t)number);\n              *pbVar8 = eVar11;\n              bVar10 = pbVar8 != pbVar4;\n              pbVar8 = pbVar8 + -1;\n              puVar9 = puVar9 + -(size_t)number;\n            } while (bVar10);\n          }\n          free(__ptr);\n        }\n        return pbVar4;\n      }\n      pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4);\n      pcVar5 = "Out of memory reading %s dynamic entries\n";\n    }" if (parenthesized_expression "(uVar1 < uVar7 || uVar1 - uVar7 < (uint)((uint)filedata->file_size < (uint)lVar2))" ( (binary_expression "uVar1 < uVar7 || uVar1 - uVar7 < (uint)((uint)filedata->file_size < (uint)lVar2)" (binary_expression "uVar1 < uVar7" identifier < identifier) || (binary_expression "uVar1 - uVar7 < (uint)((uint)filedata->file_size < (uint)lVar2)" (binary_expression "uVar1 - uVar7" identifier - identifier) < (call_expression "(uint)((uint)filedata->file_size < (uint)lVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)filedata->file_size < (uint)lVar2)" ( (binary_expression "(uint)filedata->file_size < (uint)lVar2" (cast_expression "(uint)filedata->file_size" ( (type_descriptor "uint" type_identifier) ) (field_expression "filedata->file_size" identifier -> field_identifier)) < (cast_expression "(uint)lVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) ))))) )) (compound_statement "{\n      pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4);\n      pcVar5 = "Invalid number of dynamic entries: %s\n";\n    }" { (expression_statement "pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4);" (assignment_expression "pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4)" identifier = (call_expression "bfd_vmatoa("u",in_stack_ffffffc4)" identifier (argument_list "("u",in_stack_ffffffc4)" ( (string_literal ""u"" " string_content ") , identifier )))) ;) (expression_statement "pcVar5 = "Invalid number of dynamic entries: %s\n";" (assignment_expression "pcVar5 = "Invalid number of dynamic entries: %s\n"" identifier = (string_literal ""Invalid number of dynamic entries: %s\n"" " string_content escape_sequence ")) ;) }) (else_clause "else {\n      __ptr = cmalloc(ent_size,(size_t)number);\n      if (__ptr != (void *)0x0) {\n        sVar3 = fread(__ptr,(size_t)number,ent_size,(FILE *)filedata->handle);\n        if (sVar3 != ent_size) {\n          pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4);\n          pcVar6 = (char *)dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(pcVar6,pcVar5);\n          free(__ptr);\n          return (bfd_vma *)0x0;\n        }\n        pbVar4 = (bfd_vma *)cmalloc(ent_size,8);\n        if (pbVar4 == (bfd_vma *)0x0) {\n          pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4);\n          pcVar6 = (char *)dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(pcVar6,pcVar5);\n          free(__ptr);\n        }\n        else {\n          if (ent_size != 0) {\n            pbVar8 = pbVar4 + (ent_size - 1);\n            puVar9 = (uchar *)((size_t)number * (ent_size - 1) + (int)__ptr);\n            do {\n              eVar11 = (*byte_get)(puVar9,(size_t)number);\n              *pbVar8 = eVar11;\n              bVar10 = pbVar8 != pbVar4;\n              pbVar8 = pbVar8 + -1;\n              puVar9 = puVar9 + -(size_t)number;\n            } while (bVar10);\n          }\n          free(__ptr);\n        }\n        return pbVar4;\n      }\n      pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4);\n      pcVar5 = "Out of memory reading %s dynamic entries\n";\n    }" else (compound_statement "{\n      __ptr = cmalloc(ent_size,(size_t)number);\n      if (__ptr != (void *)0x0) {\n        sVar3 = fread(__ptr,(size_t)number,ent_size,(FILE *)filedata->handle);\n        if (sVar3 != ent_size) {\n          pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4);\n          pcVar6 = (char *)dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(pcVar6,pcVar5);\n          free(__ptr);\n          return (bfd_vma *)0x0;\n        }\n        pbVar4 = (bfd_vma *)cmalloc(ent_size,8);\n        if (pbVar4 == (bfd_vma *)0x0) {\n          pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4);\n          pcVar6 = (char *)dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(pcVar6,pcVar5);\n          free(__ptr);\n        }\n        else {\n          if (ent_size != 0) {\n            pbVar8 = pbVar4 + (ent_size - 1);\n            puVar9 = (uchar *)((size_t)number * (ent_size - 1) + (int)__ptr);\n            do {\n              eVar11 = (*byte_get)(puVar9,(size_t)number);\n              *pbVar8 = eVar11;\n              bVar10 = pbVar8 != pbVar4;\n              pbVar8 = pbVar8 + -1;\n              puVar9 = puVar9 + -(size_t)number;\n            } while (bVar10);\n          }\n          free(__ptr);\n        }\n        return pbVar4;\n      }\n      pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4);\n      pcVar5 = "Out of memory reading %s dynamic entries\n";\n    }" { (expression_statement "__ptr = cmalloc(ent_size,(size_t)number);" (assignment_expression "__ptr = cmalloc(ent_size,(size_t)number)" identifier = (call_expression "cmalloc(ent_size,(size_t)number)" identifier (argument_list "(ent_size,(size_t)number)" ( identifier , (cast_expression "(size_t)number" ( (type_descriptor "size_t" primitive_type) ) identifier) )))) ;) (if_statement "if (__ptr != (void *)0x0) {\n        sVar3 = fread(__ptr,(size_t)number,ent_size,(FILE *)filedata->handle);\n        if (sVar3 != ent_size) {\n          pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4);\n          pcVar6 = (char *)dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(pcVar6,pcVar5);\n          free(__ptr);\n          return (bfd_vma *)0x0;\n        }\n        pbVar4 = (bfd_vma *)cmalloc(ent_size,8);\n        if (pbVar4 == (bfd_vma *)0x0) {\n          pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4);\n          pcVar6 = (char *)dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(pcVar6,pcVar5);\n          free(__ptr);\n        }\n        else {\n          if (ent_size != 0) {\n            pbVar8 = pbVar4 + (ent_size - 1);\n            puVar9 = (uchar *)((size_t)number * (ent_size - 1) + (int)__ptr);\n            do {\n              eVar11 = (*byte_get)(puVar9,(size_t)number);\n              *pbVar8 = eVar11;\n              bVar10 = pbVar8 != pbVar4;\n              pbVar8 = pbVar8 + -1;\n              puVar9 = puVar9 + -(size_t)number;\n            } while (bVar10);\n          }\n          free(__ptr);\n        }\n        return pbVar4;\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        sVar3 = fread(__ptr,(size_t)number,ent_size,(FILE *)filedata->handle);\n        if (sVar3 != ent_size) {\n          pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4);\n          pcVar6 = (char *)dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(pcVar6,pcVar5);\n          free(__ptr);\n          return (bfd_vma *)0x0;\n        }\n        pbVar4 = (bfd_vma *)cmalloc(ent_size,8);\n        if (pbVar4 == (bfd_vma *)0x0) {\n          pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4);\n          pcVar6 = (char *)dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(pcVar6,pcVar5);\n          free(__ptr);\n        }\n        else {\n          if (ent_size != 0) {\n            pbVar8 = pbVar4 + (ent_size - 1);\n            puVar9 = (uchar *)((size_t)number * (ent_size - 1) + (int)__ptr);\n            do {\n              eVar11 = (*byte_get)(puVar9,(size_t)number);\n              *pbVar8 = eVar11;\n              bVar10 = pbVar8 != pbVar4;\n              pbVar8 = pbVar8 + -1;\n              puVar9 = puVar9 + -(size_t)number;\n            } while (bVar10);\n          }\n          free(__ptr);\n        }\n        return pbVar4;\n      }" { (expression_statement "sVar3 = fread(__ptr,(size_t)number,ent_size,(FILE *)filedata->handle);" (assignment_expression "sVar3 = fread(__ptr,(size_t)number,ent_size,(FILE *)filedata->handle)" identifier = (call_expression "fread(__ptr,(size_t)number,ent_size,(FILE *)filedata->handle)" identifier (argument_list "(__ptr,(size_t)number,ent_size,(FILE *)filedata->handle)" ( identifier , (cast_expression "(size_t)number" ( (type_descriptor "size_t" primitive_type) ) identifier) , identifier , (cast_expression "(FILE *)filedata->handle" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "filedata->handle" identifier -> field_identifier)) )))) ;) (if_statement "if (sVar3 != ent_size) {\n          pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4);\n          pcVar6 = (char *)dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(pcVar6,pcVar5);\n          free(__ptr);\n          return (bfd_vma *)0x0;\n        }" if (parenthesized_expression "(sVar3 != ent_size)" ( (binary_expression "sVar3 != ent_size" identifier != identifier) )) (compound_statement "{\n          pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4);\n          pcVar6 = (char *)dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(pcVar6,pcVar5);\n          free(__ptr);\n          return (bfd_vma *)0x0;\n        }" { (expression_statement "pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4);" (assignment_expression "pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4)" identifier = (call_expression "bfd_vmatoa("u",in_stack_ffffffc4)" identifier (argument_list "("u",in_stack_ffffffc4)" ( (string_literal ""u"" " string_content ") , identifier )))) ;) (expression_statement "pcVar6 = (char *)dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);" (assignment_expression "pcVar6 = (char *)dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5)" identifier (argument_list "(0,"Unable to read in %s bytes of dynamic data\n",5)" ( number_literal , (string_literal ""Unable to read in %s bytes of dynamic data\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "error(pcVar6,pcVar5);" (call_expression "error(pcVar6,pcVar5)" identifier (argument_list "(pcVar6,pcVar5)" ( identifier , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return (bfd_vma *)0x0;" return (cast_expression "(bfd_vma *)0x0" ( (type_descriptor "bfd_vma *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "pbVar4 = (bfd_vma *)cmalloc(ent_size,8);" (assignment_expression "pbVar4 = (bfd_vma *)cmalloc(ent_size,8)" identifier = (cast_expression "(bfd_vma *)cmalloc(ent_size,8)" ( (type_descriptor "bfd_vma *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "cmalloc(ent_size,8)" identifier (argument_list "(ent_size,8)" ( identifier , number_literal ))))) ;) (if_statement "if (pbVar4 == (bfd_vma *)0x0) {\n          pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4);\n          pcVar6 = (char *)dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(pcVar6,pcVar5);\n          free(__ptr);\n        }\n        else {\n          if (ent_size != 0) {\n            pbVar8 = pbVar4 + (ent_size - 1);\n            puVar9 = (uchar *)((size_t)number * (ent_size - 1) + (int)__ptr);\n            do {\n              eVar11 = (*byte_get)(puVar9,(size_t)number);\n              *pbVar8 = eVar11;\n              bVar10 = pbVar8 != pbVar4;\n              pbVar8 = pbVar8 + -1;\n              puVar9 = puVar9 + -(size_t)number;\n            } while (bVar10);\n          }\n          free(__ptr);\n        }" if (parenthesized_expression "(pbVar4 == (bfd_vma *)0x0)" ( (binary_expression "pbVar4 == (bfd_vma *)0x0" identifier == (cast_expression "(bfd_vma *)0x0" ( (type_descriptor "bfd_vma *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4);\n          pcVar6 = (char *)dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(pcVar6,pcVar5);\n          free(__ptr);\n        }" { (expression_statement "pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4);" (assignment_expression "pcVar5 = bfd_vmatoa("u",in_stack_ffffffc4)" identifier = (call_expression "bfd_vmatoa("u",in_stack_ffffffc4)" identifier (argument_list "("u",in_stack_ffffffc4)" ( (string_literal ""u"" " string_content ") , identifier )))) ;) (expression_statement "pcVar6 = (char *)dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);" (assignment_expression "pcVar6 = (char *)dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5)" identifier (argument_list "(0,"Out of memory allocating space for %s dynamic entries\n",5)" ( number_literal , (string_literal ""Out of memory allocating space for %s dynamic entries\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "error(pcVar6,pcVar5);" (call_expression "error(pcVar6,pcVar5)" identifier (argument_list "(pcVar6,pcVar5)" ( identifier , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) }) (else_clause "else {\n          if (ent_size != 0) {\n            pbVar8 = pbVar4 + (ent_size - 1);\n            puVar9 = (uchar *)((size_t)number * (ent_size - 1) + (int)__ptr);\n            do {\n              eVar11 = (*byte_get)(puVar9,(size_t)number);\n              *pbVar8 = eVar11;\n              bVar10 = pbVar8 != pbVar4;\n              pbVar8 = pbVar8 + -1;\n              puVar9 = puVar9 + -(size_t)number;\n            } while (bVar10);\n          }\n          free(__ptr);\n        }" else (compound_statement "{\n          if (ent_size != 0) {\n            pbVar8 = pbVar4 + (ent_size - 1);\n            puVar9 = (uchar *)((size_t)number * (ent_size - 1) + (int)__ptr);\n            do {\n              eVar11 = (*byte_get)(puVar9,(size_t)number);\n              *pbVar8 = eVar11;\n              bVar10 = pbVar8 != pbVar4;\n              pbVar8 = pbVar8 + -1;\n              puVar9 = puVar9 + -(size_t)number;\n            } while (bVar10);\n          }\n          free(__ptr);\n        }" { (if_statement "if (ent_size != 0) {\n            pbVar8 = pbVar4 + (ent_size - 1);\n            puVar9 = (uchar *)((size_t)number * (ent_size - 1) + (int)__ptr);\n            do {\n              eVar11 = (*byte_get)(puVar9,(size_t)number);\n              *pbVar8 = eVar11;\n              bVar10 = pbVar8 != pbVar4;\n              pbVar8 = pbVar8 + -1;\n              puVar9 = puVar9 + -(size_t)number;\n            } while (bVar10);\n          }" if (parenthesized_expression "(ent_size != 0)" ( (binary_expression "ent_size != 0" identifier != number_literal) )) (compound_statement "{\n            pbVar8 = pbVar4 + (ent_size - 1);\n            puVar9 = (uchar *)((size_t)number * (ent_size - 1) + (int)__ptr);\n            do {\n              eVar11 = (*byte_get)(puVar9,(size_t)number);\n              *pbVar8 = eVar11;\n              bVar10 = pbVar8 != pbVar4;\n              pbVar8 = pbVar8 + -1;\n              puVar9 = puVar9 + -(size_t)number;\n            } while (bVar10);\n          }" { (expression_statement "pbVar8 = pbVar4 + (ent_size - 1);" (assignment_expression "pbVar8 = pbVar4 + (ent_size - 1)" identifier = (binary_expression "pbVar4 + (ent_size - 1)" identifier + (parenthesized_expression "(ent_size - 1)" ( (binary_expression "ent_size - 1" identifier - number_literal) )))) ;) (expression_statement "puVar9 = (uchar *)((size_t)number * (ent_size - 1) + (int)__ptr);" (assignment_expression "puVar9 = (uchar *)((size_t)number * (ent_size - 1) + (int)__ptr)" identifier = (cast_expression "(uchar *)((size_t)number * (ent_size - 1) + (int)__ptr)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((size_t)number * (ent_size - 1) + (int)__ptr)" ( (binary_expression "(size_t)number * (ent_size - 1) + (int)__ptr" (binary_expression "(size_t)number * (ent_size - 1)" (cast_expression "(size_t)number" ( (type_descriptor "size_t" primitive_type) ) identifier) * (parenthesized_expression "(ent_size - 1)" ( (binary_expression "ent_size - 1" identifier - number_literal) ))) + (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (do_statement "do {\n              eVar11 = (*byte_get)(puVar9,(size_t)number);\n              *pbVar8 = eVar11;\n              bVar10 = pbVar8 != pbVar4;\n              pbVar8 = pbVar8 + -1;\n              puVar9 = puVar9 + -(size_t)number;\n            } while (bVar10);" do (compound_statement "{\n              eVar11 = (*byte_get)(puVar9,(size_t)number);\n              *pbVar8 = eVar11;\n              bVar10 = pbVar8 != pbVar4;\n              pbVar8 = pbVar8 + -1;\n              puVar9 = puVar9 + -(size_t)number;\n            }" { (expression_statement "eVar11 = (*byte_get)(puVar9,(size_t)number);" (assignment_expression "eVar11 = (*byte_get)(puVar9,(size_t)number)" identifier = (call_expression "(*byte_get)(puVar9,(size_t)number)" (parenthesized_expression "(*byte_get)" ( (pointer_expression "*byte_get" * identifier) )) (argument_list "(puVar9,(size_t)number)" ( identifier , (cast_expression "(size_t)number" ( (type_descriptor "size_t" primitive_type) ) identifier) )))) ;) (expression_statement "*pbVar8 = eVar11;" (assignment_expression "*pbVar8 = eVar11" (pointer_expression "*pbVar8" * identifier) = identifier) ;) (expression_statement "bVar10 = pbVar8 != pbVar4;" (assignment_expression "bVar10 = pbVar8 != pbVar4" identifier = (binary_expression "pbVar8 != pbVar4" identifier != identifier)) ;) (expression_statement "pbVar8 = pbVar8 + -1;" (assignment_expression "pbVar8 = pbVar8 + -1" identifier = (binary_expression "pbVar8 + -1" identifier + number_literal)) ;) (expression_statement "puVar9 = puVar9 + -(size_t)number;" (assignment_expression "puVar9 = puVar9 + -(size_t)number" identifier = (binary_expression "puVar9 + -(size_t)number" identifier + (unary_expression "-(size_t)number" - (cast_expression "(size_t)number" ( (type_descriptor "size_t" primitive_type) ) identifier)))) ;) }) while (parenthesized_expression "(bVar10)" ( identifier )) ;) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) }))) (return_statement "return pbVar4;" return identifier ;) })) (expression_statement "pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4);" (assignment_expression "pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4)" identifier = (call_expression "bfd_vmatoa("u",in_stack_ffffffc4)" identifier (argument_list "("u",in_stack_ffffffc4)" ( (string_literal ""u"" " string_content ") , identifier )))) ;) (expression_statement "pcVar5 = "Out of memory reading %s dynamic entries\n";" (assignment_expression "pcVar5 = "Out of memory reading %s dynamic entries\n"" identifier = (string_literal ""Out of memory reading %s dynamic entries\n"" " string_content escape_sequence ")) ;) }))) (expression_statement "number._0_4_ = 5;" (assignment_expression "number._0_4_ = 5" (field_expression "number._0_4_" identifier . field_identifier) = number_literal) ;) (expression_statement "pcVar5 = (char *)dcgettext(0,pcVar5,5);" (assignment_expression "pcVar5 = (char *)dcgettext(0,pcVar5,5)" identifier = (cast_expression "(char *)dcgettext(0,pcVar5,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,pcVar5,5)" identifier (argument_list "(0,pcVar5,5)" ( number_literal , identifier , number_literal ))))) ;) }) (else_clause "else {\n    pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4);\n    pcVar5 = (char *)dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5);\n  }" else (compound_statement "{\n    pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4);\n    pcVar5 = (char *)dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5);\n  }" { (expression_statement "pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4);" (assignment_expression "pcVar6 = bfd_vmatoa("u",in_stack_ffffffc4)" identifier = (call_expression "bfd_vmatoa("u",in_stack_ffffffc4)" identifier (argument_list "("u",in_stack_ffffffc4)" ( (string_literal ""u"" " string_content ") , identifier )))) ;) (expression_statement "pcVar5 = (char *)dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5);" (assignment_expression "pcVar5 = (char *)dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5)" identifier (argument_list "(0,"Size truncation prevents reading %s elements of size %u\n",5)" ( number_literal , (string_literal ""Size truncation prevents reading %s elements of size %u\n"" " string_content escape_sequence ") , number_literal ))))) ;) }))) (expression_statement "error(pcVar5,pcVar6,(size_t)number);" (call_expression "error(pcVar5,pcVar6,(size_t)number)" identifier (argument_list "(pcVar5,pcVar6,(size_t)number)" ( identifier , identifier , (cast_expression "(size_t)number" ( (type_descriptor "size_t" primitive_type) ) identifier) ))) ;) (return_statement "return (bfd_vma *)0x0;" return (cast_expression "(bfd_vma *)0x0" ( (type_descriptor "bfd_vma *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))
(translation_unit "undefined8 * __regparm3 FUN_0001e0f0(int param_1,uint param_2,int param_3,uint param_4)\n\n{\n  void *__ptr;\n  size_t sVar1;\n  undefined8 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  undefined8 *puVar6;\n  void *pvVar7;\n  bool bVar8;\n  undefined8 uVar9;\n  char *pcVar10;\n  \n  if (param_3 == 0) {\n    uVar5 = (uint)((ulonglong)param_2 * (ulonglong)param_4 >> 0x20);\n    if (*(uint *)(param_1 + 0xc) < uVar5 ||\n        *(uint *)(param_1 + 0xc) - uVar5 <\n        (uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))) {\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Invalid number of dynamic entries: %s\n";\n    }\n    else {\n      __ptr = (void *)FUN_0005da30(param_2,param_4);\n      if (__ptr != (void *)0x0) {\n        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));\n        if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }\n        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);\n        if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }\n        return puVar2;\n      }\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Out of memory reading %s dynamic entries\n";\n    }\n    param_4 = 5;\n    uVar3 = dcgettext(0,pcVar10,5);\n  }\n  else {\n    uVar4 = FUN_0001bf20();\n    uVar3 = dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5);\n  }\n  error(uVar3,uVar4,param_4);\n  return (undefined8 *)0x0;\n}\n\n" (ERROR "undefined8 * __regparm3 FUN_0001e0f0(int param_1,uint param_2,int param_3,uint param_4)" (binary_expression "undefined8 * __regparm3 FUN_0001e0f0(int param_1,uint param_2,int param_3,uint param_4)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_0001e0f0(int param_1,uint param_2,int param_3,uint param_4)" identifier (argument_list "(int param_1,uint param_2,int param_3,uint param_4)" ( (ERROR "int" identifier) identifier , (ERROR "uint" identifier) identifier , (ERROR "int" identifier) identifier , (ERROR "uint" identifier) identifier ))))) (compound_statement "{\n  void *__ptr;\n  size_t sVar1;\n  undefined8 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  undefined8 *puVar6;\n  void *pvVar7;\n  bool bVar8;\n  undefined8 uVar9;\n  char *pcVar10;\n  \n  if (param_3 == 0) {\n    uVar5 = (uint)((ulonglong)param_2 * (ulonglong)param_4 >> 0x20);\n    if (*(uint *)(param_1 + 0xc) < uVar5 ||\n        *(uint *)(param_1 + 0xc) - uVar5 <\n        (uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))) {\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Invalid number of dynamic entries: %s\n";\n    }\n    else {\n      __ptr = (void *)FUN_0005da30(param_2,param_4);\n      if (__ptr != (void *)0x0) {\n        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));\n        if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }\n        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);\n        if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }\n        return puVar2;\n      }\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Out of memory reading %s dynamic entries\n";\n    }\n    param_4 = 5;\n    uVar3 = dcgettext(0,pcVar10,5);\n  }\n  else {\n    uVar4 = FUN_0001bf20();\n    uVar3 = dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5);\n  }\n  error(uVar3,uVar4,param_4);\n  return (undefined8 *)0x0;\n}" { (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined8 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "void *pvVar7;" primitive_type (pointer_declarator "*pvVar7" * identifier) ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "undefined8 uVar9;" type_identifier identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (if_statement "if (param_3 == 0) {\n    uVar5 = (uint)((ulonglong)param_2 * (ulonglong)param_4 >> 0x20);\n    if (*(uint *)(param_1 + 0xc) < uVar5 ||\n        *(uint *)(param_1 + 0xc) - uVar5 <\n        (uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))) {\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Invalid number of dynamic entries: %s\n";\n    }\n    else {\n      __ptr = (void *)FUN_0005da30(param_2,param_4);\n      if (__ptr != (void *)0x0) {\n        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));\n        if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }\n        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);\n        if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }\n        return puVar2;\n      }\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Out of memory reading %s dynamic entries\n";\n    }\n    param_4 = 5;\n    uVar3 = dcgettext(0,pcVar10,5);\n  }\n  else {\n    uVar4 = FUN_0001bf20();\n    uVar3 = dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5);\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar5 = (uint)((ulonglong)param_2 * (ulonglong)param_4 >> 0x20);\n    if (*(uint *)(param_1 + 0xc) < uVar5 ||\n        *(uint *)(param_1 + 0xc) - uVar5 <\n        (uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))) {\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Invalid number of dynamic entries: %s\n";\n    }\n    else {\n      __ptr = (void *)FUN_0005da30(param_2,param_4);\n      if (__ptr != (void *)0x0) {\n        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));\n        if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }\n        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);\n        if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }\n        return puVar2;\n      }\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Out of memory reading %s dynamic entries\n";\n    }\n    param_4 = 5;\n    uVar3 = dcgettext(0,pcVar10,5);\n  }" { (expression_statement "uVar5 = (uint)((ulonglong)param_2 * (ulonglong)param_4 >> 0x20);" (assignment_expression "uVar5 = (uint)((ulonglong)param_2 * (ulonglong)param_4 >> 0x20)" identifier = (call_expression "(uint)((ulonglong)param_2 * (ulonglong)param_4 >> 0x20)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)param_2 * (ulonglong)param_4 >> 0x20)" ( (binary_expression "(ulonglong)param_2 * (ulonglong)param_4 >> 0x20" (binary_expression "(ulonglong)param_2 * (ulonglong)param_4" (cast_expression "(ulonglong)param_2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)param_4" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) )))) ;) (if_statement "if (*(uint *)(param_1 + 0xc) < uVar5 ||\n        *(uint *)(param_1 + 0xc) - uVar5 <\n        (uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))) {\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Invalid number of dynamic entries: %s\n";\n    }\n    else {\n      __ptr = (void *)FUN_0005da30(param_2,param_4);\n      if (__ptr != (void *)0x0) {\n        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));\n        if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }\n        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);\n        if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }\n        return puVar2;\n      }\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Out of memory reading %s dynamic entries\n";\n    }" if (parenthesized_expression "(*(uint *)(param_1 + 0xc) < uVar5 ||\n        *(uint *)(param_1 + 0xc) - uVar5 <\n        (uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4)))" ( (binary_expression "*(uint *)(param_1 + 0xc) < uVar5 ||\n        *(uint *)(param_1 + 0xc) - uVar5 <\n        (uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))" (binary_expression "*(uint *)(param_1 + 0xc) < uVar5" (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) < identifier) || (binary_expression "*(uint *)(param_1 + 0xc) - uVar5 <\n        (uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))" (binary_expression "*(uint *)(param_1 + 0xc) - uVar5" (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) - identifier) < (call_expression "(uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))" ( (binary_expression "*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4)" (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) < (call_expression "(uint)((ulonglong)param_2 * (ulonglong)param_4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)param_2 * (ulonglong)param_4)" ( (binary_expression "(ulonglong)param_2 * (ulonglong)param_4" (cast_expression "(ulonglong)param_2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)param_4" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ))))) )) (compound_statement "{\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Invalid number of dynamic entries: %s\n";\n    }" { (expression_statement "uVar4 = FUN_0001bf20();" (assignment_expression "uVar4 = FUN_0001bf20()" identifier = (call_expression "FUN_0001bf20()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar10 = "Invalid number of dynamic entries: %s\n";" (assignment_expression "pcVar10 = "Invalid number of dynamic entries: %s\n"" identifier = (string_literal ""Invalid number of dynamic entries: %s\n"" " string_content escape_sequence ")) ;) }) (else_clause "else {\n      __ptr = (void *)FUN_0005da30(param_2,param_4);\n      if (__ptr != (void *)0x0) {\n        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));\n        if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }\n        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);\n        if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }\n        return puVar2;\n      }\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Out of memory reading %s dynamic entries\n";\n    }" else (compound_statement "{\n      __ptr = (void *)FUN_0005da30(param_2,param_4);\n      if (__ptr != (void *)0x0) {\n        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));\n        if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }\n        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);\n        if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }\n        return puVar2;\n      }\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Out of memory reading %s dynamic entries\n";\n    }" { (expression_statement "__ptr = (void *)FUN_0005da30(param_2,param_4);" (assignment_expression "__ptr = (void *)FUN_0005da30(param_2,param_4)" identifier = (cast_expression "(void *)FUN_0005da30(param_2,param_4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005da30(param_2,param_4)" identifier (argument_list "(param_2,param_4)" ( identifier , identifier ))))) ;) (if_statement "if (__ptr != (void *)0x0) {\n        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));\n        if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }\n        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);\n        if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }\n        return puVar2;\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        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));\n        if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }\n        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);\n        if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }\n        return puVar2;\n      }" { (expression_statement "sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));" (assignment_expression "sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4))" identifier = (call_expression "fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4))" identifier (argument_list "(__ptr,param_4,param_2,*(FILE **)(param_1 + 4))" ( identifier , identifier , identifier , (pointer_expression "*(FILE **)(param_1 + 4)" * (cast_expression "(FILE **)(param_1 + 4)" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) )))) ;) (if_statement "if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }" if (parenthesized_expression "(sVar1 != param_2)" ( (binary_expression "sVar1 != param_2" identifier != identifier) )) (compound_statement "{\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }" { (expression_statement "uVar3 = FUN_0001bf20();" (assignment_expression "uVar3 = FUN_0001bf20()" identifier = (call_expression "FUN_0001bf20()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);" (assignment_expression "uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5)" identifier = (call_expression "dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5)" identifier (argument_list "(0,"Unable to read in %s bytes of dynamic data\n",5)" ( number_literal , (string_literal ""Unable to read in %s bytes of dynamic data\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "error(uVar4,uVar3);" (call_expression "error(uVar4,uVar3)" identifier (argument_list "(uVar4,uVar3)" ( identifier , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return (undefined8 *)0x0;" return (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "puVar2 = (undefined8 *)FUN_0005da30(param_2,8);" (assignment_expression "puVar2 = (undefined8 *)FUN_0005da30(param_2,8)" identifier = (cast_expression "(undefined8 *)FUN_0005da30(param_2,8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005da30(param_2,8)" identifier (argument_list "(param_2,8)" ( identifier , number_literal ))))) ;) (if_statement "if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }" if (parenthesized_expression "(puVar2 == (undefined8 *)0x0)" ( (binary_expression "puVar2 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }" { (expression_statement "uVar3 = FUN_0001bf20();" (assignment_expression "uVar3 = FUN_0001bf20()" identifier = (call_expression "FUN_0001bf20()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);" (assignment_expression "uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5)" identifier = (call_expression "dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5)" identifier (argument_list "(0,"Out of memory allocating space for %s dynamic entries\n",5)" ( number_literal , (string_literal ""Out of memory allocating space for %s dynamic entries\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "error(uVar4,uVar3);" (call_expression "error(uVar4,uVar3)" identifier (argument_list "(uVar4,uVar3)" ( identifier , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) }) (else_clause "else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }" else (compound_statement "{\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }" { (if_statement "if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }" { (expression_statement "puVar6 = puVar2 + (param_2 - 1);" (assignment_expression "puVar6 = puVar2 + (param_2 - 1)" identifier = (binary_expression "puVar2 + (param_2 - 1)" identifier + (parenthesized_expression "(param_2 - 1)" ( (binary_expression "param_2 - 1" identifier - number_literal) )))) ;) (expression_statement "pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);" (assignment_expression "pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr)" identifier = (cast_expression "(void *)(param_4 * (param_2 - 1) + (int)__ptr)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 * (param_2 - 1) + (int)__ptr)" ( (binary_expression "param_4 * (param_2 - 1) + (int)__ptr" (binary_expression "param_4 * (param_2 - 1)" identifier * (parenthesized_expression "(param_2 - 1)" ( (binary_expression "param_2 - 1" identifier - number_literal) ))) + (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (do_statement "do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);" do (compound_statement "{\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            }" { (expression_statement "uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);" (assignment_expression "uVar9 = (*DAT_000b9dd4)(pvVar7,param_4)" identifier = (call_expression "(*DAT_000b9dd4)(pvVar7,param_4)" (parenthesized_expression "(*DAT_000b9dd4)" ( (pointer_expression "*DAT_000b9dd4" * identifier) )) (argument_list "(pvVar7,param_4)" ( identifier , identifier )))) ;) (expression_statement "*puVar6 = uVar9;" (assignment_expression "*puVar6 = uVar9" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "bVar8 = puVar6 != puVar2;" (assignment_expression "bVar8 = puVar6 != puVar2" identifier = (binary_expression "puVar6 != puVar2" identifier != identifier)) ;) (expression_statement "puVar6 = puVar6 + -1;" (assignment_expression "puVar6 = puVar6 + -1" identifier = (binary_expression "puVar6 + -1" identifier + number_literal)) ;) (expression_statement "pvVar7 = (void *)((int)pvVar7 - param_4);" (assignment_expression "pvVar7 = (void *)((int)pvVar7 - param_4)" identifier = (cast_expression "(void *)((int)pvVar7 - param_4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar7 - param_4)" ( (binary_expression "(int)pvVar7 - param_4" (cast_expression "(int)pvVar7" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) ;) }) while (parenthesized_expression "(bVar8)" ( identifier )) ;) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) }))) (return_statement "return puVar2;" return identifier ;) })) (expression_statement "uVar4 = FUN_0001bf20();" (assignment_expression "uVar4 = FUN_0001bf20()" identifier = (call_expression "FUN_0001bf20()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar10 = "Out of memory reading %s dynamic entries\n";" (assignment_expression "pcVar10 = "Out of memory reading %s dynamic entries\n"" identifier = (string_literal ""Out of memory reading %s dynamic entries\n"" " string_content escape_sequence ")) ;) }))) (expression_statement "param_4 = 5;" (assignment_expression "param_4 = 5" identifier = number_literal) ;) (expression_statement "uVar3 = dcgettext(0,pcVar10,5);" (assignment_expression "uVar3 = dcgettext(0,pcVar10,5)" identifier = (call_expression "dcgettext(0,pcVar10,5)" identifier (argument_list "(0,pcVar10,5)" ( number_literal , identifier , number_literal )))) ;) }) (else_clause "else {\n    uVar4 = FUN_0001bf20();\n    uVar3 = dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5);\n  }" else (compound_statement "{\n    uVar4 = FUN_0001bf20();\n    uVar3 = dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5);\n  }" { (expression_statement "uVar4 = FUN_0001bf20();" (assignment_expression "uVar4 = FUN_0001bf20()" identifier = (call_expression "FUN_0001bf20()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5);" (assignment_expression "uVar3 = dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5)" identifier = (call_expression "dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5)" identifier (argument_list "(0,"Size truncation prevents reading %s elements of size %u\n",5)" ( number_literal , (string_literal ""Size truncation prevents reading %s elements of size %u\n"" " string_content escape_sequence ") , number_literal )))) ;) }))) (expression_statement "error(uVar3,uVar4,param_4);" (call_expression "error(uVar3,uVar4,param_4)" identifier (argument_list "(uVar3,uVar4,param_4)" ( identifier , identifier , identifier ))) ;) (return_statement "return (undefined8 *)0x0;" return (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))
(translation_unit (ERROR (binary_expression IDENT * (ERROR IDENT) (call_expression IDENT (argument_list ( (ERROR IDENT) IDENT , (ERROR IDENT) IDENT , (ERROR IDENT) IDENT , (ERROR IDENT) IDENT ))))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < IDENT) || (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence ")) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT - LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT * (parenthesized_expression ( (binary_expression IDENT - LIT) ))) + (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT != IDENT)) ;) (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 TYPE) ) IDENT) - IDENT) )))) ;) }) while (parenthesized_expression ( IDENT )) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence ")) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , LIT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (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 ))) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) }))
(ERROR "undefined8 * __regparm3 FUN_0001e0f0(int param_1,uint param_2,int param_3,uint param_4)" (binary_expression "undefined8 * __regparm3 FUN_0001e0f0(int param_1,uint param_2,int param_3,uint param_4)" (identifier "undefined8") (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (call_expression "FUN_0001e0f0(int param_1,uint param_2,int param_3,uint param_4)" (identifier "FUN_0001e0f0") (argument_list "(int param_1,uint param_2,int param_3,uint param_4)" (( "(") (ERROR "int" (identifier "int")) (identifier "param_1") (, ",") (ERROR "uint" (identifier "uint")) (identifier "param_2") (, ",") (ERROR "int" (identifier "int")) (identifier "param_3") (, ",") (ERROR "uint" (identifier "uint")) (identifier "param_4") () ")"))))) (compound_statement "{\n  void *__ptr;\n  size_t sVar1;\n  undefined8 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  undefined8 *puVar6;\n  void *pvVar7;\n  bool bVar8;\n  undefined8 uVar9;\n  char *pcVar10;\n  \n  if (param_3 == 0) {\n    uVar5 = (uint)((ulonglong)param_2 * (ulonglong)param_4 >> 0x20);\n    if (*(uint *)(param_1 + 0xc) < uVar5 ||\n        *(uint *)(param_1 + 0xc) - uVar5 <\n        (uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))) {\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Invalid number of dynamic entries: %s\n";\n    }\n    else {\n      __ptr = (void *)FUN_0005da30(param_2,param_4);\n      if (__ptr != (void *)0x0) {\n        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));\n        if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }\n        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);\n        if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }\n        return puVar2;\n      }\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Out of memory reading %s dynamic entries\n";\n    }\n    param_4 = 5;\n    uVar3 = dcgettext(0,pcVar10,5);\n  }\n  else {\n    uVar4 = FUN_0001bf20();\n    uVar3 = dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5);\n  }\n  error(uVar3,uVar4,param_4);\n  return (undefined8 *)0x0;\n}" ({ "{") (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "undefined8 *puVar2;" (type_identifier "undefined8") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "undefined8 *puVar6;" (type_identifier "undefined8") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "void *pvVar7;" (primitive_type "void") (pointer_declarator "*pvVar7" (* "*") (identifier "pvVar7")) (; ";")) (declaration "bool bVar8;" (primitive_type "bool") (identifier "bVar8") (; ";")) (declaration "undefined8 uVar9;" (type_identifier "undefined8") (identifier "uVar9") (; ";")) (declaration "char *pcVar10;" (primitive_type "char") (pointer_declarator "*pcVar10" (* "*") (identifier "pcVar10")) (; ";")) (if_statement "if (param_3 == 0) {\n    uVar5 = (uint)((ulonglong)param_2 * (ulonglong)param_4 >> 0x20);\n    if (*(uint *)(param_1 + 0xc) < uVar5 ||\n        *(uint *)(param_1 + 0xc) - uVar5 <\n        (uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))) {\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Invalid number of dynamic entries: %s\n";\n    }\n    else {\n      __ptr = (void *)FUN_0005da30(param_2,param_4);\n      if (__ptr != (void *)0x0) {\n        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));\n        if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }\n        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);\n        if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }\n        return puVar2;\n      }\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Out of memory reading %s dynamic entries\n";\n    }\n    param_4 = 5;\n    uVar3 = dcgettext(0,pcVar10,5);\n  }\n  else {\n    uVar4 = FUN_0001bf20();\n    uVar3 = dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5);\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar5 = (uint)((ulonglong)param_2 * (ulonglong)param_4 >> 0x20);\n    if (*(uint *)(param_1 + 0xc) < uVar5 ||\n        *(uint *)(param_1 + 0xc) - uVar5 <\n        (uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))) {\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Invalid number of dynamic entries: %s\n";\n    }\n    else {\n      __ptr = (void *)FUN_0005da30(param_2,param_4);\n      if (__ptr != (void *)0x0) {\n        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));\n        if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }\n        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);\n        if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }\n        return puVar2;\n      }\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Out of memory reading %s dynamic entries\n";\n    }\n    param_4 = 5;\n    uVar3 = dcgettext(0,pcVar10,5);\n  }" ({ "{") (expression_statement "uVar5 = (uint)((ulonglong)param_2 * (ulonglong)param_4 >> 0x20);" (assignment_expression "uVar5 = (uint)((ulonglong)param_2 * (ulonglong)param_4 >> 0x20)" (identifier "uVar5") (= "=") (call_expression "(uint)((ulonglong)param_2 * (ulonglong)param_4 >> 0x20)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((ulonglong)param_2 * (ulonglong)param_4 >> 0x20)" (( "(") (binary_expression "(ulonglong)param_2 * (ulonglong)param_4 >> 0x20" (binary_expression "(ulonglong)param_2 * (ulonglong)param_4" (cast_expression "(ulonglong)param_2" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_2")) (* "*") (cast_expression "(ulonglong)param_4" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_4"))) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (if_statement "if (*(uint *)(param_1 + 0xc) < uVar5 ||\n        *(uint *)(param_1 + 0xc) - uVar5 <\n        (uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))) {\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Invalid number of dynamic entries: %s\n";\n    }\n    else {\n      __ptr = (void *)FUN_0005da30(param_2,param_4);\n      if (__ptr != (void *)0x0) {\n        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));\n        if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }\n        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);\n        if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }\n        return puVar2;\n      }\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Out of memory reading %s dynamic entries\n";\n    }" (if "if") (parenthesized_expression "(*(uint *)(param_1 + 0xc) < uVar5 ||\n        *(uint *)(param_1 + 0xc) - uVar5 <\n        (uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4)))" (( "(") (binary_expression "*(uint *)(param_1 + 0xc) < uVar5 ||\n        *(uint *)(param_1 + 0xc) - uVar5 <\n        (uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))" (binary_expression "*(uint *)(param_1 + 0xc) < uVar5" (pointer_expression "*(uint *)(param_1 + 0xc)" (* "*") (cast_expression "(uint *)(param_1 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (< "<") (identifier "uVar5")) (|| "||") (binary_expression "*(uint *)(param_1 + 0xc) - uVar5 <\n        (uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))" (binary_expression "*(uint *)(param_1 + 0xc) - uVar5" (pointer_expression "*(uint *)(param_1 + 0xc)" (* "*") (cast_expression "(uint *)(param_1 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (- "-") (identifier "uVar5")) (< "<") (call_expression "(uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))" (( "(") (binary_expression "*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4)" (pointer_expression "*(uint *)(param_1 + 8)" (* "*") (cast_expression "(uint *)(param_1 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (< "<") (call_expression "(uint)((ulonglong)param_2 * (ulonglong)param_4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((ulonglong)param_2 * (ulonglong)param_4)" (( "(") (binary_expression "(ulonglong)param_2 * (ulonglong)param_4" (cast_expression "(ulonglong)param_2" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_2")) (* "*") (cast_expression "(ulonglong)param_4" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_4"))) () ")")))) () ")"))))) () ")")) (compound_statement "{\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Invalid number of dynamic entries: %s\n";\n    }" ({ "{") (expression_statement "uVar4 = FUN_0001bf20();" (assignment_expression "uVar4 = FUN_0001bf20()" (identifier "uVar4") (= "=") (call_expression "FUN_0001bf20()" (identifier "FUN_0001bf20") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar10 = "Invalid number of dynamic entries: %s\n";" (assignment_expression "pcVar10 = "Invalid number of dynamic entries: %s\n"" (identifier "pcVar10") (= "=") (string_literal ""Invalid number of dynamic entries: %s\n"" (" """) (string_content "Invalid number of dynamic entries: %s") (escape_sequence "\n") (" """))) (; ";")) (} "}")) (else_clause "else {\n      __ptr = (void *)FUN_0005da30(param_2,param_4);\n      if (__ptr != (void *)0x0) {\n        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));\n        if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }\n        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);\n        if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }\n        return puVar2;\n      }\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Out of memory reading %s dynamic entries\n";\n    }" (else "else") (compound_statement "{\n      __ptr = (void *)FUN_0005da30(param_2,param_4);\n      if (__ptr != (void *)0x0) {\n        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));\n        if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }\n        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);\n        if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }\n        return puVar2;\n      }\n      uVar4 = FUN_0001bf20();\n      pcVar10 = "Out of memory reading %s dynamic entries\n";\n    }" ({ "{") (expression_statement "__ptr = (void *)FUN_0005da30(param_2,param_4);" (assignment_expression "__ptr = (void *)FUN_0005da30(param_2,param_4)" (identifier "__ptr") (= "=") (cast_expression "(void *)FUN_0005da30(param_2,param_4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0005da30(param_2,param_4)" (identifier "FUN_0005da30") (argument_list "(param_2,param_4)" (( "(") (identifier "param_2") (, ",") (identifier "param_4") () ")"))))) (; ";")) (if_statement "if (__ptr != (void *)0x0) {\n        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));\n        if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }\n        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);\n        if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }\n        return puVar2;\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        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));\n        if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }\n        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);\n        if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }\n        return puVar2;\n      }" ({ "{") (expression_statement "sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));" (assignment_expression "sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4))" (identifier "sVar1") (= "=") (call_expression "fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4))" (identifier "fread") (argument_list "(__ptr,param_4,param_2,*(FILE **)(param_1 + 4))" (( "(") (identifier "__ptr") (, ",") (identifier "param_4") (, ",") (identifier "param_2") (, ",") (pointer_expression "*(FILE **)(param_1 + 4)" (* "*") (cast_expression "(FILE **)(param_1 + 4)" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) () ")")))) (; ";")) (if_statement "if (sVar1 != param_2) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }" (if "if") (parenthesized_expression "(sVar1 != param_2)" (( "(") (binary_expression "sVar1 != param_2" (identifier "sVar1") (!= "!=") (identifier "param_2")) () ")")) (compound_statement "{\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n          return (undefined8 *)0x0;\n        }" ({ "{") (expression_statement "uVar3 = FUN_0001bf20();" (assignment_expression "uVar3 = FUN_0001bf20()" (identifier "uVar3") (= "=") (call_expression "FUN_0001bf20()" (identifier "FUN_0001bf20") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);" (assignment_expression "uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5)" (identifier "dcgettext") (argument_list "(0,"Unable to read in %s bytes of dynamic data\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Unable to read in %s bytes of dynamic data\n"" (" """) (string_content "Unable to read in %s bytes of dynamic data") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "error(uVar4,uVar3);" (call_expression "error(uVar4,uVar3)" (identifier "error") (argument_list "(uVar4,uVar3)" (( "(") (identifier "uVar4") (, ",") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (return_statement "return (undefined8 *)0x0;" (return "return") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined8 *)FUN_0005da30(param_2,8);" (assignment_expression "puVar2 = (undefined8 *)FUN_0005da30(param_2,8)" (identifier "puVar2") (= "=") (cast_expression "(undefined8 *)FUN_0005da30(param_2,8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0005da30(param_2,8)" (identifier "FUN_0005da30") (argument_list "(param_2,8)" (( "(") (identifier "param_2") (, ",") (number_literal "8") () ")"))))) (; ";")) (if_statement "if (puVar2 == (undefined8 *)0x0) {\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }\n        else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }" (if "if") (parenthesized_expression "(puVar2 == (undefined8 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined8 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          uVar3 = FUN_0001bf20();\n          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);\n          error(uVar4,uVar3);\n          free(__ptr);\n        }" ({ "{") (expression_statement "uVar3 = FUN_0001bf20();" (assignment_expression "uVar3 = FUN_0001bf20()" (identifier "uVar3") (= "=") (call_expression "FUN_0001bf20()" (identifier "FUN_0001bf20") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);" (assignment_expression "uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5)" (identifier "dcgettext") (argument_list "(0,"Out of memory allocating space for %s dynamic entries\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Out of memory allocating space for %s dynamic entries\n"" (" """) (string_content "Out of memory allocating space for %s dynamic entries") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "error(uVar4,uVar3);" (call_expression "error(uVar4,uVar3)" (identifier "error") (argument_list "(uVar4,uVar3)" (( "(") (identifier "uVar4") (, ",") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (} "}")) (else_clause "else {\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }" (else "else") (compound_statement "{\n          if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }\n          free(__ptr);\n        }" ({ "{") (if_statement "if (param_2 != 0) {\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            puVar6 = puVar2 + (param_2 - 1);\n            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);\n            do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);\n          }" ({ "{") (expression_statement "puVar6 = puVar2 + (param_2 - 1);" (assignment_expression "puVar6 = puVar2 + (param_2 - 1)" (identifier "puVar6") (= "=") (binary_expression "puVar2 + (param_2 - 1)" (identifier "puVar2") (+ "+") (parenthesized_expression "(param_2 - 1)" (( "(") (binary_expression "param_2 - 1" (identifier "param_2") (- "-") (number_literal "1")) () ")")))) (; ";")) (expression_statement "pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);" (assignment_expression "pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr)" (identifier "pvVar7") (= "=") (cast_expression "(void *)(param_4 * (param_2 - 1) + (int)__ptr)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 * (param_2 - 1) + (int)__ptr)" (( "(") (binary_expression "param_4 * (param_2 - 1) + (int)__ptr" (binary_expression "param_4 * (param_2 - 1)" (identifier "param_4") (* "*") (parenthesized_expression "(param_2 - 1)" (( "(") (binary_expression "param_2 - 1" (identifier "param_2") (- "-") (number_literal "1")) () ")"))) (+ "+") (cast_expression "(int)__ptr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__ptr"))) () ")")))) (; ";")) (do_statement "do {\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            } while (bVar8);" (do "do") (compound_statement "{\n              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);\n              *puVar6 = uVar9;\n              bVar8 = puVar6 != puVar2;\n              puVar6 = puVar6 + -1;\n              pvVar7 = (void *)((int)pvVar7 - param_4);\n            }" ({ "{") (expression_statement "uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);" (assignment_expression "uVar9 = (*DAT_000b9dd4)(pvVar7,param_4)" (identifier "uVar9") (= "=") (call_expression "(*DAT_000b9dd4)(pvVar7,param_4)" (parenthesized_expression "(*DAT_000b9dd4)" (( "(") (pointer_expression "*DAT_000b9dd4" (* "*") (identifier "DAT_000b9dd4")) () ")")) (argument_list "(pvVar7,param_4)" (( "(") (identifier "pvVar7") (, ",") (identifier "param_4") () ")")))) (; ";")) (expression_statement "*puVar6 = uVar9;" (assignment_expression "*puVar6 = uVar9" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (identifier "uVar9")) (; ";")) (expression_statement "bVar8 = puVar6 != puVar2;" (assignment_expression "bVar8 = puVar6 != puVar2" (identifier "bVar8") (= "=") (binary_expression "puVar6 != puVar2" (identifier "puVar6") (!= "!=") (identifier "puVar2"))) (; ";")) (expression_statement "puVar6 = puVar6 + -1;" (assignment_expression "puVar6 = puVar6 + -1" (identifier "puVar6") (= "=") (binary_expression "puVar6 + -1" (identifier "puVar6") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "pvVar7 = (void *)((int)pvVar7 - param_4);" (assignment_expression "pvVar7 = (void *)((int)pvVar7 - param_4)" (identifier "pvVar7") (= "=") (cast_expression "(void *)((int)pvVar7 - param_4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar7 - param_4)" (( "(") (binary_expression "(int)pvVar7 - param_4" (cast_expression "(int)pvVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar7")) (- "-") (identifier "param_4")) () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar8)" (( "(") (identifier "bVar8") () ")")) (; ";")) (} "}"))) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (} "}")))) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (expression_statement "uVar4 = FUN_0001bf20();" (assignment_expression "uVar4 = FUN_0001bf20()" (identifier "uVar4") (= "=") (call_expression "FUN_0001bf20()" (identifier "FUN_0001bf20") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar10 = "Out of memory reading %s dynamic entries\n";" (assignment_expression "pcVar10 = "Out of memory reading %s dynamic entries\n"" (identifier "pcVar10") (= "=") (string_literal ""Out of memory reading %s dynamic entries\n"" (" """) (string_content "Out of memory reading %s dynamic entries") (escape_sequence "\n") (" """))) (; ";")) (} "}")))) (expression_statement "param_4 = 5;" (assignment_expression "param_4 = 5" (identifier "param_4") (= "=") (number_literal "5")) (; ";")) (expression_statement "uVar3 = dcgettext(0,pcVar10,5);" (assignment_expression "uVar3 = dcgettext(0,pcVar10,5)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,pcVar10,5)" (identifier "dcgettext") (argument_list "(0,pcVar10,5)" (( "(") (number_literal "0") (, ",") (identifier "pcVar10") (, ",") (number_literal "5") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    uVar4 = FUN_0001bf20();\n    uVar3 = dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5);\n  }" (else "else") (compound_statement "{\n    uVar4 = FUN_0001bf20();\n    uVar3 = dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5);\n  }" ({ "{") (expression_statement "uVar4 = FUN_0001bf20();" (assignment_expression "uVar4 = FUN_0001bf20()" (identifier "uVar4") (= "=") (call_expression "FUN_0001bf20()" (identifier "FUN_0001bf20") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar3 = dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5);" (assignment_expression "uVar3 = dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5)" (identifier "dcgettext") (argument_list "(0,"Size truncation prevents reading %s elements of size %u\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Size truncation prevents reading %s elements of size %u\n"" (" """) (string_content "Size truncation prevents reading %s elements of size %u") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (} "}")))) (expression_statement "error(uVar3,uVar4,param_4);" (call_expression "error(uVar3,uVar4,param_4)" (identifier "error") (argument_list "(uVar3,uVar4,param_4)" (( "(") (identifier "uVar3") (, ",") (identifier "uVar4") (, ",") (identifier "param_4") () ")"))) (; ";")) (return_statement "return (undefined8 *)0x0;" (return "return") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))

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

type_3 * __regparm3 get_dynamic_data(Filedata *filedata,bfd_size_type var_2,type_1 var_10)

{
  type_1 var_3;
  type_2 lVar2;
  void *var_7;
  size_t var_9;
  type_3 *var_14;
  char *pcVar5;
  char *pcVar6;
  int var_1;
  type_1 var_4;
  type_3 *var_15;
  type_4 *var_16;
  bool bVar10;
  type_5 eVar11;
  type_3 in_stack_ffffffc4;
  
  if (var_1 == 0) {
    lVar2 = (type_6)var_10 * (var_2 & 0xffffffff);
    var_4 = (type_1)((type_6)lVar2 >> 0x20);
    var_3 = *(type_1 *)((int)&filedata->file_size + 4);
    if (var_3 < var_4 || var_3 - var_4 < (type_1)((type_1)filedata->file_size < (type_1)lVar2)) {
      pcVar6 = var_5("u",in_stack_ffffffc4);
      pcVar5 = "Invalid number of dynamic entries: %s\n";
    }
    else {
      var_7 = var_6(var_10,(size_t)var_2);
      if (var_7 != (void *)0x0) {
        var_9 = var_8(var_7,(size_t)var_2,var_10,(type_7 *)filedata->handle);
        if (var_9 != var_10) {
          pcVar5 = var_5("u",in_stack_ffffffc4);
          pcVar6 = (char *)var_11(0,"Unable to read in %s bytes of dynamic data\n",5);
          var_12(pcVar6,pcVar5);
          var_13(var_7);
          return (type_3 *)0x0;
        }
        var_14 = (type_3 *)var_6(var_10,8);
        if (var_14 == (type_3 *)0x0) {
          pcVar5 = var_5("u",in_stack_ffffffc4);
          pcVar6 = (char *)var_11(0,"Out of memory allocating space for %s dynamic entries\n",5);
          var_12(pcVar6,pcVar5);
          var_13(var_7);
        }
        else {
          if (var_10 != 0) {
            var_15 = var_14 + (var_10 - 1);
            var_16 = (type_4 *)((size_t)var_2 * (var_10 - 1) + (int)var_7);
            do {
              eVar11 = (*byte_get)(var_16,(size_t)var_2);
              *var_15 = eVar11;
              bVar10 = var_15 != var_14;
              var_15 = var_15 + -1;
              var_16 = var_16 + -(size_t)var_2;
            } while (bVar10);
          }
          var_13(var_7);
        }
        return var_14;
      }
      pcVar6 = var_5("u",in_stack_ffffffc4);
      pcVar5 = "Out of memory reading %s dynamic entries\n";
    }
    var_2._0_4_ = 5;
    pcVar5 = (char *)var_11(0,pcVar5,5);
  }
  else {
    pcVar6 = var_5("u",in_stack_ffffffc4);
    pcVar5 = (char *)var_11(0,"Size truncation prevents reading %s elements of size %u\n",5);
  }
  var_12(pcVar5,pcVar6,(size_t)var_2);
  return (type_3 *)0x0;
}


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

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

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

{
  void *__ptr;
  size_t sVar1;
  undefined8 *puVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  uint uVar5;
  undefined8 *puVar6;
  void *pvVar7;
  bool bVar8;
  undefined8 uVar9;
  char *pcVar10;
  
  if (param_3 == 0) {
    uVar5 = (uint)((ulonglong)param_2 * (ulonglong)param_4 >> 0x20);
    if (*(uint *)(param_1 + 0xc) < uVar5 ||
        *(uint *)(param_1 + 0xc) - uVar5 <
        (uint)(*(uint *)(param_1 + 8) < (uint)((ulonglong)param_2 * (ulonglong)param_4))) {
      uVar4 = FUN_0001bf20();
      pcVar10 = "Invalid number of dynamic entries: %s\n";
    }
    else {
      __ptr = (void *)FUN_0005da30(param_2,param_4);
      if (__ptr != (void *)0x0) {
        sVar1 = fread(__ptr,param_4,param_2,*(FILE **)(param_1 + 4));
        if (sVar1 != param_2) {
          uVar3 = FUN_0001bf20();
          uVar4 = dcgettext(0,"Unable to read in %s bytes of dynamic data\n",5);
          error(uVar4,uVar3);
          free(__ptr);
          return (undefined8 *)0x0;
        }
        puVar2 = (undefined8 *)FUN_0005da30(param_2,8);
        if (puVar2 == (undefined8 *)0x0) {
          uVar3 = FUN_0001bf20();
          uVar4 = dcgettext(0,"Out of memory allocating space for %s dynamic entries\n",5);
          error(uVar4,uVar3);
          free(__ptr);
        }
        else {
          if (param_2 != 0) {
            puVar6 = puVar2 + (param_2 - 1);
            pvVar7 = (void *)(param_4 * (param_2 - 1) + (int)__ptr);
            do {
              uVar9 = (*DAT_000b9dd4)(pvVar7,param_4);
              *puVar6 = uVar9;
              bVar8 = puVar6 != puVar2;
              puVar6 = puVar6 + -1;
              pvVar7 = (void *)((int)pvVar7 - param_4);
            } while (bVar8);
          }
          free(__ptr);
        }
        return puVar2;
      }
      uVar4 = FUN_0001bf20();
      pcVar10 = "Out of memory reading %s dynamic entries\n";
    }
    param_4 = 5;
    uVar3 = dcgettext(0,pcVar10,5);
  }
  else {
    uVar4 = FUN_0001bf20();
    uVar3 = dcgettext(0,"Size truncation prevents reading %s elements of size %u\n",5);
  }
  error(uVar3,uVar4,param_4);
  return (undefined8 *)0x0;
}

