
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "GravityType": Some values do not have unique names */
/* WARNING: Enum "DisposeType": Some values do not have unique names */
/* WARNING: Enum "ChannelType": Some values do not have unique names */
/* WARNING: Enum "PixelChannel": Some values do not have unique names */
/* WARNING: Enum "ExceptionType": Some values do not have unique names */
/* WARNING: Enum "LogEventType": Some values do not have unique names */

double GetImageTotalInkDensity(Image *image,ExceptionInfo *exception)

{
  size_t sVar1;
  bool bVar2;
  double dVar3;
  CacheView *cache_view;
  CacheType CVar4;
  int iVar5;
  size_t sVar6;
  int in_GS_OFFSET;
  MagickSizeType MVar7;
  double local_3c;
  Image *local_34;
  ExceptionInfo *local_30;
  CacheView *local_2c;
  int local_28;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1213e9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (image == (Image *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity");
  }
  if (image->debug != MagickFalse) {
    LogMagickEvent(TraceEvent,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...");
  }
  if (image->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,
                  "GetImageTotalInkDensity");
  }
  if (image->colorspace != CMYKColorspace) {
    ThrowMagickException
              (exception,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,ImageError,
               "ColorSeparatedImageRequired","`%s\'",image->filename);
    dVar3 = 0.0;
    goto LAB_00121467;
  }
  cache_view = AcquireVirtualCacheView(image,exception);
  CVar4 = GetImagePixelCacheType(image);
  if (((CVar4 == MemoryCache) || (CVar4 = GetImagePixelCacheType(image), CVar4 == MapCache)) &&
     ((CVar4 = GetImagePixelCacheType(image), CVar4 == MemoryCache ||
      (CVar4 = GetImagePixelCacheType(image), CVar4 == MapCache)))) {
    MVar7 = GetMagickResourceLimit(ThreadResource);
    sVar1 = image->rows;
    sVar6 = sVar1 + 0x3f;
    if (-1 < (int)sVar1) {
      sVar6 = sVar1;
    }
    bVar2 = 0x7f < (int)sVar1;
    if ((int)MVar7 < (int)sVar6 >> 6) {
      MVar7 = GetMagickResourceLimit(ThreadResource);
      bVar2 = 1 < (int)MVar7;
    }
    if (bVar2) {
      MVar7 = GetMagickResourceLimit(ThreadResource);
      sVar1 = image->rows;
      sVar6 = sVar1 + 0x3f;
      if (-1 < (int)sVar1) {
        sVar6 = sVar1;
      }
      iVar5 = (int)sVar6 >> 6;
      if ((int)MVar7 < iVar5) {
        MVar7 = GetMagickResourceLimit(ThreadResource);
        iVar5 = (int)MVar7;
      }
    }
    else {
LAB_001215b3:
      iVar5 = 1;
    }
  }
  else {
    MVar7 = GetMagickResourceLimit(ThreadResource);
    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {
      MVar7 = GetMagickResourceLimit(ThreadResource);
      if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) goto LAB_001215b3;
    }
    MVar7 = GetMagickResourceLimit(ThreadResource);
    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {
      MVar7 = GetMagickResourceLimit(ThreadResource);
      iVar5 = (int)MVar7;
    }
    else {
      iVar5 = 2;
    }
  }
  local_30 = exception;
  local_3c = 0.0;
  local_34 = image;
  local_28 = 1;
  local_2c = cache_view;
  GOMP_parallel(GetImageTotalInkDensity__omp_fn_0,&local_3c,iVar5,0);
  iVar5 = local_28;
  dVar3 = local_3c;
  DestroyCacheView(cache_view);
  if (iVar5 == 0) {
    dVar3 = 0.0;
  }
LAB_00121467:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return dVar3;
}



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

longdouble GetImageTotalInkDensity(int param_1,undefined4 param_2)

{
  bool bVar1;
  double dVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int in_GS_OFFSET;
  longdouble lVar7;
  undefined8 uVar8;
  double local_3c;
  int local_34;
  undefined4 local_30;
  undefined4 local_2c;
  int local_28;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1213e9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity");
  }
  if (*(int *)(param_1 + 0x3328) != 0) {
    LogMagickEvent(0x8000,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...");
  }
  if (*(int *)(param_1 + 0x3344) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,
                  "GetImageTotalInkDensity");
  }
  if (*(int *)(param_1 + 4) != 2) {
    ThrowMagickException
              (param_2,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,0x1d1,
               "ColorSeparatedImageRequired","`%s\'",param_1 + 0x318);
    lVar7 = (longdouble)0;
    goto LAB_00121467;
  }
  uVar3 = AcquireVirtualCacheView(param_1,param_2);
  iVar4 = GetImagePixelCacheType(param_1);
  if (((iVar4 == 4) || (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)) &&
     ((iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||
      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)))) {
    iVar6 = GetMagickResourceLimit(7);
    iVar4 = *(int *)(param_1 + 0x1c);
    iVar5 = iVar4 + 0x3f;
    if (-1 < iVar4) {
      iVar5 = iVar4;
    }
    bVar1 = 0x7f < iVar4;
    if (iVar6 < iVar5 >> 6) {
      iVar4 = GetMagickResourceLimit(7);
      bVar1 = 1 < iVar4;
    }
    if (bVar1) {
      iVar6 = GetMagickResourceLimit(7);
      iVar4 = *(int *)(param_1 + 0x1c);
      iVar5 = iVar4 + 0x3f;
      if (-1 < iVar4) {
        iVar5 = iVar4;
      }
      iVar5 = iVar5 >> 6;
      if (iVar6 < iVar5) {
        iVar5 = GetMagickResourceLimit(7);
      }
    }
    else {
LAB_001215b3:
      iVar5 = 1;
    }
  }
  else {
    uVar8 = GetMagickResourceLimit(7);
    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {
      uVar8 = GetMagickResourceLimit(7);
      if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;
    }
    uVar8 = GetMagickResourceLimit(7);
    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {
      iVar5 = GetMagickResourceLimit(7);
    }
    else {
      iVar5 = 2;
    }
  }
  local_30 = param_2;
  local_3c = 0.0;
  local_34 = param_1;
  local_28 = 1;
  local_2c = uVar3;
  GOMP_parallel(FUN_00121250,&local_3c,iVar5,0);
  iVar4 = local_28;
  dVar2 = local_3c;
  DestroyCacheView(uVar3);
  lVar7 = (longdouble)dVar2;
  if (iVar4 == 0) {
    lVar7 = (longdouble)0;
  }
LAB_00121467:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0029eab0();
  }
  return lVar7;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00038830
ADD EBX,0x2b7c17
SUB ESP,0x3c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x2c],EAX
XOR EAX,EAX
MOV EBP,dword ptr [ESP + 0x50]
MOV ESI,dword ptr [ESP + 0x54]
TEST EBP,EBP
JZ 0x001216a2
MOV EAX,dword ptr [EBP + 0x3328]
TEST EAX,EAX
JNZ 0x001215c0
CMP dword ptr [EBP + 0x3344],0xabacadab
JNZ 0x00121686
CMP dword ptr [EBP + 0x4],0x2
JZ 0x00121480
LEA EAX,[EBX + 0xffec8a40]
ADD EBP,0x318
PUSH EBP
PUSH EAX
LEA EAX,[EBX + 0xffedae0f]
PUSH EAX
LEA EAX,[EBX + 0xffee6f90]
PUSH 0x1d1
PUSH 0x6b
PUSH EAX
LEA EAX,[EBX + 0xffee6f78]
PUSH EAX
PUSH ESI
CALL 0x00032e80
ADD ESP,0x20
FLDZ
MOV EAX,dword ptr [ESP + 0x2c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x001216be
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH ESI
PUSH EBP
CALL 0x00030eb0
MOV dword ptr [ESP],EBP
MOV EDI,EAX
CALL 0x000318f0
ADD ESP,0x10
CMP EAX,0x4
JZ 0x00121560
SUB ESP,0xc
PUSH EBP
CALL 0x000318f0
ADD ESP,0x10
CMP EAX,0x3
JZ 0x00121560
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
CMP EDX,0x0
JA 0x001214e8
CMP EAX,0x1
JA 0x001214e8
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
CMP EDX,0x0
JBE 0x00121610
LEA ESI,[ESI]
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
CMP EDX,0x0
JBE 0x001215f0
MOV EAX,0x2
FLDZ
MOV dword ptr [ESP + 0x1c],ESI
FSTP qword ptr [ESP + 0x10]
MOV dword ptr [ESP + 0x20],EDI
MOV dword ptr [ESP + 0x18],EBP
MOV dword ptr [ESP + 0x24],0x1
PUSH 0x0
PUSH EAX
LEA EAX,[ESP + 0x18]
PUSH EAX
LEA EAX,[EBX + 0xffd48250]
PUSH EAX
CALL 0x000324d0
MOV ESI,dword ptr [ESP + 0x34]
MOV dword ptr [ESP],EDI
FLD qword ptr [ESP + 0x20]
FSTP qword ptr [ESP + 0x18]
CALL 0x00032f30
ADD ESP,0x10
FLD qword ptr [ESP + 0x8]
TEST ESI,ESI
JNZ 0x00121467
FSTP ST0
FLDZ
JMP 0x00121467
SUB ESP,0xc
PUSH EBP
CALL 0x000318f0
ADD ESP,0x10
CMP EAX,0x4
JZ 0x00121586
SUB ESP,0xc
PUSH EBP
CALL 0x000318f0
ADD ESP,0x10
CMP EAX,0x3
JNZ 0x001214b5
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
MOV ECX,dword ptr [EBP + 0x1c]
ADD ESP,0x10
LEA EDX,[ECX + 0x3f]
TEST ECX,ECX
CMOVNS EDX,ECX
SAR EDX,0x6
CMP ECX,0x7f
SETG CL
CMP EDX,EAX
JG 0x00121620
TEST CL,CL
JNZ 0x00121640
MOV EAX,0x1
JMP 0x00121503
LEA EAX,[EBX + 0xffec976c]
SUB ESP,0xc
PUSH EAX
LEA EAX,[EBX + 0xffee6f90]
PUSH 0x67
PUSH EAX
LEA EAX,[EBX + 0xffee6f78]
PUSH EAX
PUSH 0x8000
CALL 0x000323b0
ADD ESP,0x20
JMP 0x0012141c
CMP EAX,0x1
JA 0x001214fe
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
JMP 0x00121503
CMP EAX,0x1
JA 0x001214e8
JMP 0x001215b3
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
CMP EAX,0x1
SETG CL
JMP 0x001215ab
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
MOV ECX,dword ptr [EBP + 0x1c]
ADD ESP,0x10
LEA EDX,[ECX + 0x3f]
TEST ECX,ECX
CMOVNS EDX,ECX
SAR EDX,0x6
CMP EDX,EAX
JG 0x00121670
MOV EAX,EDX
JMP 0x00121503
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
MOV EDX,EAX
MOV EAX,EDX
JMP 0x00121503
LEA EAX,[EBX + 0xffee6fa8]
PUSH EAX
LEA EAX,[EBX + 0xffee6f78]
PUSH 0x68
PUSH EAX
LEA EAX,[EBX + 0xffed1338]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffee6fa8]
PUSH EAX
LEA EAX,[EBX + 0xffee6f78]
PUSH 0x65
PUSH EAX
LEA EAX,[EBX + 0xffede594]
PUSH EAX
CALL 0x000313d0
FSTP ST0
CALL 0x0029eab0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nlongdouble GetImageTotalInkDensity(int param_1,undefined4 param_2)\n\n{\n  bool bVar1;\n  double dVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  longdouble lVar7;\n  undefined8 uVar8;\n  double local_3c;\n  int local_34;\n  undefined4 local_30;\n  undefined4 local_2c;\n  int local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1213e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity");\n  }\n  if (*(int *)(param_1 + 4) != 2) {\n    ThrowMagickException\n              (param_2,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,0x1d1,\n               "ColorSeparatedImageRequired","`%s\'",param_1 + 0x318);\n    lVar7 = (longdouble)0;\n    goto LAB_00121467;\n  }\n  uVar3 = AcquireVirtualCacheView(param_1,param_2);\n  iVar4 = GetImagePixelCacheType(param_1);\n  if (((iVar4 == 4) || (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)) &&\n     ((iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)))) {\n    iVar6 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar5 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar5 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar6 < iVar5 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar6 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar5 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar5 = iVar4;\n      }\n      iVar5 = iVar5 >> 6;\n      if (iVar6 < iVar5) {\n        iVar5 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\nLAB_001215b3:\n      iVar5 = 1;\n    }\n  }\n  else {\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      uVar8 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;\n    }\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      iVar5 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar5 = 2;\n    }\n  }\n  local_30 = param_2;\n  local_3c = 0.0;\n  local_34 = param_1;\n  local_28 = 1;\n  local_2c = uVar3;\n  GOMP_parallel(FUN_00121250,&local_3c,iVar5,0);\n  iVar4 = local_28;\n  dVar2 = local_3c;\n  DestroyCacheView(uVar3);\n  lVar7 = (longdouble)dVar2;\n  if (iVar4 == 0) {\n    lVar7 = (longdouble)0;\n  }\nLAB_00121467:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }\n  return lVar7;\n}\n\n" comment (function_definition "longdouble GetImageTotalInkDensity(int param_1,undefined4 param_2)\n\n{\n  bool bVar1;\n  double dVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  longdouble lVar7;\n  undefined8 uVar8;\n  double local_3c;\n  int local_34;\n  undefined4 local_30;\n  undefined4 local_2c;\n  int local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1213e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity");\n  }\n  if (*(int *)(param_1 + 4) != 2) {\n    ThrowMagickException\n              (param_2,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,0x1d1,\n               "ColorSeparatedImageRequired","`%s\'",param_1 + 0x318);\n    lVar7 = (longdouble)0;\n    goto LAB_00121467;\n  }\n  uVar3 = AcquireVirtualCacheView(param_1,param_2);\n  iVar4 = GetImagePixelCacheType(param_1);\n  if (((iVar4 == 4) || (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)) &&\n     ((iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)))) {\n    iVar6 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar5 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar5 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar6 < iVar5 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar6 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar5 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar5 = iVar4;\n      }\n      iVar5 = iVar5 >> 6;\n      if (iVar6 < iVar5) {\n        iVar5 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\nLAB_001215b3:\n      iVar5 = 1;\n    }\n  }\n  else {\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      uVar8 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;\n    }\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      iVar5 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar5 = 2;\n    }\n  }\n  local_30 = param_2;\n  local_3c = 0.0;\n  local_34 = param_1;\n  local_28 = 1;\n  local_2c = uVar3;\n  GOMP_parallel(FUN_00121250,&local_3c,iVar5,0);\n  iVar4 = local_28;\n  dVar2 = local_3c;\n  DestroyCacheView(uVar3);\n  lVar7 = (longdouble)dVar2;\n  if (iVar4 == 0) {\n    lVar7 = (longdouble)0;\n  }\nLAB_00121467:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }\n  return lVar7;\n}" type_identifier (function_declarator "GetImageTotalInkDensity(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  bool bVar1;\n  double dVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  longdouble lVar7;\n  undefined8 uVar8;\n  double local_3c;\n  int local_34;\n  undefined4 local_30;\n  undefined4 local_2c;\n  int local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1213e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity");\n  }\n  if (*(int *)(param_1 + 4) != 2) {\n    ThrowMagickException\n              (param_2,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,0x1d1,\n               "ColorSeparatedImageRequired","`%s\'",param_1 + 0x318);\n    lVar7 = (longdouble)0;\n    goto LAB_00121467;\n  }\n  uVar3 = AcquireVirtualCacheView(param_1,param_2);\n  iVar4 = GetImagePixelCacheType(param_1);\n  if (((iVar4 == 4) || (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)) &&\n     ((iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)))) {\n    iVar6 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar5 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar5 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar6 < iVar5 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar6 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar5 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar5 = iVar4;\n      }\n      iVar5 = iVar5 >> 6;\n      if (iVar6 < iVar5) {\n        iVar5 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\nLAB_001215b3:\n      iVar5 = 1;\n    }\n  }\n  else {\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      uVar8 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;\n    }\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      iVar5 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar5 = 2;\n    }\n  }\n  local_30 = param_2;\n  local_3c = 0.0;\n  local_34 = param_1;\n  local_28 = 1;\n  local_2c = uVar3;\n  GOMP_parallel(FUN_00121250,&local_3c,iVar5,0);\n  iVar4 = local_28;\n  dVar2 = local_3c;\n  DestroyCacheView(uVar3);\n  lVar7 = (longdouble)dVar2;\n  if (iVar4 == 0) {\n    lVar7 = (longdouble)0;\n  }\nLAB_00121467:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }\n  return lVar7;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "double dVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "longdouble lVar7;" type_identifier identifier ;) (declaration "undefined8 uVar8;" type_identifier identifier ;) (declaration "double local_3c;" primitive_type identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1213e9;" (assignment_expression "uStack_14 = 0x1213e9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity");\n  }" { comment (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity")" identifier (argument_list "("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/prepress.c"" " string_content ") , number_literal , (string_literal ""GetImageTotalInkDensity"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...");\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x3328) != 0)" ( (binary_expression "*(int *)(param_1 + 0x3328) != 0" (pointer_expression "*(int *)(param_1 + 0x3328)" * (cast_expression "(int *)(param_1 + 0x3328)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3328)" ( (binary_expression "param_1 + 0x3328" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    LogMagickEvent(0x8000,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...");\n  }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...");" (call_expression "LogMagickEvent(0x8000,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...")" identifier (argument_list "(0x8000,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...")" ( number_literal , (string_literal ""MagickCore/prepress.c"" " string_content ") , (string_literal ""GetImageTotalInkDensity"" " string_content ") , number_literal , (string_literal ""..."" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity");\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x3344) != -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x3344) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x3344)" * (cast_expression "(int *)(param_1 + 0x3344)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3344)" ( (binary_expression "param_1 + 0x3344" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity");\n  }" { comment (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/prepress.c"" " string_content ") , number_literal , (string_literal ""GetImageTotalInkDensity"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 4) != 2) {\n    ThrowMagickException\n              (param_2,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,0x1d1,\n               "ColorSeparatedImageRequired","`%s\'",param_1 + 0x318);\n    lVar7 = (longdouble)0;\n    goto LAB_00121467;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 4) != 2)" ( (binary_expression "*(int *)(param_1 + 4) != 2" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    ThrowMagickException\n              (param_2,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,0x1d1,\n               "ColorSeparatedImageRequired","`%s\'",param_1 + 0x318);\n    lVar7 = (longdouble)0;\n    goto LAB_00121467;\n  }" { (expression_statement "ThrowMagickException\n              (param_2,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,0x1d1,\n               "ColorSeparatedImageRequired","`%s\'",param_1 + 0x318);" (call_expression "ThrowMagickException\n              (param_2,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,0x1d1,\n               "ColorSeparatedImageRequired","`%s\'",param_1 + 0x318)" identifier (argument_list "(param_2,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,0x1d1,\n               "ColorSeparatedImageRequired","`%s\'",param_1 + 0x318)" ( identifier , (string_literal ""MagickCore/prepress.c"" " string_content ") , (string_literal ""GetImageTotalInkDensity"" " string_content ") , number_literal , number_literal , (string_literal ""ColorSeparatedImageRequired"" " string_content ") , (string_literal ""`%s\'"" " string_content escape_sequence ") , (binary_expression "param_1 + 0x318" identifier + number_literal) ))) ;) (expression_statement "lVar7 = (longdouble)0;" (assignment_expression "lVar7 = (longdouble)0" identifier = (cast_expression "(longdouble)0" ( (type_descriptor "longdouble" type_identifier) ) number_literal)) ;) (goto_statement "goto LAB_00121467;" goto statement_identifier ;) })) (expression_statement "uVar3 = AcquireVirtualCacheView(param_1,param_2);" (assignment_expression "uVar3 = AcquireVirtualCacheView(param_1,param_2)" identifier = (call_expression "AcquireVirtualCacheView(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (expression_statement "iVar4 = GetImagePixelCacheType(param_1);" (assignment_expression "iVar4 = GetImagePixelCacheType(param_1)" identifier = (call_expression "GetImagePixelCacheType(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (((iVar4 == 4) || (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)) &&\n     ((iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)))) {\n    iVar6 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar5 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar5 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar6 < iVar5 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar6 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar5 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar5 = iVar4;\n      }\n      iVar5 = iVar5 >> 6;\n      if (iVar6 < iVar5) {\n        iVar5 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\nLAB_001215b3:\n      iVar5 = 1;\n    }\n  }\n  else {\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      uVar8 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;\n    }\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      iVar5 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar5 = 2;\n    }\n  }" if (parenthesized_expression "(((iVar4 == 4) || (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)) &&\n     ((iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3))))" ( (binary_expression "((iVar4 == 4) || (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)) &&\n     ((iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)))" (parenthesized_expression "((iVar4 == 4) || (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3))" ( (binary_expression "(iVar4 == 4) || (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)" (parenthesized_expression "(iVar4 == 4)" ( (binary_expression "iVar4 == 4" identifier == number_literal) )) || (parenthesized_expression "(iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)" ( (comma_expression "iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3" (assignment_expression "iVar4 = GetImagePixelCacheType(param_1)" identifier = (call_expression "GetImagePixelCacheType(param_1)" identifier (argument_list "(param_1)" ( identifier )))) , (binary_expression "iVar4 == 3" identifier == number_literal)) ))) )) && (parenthesized_expression "((iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)))" ( (parenthesized_expression "(iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3))" ( (comma_expression "iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)" (assignment_expression "iVar4 = GetImagePixelCacheType(param_1)" identifier = (call_expression "GetImagePixelCacheType(param_1)" identifier (argument_list "(param_1)" ( identifier )))) , (binary_expression "iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)" (binary_expression "iVar4 == 4" identifier == number_literal) || (parenthesized_expression "(iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)" ( (comma_expression "iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3" (assignment_expression "iVar4 = GetImagePixelCacheType(param_1)" identifier = (call_expression "GetImagePixelCacheType(param_1)" identifier (argument_list "(param_1)" ( identifier )))) , (binary_expression "iVar4 == 3" identifier == number_literal)) )))) )) ))) )) (compound_statement "{\n    iVar6 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar5 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar5 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar6 < iVar5 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar6 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar5 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar5 = iVar4;\n      }\n      iVar5 = iVar5 >> 6;\n      if (iVar6 < iVar5) {\n        iVar5 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\nLAB_001215b3:\n      iVar5 = 1;\n    }\n  }" { (expression_statement "iVar6 = GetMagickResourceLimit(7);" (assignment_expression "iVar6 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x1c)" identifier = (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = iVar4 + 0x3f;" (assignment_expression "iVar5 = iVar4 + 0x3f" identifier = (binary_expression "iVar4 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < iVar4) {\n      iVar5 = iVar4;\n    }" if (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (compound_statement "{\n      iVar5 = iVar4;\n    }" { (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) })) (expression_statement "bVar1 = 0x7f < iVar4;" (assignment_expression "bVar1 = 0x7f < iVar4" identifier = (binary_expression "0x7f < iVar4" number_literal < identifier)) ;) (if_statement "if (iVar6 < iVar5 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }" if (parenthesized_expression "(iVar6 < iVar5 >> 6)" ( (binary_expression "iVar6 < iVar5 >> 6" identifier < (binary_expression "iVar5 >> 6" identifier >> number_literal)) )) (compound_statement "{\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }" { (expression_statement "iVar4 = GetMagickResourceLimit(7);" (assignment_expression "iVar4 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (expression_statement "bVar1 = 1 < iVar4;" (assignment_expression "bVar1 = 1 < iVar4" identifier = (binary_expression "1 < iVar4" number_literal < identifier)) ;) })) (if_statement "if (bVar1) {\n      iVar6 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar5 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar5 = iVar4;\n      }\n      iVar5 = iVar5 >> 6;\n      if (iVar6 < iVar5) {\n        iVar5 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\nLAB_001215b3:\n      iVar5 = 1;\n    }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n      iVar6 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar5 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar5 = iVar4;\n      }\n      iVar5 = iVar5 >> 6;\n      if (iVar6 < iVar5) {\n        iVar5 = GetMagickResourceLimit(7);\n      }\n    }" { (expression_statement "iVar6 = GetMagickResourceLimit(7);" (assignment_expression "iVar6 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x1c)" identifier = (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = iVar4 + 0x3f;" (assignment_expression "iVar5 = iVar4 + 0x3f" identifier = (binary_expression "iVar4 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < iVar4) {\n        iVar5 = iVar4;\n      }" if (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (compound_statement "{\n        iVar5 = iVar4;\n      }" { (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) })) (expression_statement "iVar5 = iVar5 >> 6;" (assignment_expression "iVar5 = iVar5 >> 6" identifier = (binary_expression "iVar5 >> 6" identifier >> number_literal)) ;) (if_statement "if (iVar6 < iVar5) {\n        iVar5 = GetMagickResourceLimit(7);\n      }" if (parenthesized_expression "(iVar6 < iVar5)" ( (binary_expression "iVar6 < iVar5" identifier < identifier) )) (compound_statement "{\n        iVar5 = GetMagickResourceLimit(7);\n      }" { (expression_statement "iVar5 = GetMagickResourceLimit(7);" (assignment_expression "iVar5 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) })) }) (else_clause "else {\nLAB_001215b3:\n      iVar5 = 1;\n    }" else (compound_statement "{\nLAB_001215b3:\n      iVar5 = 1;\n    }" { (labeled_statement "LAB_001215b3:\n      iVar5 = 1;" statement_identifier : (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;)) }))) }) (else_clause "else {\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      uVar8 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;\n    }\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      iVar5 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar5 = 2;\n    }\n  }" else (compound_statement "{\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      uVar8 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;\n    }\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      iVar5 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar5 = 2;\n    }\n  }" { (expression_statement "uVar8 = GetMagickResourceLimit(7);" (assignment_expression "uVar8 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (if_statement "if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      uVar8 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;\n    }" if (parenthesized_expression "(((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2))" ( (binary_expression "((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)" (parenthesized_expression "((int)((ulonglong)uVar8 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar8 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar8 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar8 >> 0x20)" ( (binary_expression "(ulonglong)uVar8 >> 0x20" (cast_expression "(ulonglong)uVar8" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar8 < 2)" ( (binary_expression "(uint)uVar8 < 2" (cast_expression "(uint)uVar8" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n      uVar8 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;\n    }" { (expression_statement "uVar8 = GetMagickResourceLimit(7);" (assignment_expression "uVar8 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (if_statement "if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;" if (parenthesized_expression "(((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2))" ( (binary_expression "((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)" (parenthesized_expression "((int)((ulonglong)uVar8 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar8 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar8 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar8 >> 0x20)" ( (binary_expression "(ulonglong)uVar8 >> 0x20" (cast_expression "(ulonglong)uVar8" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar8 < 2)" ( (binary_expression "(uint)uVar8 < 2" (cast_expression "(uint)uVar8" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (goto_statement "goto LAB_001215b3;" goto statement_identifier ;)) })) (expression_statement "uVar8 = GetMagickResourceLimit(7);" (assignment_expression "uVar8 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (if_statement "if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      iVar5 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar5 = 2;\n    }" if (parenthesized_expression "(((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2))" ( (binary_expression "((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)" (parenthesized_expression "((int)((ulonglong)uVar8 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar8 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar8 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar8 >> 0x20)" ( (binary_expression "(ulonglong)uVar8 >> 0x20" (cast_expression "(ulonglong)uVar8" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar8 < 2)" ( (binary_expression "(uint)uVar8 < 2" (cast_expression "(uint)uVar8" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n      iVar5 = GetMagickResourceLimit(7);\n    }" { (expression_statement "iVar5 = GetMagickResourceLimit(7);" (assignment_expression "iVar5 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) }) (else_clause "else {\n      iVar5 = 2;\n    }" else (compound_statement "{\n      iVar5 = 2;\n    }" { (expression_statement "iVar5 = 2;" (assignment_expression "iVar5 = 2" identifier = number_literal) ;) }))) }))) (expression_statement "local_30 = param_2;" (assignment_expression "local_30 = param_2" identifier = identifier) ;) (expression_statement "local_3c = 0.0;" (assignment_expression "local_3c = 0.0" identifier = number_literal) ;) (expression_statement "local_34 = param_1;" (assignment_expression "local_34 = param_1" identifier = identifier) ;) (expression_statement "local_28 = 1;" (assignment_expression "local_28 = 1" identifier = number_literal) ;) (expression_statement "local_2c = uVar3;" (assignment_expression "local_2c = uVar3" identifier = identifier) ;) (expression_statement "GOMP_parallel(FUN_00121250,&local_3c,iVar5,0);" (call_expression "GOMP_parallel(FUN_00121250,&local_3c,iVar5,0)" identifier (argument_list "(FUN_00121250,&local_3c,iVar5,0)" ( identifier , (pointer_expression "&local_3c" & identifier) , identifier , number_literal ))) ;) (expression_statement "iVar4 = local_28;" (assignment_expression "iVar4 = local_28" identifier = identifier) ;) (expression_statement "dVar2 = local_3c;" (assignment_expression "dVar2 = local_3c" identifier = identifier) ;) (expression_statement "DestroyCacheView(uVar3);" (call_expression "DestroyCacheView(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (expression_statement "lVar7 = (longdouble)dVar2;" (assignment_expression "lVar7 = (longdouble)dVar2" identifier = (cast_expression "(longdouble)dVar2" ( (type_descriptor "longdouble" type_identifier) ) identifier)) ;) (if_statement "if (iVar4 == 0) {\n    lVar7 = (longdouble)0;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    lVar7 = (longdouble)0;\n  }" { (expression_statement "lVar7 = (longdouble)0;" (assignment_expression "lVar7 = (longdouble)0" identifier = (cast_expression "(longdouble)0" ( (type_descriptor "longdouble" type_identifier) ) number_literal)) ;) })) (labeled_statement "LAB_00121467:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }" { comment (expression_statement "FUN_0029eab0();" (call_expression "FUN_0029eab0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return lVar7;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* WARNING: Enum "DisposeType": Some values do not have unique names */\n/* WARNING: Enum "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "PixelChannel": Some values do not have unique names */\n/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n/* WARNING: Enum "LogEventType": Some values do not have unique names */\n\ndouble GetImageTotalInkDensity(Image *image,ExceptionInfo *exception)\n\n{\n  size_t sVar1;\n  bool bVar2;\n  double dVar3;\n  CacheView *cache_view;\n  CacheType CVar4;\n  int iVar5;\n  size_t sVar6;\n  int in_GS_OFFSET;\n  MagickSizeType MVar7;\n  double local_3c;\n  Image *local_34;\n  ExceptionInfo *local_30;\n  CacheView *local_2c;\n  int local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1213e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity");\n  }\n  if (image->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...");\n  }\n  if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity");\n  }\n  if (image->colorspace != CMYKColorspace) {\n    ThrowMagickException\n              (exception,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,ImageError,\n               "ColorSeparatedImageRequired","`%s\'",image->filename);\n    dVar3 = 0.0;\n    goto LAB_00121467;\n  }\n  cache_view = AcquireVirtualCacheView(image,exception);\n  CVar4 = GetImagePixelCacheType(image);\n  if (((CVar4 == MemoryCache) || (CVar4 = GetImagePixelCacheType(image), CVar4 == MapCache)) &&\n     ((CVar4 = GetImagePixelCacheType(image), CVar4 == MemoryCache ||\n      (CVar4 = GetImagePixelCacheType(image), CVar4 == MapCache)))) {\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    sVar1 = image->rows;\n    sVar6 = sVar1 + 0x3f;\n    if (-1 < (int)sVar1) {\n      sVar6 = sVar1;\n    }\n    bVar2 = 0x7f < (int)sVar1;\n    if ((int)MVar7 < (int)sVar6 >> 6) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      bVar2 = 1 < (int)MVar7;\n    }\n    if (bVar2) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      sVar1 = image->rows;\n      sVar6 = sVar1 + 0x3f;\n      if (-1 < (int)sVar1) {\n        sVar6 = sVar1;\n      }\n      iVar5 = (int)sVar6 >> 6;\n      if ((int)MVar7 < iVar5) {\n        MVar7 = GetMagickResourceLimit(ThreadResource);\n        iVar5 = (int)MVar7;\n      }\n    }\n    else {\nLAB_001215b3:\n      iVar5 = 1;\n    }\n  }\n  else {\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) goto LAB_001215b3;\n    }\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      iVar5 = (int)MVar7;\n    }\n    else {\n      iVar5 = 2;\n    }\n  }\n  local_30 = exception;\n  local_3c = 0.0;\n  local_34 = image;\n  local_28 = 1;\n  local_2c = cache_view;\n  GOMP_parallel(GetImageTotalInkDensity__omp_fn_0,&local_3c,iVar5,0);\n  iVar5 = local_28;\n  dVar3 = local_3c;\n  DestroyCacheView(cache_view);\n  if (iVar5 == 0) {\n    dVar3 = 0.0;\n  }\nLAB_00121467:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return dVar3;\n}\n\n" comment comment comment comment comment comment comment comment (function_definition "double GetImageTotalInkDensity(Image *image,ExceptionInfo *exception)\n\n{\n  size_t sVar1;\n  bool bVar2;\n  double dVar3;\n  CacheView *cache_view;\n  CacheType CVar4;\n  int iVar5;\n  size_t sVar6;\n  int in_GS_OFFSET;\n  MagickSizeType MVar7;\n  double local_3c;\n  Image *local_34;\n  ExceptionInfo *local_30;\n  CacheView *local_2c;\n  int local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1213e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity");\n  }\n  if (image->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...");\n  }\n  if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity");\n  }\n  if (image->colorspace != CMYKColorspace) {\n    ThrowMagickException\n              (exception,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,ImageError,\n               "ColorSeparatedImageRequired","`%s\'",image->filename);\n    dVar3 = 0.0;\n    goto LAB_00121467;\n  }\n  cache_view = AcquireVirtualCacheView(image,exception);\n  CVar4 = GetImagePixelCacheType(image);\n  if (((CVar4 == MemoryCache) || (CVar4 = GetImagePixelCacheType(image), CVar4 == MapCache)) &&\n     ((CVar4 = GetImagePixelCacheType(image), CVar4 == MemoryCache ||\n      (CVar4 = GetImagePixelCacheType(image), CVar4 == MapCache)))) {\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    sVar1 = image->rows;\n    sVar6 = sVar1 + 0x3f;\n    if (-1 < (int)sVar1) {\n      sVar6 = sVar1;\n    }\n    bVar2 = 0x7f < (int)sVar1;\n    if ((int)MVar7 < (int)sVar6 >> 6) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      bVar2 = 1 < (int)MVar7;\n    }\n    if (bVar2) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      sVar1 = image->rows;\n      sVar6 = sVar1 + 0x3f;\n      if (-1 < (int)sVar1) {\n        sVar6 = sVar1;\n      }\n      iVar5 = (int)sVar6 >> 6;\n      if ((int)MVar7 < iVar5) {\n        MVar7 = GetMagickResourceLimit(ThreadResource);\n        iVar5 = (int)MVar7;\n      }\n    }\n    else {\nLAB_001215b3:\n      iVar5 = 1;\n    }\n  }\n  else {\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) goto LAB_001215b3;\n    }\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      iVar5 = (int)MVar7;\n    }\n    else {\n      iVar5 = 2;\n    }\n  }\n  local_30 = exception;\n  local_3c = 0.0;\n  local_34 = image;\n  local_28 = 1;\n  local_2c = cache_view;\n  GOMP_parallel(GetImageTotalInkDensity__omp_fn_0,&local_3c,iVar5,0);\n  iVar5 = local_28;\n  dVar3 = local_3c;\n  DestroyCacheView(cache_view);\n  if (iVar5 == 0) {\n    dVar3 = 0.0;\n  }\nLAB_00121467:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return dVar3;\n}" primitive_type (function_declarator "GetImageTotalInkDensity(Image *image,ExceptionInfo *exception)" identifier (parameter_list "(Image *image,ExceptionInfo *exception)" ( (parameter_declaration "Image *image" type_identifier (pointer_declarator "*image" * identifier)) , (parameter_declaration "ExceptionInfo *exception" type_identifier (pointer_declarator "*exception" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  bool bVar2;\n  double dVar3;\n  CacheView *cache_view;\n  CacheType CVar4;\n  int iVar5;\n  size_t sVar6;\n  int in_GS_OFFSET;\n  MagickSizeType MVar7;\n  double local_3c;\n  Image *local_34;\n  ExceptionInfo *local_30;\n  CacheView *local_2c;\n  int local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1213e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity");\n  }\n  if (image->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...");\n  }\n  if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity");\n  }\n  if (image->colorspace != CMYKColorspace) {\n    ThrowMagickException\n              (exception,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,ImageError,\n               "ColorSeparatedImageRequired","`%s\'",image->filename);\n    dVar3 = 0.0;\n    goto LAB_00121467;\n  }\n  cache_view = AcquireVirtualCacheView(image,exception);\n  CVar4 = GetImagePixelCacheType(image);\n  if (((CVar4 == MemoryCache) || (CVar4 = GetImagePixelCacheType(image), CVar4 == MapCache)) &&\n     ((CVar4 = GetImagePixelCacheType(image), CVar4 == MemoryCache ||\n      (CVar4 = GetImagePixelCacheType(image), CVar4 == MapCache)))) {\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    sVar1 = image->rows;\n    sVar6 = sVar1 + 0x3f;\n    if (-1 < (int)sVar1) {\n      sVar6 = sVar1;\n    }\n    bVar2 = 0x7f < (int)sVar1;\n    if ((int)MVar7 < (int)sVar6 >> 6) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      bVar2 = 1 < (int)MVar7;\n    }\n    if (bVar2) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      sVar1 = image->rows;\n      sVar6 = sVar1 + 0x3f;\n      if (-1 < (int)sVar1) {\n        sVar6 = sVar1;\n      }\n      iVar5 = (int)sVar6 >> 6;\n      if ((int)MVar7 < iVar5) {\n        MVar7 = GetMagickResourceLimit(ThreadResource);\n        iVar5 = (int)MVar7;\n      }\n    }\n    else {\nLAB_001215b3:\n      iVar5 = 1;\n    }\n  }\n  else {\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) goto LAB_001215b3;\n    }\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      iVar5 = (int)MVar7;\n    }\n    else {\n      iVar5 = 2;\n    }\n  }\n  local_30 = exception;\n  local_3c = 0.0;\n  local_34 = image;\n  local_28 = 1;\n  local_2c = cache_view;\n  GOMP_parallel(GetImageTotalInkDensity__omp_fn_0,&local_3c,iVar5,0);\n  iVar5 = local_28;\n  dVar3 = local_3c;\n  DestroyCacheView(cache_view);\n  if (iVar5 == 0) {\n    dVar3 = 0.0;\n  }\nLAB_00121467:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return dVar3;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "double dVar3;" primitive_type identifier ;) (declaration "CacheView *cache_view;" type_identifier (pointer_declarator "*cache_view" * identifier) ;) (declaration "CacheType CVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "MagickSizeType MVar7;" type_identifier identifier ;) (declaration "double local_3c;" primitive_type identifier ;) (declaration "Image *local_34;" type_identifier (pointer_declarator "*local_34" * identifier) ;) (declaration "ExceptionInfo *local_30;" type_identifier (pointer_declarator "*local_30" * identifier) ;) (declaration "CacheView *local_2c;" type_identifier (pointer_declarator "*local_2c" * identifier) ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1213e9;" (assignment_expression "uStack_14 = 0x1213e9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity");\n  }" if (parenthesized_expression "(image == (Image *)0x0)" ( (binary_expression "image == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity");\n  }" { comment (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity")" identifier (argument_list "("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/prepress.c"" " string_content ") , number_literal , (string_literal ""GetImageTotalInkDensity"" " string_content ") ))) ;) })) (if_statement "if (image->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...");\n  }" if (parenthesized_expression "(image->debug != MagickFalse)" ( (binary_expression "image->debug != MagickFalse" (field_expression "image->debug" identifier -> field_identifier) != identifier) )) (compound_statement "{\n    LogMagickEvent(TraceEvent,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...");\n  }" { (expression_statement "LogMagickEvent(TraceEvent,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...");" (call_expression "LogMagickEvent(TraceEvent,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...")" identifier (argument_list "(TraceEvent,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...")" ( identifier , (string_literal ""MagickCore/prepress.c"" " string_content ") , (string_literal ""GetImageTotalInkDensity"" " string_content ") , number_literal , (string_literal ""..."" " string_content ") ))) ;) })) (if_statement "if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity");\n  }" if (parenthesized_expression "(image->signature != 0xabacadab)" ( (binary_expression "image->signature != 0xabacadab" (field_expression "image->signature" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity");\n  }" { comment (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/prepress.c"" " string_content ") , number_literal , (string_literal ""GetImageTotalInkDensity"" " string_content ") ))) ;) })) (if_statement "if (image->colorspace != CMYKColorspace) {\n    ThrowMagickException\n              (exception,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,ImageError,\n               "ColorSeparatedImageRequired","`%s\'",image->filename);\n    dVar3 = 0.0;\n    goto LAB_00121467;\n  }" if (parenthesized_expression "(image->colorspace != CMYKColorspace)" ( (binary_expression "image->colorspace != CMYKColorspace" (field_expression "image->colorspace" identifier -> field_identifier) != identifier) )) (compound_statement "{\n    ThrowMagickException\n              (exception,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,ImageError,\n               "ColorSeparatedImageRequired","`%s\'",image->filename);\n    dVar3 = 0.0;\n    goto LAB_00121467;\n  }" { (expression_statement "ThrowMagickException\n              (exception,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,ImageError,\n               "ColorSeparatedImageRequired","`%s\'",image->filename);" (call_expression "ThrowMagickException\n              (exception,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,ImageError,\n               "ColorSeparatedImageRequired","`%s\'",image->filename)" identifier (argument_list "(exception,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,ImageError,\n               "ColorSeparatedImageRequired","`%s\'",image->filename)" ( identifier , (string_literal ""MagickCore/prepress.c"" " string_content ") , (string_literal ""GetImageTotalInkDensity"" " string_content ") , number_literal , identifier , (string_literal ""ColorSeparatedImageRequired"" " string_content ") , (string_literal ""`%s\'"" " string_content escape_sequence ") , (field_expression "image->filename" identifier -> field_identifier) ))) ;) (expression_statement "dVar3 = 0.0;" (assignment_expression "dVar3 = 0.0" identifier = number_literal) ;) (goto_statement "goto LAB_00121467;" goto statement_identifier ;) })) (expression_statement "cache_view = AcquireVirtualCacheView(image,exception);" (assignment_expression "cache_view = AcquireVirtualCacheView(image,exception)" identifier = (call_expression "AcquireVirtualCacheView(image,exception)" identifier (argument_list "(image,exception)" ( identifier , identifier )))) ;) (expression_statement "CVar4 = GetImagePixelCacheType(image);" (assignment_expression "CVar4 = GetImagePixelCacheType(image)" identifier = (call_expression "GetImagePixelCacheType(image)" identifier (argument_list "(image)" ( identifier )))) ;) (if_statement "if (((CVar4 == MemoryCache) || (CVar4 = GetImagePixelCacheType(image), CVar4 == MapCache)) &&\n     ((CVar4 = GetImagePixelCacheType(image), CVar4 == MemoryCache ||\n      (CVar4 = GetImagePixelCacheType(image), CVar4 == MapCache)))) {\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    sVar1 = image->rows;\n    sVar6 = sVar1 + 0x3f;\n    if (-1 < (int)sVar1) {\n      sVar6 = sVar1;\n    }\n    bVar2 = 0x7f < (int)sVar1;\n    if ((int)MVar7 < (int)sVar6 >> 6) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      bVar2 = 1 < (int)MVar7;\n    }\n    if (bVar2) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      sVar1 = image->rows;\n      sVar6 = sVar1 + 0x3f;\n      if (-1 < (int)sVar1) {\n        sVar6 = sVar1;\n      }\n      iVar5 = (int)sVar6 >> 6;\n      if ((int)MVar7 < iVar5) {\n        MVar7 = GetMagickResourceLimit(ThreadResource);\n        iVar5 = (int)MVar7;\n      }\n    }\n    else {\nLAB_001215b3:\n      iVar5 = 1;\n    }\n  }\n  else {\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) goto LAB_001215b3;\n    }\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      iVar5 = (int)MVar7;\n    }\n    else {\n      iVar5 = 2;\n    }\n  }" if (parenthesized_expression "(((CVar4 == MemoryCache) || (CVar4 = GetImagePixelCacheType(image), CVar4 == MapCache)) &&\n     ((CVar4 = GetImagePixelCacheType(image), CVar4 == MemoryCache ||\n      (CVar4 = GetImagePixelCacheType(image), CVar4 == MapCache))))" ( (binary_expression "((CVar4 == MemoryCache) || (CVar4 = GetImagePixelCacheType(image), CVar4 == MapCache)) &&\n     ((CVar4 = GetImagePixelCacheType(image), CVar4 == MemoryCache ||\n      (CVar4 = GetImagePixelCacheType(image), CVar4 == MapCache)))" (parenthesized_expression "((CVar4 == MemoryCache) || (CVar4 = GetImagePixelCacheType(image), CVar4 == MapCache))" ( (binary_expression "(CVar4 == MemoryCache) || (CVar4 = GetImagePixelCacheType(image), CVar4 == MapCache)" (parenthesized_expression "(CVar4 == MemoryCache)" ( (binary_expression "CVar4 == MemoryCache" identifier == identifier) )) || (parenthesized_expression "(CVar4 = GetImagePixelCacheType(image), CVar4 == MapCache)" ( (comma_expression "CVar4 = GetImagePixelCacheType(image), CVar4 == MapCache" (assignment_expression "CVar4 = GetImagePixelCacheType(image)" identifier = (call_expression "GetImagePixelCacheType(image)" identifier (argument_list "(image)" ( identifier )))) , (binary_expression "CVar4 == MapCache" identifier == identifier)) ))) )) && (parenthesized_expression "((CVar4 = GetImagePixelCacheType(image), CVar4 == MemoryCache ||\n      (CVar4 = GetImagePixelCacheType(image), CVar4 == MapCache)))" ( (parenthesized_expression "(CVar4 = GetImagePixelCacheType(image), CVar4 == MemoryCache ||\n      (CVar4 = GetImagePixelCacheType(image), CVar4 == MapCache))" ( (comma_expression "CVar4 = GetImagePixelCacheType(image), CVar4 == MemoryCache ||\n      (CVar4 = GetImagePixelCacheType(image), CVar4 == MapCache)" (assignment_expression "CVar4 = GetImagePixelCacheType(image)" identifier = (call_expression "GetImagePixelCacheType(image)" identifier (argument_list "(image)" ( identifier )))) , (binary_expression "CVar4 == MemoryCache ||\n      (CVar4 = GetImagePixelCacheType(image), CVar4 == MapCache)" (binary_expression "CVar4 == MemoryCache" identifier == identifier) || (parenthesized_expression "(CVar4 = GetImagePixelCacheType(image), CVar4 == MapCache)" ( (comma_expression "CVar4 = GetImagePixelCacheType(image), CVar4 == MapCache" (assignment_expression "CVar4 = GetImagePixelCacheType(image)" identifier = (call_expression "GetImagePixelCacheType(image)" identifier (argument_list "(image)" ( identifier )))) , (binary_expression "CVar4 == MapCache" identifier == identifier)) )))) )) ))) )) (compound_statement "{\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    sVar1 = image->rows;\n    sVar6 = sVar1 + 0x3f;\n    if (-1 < (int)sVar1) {\n      sVar6 = sVar1;\n    }\n    bVar2 = 0x7f < (int)sVar1;\n    if ((int)MVar7 < (int)sVar6 >> 6) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      bVar2 = 1 < (int)MVar7;\n    }\n    if (bVar2) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      sVar1 = image->rows;\n      sVar6 = sVar1 + 0x3f;\n      if (-1 < (int)sVar1) {\n        sVar6 = sVar1;\n      }\n      iVar5 = (int)sVar6 >> 6;\n      if ((int)MVar7 < iVar5) {\n        MVar7 = GetMagickResourceLimit(ThreadResource);\n        iVar5 = (int)MVar7;\n      }\n    }\n    else {\nLAB_001215b3:\n      iVar5 = 1;\n    }\n  }" { (expression_statement "MVar7 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar7 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (expression_statement "sVar1 = image->rows;" (assignment_expression "sVar1 = image->rows" identifier = (field_expression "image->rows" identifier -> field_identifier)) ;) (expression_statement "sVar6 = sVar1 + 0x3f;" (assignment_expression "sVar6 = sVar1 + 0x3f" identifier = (binary_expression "sVar1 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < (int)sVar1) {\n      sVar6 = sVar1;\n    }" if (parenthesized_expression "(-1 < (int)sVar1)" ( (binary_expression "-1 < (int)sVar1" number_literal < (cast_expression "(int)sVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      sVar6 = sVar1;\n    }" { (expression_statement "sVar6 = sVar1;" (assignment_expression "sVar6 = sVar1" identifier = identifier) ;) })) (expression_statement "bVar2 = 0x7f < (int)sVar1;" (assignment_expression "bVar2 = 0x7f < (int)sVar1" identifier = (binary_expression "0x7f < (int)sVar1" number_literal < (cast_expression "(int)sVar1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if ((int)MVar7 < (int)sVar6 >> 6) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      bVar2 = 1 < (int)MVar7;\n    }" if (parenthesized_expression "((int)MVar7 < (int)sVar6 >> 6)" ( (binary_expression "(int)MVar7 < (int)sVar6 >> 6" (cast_expression "(int)MVar7" ( (type_descriptor "int" primitive_type) ) identifier) < (binary_expression "(int)sVar6 >> 6" (cast_expression "(int)sVar6" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) )) (compound_statement "{\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      bVar2 = 1 < (int)MVar7;\n    }" { (expression_statement "MVar7 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar7 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (expression_statement "bVar2 = 1 < (int)MVar7;" (assignment_expression "bVar2 = 1 < (int)MVar7" identifier = (binary_expression "1 < (int)MVar7" number_literal < (cast_expression "(int)MVar7" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (if_statement "if (bVar2) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      sVar1 = image->rows;\n      sVar6 = sVar1 + 0x3f;\n      if (-1 < (int)sVar1) {\n        sVar6 = sVar1;\n      }\n      iVar5 = (int)sVar6 >> 6;\n      if ((int)MVar7 < iVar5) {\n        MVar7 = GetMagickResourceLimit(ThreadResource);\n        iVar5 = (int)MVar7;\n      }\n    }\n    else {\nLAB_001215b3:\n      iVar5 = 1;\n    }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      sVar1 = image->rows;\n      sVar6 = sVar1 + 0x3f;\n      if (-1 < (int)sVar1) {\n        sVar6 = sVar1;\n      }\n      iVar5 = (int)sVar6 >> 6;\n      if ((int)MVar7 < iVar5) {\n        MVar7 = GetMagickResourceLimit(ThreadResource);\n        iVar5 = (int)MVar7;\n      }\n    }" { (expression_statement "MVar7 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar7 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (expression_statement "sVar1 = image->rows;" (assignment_expression "sVar1 = image->rows" identifier = (field_expression "image->rows" identifier -> field_identifier)) ;) (expression_statement "sVar6 = sVar1 + 0x3f;" (assignment_expression "sVar6 = sVar1 + 0x3f" identifier = (binary_expression "sVar1 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < (int)sVar1) {\n        sVar6 = sVar1;\n      }" if (parenthesized_expression "(-1 < (int)sVar1)" ( (binary_expression "-1 < (int)sVar1" number_literal < (cast_expression "(int)sVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        sVar6 = sVar1;\n      }" { (expression_statement "sVar6 = sVar1;" (assignment_expression "sVar6 = sVar1" identifier = identifier) ;) })) (expression_statement "iVar5 = (int)sVar6 >> 6;" (assignment_expression "iVar5 = (int)sVar6 >> 6" identifier = (binary_expression "(int)sVar6 >> 6" (cast_expression "(int)sVar6" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (if_statement "if ((int)MVar7 < iVar5) {\n        MVar7 = GetMagickResourceLimit(ThreadResource);\n        iVar5 = (int)MVar7;\n      }" if (parenthesized_expression "((int)MVar7 < iVar5)" ( (binary_expression "(int)MVar7 < iVar5" (cast_expression "(int)MVar7" ( (type_descriptor "int" primitive_type) ) identifier) < identifier) )) (compound_statement "{\n        MVar7 = GetMagickResourceLimit(ThreadResource);\n        iVar5 = (int)MVar7;\n      }" { (expression_statement "MVar7 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar7 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (expression_statement "iVar5 = (int)MVar7;" (assignment_expression "iVar5 = (int)MVar7" identifier = (cast_expression "(int)MVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) }) (else_clause "else {\nLAB_001215b3:\n      iVar5 = 1;\n    }" else (compound_statement "{\nLAB_001215b3:\n      iVar5 = 1;\n    }" { (labeled_statement "LAB_001215b3:\n      iVar5 = 1;" statement_identifier : (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;)) }))) }) (else_clause "else {\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) goto LAB_001215b3;\n    }\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      iVar5 = (int)MVar7;\n    }\n    else {\n      iVar5 = 2;\n    }\n  }" else (compound_statement "{\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) goto LAB_001215b3;\n    }\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      iVar5 = (int)MVar7;\n    }\n    else {\n      iVar5 = 2;\n    }\n  }" { (expression_statement "MVar7 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar7 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (if_statement "if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) goto LAB_001215b3;\n    }" if (parenthesized_expression "(((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2))" ( (binary_expression "((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)" (parenthesized_expression "((int)(MVar7 >> 0x20) == 0)" ( (binary_expression "(int)(MVar7 >> 0x20) == 0" (cast_expression "(int)(MVar7 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(MVar7 >> 0x20)" ( (binary_expression "MVar7 >> 0x20" identifier >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)MVar7 < 2)" ( (binary_expression "(uint)MVar7 < 2" (cast_expression "(uint)MVar7" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) goto LAB_001215b3;\n    }" { (expression_statement "MVar7 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar7 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (if_statement "if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) goto LAB_001215b3;" if (parenthesized_expression "(((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2))" ( (binary_expression "((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)" (parenthesized_expression "((int)(MVar7 >> 0x20) == 0)" ( (binary_expression "(int)(MVar7 >> 0x20) == 0" (cast_expression "(int)(MVar7 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(MVar7 >> 0x20)" ( (binary_expression "MVar7 >> 0x20" identifier >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)MVar7 < 2)" ( (binary_expression "(uint)MVar7 < 2" (cast_expression "(uint)MVar7" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (goto_statement "goto LAB_001215b3;" goto statement_identifier ;)) })) (expression_statement "MVar7 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar7 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (if_statement "if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      iVar5 = (int)MVar7;\n    }\n    else {\n      iVar5 = 2;\n    }" if (parenthesized_expression "(((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2))" ( (binary_expression "((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)" (parenthesized_expression "((int)(MVar7 >> 0x20) == 0)" ( (binary_expression "(int)(MVar7 >> 0x20) == 0" (cast_expression "(int)(MVar7 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(MVar7 >> 0x20)" ( (binary_expression "MVar7 >> 0x20" identifier >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)MVar7 < 2)" ( (binary_expression "(uint)MVar7 < 2" (cast_expression "(uint)MVar7" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      iVar5 = (int)MVar7;\n    }" { (expression_statement "MVar7 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar7 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (expression_statement "iVar5 = (int)MVar7;" (assignment_expression "iVar5 = (int)MVar7" identifier = (cast_expression "(int)MVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n      iVar5 = 2;\n    }" else (compound_statement "{\n      iVar5 = 2;\n    }" { (expression_statement "iVar5 = 2;" (assignment_expression "iVar5 = 2" identifier = number_literal) ;) }))) }))) (expression_statement "local_30 = exception;" (assignment_expression "local_30 = exception" identifier = identifier) ;) (expression_statement "local_3c = 0.0;" (assignment_expression "local_3c = 0.0" identifier = number_literal) ;) (expression_statement "local_34 = image;" (assignment_expression "local_34 = image" identifier = identifier) ;) (expression_statement "local_28 = 1;" (assignment_expression "local_28 = 1" identifier = number_literal) ;) (expression_statement "local_2c = cache_view;" (assignment_expression "local_2c = cache_view" identifier = identifier) ;) (expression_statement "GOMP_parallel(GetImageTotalInkDensity__omp_fn_0,&local_3c,iVar5,0);" (call_expression "GOMP_parallel(GetImageTotalInkDensity__omp_fn_0,&local_3c,iVar5,0)" identifier (argument_list "(GetImageTotalInkDensity__omp_fn_0,&local_3c,iVar5,0)" ( identifier , (pointer_expression "&local_3c" & identifier) , identifier , number_literal ))) ;) (expression_statement "iVar5 = local_28;" (assignment_expression "iVar5 = local_28" identifier = identifier) ;) (expression_statement "dVar3 = local_3c;" (assignment_expression "dVar3 = local_3c" identifier = identifier) ;) (expression_statement "DestroyCacheView(cache_view);" (call_expression "DestroyCacheView(cache_view)" identifier (argument_list "(cache_view)" ( identifier ))) ;) (if_statement "if (iVar5 == 0) {\n    dVar3 = 0.0;\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    dVar3 = 0.0;\n  }" { (expression_statement "dVar3 = 0.0;" (assignment_expression "dVar3 = 0.0" identifier = number_literal) ;) })) (labeled_statement "LAB_00121467:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return dVar3;" return identifier ;) })))
(translation_unit "longdouble GetImageTotalInkDensity(int param_1,undefined4 param_2)\n\n{\n  bool bVar1;\n  double dVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  longdouble lVar7;\n  undefined8 uVar8;\n  double local_3c;\n  int local_34;\n  undefined4 local_30;\n  undefined4 local_2c;\n  int local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1213e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity");\n  }\n  if (*(int *)(param_1 + 4) != 2) {\n    ThrowMagickException\n              (param_2,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,0x1d1,\n               "ColorSeparatedImageRequired","`%s\'",param_1 + 0x318);\n    lVar7 = (longdouble)0;\n    goto LAB_00121467;\n  }\n  uVar3 = AcquireVirtualCacheView(param_1,param_2);\n  iVar4 = GetImagePixelCacheType(param_1);\n  if (((iVar4 == 4) || (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)) &&\n     ((iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)))) {\n    iVar6 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar5 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar5 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar6 < iVar5 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar6 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar5 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar5 = iVar4;\n      }\n      iVar5 = iVar5 >> 6;\n      if (iVar6 < iVar5) {\n        iVar5 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\nLAB_001215b3:\n      iVar5 = 1;\n    }\n  }\n  else {\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      uVar8 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;\n    }\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      iVar5 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar5 = 2;\n    }\n  }\n  local_30 = param_2;\n  local_3c = 0.0;\n  local_34 = param_1;\n  local_28 = 1;\n  local_2c = uVar3;\n  GOMP_parallel(FUN_00121250,&local_3c,iVar5,0);\n  iVar4 = local_28;\n  dVar2 = local_3c;\n  DestroyCacheView(uVar3);\n  lVar7 = (longdouble)dVar2;\n  if (iVar4 == 0) {\n    lVar7 = (longdouble)0;\n  }\nLAB_00121467:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return lVar7;\n}\n\n" (function_definition "longdouble GetImageTotalInkDensity(int param_1,undefined4 param_2)\n\n{\n  bool bVar1;\n  double dVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  longdouble lVar7;\n  undefined8 uVar8;\n  double local_3c;\n  int local_34;\n  undefined4 local_30;\n  undefined4 local_2c;\n  int local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1213e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity");\n  }\n  if (*(int *)(param_1 + 4) != 2) {\n    ThrowMagickException\n              (param_2,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,0x1d1,\n               "ColorSeparatedImageRequired","`%s\'",param_1 + 0x318);\n    lVar7 = (longdouble)0;\n    goto LAB_00121467;\n  }\n  uVar3 = AcquireVirtualCacheView(param_1,param_2);\n  iVar4 = GetImagePixelCacheType(param_1);\n  if (((iVar4 == 4) || (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)) &&\n     ((iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)))) {\n    iVar6 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar5 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar5 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar6 < iVar5 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar6 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar5 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar5 = iVar4;\n      }\n      iVar5 = iVar5 >> 6;\n      if (iVar6 < iVar5) {\n        iVar5 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\nLAB_001215b3:\n      iVar5 = 1;\n    }\n  }\n  else {\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      uVar8 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;\n    }\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      iVar5 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar5 = 2;\n    }\n  }\n  local_30 = param_2;\n  local_3c = 0.0;\n  local_34 = param_1;\n  local_28 = 1;\n  local_2c = uVar3;\n  GOMP_parallel(FUN_00121250,&local_3c,iVar5,0);\n  iVar4 = local_28;\n  dVar2 = local_3c;\n  DestroyCacheView(uVar3);\n  lVar7 = (longdouble)dVar2;\n  if (iVar4 == 0) {\n    lVar7 = (longdouble)0;\n  }\nLAB_00121467:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return lVar7;\n}" type_identifier (function_declarator "GetImageTotalInkDensity(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  bool bVar1;\n  double dVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  longdouble lVar7;\n  undefined8 uVar8;\n  double local_3c;\n  int local_34;\n  undefined4 local_30;\n  undefined4 local_2c;\n  int local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1213e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity");\n  }\n  if (*(int *)(param_1 + 4) != 2) {\n    ThrowMagickException\n              (param_2,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,0x1d1,\n               "ColorSeparatedImageRequired","`%s\'",param_1 + 0x318);\n    lVar7 = (longdouble)0;\n    goto LAB_00121467;\n  }\n  uVar3 = AcquireVirtualCacheView(param_1,param_2);\n  iVar4 = GetImagePixelCacheType(param_1);\n  if (((iVar4 == 4) || (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)) &&\n     ((iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)))) {\n    iVar6 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar5 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar5 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar6 < iVar5 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar6 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar5 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar5 = iVar4;\n      }\n      iVar5 = iVar5 >> 6;\n      if (iVar6 < iVar5) {\n        iVar5 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\nLAB_001215b3:\n      iVar5 = 1;\n    }\n  }\n  else {\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      uVar8 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;\n    }\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      iVar5 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar5 = 2;\n    }\n  }\n  local_30 = param_2;\n  local_3c = 0.0;\n  local_34 = param_1;\n  local_28 = 1;\n  local_2c = uVar3;\n  GOMP_parallel(FUN_00121250,&local_3c,iVar5,0);\n  iVar4 = local_28;\n  dVar2 = local_3c;\n  DestroyCacheView(uVar3);\n  lVar7 = (longdouble)dVar2;\n  if (iVar4 == 0) {\n    lVar7 = (longdouble)0;\n  }\nLAB_00121467:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return lVar7;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "double dVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "longdouble lVar7;" type_identifier identifier ;) (declaration "undefined8 uVar8;" type_identifier identifier ;) (declaration "double local_3c;" primitive_type identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1213e9;" (assignment_expression "uStack_14 = 0x1213e9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity");\n  }" { (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity")" identifier (argument_list "("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/prepress.c"" " string_content ") , number_literal , (string_literal ""GetImageTotalInkDensity"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...");\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x3328) != 0)" ( (binary_expression "*(int *)(param_1 + 0x3328) != 0" (pointer_expression "*(int *)(param_1 + 0x3328)" * (cast_expression "(int *)(param_1 + 0x3328)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3328)" ( (binary_expression "param_1 + 0x3328" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    LogMagickEvent(0x8000,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...");\n  }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...");" (call_expression "LogMagickEvent(0x8000,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...")" identifier (argument_list "(0x8000,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...")" ( number_literal , (string_literal ""MagickCore/prepress.c"" " string_content ") , (string_literal ""GetImageTotalInkDensity"" " string_content ") , number_literal , (string_literal ""..."" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity");\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x3344) != -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x3344) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x3344)" * (cast_expression "(int *)(param_1 + 0x3344)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3344)" ( (binary_expression "param_1 + 0x3344" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity");\n  }" { (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/prepress.c"" " string_content ") , number_literal , (string_literal ""GetImageTotalInkDensity"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 4) != 2) {\n    ThrowMagickException\n              (param_2,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,0x1d1,\n               "ColorSeparatedImageRequired","`%s\'",param_1 + 0x318);\n    lVar7 = (longdouble)0;\n    goto LAB_00121467;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 4) != 2)" ( (binary_expression "*(int *)(param_1 + 4) != 2" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    ThrowMagickException\n              (param_2,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,0x1d1,\n               "ColorSeparatedImageRequired","`%s\'",param_1 + 0x318);\n    lVar7 = (longdouble)0;\n    goto LAB_00121467;\n  }" { (expression_statement "ThrowMagickException\n              (param_2,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,0x1d1,\n               "ColorSeparatedImageRequired","`%s\'",param_1 + 0x318);" (call_expression "ThrowMagickException\n              (param_2,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,0x1d1,\n               "ColorSeparatedImageRequired","`%s\'",param_1 + 0x318)" identifier (argument_list "(param_2,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,0x1d1,\n               "ColorSeparatedImageRequired","`%s\'",param_1 + 0x318)" ( identifier , (string_literal ""MagickCore/prepress.c"" " string_content ") , (string_literal ""GetImageTotalInkDensity"" " string_content ") , number_literal , number_literal , (string_literal ""ColorSeparatedImageRequired"" " string_content ") , (string_literal ""`%s\'"" " string_content escape_sequence ") , (binary_expression "param_1 + 0x318" identifier + number_literal) ))) ;) (expression_statement "lVar7 = (longdouble)0;" (assignment_expression "lVar7 = (longdouble)0" identifier = (cast_expression "(longdouble)0" ( (type_descriptor "longdouble" type_identifier) ) number_literal)) ;) (goto_statement "goto LAB_00121467;" goto statement_identifier ;) })) (expression_statement "uVar3 = AcquireVirtualCacheView(param_1,param_2);" (assignment_expression "uVar3 = AcquireVirtualCacheView(param_1,param_2)" identifier = (call_expression "AcquireVirtualCacheView(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (expression_statement "iVar4 = GetImagePixelCacheType(param_1);" (assignment_expression "iVar4 = GetImagePixelCacheType(param_1)" identifier = (call_expression "GetImagePixelCacheType(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (((iVar4 == 4) || (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)) &&\n     ((iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)))) {\n    iVar6 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar5 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar5 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar6 < iVar5 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar6 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar5 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar5 = iVar4;\n      }\n      iVar5 = iVar5 >> 6;\n      if (iVar6 < iVar5) {\n        iVar5 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\nLAB_001215b3:\n      iVar5 = 1;\n    }\n  }\n  else {\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      uVar8 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;\n    }\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      iVar5 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar5 = 2;\n    }\n  }" if (parenthesized_expression "(((iVar4 == 4) || (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)) &&\n     ((iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3))))" ( (binary_expression "((iVar4 == 4) || (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)) &&\n     ((iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)))" (parenthesized_expression "((iVar4 == 4) || (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3))" ( (binary_expression "(iVar4 == 4) || (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)" (parenthesized_expression "(iVar4 == 4)" ( (binary_expression "iVar4 == 4" identifier == number_literal) )) || (parenthesized_expression "(iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)" ( (comma_expression "iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3" (assignment_expression "iVar4 = GetImagePixelCacheType(param_1)" identifier = (call_expression "GetImagePixelCacheType(param_1)" identifier (argument_list "(param_1)" ( identifier )))) , (binary_expression "iVar4 == 3" identifier == number_literal)) ))) )) && (parenthesized_expression "((iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)))" ( (parenthesized_expression "(iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3))" ( (comma_expression "iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)" (assignment_expression "iVar4 = GetImagePixelCacheType(param_1)" identifier = (call_expression "GetImagePixelCacheType(param_1)" identifier (argument_list "(param_1)" ( identifier )))) , (binary_expression "iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)" (binary_expression "iVar4 == 4" identifier == number_literal) || (parenthesized_expression "(iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)" ( (comma_expression "iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3" (assignment_expression "iVar4 = GetImagePixelCacheType(param_1)" identifier = (call_expression "GetImagePixelCacheType(param_1)" identifier (argument_list "(param_1)" ( identifier )))) , (binary_expression "iVar4 == 3" identifier == number_literal)) )))) )) ))) )) (compound_statement "{\n    iVar6 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar5 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar5 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar6 < iVar5 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar6 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar5 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar5 = iVar4;\n      }\n      iVar5 = iVar5 >> 6;\n      if (iVar6 < iVar5) {\n        iVar5 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\nLAB_001215b3:\n      iVar5 = 1;\n    }\n  }" { (expression_statement "iVar6 = GetMagickResourceLimit(7);" (assignment_expression "iVar6 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x1c)" identifier = (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = iVar4 + 0x3f;" (assignment_expression "iVar5 = iVar4 + 0x3f" identifier = (binary_expression "iVar4 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < iVar4) {\n      iVar5 = iVar4;\n    }" if (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (compound_statement "{\n      iVar5 = iVar4;\n    }" { (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) })) (expression_statement "bVar1 = 0x7f < iVar4;" (assignment_expression "bVar1 = 0x7f < iVar4" identifier = (binary_expression "0x7f < iVar4" number_literal < identifier)) ;) (if_statement "if (iVar6 < iVar5 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }" if (parenthesized_expression "(iVar6 < iVar5 >> 6)" ( (binary_expression "iVar6 < iVar5 >> 6" identifier < (binary_expression "iVar5 >> 6" identifier >> number_literal)) )) (compound_statement "{\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }" { (expression_statement "iVar4 = GetMagickResourceLimit(7);" (assignment_expression "iVar4 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (expression_statement "bVar1 = 1 < iVar4;" (assignment_expression "bVar1 = 1 < iVar4" identifier = (binary_expression "1 < iVar4" number_literal < identifier)) ;) })) (if_statement "if (bVar1) {\n      iVar6 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar5 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar5 = iVar4;\n      }\n      iVar5 = iVar5 >> 6;\n      if (iVar6 < iVar5) {\n        iVar5 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\nLAB_001215b3:\n      iVar5 = 1;\n    }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n      iVar6 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar5 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar5 = iVar4;\n      }\n      iVar5 = iVar5 >> 6;\n      if (iVar6 < iVar5) {\n        iVar5 = GetMagickResourceLimit(7);\n      }\n    }" { (expression_statement "iVar6 = GetMagickResourceLimit(7);" (assignment_expression "iVar6 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x1c)" identifier = (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = iVar4 + 0x3f;" (assignment_expression "iVar5 = iVar4 + 0x3f" identifier = (binary_expression "iVar4 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < iVar4) {\n        iVar5 = iVar4;\n      }" if (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (compound_statement "{\n        iVar5 = iVar4;\n      }" { (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) })) (expression_statement "iVar5 = iVar5 >> 6;" (assignment_expression "iVar5 = iVar5 >> 6" identifier = (binary_expression "iVar5 >> 6" identifier >> number_literal)) ;) (if_statement "if (iVar6 < iVar5) {\n        iVar5 = GetMagickResourceLimit(7);\n      }" if (parenthesized_expression "(iVar6 < iVar5)" ( (binary_expression "iVar6 < iVar5" identifier < identifier) )) (compound_statement "{\n        iVar5 = GetMagickResourceLimit(7);\n      }" { (expression_statement "iVar5 = GetMagickResourceLimit(7);" (assignment_expression "iVar5 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) })) }) (else_clause "else {\nLAB_001215b3:\n      iVar5 = 1;\n    }" else (compound_statement "{\nLAB_001215b3:\n      iVar5 = 1;\n    }" { (labeled_statement "LAB_001215b3:\n      iVar5 = 1;" statement_identifier : (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;)) }))) }) (else_clause "else {\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      uVar8 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;\n    }\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      iVar5 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar5 = 2;\n    }\n  }" else (compound_statement "{\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      uVar8 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;\n    }\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      iVar5 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar5 = 2;\n    }\n  }" { (expression_statement "uVar8 = GetMagickResourceLimit(7);" (assignment_expression "uVar8 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (if_statement "if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      uVar8 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;\n    }" if (parenthesized_expression "(((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2))" ( (binary_expression "((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)" (parenthesized_expression "((int)((ulonglong)uVar8 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar8 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar8 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar8 >> 0x20)" ( (binary_expression "(ulonglong)uVar8 >> 0x20" (cast_expression "(ulonglong)uVar8" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar8 < 2)" ( (binary_expression "(uint)uVar8 < 2" (cast_expression "(uint)uVar8" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n      uVar8 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;\n    }" { (expression_statement "uVar8 = GetMagickResourceLimit(7);" (assignment_expression "uVar8 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (if_statement "if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;" if (parenthesized_expression "(((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2))" ( (binary_expression "((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)" (parenthesized_expression "((int)((ulonglong)uVar8 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar8 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar8 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar8 >> 0x20)" ( (binary_expression "(ulonglong)uVar8 >> 0x20" (cast_expression "(ulonglong)uVar8" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar8 < 2)" ( (binary_expression "(uint)uVar8 < 2" (cast_expression "(uint)uVar8" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (goto_statement "goto LAB_001215b3;" goto statement_identifier ;)) })) (expression_statement "uVar8 = GetMagickResourceLimit(7);" (assignment_expression "uVar8 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (if_statement "if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      iVar5 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar5 = 2;\n    }" if (parenthesized_expression "(((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2))" ( (binary_expression "((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)" (parenthesized_expression "((int)((ulonglong)uVar8 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar8 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar8 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar8 >> 0x20)" ( (binary_expression "(ulonglong)uVar8 >> 0x20" (cast_expression "(ulonglong)uVar8" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar8 < 2)" ( (binary_expression "(uint)uVar8 < 2" (cast_expression "(uint)uVar8" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n      iVar5 = GetMagickResourceLimit(7);\n    }" { (expression_statement "iVar5 = GetMagickResourceLimit(7);" (assignment_expression "iVar5 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) }) (else_clause "else {\n      iVar5 = 2;\n    }" else (compound_statement "{\n      iVar5 = 2;\n    }" { (expression_statement "iVar5 = 2;" (assignment_expression "iVar5 = 2" identifier = number_literal) ;) }))) }))) (expression_statement "local_30 = param_2;" (assignment_expression "local_30 = param_2" identifier = identifier) ;) (expression_statement "local_3c = 0.0;" (assignment_expression "local_3c = 0.0" identifier = number_literal) ;) (expression_statement "local_34 = param_1;" (assignment_expression "local_34 = param_1" identifier = identifier) ;) (expression_statement "local_28 = 1;" (assignment_expression "local_28 = 1" identifier = number_literal) ;) (expression_statement "local_2c = uVar3;" (assignment_expression "local_2c = uVar3" identifier = identifier) ;) (expression_statement "GOMP_parallel(FUN_00121250,&local_3c,iVar5,0);" (call_expression "GOMP_parallel(FUN_00121250,&local_3c,iVar5,0)" identifier (argument_list "(FUN_00121250,&local_3c,iVar5,0)" ( identifier , (pointer_expression "&local_3c" & identifier) , identifier , number_literal ))) ;) (expression_statement "iVar4 = local_28;" (assignment_expression "iVar4 = local_28" identifier = identifier) ;) (expression_statement "dVar2 = local_3c;" (assignment_expression "dVar2 = local_3c" identifier = identifier) ;) (expression_statement "DestroyCacheView(uVar3);" (call_expression "DestroyCacheView(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (expression_statement "lVar7 = (longdouble)dVar2;" (assignment_expression "lVar7 = (longdouble)dVar2" identifier = (cast_expression "(longdouble)dVar2" ( (type_descriptor "longdouble" type_identifier) ) identifier)) ;) (if_statement "if (iVar4 == 0) {\n    lVar7 = (longdouble)0;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    lVar7 = (longdouble)0;\n  }" { (expression_statement "lVar7 = (longdouble)0;" (assignment_expression "lVar7 = (longdouble)0" identifier = (cast_expression "(longdouble)0" ( (type_descriptor "longdouble" type_identifier) ) number_literal)) ;) })) (labeled_statement "LAB_00121467:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_0029eab0();\n  }" { (expression_statement "FUN_0029eab0();" (call_expression "FUN_0029eab0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return lVar7;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , LIT , (string_literal " string_content ") , (string_literal " string_content escape_sequence ") , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) LIT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT == LIT)) ))) )) && (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression (binary_expression IDENT == LIT) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT == LIT)) )))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression LIT < IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT >> LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression LIT < IDENT)) ;) })) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (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 ( LIT )))) ;) })) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) == LIT) )) && (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) == LIT) )) && (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) ))) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) == LIT) )) && (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) LIT)) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "longdouble GetImageTotalInkDensity(int param_1,undefined4 param_2)\n\n{\n  bool bVar1;\n  double dVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  longdouble lVar7;\n  undefined8 uVar8;\n  double local_3c;\n  int local_34;\n  undefined4 local_30;\n  undefined4 local_2c;\n  int local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1213e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity");\n  }\n  if (*(int *)(param_1 + 4) != 2) {\n    ThrowMagickException\n              (param_2,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,0x1d1,\n               "ColorSeparatedImageRequired","`%s\'",param_1 + 0x318);\n    lVar7 = (longdouble)0;\n    goto LAB_00121467;\n  }\n  uVar3 = AcquireVirtualCacheView(param_1,param_2);\n  iVar4 = GetImagePixelCacheType(param_1);\n  if (((iVar4 == 4) || (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)) &&\n     ((iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)))) {\n    iVar6 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar5 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar5 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar6 < iVar5 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar6 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar5 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar5 = iVar4;\n      }\n      iVar5 = iVar5 >> 6;\n      if (iVar6 < iVar5) {\n        iVar5 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\nLAB_001215b3:\n      iVar5 = 1;\n    }\n  }\n  else {\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      uVar8 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;\n    }\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      iVar5 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar5 = 2;\n    }\n  }\n  local_30 = param_2;\n  local_3c = 0.0;\n  local_34 = param_1;\n  local_28 = 1;\n  local_2c = uVar3;\n  GOMP_parallel(FUN_00121250,&local_3c,iVar5,0);\n  iVar4 = local_28;\n  dVar2 = local_3c;\n  DestroyCacheView(uVar3);\n  lVar7 = (longdouble)dVar2;\n  if (iVar4 == 0) {\n    lVar7 = (longdouble)0;\n  }\nLAB_00121467:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return lVar7;\n}" (type_identifier "longdouble") (function_declarator "GetImageTotalInkDensity(int param_1,undefined4 param_2)" (identifier "GetImageTotalInkDensity") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  bool bVar1;\n  double dVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  longdouble lVar7;\n  undefined8 uVar8;\n  double local_3c;\n  int local_34;\n  undefined4 local_30;\n  undefined4 local_2c;\n  int local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1213e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity");\n  }\n  if (*(int *)(param_1 + 4) != 2) {\n    ThrowMagickException\n              (param_2,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,0x1d1,\n               "ColorSeparatedImageRequired","`%s\'",param_1 + 0x318);\n    lVar7 = (longdouble)0;\n    goto LAB_00121467;\n  }\n  uVar3 = AcquireVirtualCacheView(param_1,param_2);\n  iVar4 = GetImagePixelCacheType(param_1);\n  if (((iVar4 == 4) || (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)) &&\n     ((iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)))) {\n    iVar6 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar5 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar5 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar6 < iVar5 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar6 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar5 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar5 = iVar4;\n      }\n      iVar5 = iVar5 >> 6;\n      if (iVar6 < iVar5) {\n        iVar5 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\nLAB_001215b3:\n      iVar5 = 1;\n    }\n  }\n  else {\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      uVar8 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;\n    }\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      iVar5 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar5 = 2;\n    }\n  }\n  local_30 = param_2;\n  local_3c = 0.0;\n  local_34 = param_1;\n  local_28 = 1;\n  local_2c = uVar3;\n  GOMP_parallel(FUN_00121250,&local_3c,iVar5,0);\n  iVar4 = local_28;\n  dVar2 = local_3c;\n  DestroyCacheView(uVar3);\n  lVar7 = (longdouble)dVar2;\n  if (iVar4 == 0) {\n    lVar7 = (longdouble)0;\n  }\nLAB_00121467:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return lVar7;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "double dVar2;" (primitive_type "double") (identifier "dVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "longdouble lVar7;" (type_identifier "longdouble") (identifier "lVar7") (; ";")) (declaration "undefined8 uVar8;" (type_identifier "undefined8") (identifier "uVar8") (; ";")) (declaration "double local_3c;" (primitive_type "double") (identifier "local_3c") (; ";")) (declaration "int local_34;" (primitive_type "int") (identifier "local_34") (; ";")) (declaration "undefined4 local_30;" (type_identifier "undefined4") (identifier "local_30") (; ";")) (declaration "undefined4 local_2c;" (type_identifier "undefined4") (identifier "local_2c") (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1213e9;" (assignment_expression "uStack_14 = 0x1213e9" (identifier "uStack_14") (= "=") (number_literal "0x1213e9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity");\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity");\n  }" ({ "{") (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity")" (identifier "__assert_fail") (argument_list "("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity")" (( "(") (string_literal ""image != (Image *) NULL"" (" """) (string_content "image != (Image *) NULL") (" """)) (, ",") (string_literal ""MagickCore/prepress.c"" (" """) (string_content "MagickCore/prepress.c") (" """)) (, ",") (number_literal "0x65") (, ",") (string_literal ""GetImageTotalInkDensity"" (" """) (string_content "GetImageTotalInkDensity") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...");\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x3328) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x3328) != 0" (pointer_expression "*(int *)(param_1 + 0x3328)" (* "*") (cast_expression "(int *)(param_1 + 0x3328)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3328)" (( "(") (binary_expression "param_1 + 0x3328" (identifier "param_1") (+ "+") (number_literal "0x3328")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    LogMagickEvent(0x8000,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...");\n  }" ({ "{") (expression_statement "LogMagickEvent(0x8000,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...");" (call_expression "LogMagickEvent(0x8000,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...")" (identifier "LogMagickEvent") (argument_list "(0x8000,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...")" (( "(") (number_literal "0x8000") (, ",") (string_literal ""MagickCore/prepress.c"" (" """) (string_content "MagickCore/prepress.c") (" """)) (, ",") (string_literal ""GetImageTotalInkDensity"" (" """) (string_content "GetImageTotalInkDensity") (" """)) (, ",") (number_literal "0x67") (, ",") (string_literal ""..."" (" """) (string_content "...") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity");\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x3344) != -0x54535255)" (( "(") (binary_expression "*(int *)(param_1 + 0x3344) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x3344)" (* "*") (cast_expression "(int *)(param_1 + 0x3344)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3344)" (( "(") (binary_expression "param_1 + 0x3344" (identifier "param_1") (+ "+") (number_literal "0x3344")) () ")")))) (!= "!=") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity");\n  }" ({ "{") (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity")" (identifier "__assert_fail") (argument_list "("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,\n                  "GetImageTotalInkDensity")" (( "(") (string_literal ""image->signature == MagickCoreSignature"" (" """) (string_content "image->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/prepress.c"" (" """) (string_content "MagickCore/prepress.c") (" """)) (, ",") (number_literal "0x68") (, ",") (string_literal ""GetImageTotalInkDensity"" (" """) (string_content "GetImageTotalInkDensity") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 4) != 2) {\n    ThrowMagickException\n              (param_2,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,0x1d1,\n               "ColorSeparatedImageRequired","`%s\'",param_1 + 0x318);\n    lVar7 = (longdouble)0;\n    goto LAB_00121467;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 4) != 2)" (( "(") (binary_expression "*(int *)(param_1 + 4) != 2" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n    ThrowMagickException\n              (param_2,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,0x1d1,\n               "ColorSeparatedImageRequired","`%s\'",param_1 + 0x318);\n    lVar7 = (longdouble)0;\n    goto LAB_00121467;\n  }" ({ "{") (expression_statement "ThrowMagickException\n              (param_2,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,0x1d1,\n               "ColorSeparatedImageRequired","`%s\'",param_1 + 0x318);" (call_expression "ThrowMagickException\n              (param_2,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,0x1d1,\n               "ColorSeparatedImageRequired","`%s\'",param_1 + 0x318)" (identifier "ThrowMagickException") (argument_list "(param_2,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,0x1d1,\n               "ColorSeparatedImageRequired","`%s\'",param_1 + 0x318)" (( "(") (identifier "param_2") (, ",") (string_literal ""MagickCore/prepress.c"" (" """) (string_content "MagickCore/prepress.c") (" """)) (, ",") (string_literal ""GetImageTotalInkDensity"" (" """) (string_content "GetImageTotalInkDensity") (" """)) (, ",") (number_literal "0x6b") (, ",") (number_literal "0x1d1") (, ",") (string_literal ""ColorSeparatedImageRequired"" (" """) (string_content "ColorSeparatedImageRequired") (" """)) (, ",") (string_literal ""`%s\'"" (" """) (string_content "`%s") (escape_sequence "\'") (" """)) (, ",") (binary_expression "param_1 + 0x318" (identifier "param_1") (+ "+") (number_literal "0x318")) () ")"))) (; ";")) (expression_statement "lVar7 = (longdouble)0;" (assignment_expression "lVar7 = (longdouble)0" (identifier "lVar7") (= "=") (cast_expression "(longdouble)0" (( "(") (type_descriptor "longdouble" (type_identifier "longdouble")) () ")") (number_literal "0"))) (; ";")) (goto_statement "goto LAB_00121467;" (goto "goto") (statement_identifier "LAB_00121467") (; ";")) (} "}"))) (expression_statement "uVar3 = AcquireVirtualCacheView(param_1,param_2);" (assignment_expression "uVar3 = AcquireVirtualCacheView(param_1,param_2)" (identifier "uVar3") (= "=") (call_expression "AcquireVirtualCacheView(param_1,param_2)" (identifier "AcquireVirtualCacheView") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar4 = GetImagePixelCacheType(param_1);" (assignment_expression "iVar4 = GetImagePixelCacheType(param_1)" (identifier "iVar4") (= "=") (call_expression "GetImagePixelCacheType(param_1)" (identifier "GetImagePixelCacheType") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (((iVar4 == 4) || (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)) &&\n     ((iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)))) {\n    iVar6 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar5 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar5 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar6 < iVar5 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar6 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar5 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar5 = iVar4;\n      }\n      iVar5 = iVar5 >> 6;\n      if (iVar6 < iVar5) {\n        iVar5 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\nLAB_001215b3:\n      iVar5 = 1;\n    }\n  }\n  else {\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      uVar8 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;\n    }\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      iVar5 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar5 = 2;\n    }\n  }" (if "if") (parenthesized_expression "(((iVar4 == 4) || (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)) &&\n     ((iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3))))" (( "(") (binary_expression "((iVar4 == 4) || (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)) &&\n     ((iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)))" (parenthesized_expression "((iVar4 == 4) || (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3))" (( "(") (binary_expression "(iVar4 == 4) || (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)" (parenthesized_expression "(iVar4 == 4)" (( "(") (binary_expression "iVar4 == 4" (identifier "iVar4") (== "==") (number_literal "4")) () ")")) (|| "||") (parenthesized_expression "(iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)" (( "(") (comma_expression "iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3" (assignment_expression "iVar4 = GetImagePixelCacheType(param_1)" (identifier "iVar4") (= "=") (call_expression "GetImagePixelCacheType(param_1)" (identifier "GetImagePixelCacheType") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (, ",") (binary_expression "iVar4 == 3" (identifier "iVar4") (== "==") (number_literal "3"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)))" (( "(") (parenthesized_expression "(iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3))" (( "(") (comma_expression "iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)" (assignment_expression "iVar4 = GetImagePixelCacheType(param_1)" (identifier "iVar4") (= "=") (call_expression "GetImagePixelCacheType(param_1)" (identifier "GetImagePixelCacheType") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (, ",") (binary_expression "iVar4 == 4 ||\n      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)" (binary_expression "iVar4 == 4" (identifier "iVar4") (== "==") (number_literal "4")) (|| "||") (parenthesized_expression "(iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)" (( "(") (comma_expression "iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3" (assignment_expression "iVar4 = GetImagePixelCacheType(param_1)" (identifier "iVar4") (= "=") (call_expression "GetImagePixelCacheType(param_1)" (identifier "GetImagePixelCacheType") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (, ",") (binary_expression "iVar4 == 3" (identifier "iVar4") (== "==") (number_literal "3"))) () ")")))) () ")")) () ")"))) () ")")) (compound_statement "{\n    iVar6 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar5 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar5 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar6 < iVar5 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar6 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar5 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar5 = iVar4;\n      }\n      iVar5 = iVar5 >> 6;\n      if (iVar6 < iVar5) {\n        iVar5 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\nLAB_001215b3:\n      iVar5 = 1;\n    }\n  }" ({ "{") (expression_statement "iVar6 = GetMagickResourceLimit(7);" (assignment_expression "iVar6 = GetMagickResourceLimit(7)" (identifier "iVar6") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (expression_statement "iVar4 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x1c)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "iVar5 = iVar4 + 0x3f;" (assignment_expression "iVar5 = iVar4 + 0x3f" (identifier "iVar5") (= "=") (binary_expression "iVar4 + 0x3f" (identifier "iVar4") (+ "+") (number_literal "0x3f"))) (; ";")) (if_statement "if (-1 < iVar4) {\n      iVar5 = iVar4;\n    }" (if "if") (parenthesized_expression "(-1 < iVar4)" (( "(") (binary_expression "-1 < iVar4" (number_literal "-1") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n      iVar5 = iVar4;\n    }" ({ "{") (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" (identifier "iVar5") (= "=") (identifier "iVar4")) (; ";")) (} "}"))) (expression_statement "bVar1 = 0x7f < iVar4;" (assignment_expression "bVar1 = 0x7f < iVar4" (identifier "bVar1") (= "=") (binary_expression "0x7f < iVar4" (number_literal "0x7f") (< "<") (identifier "iVar4"))) (; ";")) (if_statement "if (iVar6 < iVar5 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }" (if "if") (parenthesized_expression "(iVar6 < iVar5 >> 6)" (( "(") (binary_expression "iVar6 < iVar5 >> 6" (identifier "iVar6") (< "<") (binary_expression "iVar5 >> 6" (identifier "iVar5") (>> ">>") (number_literal "6"))) () ")")) (compound_statement "{\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }" ({ "{") (expression_statement "iVar4 = GetMagickResourceLimit(7);" (assignment_expression "iVar4 = GetMagickResourceLimit(7)" (identifier "iVar4") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (expression_statement "bVar1 = 1 < iVar4;" (assignment_expression "bVar1 = 1 < iVar4" (identifier "bVar1") (= "=") (binary_expression "1 < iVar4" (number_literal "1") (< "<") (identifier "iVar4"))) (; ";")) (} "}"))) (if_statement "if (bVar1) {\n      iVar6 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar5 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar5 = iVar4;\n      }\n      iVar5 = iVar5 >> 6;\n      if (iVar6 < iVar5) {\n        iVar5 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\nLAB_001215b3:\n      iVar5 = 1;\n    }" (if "if") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (compound_statement "{\n      iVar6 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar5 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar5 = iVar4;\n      }\n      iVar5 = iVar5 >> 6;\n      if (iVar6 < iVar5) {\n        iVar5 = GetMagickResourceLimit(7);\n      }\n    }" ({ "{") (expression_statement "iVar6 = GetMagickResourceLimit(7);" (assignment_expression "iVar6 = GetMagickResourceLimit(7)" (identifier "iVar6") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (expression_statement "iVar4 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x1c)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "iVar5 = iVar4 + 0x3f;" (assignment_expression "iVar5 = iVar4 + 0x3f" (identifier "iVar5") (= "=") (binary_expression "iVar4 + 0x3f" (identifier "iVar4") (+ "+") (number_literal "0x3f"))) (; ";")) (if_statement "if (-1 < iVar4) {\n        iVar5 = iVar4;\n      }" (if "if") (parenthesized_expression "(-1 < iVar4)" (( "(") (binary_expression "-1 < iVar4" (number_literal "-1") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n        iVar5 = iVar4;\n      }" ({ "{") (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" (identifier "iVar5") (= "=") (identifier "iVar4")) (; ";")) (} "}"))) (expression_statement "iVar5 = iVar5 >> 6;" (assignment_expression "iVar5 = iVar5 >> 6" (identifier "iVar5") (= "=") (binary_expression "iVar5 >> 6" (identifier "iVar5") (>> ">>") (number_literal "6"))) (; ";")) (if_statement "if (iVar6 < iVar5) {\n        iVar5 = GetMagickResourceLimit(7);\n      }" (if "if") (parenthesized_expression "(iVar6 < iVar5)" (( "(") (binary_expression "iVar6 < iVar5" (identifier "iVar6") (< "<") (identifier "iVar5")) () ")")) (compound_statement "{\n        iVar5 = GetMagickResourceLimit(7);\n      }" ({ "{") (expression_statement "iVar5 = GetMagickResourceLimit(7);" (assignment_expression "iVar5 = GetMagickResourceLimit(7)" (identifier "iVar5") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\nLAB_001215b3:\n      iVar5 = 1;\n    }" (else "else") (compound_statement "{\nLAB_001215b3:\n      iVar5 = 1;\n    }" ({ "{") (labeled_statement "LAB_001215b3:\n      iVar5 = 1;" (statement_identifier "LAB_001215b3") (: ":") (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" (identifier "iVar5") (= "=") (number_literal "1")) (; ";"))) (} "}")))) (} "}")) (else_clause "else {\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      uVar8 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;\n    }\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      iVar5 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar5 = 2;\n    }\n  }" (else "else") (compound_statement "{\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      uVar8 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;\n    }\n    uVar8 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      iVar5 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar5 = 2;\n    }\n  }" ({ "{") (expression_statement "uVar8 = GetMagickResourceLimit(7);" (assignment_expression "uVar8 = GetMagickResourceLimit(7)" (identifier "uVar8") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (if_statement "if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      uVar8 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;\n    }" (if "if") (parenthesized_expression "(((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2))" (( "(") (binary_expression "((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)" (parenthesized_expression "((int)((ulonglong)uVar8 >> 0x20) == 0)" (( "(") (binary_expression "(int)((ulonglong)uVar8 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar8 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar8 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar8 >> 0x20" (cast_expression "(ulonglong)uVar8" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar8")) (>> ">>") (number_literal "0x20")) () ")"))) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((uint)uVar8 < 2)" (( "(") (binary_expression "(uint)uVar8 < 2" (cast_expression "(uint)uVar8" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar8")) (< "<") (number_literal "2")) () ")"))) () ")")) (compound_statement "{\n      uVar8 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;\n    }" ({ "{") (expression_statement "uVar8 = GetMagickResourceLimit(7);" (assignment_expression "uVar8 = GetMagickResourceLimit(7)" (identifier "uVar8") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (if_statement "if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;" (if "if") (parenthesized_expression "(((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2))" (( "(") (binary_expression "((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)" (parenthesized_expression "((int)((ulonglong)uVar8 >> 0x20) == 0)" (( "(") (binary_expression "(int)((ulonglong)uVar8 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar8 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar8 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar8 >> 0x20" (cast_expression "(ulonglong)uVar8" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar8")) (>> ">>") (number_literal "0x20")) () ")"))) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((uint)uVar8 < 2)" (( "(") (binary_expression "(uint)uVar8 < 2" (cast_expression "(uint)uVar8" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar8")) (< "<") (number_literal "2")) () ")"))) () ")")) (goto_statement "goto LAB_001215b3;" (goto "goto") (statement_identifier "LAB_001215b3") (; ";"))) (} "}"))) (expression_statement "uVar8 = GetMagickResourceLimit(7);" (assignment_expression "uVar8 = GetMagickResourceLimit(7)" (identifier "uVar8") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (if_statement "if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {\n      iVar5 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar5 = 2;\n    }" (if "if") (parenthesized_expression "(((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2))" (( "(") (binary_expression "((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)" (parenthesized_expression "((int)((ulonglong)uVar8 >> 0x20) == 0)" (( "(") (binary_expression "(int)((ulonglong)uVar8 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar8 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar8 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar8 >> 0x20" (cast_expression "(ulonglong)uVar8" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar8")) (>> ">>") (number_literal "0x20")) () ")"))) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((uint)uVar8 < 2)" (( "(") (binary_expression "(uint)uVar8 < 2" (cast_expression "(uint)uVar8" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar8")) (< "<") (number_literal "2")) () ")"))) () ")")) (compound_statement "{\n      iVar5 = GetMagickResourceLimit(7);\n    }" ({ "{") (expression_statement "iVar5 = GetMagickResourceLimit(7);" (assignment_expression "iVar5 = GetMagickResourceLimit(7)" (identifier "iVar5") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (} "}")) (else_clause "else {\n      iVar5 = 2;\n    }" (else "else") (compound_statement "{\n      iVar5 = 2;\n    }" ({ "{") (expression_statement "iVar5 = 2;" (assignment_expression "iVar5 = 2" (identifier "iVar5") (= "=") (number_literal "2")) (; ";")) (} "}")))) (} "}")))) (expression_statement "local_30 = param_2;" (assignment_expression "local_30 = param_2" (identifier "local_30") (= "=") (identifier "param_2")) (; ";")) (expression_statement "local_3c = 0.0;" (assignment_expression "local_3c = 0.0" (identifier "local_3c") (= "=") (number_literal "0.0")) (; ";")) (expression_statement "local_34 = param_1;" (assignment_expression "local_34 = param_1" (identifier "local_34") (= "=") (identifier "param_1")) (; ";")) (expression_statement "local_28 = 1;" (assignment_expression "local_28 = 1" (identifier "local_28") (= "=") (number_literal "1")) (; ";")) (expression_statement "local_2c = uVar3;" (assignment_expression "local_2c = uVar3" (identifier "local_2c") (= "=") (identifier "uVar3")) (; ";")) (expression_statement "GOMP_parallel(FUN_00121250,&local_3c,iVar5,0);" (call_expression "GOMP_parallel(FUN_00121250,&local_3c,iVar5,0)" (identifier "GOMP_parallel") (argument_list "(FUN_00121250,&local_3c,iVar5,0)" (( "(") (identifier "FUN_00121250") (, ",") (pointer_expression "&local_3c" (& "&") (identifier "local_3c")) (, ",") (identifier "iVar5") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar4 = local_28;" (assignment_expression "iVar4 = local_28" (identifier "iVar4") (= "=") (identifier "local_28")) (; ";")) (expression_statement "dVar2 = local_3c;" (assignment_expression "dVar2 = local_3c" (identifier "dVar2") (= "=") (identifier "local_3c")) (; ";")) (expression_statement "DestroyCacheView(uVar3);" (call_expression "DestroyCacheView(uVar3)" (identifier "DestroyCacheView") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "lVar7 = (longdouble)dVar2;" (assignment_expression "lVar7 = (longdouble)dVar2" (identifier "lVar7") (= "=") (cast_expression "(longdouble)dVar2" (( "(") (type_descriptor "longdouble" (type_identifier "longdouble")) () ")") (identifier "dVar2"))) (; ";")) (if_statement "if (iVar4 == 0) {\n    lVar7 = (longdouble)0;\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    lVar7 = (longdouble)0;\n  }" ({ "{") (expression_statement "lVar7 = (longdouble)0;" (assignment_expression "lVar7 = (longdouble)0" (identifier "lVar7") (= "=") (cast_expression "(longdouble)0" (( "(") (type_descriptor "longdouble" (type_identifier "longdouble")) () ")") (number_literal "0"))) (; ";")) (} "}"))) (labeled_statement "LAB_00121467:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }" (statement_identifier "LAB_00121467") (: ":") (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_0029eab0();\n  }" ({ "{") (expression_statement "FUN_0029eab0();" (call_expression "FUN_0029eab0()" (identifier "FUN_0029eab0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return lVar7;" (return "return") (identifier "lVar7") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "GravityType": Some values do not have unique names */
/* WARNING: Enum "DisposeType": Some values do not have unique names */
/* WARNING: Enum "ChannelType": Some values do not have unique names */
/* WARNING: Enum "PixelChannel": Some values do not have unique names */
/* WARNING: Enum "ExceptionType": Some values do not have unique names */
/* WARNING: Enum "LogEventType": Some values do not have unique names */

double function_1(type_1 *var_2,type_2 *exception)

{
  size_t var_14;
  bool bVar2;
  double dVar3;
  type_3 *cache_view;
  type_4 var_10;
  int var_15;
  size_t sVar6;
  int var_1;
  type_5 var_16;
  double local_3c;
  type_1 *local_34;
  type_2 *local_30;
  type_3 *local_2c;
  int local_28;
  int var_19;
  type_6 uStack_14;
  
  uStack_14 = 0x1213e9;
  var_19 = *(int *)(var_1 + 0x14);
  if (var_2 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("image != (Image *) NULL","MagickCore/prepress.c",0x65,"GetImageTotalInkDensity");
  }
  if (var_2->debug != var_4) {
    var_5(TraceEvent,"MagickCore/prepress.c","GetImageTotalInkDensity",0x67,"...");
  }
  if (var_2->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    var_3("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,
                  "GetImageTotalInkDensity");
  }
  if (var_2->colorspace != var_6) {
    var_7
              (exception,"MagickCore/prepress.c","GetImageTotalInkDensity",0x6b,ImageError,
               "ColorSeparatedImageRequired","`%s\'",var_2->filename);
    dVar3 = 0.0;
    goto LAB_00121467;
  }
  cache_view = var_8(var_2,exception);
  var_10 = var_9(var_2);
  if (((var_10 == var_11) || (var_10 = var_9(var_2), var_10 == var_12)) &&
     ((var_10 = var_9(var_2), var_10 == var_11 ||
      (var_10 = var_9(var_2), var_10 == var_12)))) {
    var_16 = var_13(ThreadResource);
    var_14 = var_2->rows;
    sVar6 = var_14 + 0x3f;
    if (-1 < (int)var_14) {
      sVar6 = var_14;
    }
    bVar2 = 0x7f < (int)var_14;
    if ((int)var_16 < (int)sVar6 >> 6) {
      var_16 = var_13(ThreadResource);
      bVar2 = 1 < (int)var_16;
    }
    if (bVar2) {
      var_16 = var_13(ThreadResource);
      var_14 = var_2->rows;
      sVar6 = var_14 + 0x3f;
      if (-1 < (int)var_14) {
        sVar6 = var_14;
      }
      var_15 = (int)sVar6 >> 6;
      if ((int)var_16 < var_15) {
        var_16 = var_13(ThreadResource);
        var_15 = (int)var_16;
      }
    }
    else {
LAB_001215b3:
      var_15 = 1;
    }
  }
  else {
    var_16 = var_13(ThreadResource);
    if (((int)(var_16 >> 0x20) == 0) && ((type_7)var_16 < 2)) {
      var_16 = var_13(ThreadResource);
      if (((int)(var_16 >> 0x20) == 0) && ((type_7)var_16 < 2)) goto LAB_001215b3;
    }
    var_16 = var_13(ThreadResource);
    if (((int)(var_16 >> 0x20) == 0) && ((type_7)var_16 < 2)) {
      var_16 = var_13(ThreadResource);
      var_15 = (int)var_16;
    }
    else {
      var_15 = 2;
    }
  }
  local_30 = exception;
  local_3c = 0.0;
  local_34 = var_2;
  local_28 = 1;
  local_2c = cache_view;
  var_17(GetImageTotalInkDensity__omp_fn_0,&local_3c,var_15,0);
  var_15 = local_28;
  dVar3 = local_3c;
  var_18(cache_view);
  if (var_15 == 0) {
    dVar3 = 0.0;
  }
LAB_00121467:
  if (var_19 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_20();
  }
  return dVar3;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (string_literal (string_content)) (number_literal) (number_literal) (string_literal (string_content)) (string_literal (string_content) (escape_sequence)) (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (number_literal)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (parenthesized_expression (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (number_literal) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (number_literal) right: (identifier)))))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))))) alternative: (else_clause (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (number_literal)))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (return_statement (identifier)))))

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

longdouble MASKED(int param_1,undefined4 param_2)

{
  bool bVar1;
  double dVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int in_GS_OFFSET;
  longdouble lVar7;
  undefined8 uVar8;
  double local_3c;
  int local_34;
  undefined4 local_30;
  undefined4 local_2c;
  int local_28;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1213e9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/prepress.c",0x65,"MASKED");
  }
  if (*(int *)(param_1 + 0x3328) != 0) {
    LogMagickEvent(0x8000,"MagickCore/prepress.c","MASKED",0x67,"...");
  }
  if (*(int *)(param_1 + 0x3344) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->signature == MagickCoreSignature","MagickCore/prepress.c",0x68,
                  "MASKED");
  }
  if (*(int *)(param_1 + 4) != 2) {
    ThrowMagickException
              (param_2,"MagickCore/prepress.c","MASKED",0x6b,0x1d1,
               "ColorSeparatedImageRequired","`%s\'",param_1 + 0x318);
    lVar7 = (longdouble)0;
    goto LAB_00121467;
  }
  uVar3 = AcquireVirtualCacheView(param_1,param_2);
  iVar4 = GetImagePixelCacheType(param_1);
  if (((iVar4 == 4) || (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)) &&
     ((iVar4 = GetImagePixelCacheType(param_1), iVar4 == 4 ||
      (iVar4 = GetImagePixelCacheType(param_1), iVar4 == 3)))) {
    iVar6 = GetMagickResourceLimit(7);
    iVar4 = *(int *)(param_1 + 0x1c);
    iVar5 = iVar4 + 0x3f;
    if (-1 < iVar4) {
      iVar5 = iVar4;
    }
    bVar1 = 0x7f < iVar4;
    if (iVar6 < iVar5 >> 6) {
      iVar4 = GetMagickResourceLimit(7);
      bVar1 = 1 < iVar4;
    }
    if (bVar1) {
      iVar6 = GetMagickResourceLimit(7);
      iVar4 = *(int *)(param_1 + 0x1c);
      iVar5 = iVar4 + 0x3f;
      if (-1 < iVar4) {
        iVar5 = iVar4;
      }
      iVar5 = iVar5 >> 6;
      if (iVar6 < iVar5) {
        iVar5 = GetMagickResourceLimit(7);
      }
    }
    else {
LAB_001215b3:
      iVar5 = 1;
    }
  }
  else {
    uVar8 = GetMagickResourceLimit(7);
    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {
      uVar8 = GetMagickResourceLimit(7);
      if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) goto LAB_001215b3;
    }
    uVar8 = GetMagickResourceLimit(7);
    if (((int)((ulonglong)uVar8 >> 0x20) == 0) && ((uint)uVar8 < 2)) {
      iVar5 = GetMagickResourceLimit(7);
    }
    else {
      iVar5 = 2;
    }
  }
  local_30 = param_2;
  local_3c = 0.0;
  local_34 = param_1;
  local_28 = 1;
  local_2c = uVar3;
  GOMP_parallel(FUN_00121250,&local_3c,iVar5,0);
  iVar4 = local_28;
  dVar2 = local_3c;
  DestroyCacheView(uVar3);
  lVar7 = (longdouble)dVar2;
  if (iVar4 == 0) {
    lVar7 = (longdouble)0;
  }
LAB_00121467:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0029eab0();
  }
  return lVar7;
}

