
/* 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 */

MagickBooleanType HaldClutImage(Image *image,Image *hald_image,ExceptionInfo *exception)

{
  int iVar1;
  size_t sVar2;
  bool bVar3;
  double dVar4;
  MagickBooleanType MVar5;
  int iVar6;
  CacheView *cache_view;
  CacheView *cache_view_00;
  CacheType CVar7;
  size_t sVar8;
  uint uVar9;
  int iVar10;
  int in_GS_OFFSET;
  MagickSizeType MVar11;
  int local_b8;
  MagickOffsetType progress;
  double local_a4;
  Image *local_9c;
  Image *local_98;
  ExceptionInfo *local_94;
  CacheView *local_90;
  CacheView *local_8c;
  PixelInfo *local_88;
  int local_84;
  int local_80;
  MagickBooleanType local_7c;
  MagickOffsetType *local_78;
  PixelInfo zero;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (image == (Image *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/enhance.c",0xa98,"HaldClutImage");
  }
  if (image->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,
                  "HaldClutImage");
  }
  if (image->debug != MagickFalse) {
    LogMagickEvent(TraceEvent,"MagickCore/enhance.c","HaldClutImage",0xa9b,"%s",image->filename);
  }
  if (hald_image == (Image *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage");
  }
  if (hald_image->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,
                  "HaldClutImage");
  }
  MVar5 = SetImageStorageClass(image,DirectClass,exception);
  if (MVar5 == MagickFalse) goto LAB_000bb466;
  if (image->alpha_trait == UndefinedPixelTrait) {
    SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
  }
  progress._0_4_ = 0;
  progress._4_4_ = 0;
  dVar4 = (double)hald_image->columns;
  uVar9 = hald_image->rows;
  if (dVar4 < (double)hald_image->rows) {
    uVar9 = hald_image->columns;
  }
  if (uVar9 < 9) {
    local_b8 = 0x10;
    iVar10 = 4;
  }
  else {
    iVar6 = 2;
    do {
      iVar6 = iVar6 + 1;
      iVar10 = iVar6 * iVar6;
    } while ((uint)(iVar10 * iVar6) < uVar9);
    local_b8 = iVar10 * iVar10;
  }
  GetPixelInfo(hald_image,&zero);
  cache_view = AcquireVirtualCacheView(hald_image,exception);
  cache_view_00 = AcquireAuthenticCacheView(image,exception);
  CVar7 = GetImagePixelCacheType(image);
  if (((CVar7 == MemoryCache) || (CVar7 = GetImagePixelCacheType(image), CVar7 == MapCache)) &&
     ((CVar7 = GetImagePixelCacheType(image), CVar7 == MemoryCache ||
      (CVar7 = GetImagePixelCacheType(image), CVar7 == MapCache)))) {
    MVar11 = GetMagickResourceLimit(ThreadResource);
    sVar2 = image->rows;
    sVar8 = sVar2 + 0x3f;
    if (-1 < (int)sVar2) {
      sVar8 = sVar2;
    }
    bVar3 = 0x7f < (int)sVar2;
    if ((int)MVar11 < (int)sVar8 >> 6) {
      MVar11 = GetMagickResourceLimit(ThreadResource);
      bVar3 = 1 < (int)MVar11;
    }
    if (bVar3) {
      MVar11 = GetMagickResourceLimit(ThreadResource);
      sVar2 = image->rows;
      sVar8 = sVar2 + 0x3f;
      if (-1 < (int)sVar2) {
        sVar8 = sVar2;
      }
      iVar6 = (int)sVar8 >> 6;
      if ((int)MVar11 < iVar6) goto LAB_000bb559;
    }
    else {
LAB_000bb523:
      iVar6 = 1;
    }
  }
  else {
    MVar11 = GetMagickResourceLimit(ThreadResource);
    if (((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)) {
      MVar11 = GetMagickResourceLimit(ThreadResource);
      if (((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)) goto LAB_000bb523;
    }
    MVar11 = GetMagickResourceLimit(ThreadResource);
    if (((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)) {
LAB_000bb559:
      MVar11 = GetMagickResourceLimit(ThreadResource);
      iVar6 = (int)MVar11;
    }
    else {
      iVar6 = 2;
    }
  }
  local_98 = hald_image;
  local_9c = image;
  local_7c = MagickTrue;
  local_84 = local_b8;
  local_78 = &progress;
  local_94 = exception;
  local_a4 = dVar4;
  local_90 = cache_view;
  local_8c = cache_view_00;
  local_88 = &zero;
  local_80 = iVar10;
  GOMP_parallel(HaldClutImage__omp_fn_8,&local_a4,iVar6,0);
  MVar5 = local_7c;
  DestroyCacheView(cache_view);
  DestroyCacheView(cache_view_00);
LAB_000bb466:
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return MVar5;
}



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

int HaldClutImage(int param_1,int param_2,undefined4 param_3)

{
  bool bVar1;
  double dVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  int iVar7;
  int iVar8;
  uint uVar9;
  int in_GS_OFFSET;
  undefined8 uVar10;
  int local_b8;
  undefined4 local_ac;
  undefined4 local_a8;
  double local_a4;
  int local_9c;
  int local_98;
  undefined4 local_94;
  undefined4 local_90;
  undefined4 local_8c;
  undefined1 *local_88;
  int local_84;
  int local_80;
  int local_7c;
  undefined4 *local_78;
  undefined1 local_70 [80];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0xbb239;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/enhance.c",0xa98,"HaldClutImage");
  }
  if (*(int *)(param_1 + 0x3344) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,
                  "HaldClutImage");
  }
  if (*(int *)(param_1 + 0x3328) != 0) {
    LogMagickEvent(0x8000,"MagickCore/enhance.c","HaldClutImage",0xa9b,&DAT_002b6e4e,param_1 + 0x318
                  );
  }
  if (param_2 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage");
  }
  if (*(int *)(param_2 + 0x3344) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,
                  "HaldClutImage");
  }
  iVar3 = SetImageStorageClass(param_1,1,param_3);
  if (iVar3 == 0) goto LAB_000bb466;
  if (*(int *)(param_1 + 0x294) == 0) {
    SetImageAlphaChannel(param_1,0xb,param_3);
  }
  local_ac = 0;
  local_a8 = 0;
  dVar2 = (double)*(uint *)(param_2 + 0x18);
  uVar9 = *(uint *)(param_2 + 0x1c);
  if (dVar2 < (double)*(uint *)(param_2 + 0x1c)) {
    uVar9 = *(uint *)(param_2 + 0x18);
  }
  if (uVar9 < 9) {
    local_b8 = 0x10;
    iVar3 = 4;
  }
  else {
    iVar4 = 2;
    do {
      iVar4 = iVar4 + 1;
      iVar3 = iVar4 * iVar4;
    } while ((uint)(iVar3 * iVar4) < uVar9);
    local_b8 = iVar3 * iVar3;
  }
  GetPixelInfo(param_2,local_70);
  uVar5 = AcquireVirtualCacheView(param_2,param_3);
  uVar6 = AcquireAuthenticCacheView(param_1,param_3);
  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)))) {
    iVar8 = GetMagickResourceLimit(7);
    iVar4 = *(int *)(param_1 + 0x1c);
    iVar7 = iVar4 + 0x3f;
    if (-1 < iVar4) {
      iVar7 = iVar4;
    }
    bVar1 = 0x7f < iVar4;
    if (iVar8 < iVar7 >> 6) {
      iVar4 = GetMagickResourceLimit(7);
      bVar1 = 1 < iVar4;
    }
    if (bVar1) {
      iVar8 = GetMagickResourceLimit(7);
      iVar4 = *(int *)(param_1 + 0x1c);
      iVar7 = iVar4 + 0x3f;
      if (-1 < iVar4) {
        iVar7 = iVar4;
      }
      iVar7 = iVar7 >> 6;
      if (iVar8 < iVar7) goto LAB_000bb559;
    }
    else {
LAB_000bb523:
      iVar7 = 1;
    }
  }
  else {
    uVar10 = GetMagickResourceLimit(7);
    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {
      uVar10 = GetMagickResourceLimit(7);
      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;
    }
    uVar10 = GetMagickResourceLimit(7);
    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {
LAB_000bb559:
      iVar7 = GetMagickResourceLimit(7);
    }
    else {
      iVar7 = 2;
    }
  }
  local_98 = param_2;
  local_9c = param_1;
  local_7c = 1;
  local_84 = local_b8;
  local_78 = &local_ac;
  local_94 = param_3;
  local_a4 = dVar2;
  local_90 = uVar5;
  local_8c = uVar6;
  local_88 = local_70;
  local_80 = iVar3;
  GOMP_parallel(FUN_000b5550,&local_a4,iVar7,0);
  iVar3 = local_7c;
  DestroyCacheView(uVar5);
  DestroyCacheView(uVar6);
LAB_000bb466:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0029eab0();
  }
  return iVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00038830
ADD EBX,0x31ddc7
SUB ESP,0xcc
MOV EAX,dword ptr [ESP + 0xe8]
MOV ESI,dword ptr [ESP + 0xe0]
MOV EDI,dword ptr [ESP + 0xe4]
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xbc],EAX
XOR EAX,EAX
TEST ESI,ESI
JZ 0x000bb625
CMP dword ptr [ESI + 0x3344],0xabacadab
JNZ 0x000bb606
MOV EBP,dword ptr [ESI + 0x3328]
TEST EBP,EBP
JNZ 0x000bb490
TEST EDI,EDI
JZ 0x000bb5c8
CMP dword ptr [EDI + 0x3344],0xabacadab
JNZ 0x000bb5e7
SUB ESP,0x4
PUSH dword ptr [ESP + 0x14]
PUSH 0x1
PUSH ESI
CALL 0x00030bc0
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JZ 0x000bb466
MOV ECX,dword ptr [ESI + 0x294]
TEST ECX,ECX
JZ 0x000bb530
MOV EAX,dword ptr [EDI + 0x18]
MOV dword ptr [ESP + 0xc],0x0
MOV ECX,dword ptr [EDI + 0x1c]
MOV dword ptr [ESP + 0x30],0x0
MOV dword ptr [ESP + 0x34],0x0
MOV dword ptr [ESP + 0x8],EAX
FILD qword ptr [ESP + 0x8]
FST qword ptr [ESP + 0x18]
MOV dword ptr [ESP + 0x8],ECX
MOV dword ptr [ESP + 0xc],0x0
FILD qword ptr [ESP + 0x8]
FUCOMIP ST0,ST1
FSTP ST0
CMOVA ECX,EAX
CMP ECX,0x8
JBE 0x000bb570
MOV EAX,0x2
LEA ESI,[ESI]
ADD EAX,0x1
MOV EBP,EAX
IMUL EBP,EAX
MOV EDX,EBP
IMUL EDX,EAX
CMP EDX,ECX
JC 0x000bb328
MOV EAX,EBP
IMUL EAX,EBP
MOV dword ptr [ESP + 0x24],EAX
SUB ESP,0x8
LEA EAX,[ESP + 0x74]
MOV dword ptr [ESP + 0x28],EAX
PUSH EAX
PUSH EDI
CALL 0x000320a0
POP ECX
POP EAX
PUSH dword ptr [ESP + 0x18]
PUSH EDI
CALL 0x00030eb0
MOV dword ptr [ESP + 0x18],EAX
POP EAX
POP EDX
PUSH dword ptr [ESP + 0x18]
PUSH ESI
CALL 0x00032fa0
MOV dword ptr [ESP],ESI
MOV dword ptr [ESP + 0x24],EAX
CALL 0x000318f0
ADD ESP,0x10
CMP EAX,0x4
JZ 0x000bb4d0
SUB ESP,0xc
PUSH ESI
CALL 0x000318f0
ADD ESP,0x10
CMP EAX,0x3
JZ 0x000bb4d0
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
CMP EDX,0x0
JA 0x000bb3d0
CMP EAX,0x1
JA 0x000bb3d0
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
CMP EDX,0x0
JA 0x000bb3d0
CMP EAX,0x1
JBE 0x000bb523
NOP
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
CMP EDX,0x0
JBE 0x000bb550
MOV EAX,0x2
MOV ECX,dword ptr [ESP + 0x24]
MOV dword ptr [ESP + 0x5c],EBP
MOV EDX,dword ptr [ESP + 0x8]
MOV dword ptr [ESP + 0x44],EDI
MOV EBP,dword ptr [ESP + 0x10]
MOV dword ptr [ESP + 0x40],ESI
MOV EDI,dword ptr [ESP + 0x20]
MOV dword ptr [ESP + 0x60],0x1
MOV dword ptr [ESP + 0x58],ECX
MOV ECX,dword ptr [ESP + 0x14]
FLD qword ptr [ESP + 0x18]
MOV dword ptr [ESP + 0x4c],EDX
LEA EDX,[ESP + 0x30]
FSTP qword ptr [ESP + 0x38]
MOV dword ptr [ESP + 0x48],EBP
MOV dword ptr [ESP + 0x50],ECX
MOV dword ptr [ESP + 0x64],EDX
MOV dword ptr [ESP + 0x54],EDI
PUSH 0x0
PUSH EAX
LEA EAX,[ESP + 0x40]
PUSH EAX
LEA EAX,[EBX + 0xffcdc550]
PUSH EAX
CALL 0x000324d0
MOV EBP,dword ptr [ESP + 0x70]
POP EAX
PUSH dword ptr [ESP + 0x14]
CALL 0x00032f30
POP EDX
PUSH dword ptr [ESP + 0x20]
CALL 0x00032f30
ADD ESP,0x10
MOV EDI,dword ptr [ESP + 0xbc]
XOR EDI,dword ptr GS:[0x14]
MOV EAX,EBP
JNZ 0x000bb644
ADD ESP,0xcc
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[ESI + 0x318]
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xffedde4e]
PUSH EAX
LEA EAX,[EBX + 0xffed9770]
PUSH 0xa9b
PUSH EAX
LEA EAX,[EBX + 0xffed9524]
PUSH EAX
PUSH 0x8000
CALL 0x000323b0
ADD ESP,0x20
JMP 0x000bb293
SUB ESP,0xc
PUSH ESI
CALL 0x000318f0
ADD ESP,0x10
CMP EAX,0x4
JZ 0x000bb4f6
SUB ESP,0xc
PUSH ESI
CALL 0x000318f0
ADD ESP,0x10
CMP EAX,0x3
JNZ 0x000bb39d
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
MOV ECX,dword ptr [ESI + 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 0x000bb5b0
TEST CL,CL
JNZ 0x000bb588
MOV EAX,0x1
JMP 0x000bb3eb
SUB ESP,0x4
PUSH dword ptr [ESP + 0x14]
PUSH 0xb
PUSH ESI
CALL 0x000336b0
ADD ESP,0x10
JMP 0x000bb2d5
CMP EAX,0x1
JA 0x000bb3e6
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
JMP 0x000bb3eb
MOV dword ptr [ESP + 0x24],0x10
MOV EBP,0x4
JMP 0x000bb342
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
MOV EDX,dword ptr [ESI + 0x1c]
ADD ESP,0x10
MOV ECX,EAX
LEA EAX,[EDX + 0x3f]
TEST EDX,EDX
CMOVNS EAX,EDX
SAR EAX,0x6
CMP EAX,ECX
JLE 0x000bb3eb
JMP 0x000bb559
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
CMP EAX,0x1
SETG CL
JMP 0x000bb51f
LEA EAX,[EBX + 0xffed9780]
PUSH EAX
LEA EAX,[EBX + 0xffed9524]
PUSH 0xa9c
PUSH EAX
LEA EAX,[EBX + 0xffed958d]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffed9780]
PUSH EAX
LEA EAX,[EBX + 0xffed9524]
PUSH 0xa9d
PUSH EAX
LEA EAX,[EBX + 0xffed9aa0]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffed9780]
PUSH EAX
LEA EAX,[EBX + 0xffed9524]
PUSH 0xa99
PUSH EAX
LEA EAX,[EBX + 0xffed1338]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffed9780]
PUSH EAX
LEA EAX,[EBX + 0xffed9524]
PUSH 0xa98
PUSH EAX
LEA EAX,[EBX + 0xffede594]
PUSH EAX
CALL 0x000313d0
CALL 0x0029eab0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint HaldClutImage(int param_1,int param_2,undefined4 param_3)\n\n{\n  bool bVar1;\n  double dVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  int in_GS_OFFSET;\n  undefined8 uVar10;\n  int local_b8;\n  undefined4 local_ac;\n  undefined4 local_a8;\n  double local_a4;\n  int local_9c;\n  int local_98;\n  undefined4 local_94;\n  undefined4 local_90;\n  undefined4 local_8c;\n  undefined1 *local_88;\n  int local_84;\n  int local_80;\n  int local_7c;\n  undefined4 *local_78;\n  undefined1 local_70 [80];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xbb239;\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/enhance.c",0xa98,"HaldClutImage");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/enhance.c","HaldClutImage",0xa9b,&DAT_002b6e4e,param_1 + 0x318\n                  );\n  }\n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage");\n  }\n  if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage");\n  }\n  iVar3 = SetImageStorageClass(param_1,1,param_3);\n  if (iVar3 == 0) goto LAB_000bb466;\n  if (*(int *)(param_1 + 0x294) == 0) {\n    SetImageAlphaChannel(param_1,0xb,param_3);\n  }\n  local_ac = 0;\n  local_a8 = 0;\n  dVar2 = (double)*(uint *)(param_2 + 0x18);\n  uVar9 = *(uint *)(param_2 + 0x1c);\n  if (dVar2 < (double)*(uint *)(param_2 + 0x1c)) {\n    uVar9 = *(uint *)(param_2 + 0x18);\n  }\n  if (uVar9 < 9) {\n    local_b8 = 0x10;\n    iVar3 = 4;\n  }\n  else {\n    iVar4 = 2;\n    do {\n      iVar4 = iVar4 + 1;\n      iVar3 = iVar4 * iVar4;\n    } while ((uint)(iVar3 * iVar4) < uVar9);\n    local_b8 = iVar3 * iVar3;\n  }\n  GetPixelInfo(param_2,local_70);\n  uVar5 = AcquireVirtualCacheView(param_2,param_3);\n  uVar6 = AcquireAuthenticCacheView(param_1,param_3);\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    iVar8 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar7 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar7 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar8 < iVar7 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar8 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar7 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar7 = iVar4;\n      }\n      iVar7 = iVar7 >> 6;\n      if (iVar8 < iVar7) goto LAB_000bb559;\n    }\n    else {\nLAB_000bb523:\n      iVar7 = 1;\n    }\n  }\n  else {\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;\n    }\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\nLAB_000bb559:\n      iVar7 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar7 = 2;\n    }\n  }\n  local_98 = param_2;\n  local_9c = param_1;\n  local_7c = 1;\n  local_84 = local_b8;\n  local_78 = &local_ac;\n  local_94 = param_3;\n  local_a4 = dVar2;\n  local_90 = uVar5;\n  local_8c = uVar6;\n  local_88 = local_70;\n  local_80 = iVar3;\n  GOMP_parallel(FUN_000b5550,&local_a4,iVar7,0);\n  iVar3 = local_7c;\n  DestroyCacheView(uVar5);\n  DestroyCacheView(uVar6);\nLAB_000bb466:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }\n  return iVar3;\n}\n\n" comment (function_definition "int HaldClutImage(int param_1,int param_2,undefined4 param_3)\n\n{\n  bool bVar1;\n  double dVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  int in_GS_OFFSET;\n  undefined8 uVar10;\n  int local_b8;\n  undefined4 local_ac;\n  undefined4 local_a8;\n  double local_a4;\n  int local_9c;\n  int local_98;\n  undefined4 local_94;\n  undefined4 local_90;\n  undefined4 local_8c;\n  undefined1 *local_88;\n  int local_84;\n  int local_80;\n  int local_7c;\n  undefined4 *local_78;\n  undefined1 local_70 [80];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xbb239;\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/enhance.c",0xa98,"HaldClutImage");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/enhance.c","HaldClutImage",0xa9b,&DAT_002b6e4e,param_1 + 0x318\n                  );\n  }\n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage");\n  }\n  if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage");\n  }\n  iVar3 = SetImageStorageClass(param_1,1,param_3);\n  if (iVar3 == 0) goto LAB_000bb466;\n  if (*(int *)(param_1 + 0x294) == 0) {\n    SetImageAlphaChannel(param_1,0xb,param_3);\n  }\n  local_ac = 0;\n  local_a8 = 0;\n  dVar2 = (double)*(uint *)(param_2 + 0x18);\n  uVar9 = *(uint *)(param_2 + 0x1c);\n  if (dVar2 < (double)*(uint *)(param_2 + 0x1c)) {\n    uVar9 = *(uint *)(param_2 + 0x18);\n  }\n  if (uVar9 < 9) {\n    local_b8 = 0x10;\n    iVar3 = 4;\n  }\n  else {\n    iVar4 = 2;\n    do {\n      iVar4 = iVar4 + 1;\n      iVar3 = iVar4 * iVar4;\n    } while ((uint)(iVar3 * iVar4) < uVar9);\n    local_b8 = iVar3 * iVar3;\n  }\n  GetPixelInfo(param_2,local_70);\n  uVar5 = AcquireVirtualCacheView(param_2,param_3);\n  uVar6 = AcquireAuthenticCacheView(param_1,param_3);\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    iVar8 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar7 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar7 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar8 < iVar7 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar8 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar7 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar7 = iVar4;\n      }\n      iVar7 = iVar7 >> 6;\n      if (iVar8 < iVar7) goto LAB_000bb559;\n    }\n    else {\nLAB_000bb523:\n      iVar7 = 1;\n    }\n  }\n  else {\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;\n    }\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\nLAB_000bb559:\n      iVar7 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar7 = 2;\n    }\n  }\n  local_98 = param_2;\n  local_9c = param_1;\n  local_7c = 1;\n  local_84 = local_b8;\n  local_78 = &local_ac;\n  local_94 = param_3;\n  local_a4 = dVar2;\n  local_90 = uVar5;\n  local_8c = uVar6;\n  local_88 = local_70;\n  local_80 = iVar3;\n  GOMP_parallel(FUN_000b5550,&local_a4,iVar7,0);\n  iVar3 = local_7c;\n  DestroyCacheView(uVar5);\n  DestroyCacheView(uVar6);\nLAB_000bb466:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }\n  return iVar3;\n}" primitive_type (function_declarator "HaldClutImage(int param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  bool bVar1;\n  double dVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  int in_GS_OFFSET;\n  undefined8 uVar10;\n  int local_b8;\n  undefined4 local_ac;\n  undefined4 local_a8;\n  double local_a4;\n  int local_9c;\n  int local_98;\n  undefined4 local_94;\n  undefined4 local_90;\n  undefined4 local_8c;\n  undefined1 *local_88;\n  int local_84;\n  int local_80;\n  int local_7c;\n  undefined4 *local_78;\n  undefined1 local_70 [80];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xbb239;\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/enhance.c",0xa98,"HaldClutImage");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/enhance.c","HaldClutImage",0xa9b,&DAT_002b6e4e,param_1 + 0x318\n                  );\n  }\n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage");\n  }\n  if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage");\n  }\n  iVar3 = SetImageStorageClass(param_1,1,param_3);\n  if (iVar3 == 0) goto LAB_000bb466;\n  if (*(int *)(param_1 + 0x294) == 0) {\n    SetImageAlphaChannel(param_1,0xb,param_3);\n  }\n  local_ac = 0;\n  local_a8 = 0;\n  dVar2 = (double)*(uint *)(param_2 + 0x18);\n  uVar9 = *(uint *)(param_2 + 0x1c);\n  if (dVar2 < (double)*(uint *)(param_2 + 0x1c)) {\n    uVar9 = *(uint *)(param_2 + 0x18);\n  }\n  if (uVar9 < 9) {\n    local_b8 = 0x10;\n    iVar3 = 4;\n  }\n  else {\n    iVar4 = 2;\n    do {\n      iVar4 = iVar4 + 1;\n      iVar3 = iVar4 * iVar4;\n    } while ((uint)(iVar3 * iVar4) < uVar9);\n    local_b8 = iVar3 * iVar3;\n  }\n  GetPixelInfo(param_2,local_70);\n  uVar5 = AcquireVirtualCacheView(param_2,param_3);\n  uVar6 = AcquireAuthenticCacheView(param_1,param_3);\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    iVar8 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar7 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar7 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar8 < iVar7 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar8 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar7 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar7 = iVar4;\n      }\n      iVar7 = iVar7 >> 6;\n      if (iVar8 < iVar7) goto LAB_000bb559;\n    }\n    else {\nLAB_000bb523:\n      iVar7 = 1;\n    }\n  }\n  else {\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;\n    }\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\nLAB_000bb559:\n      iVar7 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar7 = 2;\n    }\n  }\n  local_98 = param_2;\n  local_9c = param_1;\n  local_7c = 1;\n  local_84 = local_b8;\n  local_78 = &local_ac;\n  local_94 = param_3;\n  local_a4 = dVar2;\n  local_90 = uVar5;\n  local_8c = uVar6;\n  local_88 = local_70;\n  local_80 = iVar3;\n  GOMP_parallel(FUN_000b5550,&local_a4,iVar7,0);\n  iVar3 = local_7c;\n  DestroyCacheView(uVar5);\n  DestroyCacheView(uVar6);\nLAB_000bb466:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }\n  return iVar3;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "double dVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined8 uVar10;" type_identifier identifier ;) (declaration "int local_b8;" primitive_type identifier ;) (declaration "undefined4 local_ac;" type_identifier identifier ;) (declaration "undefined4 local_a8;" type_identifier identifier ;) (declaration "double local_a4;" primitive_type identifier ;) (declaration "int local_9c;" primitive_type identifier ;) (declaration "int local_98;" primitive_type identifier ;) (declaration "undefined4 local_94;" type_identifier identifier ;) (declaration "undefined4 local_90;" type_identifier identifier ;) (declaration "undefined4 local_8c;" type_identifier identifier ;) (declaration "undefined1 *local_88;" type_identifier (pointer_declarator "*local_88" * identifier) ;) (declaration "int local_84;" primitive_type identifier ;) (declaration "int local_80;" primitive_type identifier ;) (declaration "int local_7c;" primitive_type identifier ;) (declaration "undefined4 *local_78;" type_identifier (pointer_declarator "*local_78" * identifier) ;) (declaration "undefined1 local_70 [80];" type_identifier (array_declarator "local_70 [80]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xbb239;" (assignment_expression "uStack_14 = 0xbb239" 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/enhance.c",0xa98,"HaldClutImage");\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/enhance.c",0xa98,"HaldClutImage");\n  }" { comment (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/enhance.c",0xa98,"HaldClutImage");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/enhance.c",0xa98,"HaldClutImage")" identifier (argument_list "("image != (Image *) NULL","MagickCore/enhance.c",0xa98,"HaldClutImage")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/enhance.c"" " string_content ") , number_literal , (string_literal ""HaldClutImage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage");\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/enhance.c",0xa99,\n                  "HaldClutImage");\n  }" { comment (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/enhance.c"" " string_content ") , number_literal , (string_literal ""HaldClutImage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/enhance.c","HaldClutImage",0xa9b,&DAT_002b6e4e,param_1 + 0x318\n                  );\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/enhance.c","HaldClutImage",0xa9b,&DAT_002b6e4e,param_1 + 0x318\n                  );\n  }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/enhance.c","HaldClutImage",0xa9b,&DAT_002b6e4e,param_1 + 0x318\n                  );" (call_expression "LogMagickEvent(0x8000,"MagickCore/enhance.c","HaldClutImage",0xa9b,&DAT_002b6e4e,param_1 + 0x318\n                  )" identifier (argument_list "(0x8000,"MagickCore/enhance.c","HaldClutImage",0xa9b,&DAT_002b6e4e,param_1 + 0x318\n                  )" ( number_literal , (string_literal ""MagickCore/enhance.c"" " string_content ") , (string_literal ""HaldClutImage"" " string_content ") , number_literal , (pointer_expression "&DAT_002b6e4e" & identifier) , (binary_expression "param_1 + 0x318" identifier + number_literal) ))) ;) })) (if_statement "if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage");\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage");\n  }" { comment (expression_statement "__assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage");" (call_expression "__assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage")" identifier (argument_list "("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage")" ( (string_literal ""hald_image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/enhance.c"" " string_content ") , number_literal , (string_literal ""HaldClutImage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage");\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x3344) != -0x54535255)" ( (binary_expression "*(int *)(param_2 + 0x3344) != -0x54535255" (pointer_expression "*(int *)(param_2 + 0x3344)" * (cast_expression "(int *)(param_2 + 0x3344)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3344)" ( (binary_expression "param_2 + 0x3344" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage");\n  }" { comment (expression_statement "__assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage");" (call_expression "__assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage")" identifier (argument_list "("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage")" ( (string_literal ""hald_image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/enhance.c"" " string_content ") , number_literal , (string_literal ""HaldClutImage"" " string_content ") ))) ;) })) (expression_statement "iVar3 = SetImageStorageClass(param_1,1,param_3);" (assignment_expression "iVar3 = SetImageStorageClass(param_1,1,param_3)" identifier = (call_expression "SetImageStorageClass(param_1,1,param_3)" identifier (argument_list "(param_1,1,param_3)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar3 == 0) goto LAB_000bb466;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000bb466;" goto statement_identifier ;)) (if_statement "if (*(int *)(param_1 + 0x294) == 0) {\n    SetImageAlphaChannel(param_1,0xb,param_3);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x294) == 0)" ( (binary_expression "*(int *)(param_1 + 0x294) == 0" (pointer_expression "*(int *)(param_1 + 0x294)" * (cast_expression "(int *)(param_1 + 0x294)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x294)" ( (binary_expression "param_1 + 0x294" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    SetImageAlphaChannel(param_1,0xb,param_3);\n  }" { (expression_statement "SetImageAlphaChannel(param_1,0xb,param_3);" (call_expression "SetImageAlphaChannel(param_1,0xb,param_3)" identifier (argument_list "(param_1,0xb,param_3)" ( identifier , number_literal , identifier ))) ;) })) (expression_statement "local_ac = 0;" (assignment_expression "local_ac = 0" identifier = number_literal) ;) (expression_statement "local_a8 = 0;" (assignment_expression "local_a8 = 0" identifier = number_literal) ;) (expression_statement "dVar2 = (double)*(uint *)(param_2 + 0x18);" (assignment_expression "dVar2 = (double)*(uint *)(param_2 + 0x18)" identifier = (cast_expression "(double)*(uint *)(param_2 + 0x18)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(uint *)(param_2 + 0x18)" * (cast_expression "(uint *)(param_2 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))))) ;) (expression_statement "uVar9 = *(uint *)(param_2 + 0x1c);" (assignment_expression "uVar9 = *(uint *)(param_2 + 0x1c)" identifier = (pointer_expression "*(uint *)(param_2 + 0x1c)" * (cast_expression "(uint *)(param_2 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) ))))) ;) (if_statement "if (dVar2 < (double)*(uint *)(param_2 + 0x1c)) {\n    uVar9 = *(uint *)(param_2 + 0x18);\n  }" if (parenthesized_expression "(dVar2 < (double)*(uint *)(param_2 + 0x1c))" ( (binary_expression "dVar2 < (double)*(uint *)(param_2 + 0x1c)" identifier < (cast_expression "(double)*(uint *)(param_2 + 0x1c)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(uint *)(param_2 + 0x1c)" * (cast_expression "(uint *)(param_2 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))))) )) (compound_statement "{\n    uVar9 = *(uint *)(param_2 + 0x18);\n  }" { (expression_statement "uVar9 = *(uint *)(param_2 + 0x18);" (assignment_expression "uVar9 = *(uint *)(param_2 + 0x18)" identifier = (pointer_expression "*(uint *)(param_2 + 0x18)" * (cast_expression "(uint *)(param_2 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) ;) })) (if_statement "if (uVar9 < 9) {\n    local_b8 = 0x10;\n    iVar3 = 4;\n  }\n  else {\n    iVar4 = 2;\n    do {\n      iVar4 = iVar4 + 1;\n      iVar3 = iVar4 * iVar4;\n    } while ((uint)(iVar3 * iVar4) < uVar9);\n    local_b8 = iVar3 * iVar3;\n  }" if (parenthesized_expression "(uVar9 < 9)" ( (binary_expression "uVar9 < 9" identifier < number_literal) )) (compound_statement "{\n    local_b8 = 0x10;\n    iVar3 = 4;\n  }" { (expression_statement "local_b8 = 0x10;" (assignment_expression "local_b8 = 0x10" identifier = number_literal) ;) (expression_statement "iVar3 = 4;" (assignment_expression "iVar3 = 4" identifier = number_literal) ;) }) (else_clause "else {\n    iVar4 = 2;\n    do {\n      iVar4 = iVar4 + 1;\n      iVar3 = iVar4 * iVar4;\n    } while ((uint)(iVar3 * iVar4) < uVar9);\n    local_b8 = iVar3 * iVar3;\n  }" else (compound_statement "{\n    iVar4 = 2;\n    do {\n      iVar4 = iVar4 + 1;\n      iVar3 = iVar4 * iVar4;\n    } while ((uint)(iVar3 * iVar4) < uVar9);\n    local_b8 = iVar3 * iVar3;\n  }" { (expression_statement "iVar4 = 2;" (assignment_expression "iVar4 = 2" identifier = number_literal) ;) (do_statement "do {\n      iVar4 = iVar4 + 1;\n      iVar3 = iVar4 * iVar4;\n    } while ((uint)(iVar3 * iVar4) < uVar9);" do (compound_statement "{\n      iVar4 = iVar4 + 1;\n      iVar3 = iVar4 * iVar4;\n    }" { (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = iVar4 * iVar4;" (assignment_expression "iVar3 = iVar4 * iVar4" identifier = (binary_expression "iVar4 * iVar4" identifier * identifier)) ;) }) while (parenthesized_expression "((uint)(iVar3 * iVar4) < uVar9)" ( (binary_expression "(uint)(iVar3 * iVar4) < uVar9" (call_expression "(uint)(iVar3 * iVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar3 * iVar4)" ( (binary_expression "iVar3 * iVar4" identifier * identifier) ))) < identifier) )) ;) (expression_statement "local_b8 = iVar3 * iVar3;" (assignment_expression "local_b8 = iVar3 * iVar3" identifier = (binary_expression "iVar3 * iVar3" identifier * identifier)) ;) }))) (expression_statement "GetPixelInfo(param_2,local_70);" (call_expression "GetPixelInfo(param_2,local_70)" identifier (argument_list "(param_2,local_70)" ( identifier , identifier ))) ;) (expression_statement "uVar5 = AcquireVirtualCacheView(param_2,param_3);" (assignment_expression "uVar5 = AcquireVirtualCacheView(param_2,param_3)" identifier = (call_expression "AcquireVirtualCacheView(param_2,param_3)" identifier (argument_list "(param_2,param_3)" ( identifier , identifier )))) ;) (expression_statement "uVar6 = AcquireAuthenticCacheView(param_1,param_3);" (assignment_expression "uVar6 = AcquireAuthenticCacheView(param_1,param_3)" identifier = (call_expression "AcquireAuthenticCacheView(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( 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    iVar8 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar7 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar7 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar8 < iVar7 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar8 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar7 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar7 = iVar4;\n      }\n      iVar7 = iVar7 >> 6;\n      if (iVar8 < iVar7) goto LAB_000bb559;\n    }\n    else {\nLAB_000bb523:\n      iVar7 = 1;\n    }\n  }\n  else {\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;\n    }\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\nLAB_000bb559:\n      iVar7 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar7 = 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    iVar8 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar7 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar7 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar8 < iVar7 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar8 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar7 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar7 = iVar4;\n      }\n      iVar7 = iVar7 >> 6;\n      if (iVar8 < iVar7) goto LAB_000bb559;\n    }\n    else {\nLAB_000bb523:\n      iVar7 = 1;\n    }\n  }" { (expression_statement "iVar8 = GetMagickResourceLimit(7);" (assignment_expression "iVar8 = 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 "iVar7 = iVar4 + 0x3f;" (assignment_expression "iVar7 = iVar4 + 0x3f" identifier = (binary_expression "iVar4 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < iVar4) {\n      iVar7 = iVar4;\n    }" if (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (compound_statement "{\n      iVar7 = iVar4;\n    }" { (expression_statement "iVar7 = iVar4;" (assignment_expression "iVar7 = iVar4" identifier = identifier) ;) })) (expression_statement "bVar1 = 0x7f < iVar4;" (assignment_expression "bVar1 = 0x7f < iVar4" identifier = (binary_expression "0x7f < iVar4" number_literal < identifier)) ;) (if_statement "if (iVar8 < iVar7 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }" if (parenthesized_expression "(iVar8 < iVar7 >> 6)" ( (binary_expression "iVar8 < iVar7 >> 6" identifier < (binary_expression "iVar7 >> 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      iVar8 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar7 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar7 = iVar4;\n      }\n      iVar7 = iVar7 >> 6;\n      if (iVar8 < iVar7) goto LAB_000bb559;\n    }\n    else {\nLAB_000bb523:\n      iVar7 = 1;\n    }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n      iVar8 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar7 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar7 = iVar4;\n      }\n      iVar7 = iVar7 >> 6;\n      if (iVar8 < iVar7) goto LAB_000bb559;\n    }" { (expression_statement "iVar8 = GetMagickResourceLimit(7);" (assignment_expression "iVar8 = 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 "iVar7 = iVar4 + 0x3f;" (assignment_expression "iVar7 = iVar4 + 0x3f" identifier = (binary_expression "iVar4 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < iVar4) {\n        iVar7 = iVar4;\n      }" if (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (compound_statement "{\n        iVar7 = iVar4;\n      }" { (expression_statement "iVar7 = iVar4;" (assignment_expression "iVar7 = iVar4" identifier = identifier) ;) })) (expression_statement "iVar7 = iVar7 >> 6;" (assignment_expression "iVar7 = iVar7 >> 6" identifier = (binary_expression "iVar7 >> 6" identifier >> number_literal)) ;) (if_statement "if (iVar8 < iVar7) goto LAB_000bb559;" if (parenthesized_expression "(iVar8 < iVar7)" ( (binary_expression "iVar8 < iVar7" identifier < identifier) )) (goto_statement "goto LAB_000bb559;" goto statement_identifier ;)) }) (else_clause "else {\nLAB_000bb523:\n      iVar7 = 1;\n    }" else (compound_statement "{\nLAB_000bb523:\n      iVar7 = 1;\n    }" { (labeled_statement "LAB_000bb523:\n      iVar7 = 1;" statement_identifier : (expression_statement "iVar7 = 1;" (assignment_expression "iVar7 = 1" identifier = number_literal) ;)) }))) }) (else_clause "else {\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;\n    }\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\nLAB_000bb559:\n      iVar7 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar7 = 2;\n    }\n  }" else (compound_statement "{\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;\n    }\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\nLAB_000bb559:\n      iVar7 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar7 = 2;\n    }\n  }" { (expression_statement "uVar10 = GetMagickResourceLimit(7);" (assignment_expression "uVar10 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (if_statement "if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;\n    }" if (parenthesized_expression "(((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2))" ( (binary_expression "((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)" (parenthesized_expression "((int)((ulonglong)uVar10 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar10 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar10 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar10 >> 0x20)" ( (binary_expression "(ulonglong)uVar10 >> 0x20" (cast_expression "(ulonglong)uVar10" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar10 < 2)" ( (binary_expression "(uint)uVar10 < 2" (cast_expression "(uint)uVar10" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;\n    }" { (expression_statement "uVar10 = GetMagickResourceLimit(7);" (assignment_expression "uVar10 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (if_statement "if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;" if (parenthesized_expression "(((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2))" ( (binary_expression "((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)" (parenthesized_expression "((int)((ulonglong)uVar10 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar10 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar10 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar10 >> 0x20)" ( (binary_expression "(ulonglong)uVar10 >> 0x20" (cast_expression "(ulonglong)uVar10" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar10 < 2)" ( (binary_expression "(uint)uVar10 < 2" (cast_expression "(uint)uVar10" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (goto_statement "goto LAB_000bb523;" goto statement_identifier ;)) })) (expression_statement "uVar10 = GetMagickResourceLimit(7);" (assignment_expression "uVar10 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (if_statement "if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\nLAB_000bb559:\n      iVar7 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar7 = 2;\n    }" if (parenthesized_expression "(((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2))" ( (binary_expression "((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)" (parenthesized_expression "((int)((ulonglong)uVar10 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar10 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar10 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar10 >> 0x20)" ( (binary_expression "(ulonglong)uVar10 >> 0x20" (cast_expression "(ulonglong)uVar10" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar10 < 2)" ( (binary_expression "(uint)uVar10 < 2" (cast_expression "(uint)uVar10" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\nLAB_000bb559:\n      iVar7 = GetMagickResourceLimit(7);\n    }" { (labeled_statement "LAB_000bb559:\n      iVar7 = GetMagickResourceLimit(7);" statement_identifier : (expression_statement "iVar7 = GetMagickResourceLimit(7);" (assignment_expression "iVar7 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;)) }) (else_clause "else {\n      iVar7 = 2;\n    }" else (compound_statement "{\n      iVar7 = 2;\n    }" { (expression_statement "iVar7 = 2;" (assignment_expression "iVar7 = 2" identifier = number_literal) ;) }))) }))) (expression_statement "local_98 = param_2;" (assignment_expression "local_98 = param_2" identifier = identifier) ;) (expression_statement "local_9c = param_1;" (assignment_expression "local_9c = param_1" identifier = identifier) ;) (expression_statement "local_7c = 1;" (assignment_expression "local_7c = 1" identifier = number_literal) ;) (expression_statement "local_84 = local_b8;" (assignment_expression "local_84 = local_b8" identifier = identifier) ;) (expression_statement "local_78 = &local_ac;" (assignment_expression "local_78 = &local_ac" identifier = (pointer_expression "&local_ac" & identifier)) ;) (expression_statement "local_94 = param_3;" (assignment_expression "local_94 = param_3" identifier = identifier) ;) (expression_statement "local_a4 = dVar2;" (assignment_expression "local_a4 = dVar2" identifier = identifier) ;) (expression_statement "local_90 = uVar5;" (assignment_expression "local_90 = uVar5" identifier = identifier) ;) (expression_statement "local_8c = uVar6;" (assignment_expression "local_8c = uVar6" identifier = identifier) ;) (expression_statement "local_88 = local_70;" (assignment_expression "local_88 = local_70" identifier = identifier) ;) (expression_statement "local_80 = iVar3;" (assignment_expression "local_80 = iVar3" identifier = identifier) ;) (expression_statement "GOMP_parallel(FUN_000b5550,&local_a4,iVar7,0);" (call_expression "GOMP_parallel(FUN_000b5550,&local_a4,iVar7,0)" identifier (argument_list "(FUN_000b5550,&local_a4,iVar7,0)" ( identifier , (pointer_expression "&local_a4" & identifier) , identifier , number_literal ))) ;) (expression_statement "iVar3 = local_7c;" (assignment_expression "iVar3 = local_7c" identifier = identifier) ;) (expression_statement "DestroyCacheView(uVar5);" (call_expression "DestroyCacheView(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "DestroyCacheView(uVar6);" (call_expression "DestroyCacheView(uVar6)" identifier (argument_list "(uVar6)" ( identifier ))) ;) (labeled_statement "LAB_000bb466:\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 iVar3;" 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\nMagickBooleanType HaldClutImage(Image *image,Image *hald_image,ExceptionInfo *exception)\n\n{\n  int iVar1;\n  size_t sVar2;\n  bool bVar3;\n  double dVar4;\n  MagickBooleanType MVar5;\n  int iVar6;\n  CacheView *cache_view;\n  CacheView *cache_view_00;\n  CacheType CVar7;\n  size_t sVar8;\n  uint uVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  MagickSizeType MVar11;\n  int local_b8;\n  MagickOffsetType progress;\n  double local_a4;\n  Image *local_9c;\n  Image *local_98;\n  ExceptionInfo *local_94;\n  CacheView *local_90;\n  CacheView *local_8c;\n  PixelInfo *local_88;\n  int local_84;\n  int local_80;\n  MagickBooleanType local_7c;\n  MagickOffsetType *local_78;\n  PixelInfo zero;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/enhance.c",0xa98,"HaldClutImage");\n  }\n  if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage");\n  }\n  if (image->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/enhance.c","HaldClutImage",0xa9b,"%s",image->filename);\n  }\n  if (hald_image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage");\n  }\n  if (hald_image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage");\n  }\n  MVar5 = SetImageStorageClass(image,DirectClass,exception);\n  if (MVar5 == MagickFalse) goto LAB_000bb466;\n  if (image->alpha_trait == UndefinedPixelTrait) {\n    SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);\n  }\n  progress._0_4_ = 0;\n  progress._4_4_ = 0;\n  dVar4 = (double)hald_image->columns;\n  uVar9 = hald_image->rows;\n  if (dVar4 < (double)hald_image->rows) {\n    uVar9 = hald_image->columns;\n  }\n  if (uVar9 < 9) {\n    local_b8 = 0x10;\n    iVar10 = 4;\n  }\n  else {\n    iVar6 = 2;\n    do {\n      iVar6 = iVar6 + 1;\n      iVar10 = iVar6 * iVar6;\n    } while ((uint)(iVar10 * iVar6) < uVar9);\n    local_b8 = iVar10 * iVar10;\n  }\n  GetPixelInfo(hald_image,&zero);\n  cache_view = AcquireVirtualCacheView(hald_image,exception);\n  cache_view_00 = AcquireAuthenticCacheView(image,exception);\n  CVar7 = GetImagePixelCacheType(image);\n  if (((CVar7 == MemoryCache) || (CVar7 = GetImagePixelCacheType(image), CVar7 == MapCache)) &&\n     ((CVar7 = GetImagePixelCacheType(image), CVar7 == MemoryCache ||\n      (CVar7 = GetImagePixelCacheType(image), CVar7 == MapCache)))) {\n    MVar11 = GetMagickResourceLimit(ThreadResource);\n    sVar2 = image->rows;\n    sVar8 = sVar2 + 0x3f;\n    if (-1 < (int)sVar2) {\n      sVar8 = sVar2;\n    }\n    bVar3 = 0x7f < (int)sVar2;\n    if ((int)MVar11 < (int)sVar8 >> 6) {\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      bVar3 = 1 < (int)MVar11;\n    }\n    if (bVar3) {\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      sVar2 = image->rows;\n      sVar8 = sVar2 + 0x3f;\n      if (-1 < (int)sVar2) {\n        sVar8 = sVar2;\n      }\n      iVar6 = (int)sVar8 >> 6;\n      if ((int)MVar11 < iVar6) goto LAB_000bb559;\n    }\n    else {\nLAB_000bb523:\n      iVar6 = 1;\n    }\n  }\n  else {\n    MVar11 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)) {\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)) goto LAB_000bb523;\n    }\n    MVar11 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)) {\nLAB_000bb559:\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      iVar6 = (int)MVar11;\n    }\n    else {\n      iVar6 = 2;\n    }\n  }\n  local_98 = hald_image;\n  local_9c = image;\n  local_7c = MagickTrue;\n  local_84 = local_b8;\n  local_78 = &progress;\n  local_94 = exception;\n  local_a4 = dVar4;\n  local_90 = cache_view;\n  local_8c = cache_view_00;\n  local_88 = &zero;\n  local_80 = iVar10;\n  GOMP_parallel(HaldClutImage__omp_fn_8,&local_a4,iVar6,0);\n  MVar5 = local_7c;\n  DestroyCacheView(cache_view);\n  DestroyCacheView(cache_view_00);\nLAB_000bb466:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return MVar5;\n}\n\n" comment comment comment comment comment comment comment comment (function_definition "MagickBooleanType HaldClutImage(Image *image,Image *hald_image,ExceptionInfo *exception)\n\n{\n  int iVar1;\n  size_t sVar2;\n  bool bVar3;\n  double dVar4;\n  MagickBooleanType MVar5;\n  int iVar6;\n  CacheView *cache_view;\n  CacheView *cache_view_00;\n  CacheType CVar7;\n  size_t sVar8;\n  uint uVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  MagickSizeType MVar11;\n  int local_b8;\n  MagickOffsetType progress;\n  double local_a4;\n  Image *local_9c;\n  Image *local_98;\n  ExceptionInfo *local_94;\n  CacheView *local_90;\n  CacheView *local_8c;\n  PixelInfo *local_88;\n  int local_84;\n  int local_80;\n  MagickBooleanType local_7c;\n  MagickOffsetType *local_78;\n  PixelInfo zero;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/enhance.c",0xa98,"HaldClutImage");\n  }\n  if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage");\n  }\n  if (image->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/enhance.c","HaldClutImage",0xa9b,"%s",image->filename);\n  }\n  if (hald_image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage");\n  }\n  if (hald_image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage");\n  }\n  MVar5 = SetImageStorageClass(image,DirectClass,exception);\n  if (MVar5 == MagickFalse) goto LAB_000bb466;\n  if (image->alpha_trait == UndefinedPixelTrait) {\n    SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);\n  }\n  progress._0_4_ = 0;\n  progress._4_4_ = 0;\n  dVar4 = (double)hald_image->columns;\n  uVar9 = hald_image->rows;\n  if (dVar4 < (double)hald_image->rows) {\n    uVar9 = hald_image->columns;\n  }\n  if (uVar9 < 9) {\n    local_b8 = 0x10;\n    iVar10 = 4;\n  }\n  else {\n    iVar6 = 2;\n    do {\n      iVar6 = iVar6 + 1;\n      iVar10 = iVar6 * iVar6;\n    } while ((uint)(iVar10 * iVar6) < uVar9);\n    local_b8 = iVar10 * iVar10;\n  }\n  GetPixelInfo(hald_image,&zero);\n  cache_view = AcquireVirtualCacheView(hald_image,exception);\n  cache_view_00 = AcquireAuthenticCacheView(image,exception);\n  CVar7 = GetImagePixelCacheType(image);\n  if (((CVar7 == MemoryCache) || (CVar7 = GetImagePixelCacheType(image), CVar7 == MapCache)) &&\n     ((CVar7 = GetImagePixelCacheType(image), CVar7 == MemoryCache ||\n      (CVar7 = GetImagePixelCacheType(image), CVar7 == MapCache)))) {\n    MVar11 = GetMagickResourceLimit(ThreadResource);\n    sVar2 = image->rows;\n    sVar8 = sVar2 + 0x3f;\n    if (-1 < (int)sVar2) {\n      sVar8 = sVar2;\n    }\n    bVar3 = 0x7f < (int)sVar2;\n    if ((int)MVar11 < (int)sVar8 >> 6) {\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      bVar3 = 1 < (int)MVar11;\n    }\n    if (bVar3) {\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      sVar2 = image->rows;\n      sVar8 = sVar2 + 0x3f;\n      if (-1 < (int)sVar2) {\n        sVar8 = sVar2;\n      }\n      iVar6 = (int)sVar8 >> 6;\n      if ((int)MVar11 < iVar6) goto LAB_000bb559;\n    }\n    else {\nLAB_000bb523:\n      iVar6 = 1;\n    }\n  }\n  else {\n    MVar11 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)) {\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)) goto LAB_000bb523;\n    }\n    MVar11 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)) {\nLAB_000bb559:\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      iVar6 = (int)MVar11;\n    }\n    else {\n      iVar6 = 2;\n    }\n  }\n  local_98 = hald_image;\n  local_9c = image;\n  local_7c = MagickTrue;\n  local_84 = local_b8;\n  local_78 = &progress;\n  local_94 = exception;\n  local_a4 = dVar4;\n  local_90 = cache_view;\n  local_8c = cache_view_00;\n  local_88 = &zero;\n  local_80 = iVar10;\n  GOMP_parallel(HaldClutImage__omp_fn_8,&local_a4,iVar6,0);\n  MVar5 = local_7c;\n  DestroyCacheView(cache_view);\n  DestroyCacheView(cache_view_00);\nLAB_000bb466:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return MVar5;\n}" type_identifier (function_declarator "HaldClutImage(Image *image,Image *hald_image,ExceptionInfo *exception)" identifier (parameter_list "(Image *image,Image *hald_image,ExceptionInfo *exception)" ( (parameter_declaration "Image *image" type_identifier (pointer_declarator "*image" * identifier)) , (parameter_declaration "Image *hald_image" type_identifier (pointer_declarator "*hald_image" * identifier)) , (parameter_declaration "ExceptionInfo *exception" type_identifier (pointer_declarator "*exception" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  bool bVar3;\n  double dVar4;\n  MagickBooleanType MVar5;\n  int iVar6;\n  CacheView *cache_view;\n  CacheView *cache_view_00;\n  CacheType CVar7;\n  size_t sVar8;\n  uint uVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  MagickSizeType MVar11;\n  int local_b8;\n  MagickOffsetType progress;\n  double local_a4;\n  Image *local_9c;\n  Image *local_98;\n  ExceptionInfo *local_94;\n  CacheView *local_90;\n  CacheView *local_8c;\n  PixelInfo *local_88;\n  int local_84;\n  int local_80;\n  MagickBooleanType local_7c;\n  MagickOffsetType *local_78;\n  PixelInfo zero;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/enhance.c",0xa98,"HaldClutImage");\n  }\n  if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage");\n  }\n  if (image->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/enhance.c","HaldClutImage",0xa9b,"%s",image->filename);\n  }\n  if (hald_image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage");\n  }\n  if (hald_image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage");\n  }\n  MVar5 = SetImageStorageClass(image,DirectClass,exception);\n  if (MVar5 == MagickFalse) goto LAB_000bb466;\n  if (image->alpha_trait == UndefinedPixelTrait) {\n    SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);\n  }\n  progress._0_4_ = 0;\n  progress._4_4_ = 0;\n  dVar4 = (double)hald_image->columns;\n  uVar9 = hald_image->rows;\n  if (dVar4 < (double)hald_image->rows) {\n    uVar9 = hald_image->columns;\n  }\n  if (uVar9 < 9) {\n    local_b8 = 0x10;\n    iVar10 = 4;\n  }\n  else {\n    iVar6 = 2;\n    do {\n      iVar6 = iVar6 + 1;\n      iVar10 = iVar6 * iVar6;\n    } while ((uint)(iVar10 * iVar6) < uVar9);\n    local_b8 = iVar10 * iVar10;\n  }\n  GetPixelInfo(hald_image,&zero);\n  cache_view = AcquireVirtualCacheView(hald_image,exception);\n  cache_view_00 = AcquireAuthenticCacheView(image,exception);\n  CVar7 = GetImagePixelCacheType(image);\n  if (((CVar7 == MemoryCache) || (CVar7 = GetImagePixelCacheType(image), CVar7 == MapCache)) &&\n     ((CVar7 = GetImagePixelCacheType(image), CVar7 == MemoryCache ||\n      (CVar7 = GetImagePixelCacheType(image), CVar7 == MapCache)))) {\n    MVar11 = GetMagickResourceLimit(ThreadResource);\n    sVar2 = image->rows;\n    sVar8 = sVar2 + 0x3f;\n    if (-1 < (int)sVar2) {\n      sVar8 = sVar2;\n    }\n    bVar3 = 0x7f < (int)sVar2;\n    if ((int)MVar11 < (int)sVar8 >> 6) {\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      bVar3 = 1 < (int)MVar11;\n    }\n    if (bVar3) {\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      sVar2 = image->rows;\n      sVar8 = sVar2 + 0x3f;\n      if (-1 < (int)sVar2) {\n        sVar8 = sVar2;\n      }\n      iVar6 = (int)sVar8 >> 6;\n      if ((int)MVar11 < iVar6) goto LAB_000bb559;\n    }\n    else {\nLAB_000bb523:\n      iVar6 = 1;\n    }\n  }\n  else {\n    MVar11 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)) {\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)) goto LAB_000bb523;\n    }\n    MVar11 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)) {\nLAB_000bb559:\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      iVar6 = (int)MVar11;\n    }\n    else {\n      iVar6 = 2;\n    }\n  }\n  local_98 = hald_image;\n  local_9c = image;\n  local_7c = MagickTrue;\n  local_84 = local_b8;\n  local_78 = &progress;\n  local_94 = exception;\n  local_a4 = dVar4;\n  local_90 = cache_view;\n  local_8c = cache_view_00;\n  local_88 = &zero;\n  local_80 = iVar10;\n  GOMP_parallel(HaldClutImage__omp_fn_8,&local_a4,iVar6,0);\n  MVar5 = local_7c;\n  DestroyCacheView(cache_view);\n  DestroyCacheView(cache_view_00);\nLAB_000bb466:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return MVar5;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "double dVar4;" primitive_type identifier ;) (declaration "MagickBooleanType MVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "CacheView *cache_view;" type_identifier (pointer_declarator "*cache_view" * identifier) ;) (declaration "CacheView *cache_view_00;" type_identifier (pointer_declarator "*cache_view_00" * identifier) ;) (declaration "CacheType CVar7;" type_identifier identifier ;) (declaration "size_t sVar8;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "MagickSizeType MVar11;" type_identifier identifier ;) (declaration "int local_b8;" primitive_type identifier ;) (declaration "MagickOffsetType progress;" type_identifier identifier ;) (declaration "double local_a4;" primitive_type identifier ;) (declaration "Image *local_9c;" type_identifier (pointer_declarator "*local_9c" * identifier) ;) (declaration "Image *local_98;" type_identifier (pointer_declarator "*local_98" * identifier) ;) (declaration "ExceptionInfo *local_94;" type_identifier (pointer_declarator "*local_94" * identifier) ;) (declaration "CacheView *local_90;" type_identifier (pointer_declarator "*local_90" * identifier) ;) (declaration "CacheView *local_8c;" type_identifier (pointer_declarator "*local_8c" * identifier) ;) (declaration "PixelInfo *local_88;" type_identifier (pointer_declarator "*local_88" * identifier) ;) (declaration "int local_84;" primitive_type identifier ;) (declaration "int local_80;" primitive_type identifier ;) (declaration "MagickBooleanType local_7c;" type_identifier identifier ;) (declaration "MagickOffsetType *local_78;" type_identifier (pointer_declarator "*local_78" * identifier) ;) (declaration "PixelInfo zero;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(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/enhance.c",0xa98,"HaldClutImage");\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/enhance.c",0xa98,"HaldClutImage");\n  }" { comment (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/enhance.c",0xa98,"HaldClutImage");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/enhance.c",0xa98,"HaldClutImage")" identifier (argument_list "("image != (Image *) NULL","MagickCore/enhance.c",0xa98,"HaldClutImage")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/enhance.c"" " string_content ") , number_literal , (string_literal ""HaldClutImage"" " string_content ") ))) ;) })) (if_statement "if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage");\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/enhance.c",0xa99,\n                  "HaldClutImage");\n  }" { comment (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/enhance.c"" " string_content ") , number_literal , (string_literal ""HaldClutImage"" " string_content ") ))) ;) })) (if_statement "if (image->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/enhance.c","HaldClutImage",0xa9b,"%s",image->filename);\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/enhance.c","HaldClutImage",0xa9b,"%s",image->filename);\n  }" { (expression_statement "LogMagickEvent(TraceEvent,"MagickCore/enhance.c","HaldClutImage",0xa9b,"%s",image->filename);" (call_expression "LogMagickEvent(TraceEvent,"MagickCore/enhance.c","HaldClutImage",0xa9b,"%s",image->filename)" identifier (argument_list "(TraceEvent,"MagickCore/enhance.c","HaldClutImage",0xa9b,"%s",image->filename)" ( identifier , (string_literal ""MagickCore/enhance.c"" " string_content ") , (string_literal ""HaldClutImage"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (field_expression "image->filename" identifier -> field_identifier) ))) ;) })) (if_statement "if (hald_image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage");\n  }" if (parenthesized_expression "(hald_image == (Image *)0x0)" ( (binary_expression "hald_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("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage");\n  }" { comment (expression_statement "__assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage");" (call_expression "__assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage")" identifier (argument_list "("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage")" ( (string_literal ""hald_image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/enhance.c"" " string_content ") , number_literal , (string_literal ""HaldClutImage"" " string_content ") ))) ;) })) (if_statement "if (hald_image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage");\n  }" if (parenthesized_expression "(hald_image->signature != 0xabacadab)" ( (binary_expression "hald_image->signature != 0xabacadab" (field_expression "hald_image->signature" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage");\n  }" { comment (expression_statement "__assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage");" (call_expression "__assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage")" identifier (argument_list "("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage")" ( (string_literal ""hald_image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/enhance.c"" " string_content ") , number_literal , (string_literal ""HaldClutImage"" " string_content ") ))) ;) })) (expression_statement "MVar5 = SetImageStorageClass(image,DirectClass,exception);" (assignment_expression "MVar5 = SetImageStorageClass(image,DirectClass,exception)" identifier = (call_expression "SetImageStorageClass(image,DirectClass,exception)" identifier (argument_list "(image,DirectClass,exception)" ( identifier , identifier , identifier )))) ;) (if_statement "if (MVar5 == MagickFalse) goto LAB_000bb466;" if (parenthesized_expression "(MVar5 == MagickFalse)" ( (binary_expression "MVar5 == MagickFalse" identifier == identifier) )) (goto_statement "goto LAB_000bb466;" goto statement_identifier ;)) (if_statement "if (image->alpha_trait == UndefinedPixelTrait) {\n    SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);\n  }" if (parenthesized_expression "(image->alpha_trait == UndefinedPixelTrait)" ( (binary_expression "image->alpha_trait == UndefinedPixelTrait" (field_expression "image->alpha_trait" identifier -> field_identifier) == identifier) )) (compound_statement "{\n    SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);\n  }" { (expression_statement "SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);" (call_expression "SetImageAlphaChannel(image,OpaqueAlphaChannel,exception)" identifier (argument_list "(image,OpaqueAlphaChannel,exception)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "progress._0_4_ = 0;" (assignment_expression "progress._0_4_ = 0" (field_expression "progress._0_4_" identifier . field_identifier) = number_literal) ;) (expression_statement "progress._4_4_ = 0;" (assignment_expression "progress._4_4_ = 0" (field_expression "progress._4_4_" identifier . field_identifier) = number_literal) ;) (expression_statement "dVar4 = (double)hald_image->columns;" (assignment_expression "dVar4 = (double)hald_image->columns" identifier = (cast_expression "(double)hald_image->columns" ( (type_descriptor "double" primitive_type) ) (field_expression "hald_image->columns" identifier -> field_identifier))) ;) (expression_statement "uVar9 = hald_image->rows;" (assignment_expression "uVar9 = hald_image->rows" identifier = (field_expression "hald_image->rows" identifier -> field_identifier)) ;) (if_statement "if (dVar4 < (double)hald_image->rows) {\n    uVar9 = hald_image->columns;\n  }" if (parenthesized_expression "(dVar4 < (double)hald_image->rows)" ( (binary_expression "dVar4 < (double)hald_image->rows" identifier < (cast_expression "(double)hald_image->rows" ( (type_descriptor "double" primitive_type) ) (field_expression "hald_image->rows" identifier -> field_identifier))) )) (compound_statement "{\n    uVar9 = hald_image->columns;\n  }" { (expression_statement "uVar9 = hald_image->columns;" (assignment_expression "uVar9 = hald_image->columns" identifier = (field_expression "hald_image->columns" identifier -> field_identifier)) ;) })) (if_statement "if (uVar9 < 9) {\n    local_b8 = 0x10;\n    iVar10 = 4;\n  }\n  else {\n    iVar6 = 2;\n    do {\n      iVar6 = iVar6 + 1;\n      iVar10 = iVar6 * iVar6;\n    } while ((uint)(iVar10 * iVar6) < uVar9);\n    local_b8 = iVar10 * iVar10;\n  }" if (parenthesized_expression "(uVar9 < 9)" ( (binary_expression "uVar9 < 9" identifier < number_literal) )) (compound_statement "{\n    local_b8 = 0x10;\n    iVar10 = 4;\n  }" { (expression_statement "local_b8 = 0x10;" (assignment_expression "local_b8 = 0x10" identifier = number_literal) ;) (expression_statement "iVar10 = 4;" (assignment_expression "iVar10 = 4" identifier = number_literal) ;) }) (else_clause "else {\n    iVar6 = 2;\n    do {\n      iVar6 = iVar6 + 1;\n      iVar10 = iVar6 * iVar6;\n    } while ((uint)(iVar10 * iVar6) < uVar9);\n    local_b8 = iVar10 * iVar10;\n  }" else (compound_statement "{\n    iVar6 = 2;\n    do {\n      iVar6 = iVar6 + 1;\n      iVar10 = iVar6 * iVar6;\n    } while ((uint)(iVar10 * iVar6) < uVar9);\n    local_b8 = iVar10 * iVar10;\n  }" { (expression_statement "iVar6 = 2;" (assignment_expression "iVar6 = 2" identifier = number_literal) ;) (do_statement "do {\n      iVar6 = iVar6 + 1;\n      iVar10 = iVar6 * iVar6;\n    } while ((uint)(iVar10 * iVar6) < uVar9);" do (compound_statement "{\n      iVar6 = iVar6 + 1;\n      iVar10 = iVar6 * iVar6;\n    }" { (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "iVar10 = iVar6 * iVar6;" (assignment_expression "iVar10 = iVar6 * iVar6" identifier = (binary_expression "iVar6 * iVar6" identifier * identifier)) ;) }) while (parenthesized_expression "((uint)(iVar10 * iVar6) < uVar9)" ( (binary_expression "(uint)(iVar10 * iVar6) < uVar9" (call_expression "(uint)(iVar10 * iVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar10 * iVar6)" ( (binary_expression "iVar10 * iVar6" identifier * identifier) ))) < identifier) )) ;) (expression_statement "local_b8 = iVar10 * iVar10;" (assignment_expression "local_b8 = iVar10 * iVar10" identifier = (binary_expression "iVar10 * iVar10" identifier * identifier)) ;) }))) (expression_statement "GetPixelInfo(hald_image,&zero);" (call_expression "GetPixelInfo(hald_image,&zero)" identifier (argument_list "(hald_image,&zero)" ( identifier , (pointer_expression "&zero" & identifier) ))) ;) (expression_statement "cache_view = AcquireVirtualCacheView(hald_image,exception);" (assignment_expression "cache_view = AcquireVirtualCacheView(hald_image,exception)" identifier = (call_expression "AcquireVirtualCacheView(hald_image,exception)" identifier (argument_list "(hald_image,exception)" ( identifier , identifier )))) ;) (expression_statement "cache_view_00 = AcquireAuthenticCacheView(image,exception);" (assignment_expression "cache_view_00 = AcquireAuthenticCacheView(image,exception)" identifier = (call_expression "AcquireAuthenticCacheView(image,exception)" identifier (argument_list "(image,exception)" ( identifier , identifier )))) ;) (expression_statement "CVar7 = GetImagePixelCacheType(image);" (assignment_expression "CVar7 = GetImagePixelCacheType(image)" identifier = (call_expression "GetImagePixelCacheType(image)" identifier (argument_list "(image)" ( identifier )))) ;) (if_statement "if (((CVar7 == MemoryCache) || (CVar7 = GetImagePixelCacheType(image), CVar7 == MapCache)) &&\n     ((CVar7 = GetImagePixelCacheType(image), CVar7 == MemoryCache ||\n      (CVar7 = GetImagePixelCacheType(image), CVar7 == MapCache)))) {\n    MVar11 = GetMagickResourceLimit(ThreadResource);\n    sVar2 = image->rows;\n    sVar8 = sVar2 + 0x3f;\n    if (-1 < (int)sVar2) {\n      sVar8 = sVar2;\n    }\n    bVar3 = 0x7f < (int)sVar2;\n    if ((int)MVar11 < (int)sVar8 >> 6) {\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      bVar3 = 1 < (int)MVar11;\n    }\n    if (bVar3) {\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      sVar2 = image->rows;\n      sVar8 = sVar2 + 0x3f;\n      if (-1 < (int)sVar2) {\n        sVar8 = sVar2;\n      }\n      iVar6 = (int)sVar8 >> 6;\n      if ((int)MVar11 < iVar6) goto LAB_000bb559;\n    }\n    else {\nLAB_000bb523:\n      iVar6 = 1;\n    }\n  }\n  else {\n    MVar11 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)) {\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)) goto LAB_000bb523;\n    }\n    MVar11 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)) {\nLAB_000bb559:\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      iVar6 = (int)MVar11;\n    }\n    else {\n      iVar6 = 2;\n    }\n  }" if (parenthesized_expression "(((CVar7 == MemoryCache) || (CVar7 = GetImagePixelCacheType(image), CVar7 == MapCache)) &&\n     ((CVar7 = GetImagePixelCacheType(image), CVar7 == MemoryCache ||\n      (CVar7 = GetImagePixelCacheType(image), CVar7 == MapCache))))" ( (binary_expression "((CVar7 == MemoryCache) || (CVar7 = GetImagePixelCacheType(image), CVar7 == MapCache)) &&\n     ((CVar7 = GetImagePixelCacheType(image), CVar7 == MemoryCache ||\n      (CVar7 = GetImagePixelCacheType(image), CVar7 == MapCache)))" (parenthesized_expression "((CVar7 == MemoryCache) || (CVar7 = GetImagePixelCacheType(image), CVar7 == MapCache))" ( (binary_expression "(CVar7 == MemoryCache) || (CVar7 = GetImagePixelCacheType(image), CVar7 == MapCache)" (parenthesized_expression "(CVar7 == MemoryCache)" ( (binary_expression "CVar7 == MemoryCache" identifier == identifier) )) || (parenthesized_expression "(CVar7 = GetImagePixelCacheType(image), CVar7 == MapCache)" ( (comma_expression "CVar7 = GetImagePixelCacheType(image), CVar7 == MapCache" (assignment_expression "CVar7 = GetImagePixelCacheType(image)" identifier = (call_expression "GetImagePixelCacheType(image)" identifier (argument_list "(image)" ( identifier )))) , (binary_expression "CVar7 == MapCache" identifier == identifier)) ))) )) && (parenthesized_expression "((CVar7 = GetImagePixelCacheType(image), CVar7 == MemoryCache ||\n      (CVar7 = GetImagePixelCacheType(image), CVar7 == MapCache)))" ( (parenthesized_expression "(CVar7 = GetImagePixelCacheType(image), CVar7 == MemoryCache ||\n      (CVar7 = GetImagePixelCacheType(image), CVar7 == MapCache))" ( (comma_expression "CVar7 = GetImagePixelCacheType(image), CVar7 == MemoryCache ||\n      (CVar7 = GetImagePixelCacheType(image), CVar7 == MapCache)" (assignment_expression "CVar7 = GetImagePixelCacheType(image)" identifier = (call_expression "GetImagePixelCacheType(image)" identifier (argument_list "(image)" ( identifier )))) , (binary_expression "CVar7 == MemoryCache ||\n      (CVar7 = GetImagePixelCacheType(image), CVar7 == MapCache)" (binary_expression "CVar7 == MemoryCache" identifier == identifier) || (parenthesized_expression "(CVar7 = GetImagePixelCacheType(image), CVar7 == MapCache)" ( (comma_expression "CVar7 = GetImagePixelCacheType(image), CVar7 == MapCache" (assignment_expression "CVar7 = GetImagePixelCacheType(image)" identifier = (call_expression "GetImagePixelCacheType(image)" identifier (argument_list "(image)" ( identifier )))) , (binary_expression "CVar7 == MapCache" identifier == identifier)) )))) )) ))) )) (compound_statement "{\n    MVar11 = GetMagickResourceLimit(ThreadResource);\n    sVar2 = image->rows;\n    sVar8 = sVar2 + 0x3f;\n    if (-1 < (int)sVar2) {\n      sVar8 = sVar2;\n    }\n    bVar3 = 0x7f < (int)sVar2;\n    if ((int)MVar11 < (int)sVar8 >> 6) {\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      bVar3 = 1 < (int)MVar11;\n    }\n    if (bVar3) {\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      sVar2 = image->rows;\n      sVar8 = sVar2 + 0x3f;\n      if (-1 < (int)sVar2) {\n        sVar8 = sVar2;\n      }\n      iVar6 = (int)sVar8 >> 6;\n      if ((int)MVar11 < iVar6) goto LAB_000bb559;\n    }\n    else {\nLAB_000bb523:\n      iVar6 = 1;\n    }\n  }" { (expression_statement "MVar11 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar11 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (expression_statement "sVar2 = image->rows;" (assignment_expression "sVar2 = image->rows" identifier = (field_expression "image->rows" identifier -> field_identifier)) ;) (expression_statement "sVar8 = sVar2 + 0x3f;" (assignment_expression "sVar8 = sVar2 + 0x3f" identifier = (binary_expression "sVar2 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < (int)sVar2) {\n      sVar8 = sVar2;\n    }" if (parenthesized_expression "(-1 < (int)sVar2)" ( (binary_expression "-1 < (int)sVar2" number_literal < (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      sVar8 = sVar2;\n    }" { (expression_statement "sVar8 = sVar2;" (assignment_expression "sVar8 = sVar2" identifier = identifier) ;) })) (expression_statement "bVar3 = 0x7f < (int)sVar2;" (assignment_expression "bVar3 = 0x7f < (int)sVar2" identifier = (binary_expression "0x7f < (int)sVar2" number_literal < (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if ((int)MVar11 < (int)sVar8 >> 6) {\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      bVar3 = 1 < (int)MVar11;\n    }" if (parenthesized_expression "((int)MVar11 < (int)sVar8 >> 6)" ( (binary_expression "(int)MVar11 < (int)sVar8 >> 6" (cast_expression "(int)MVar11" ( (type_descriptor "int" primitive_type) ) identifier) < (binary_expression "(int)sVar8 >> 6" (cast_expression "(int)sVar8" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) )) (compound_statement "{\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      bVar3 = 1 < (int)MVar11;\n    }" { (expression_statement "MVar11 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar11 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (expression_statement "bVar3 = 1 < (int)MVar11;" (assignment_expression "bVar3 = 1 < (int)MVar11" identifier = (binary_expression "1 < (int)MVar11" number_literal < (cast_expression "(int)MVar11" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (if_statement "if (bVar3) {\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      sVar2 = image->rows;\n      sVar8 = sVar2 + 0x3f;\n      if (-1 < (int)sVar2) {\n        sVar8 = sVar2;\n      }\n      iVar6 = (int)sVar8 >> 6;\n      if ((int)MVar11 < iVar6) goto LAB_000bb559;\n    }\n    else {\nLAB_000bb523:\n      iVar6 = 1;\n    }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      sVar2 = image->rows;\n      sVar8 = sVar2 + 0x3f;\n      if (-1 < (int)sVar2) {\n        sVar8 = sVar2;\n      }\n      iVar6 = (int)sVar8 >> 6;\n      if ((int)MVar11 < iVar6) goto LAB_000bb559;\n    }" { (expression_statement "MVar11 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar11 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (expression_statement "sVar2 = image->rows;" (assignment_expression "sVar2 = image->rows" identifier = (field_expression "image->rows" identifier -> field_identifier)) ;) (expression_statement "sVar8 = sVar2 + 0x3f;" (assignment_expression "sVar8 = sVar2 + 0x3f" identifier = (binary_expression "sVar2 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < (int)sVar2) {\n        sVar8 = sVar2;\n      }" if (parenthesized_expression "(-1 < (int)sVar2)" ( (binary_expression "-1 < (int)sVar2" number_literal < (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        sVar8 = sVar2;\n      }" { (expression_statement "sVar8 = sVar2;" (assignment_expression "sVar8 = sVar2" identifier = identifier) ;) })) (expression_statement "iVar6 = (int)sVar8 >> 6;" (assignment_expression "iVar6 = (int)sVar8 >> 6" identifier = (binary_expression "(int)sVar8 >> 6" (cast_expression "(int)sVar8" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (if_statement "if ((int)MVar11 < iVar6) goto LAB_000bb559;" if (parenthesized_expression "((int)MVar11 < iVar6)" ( (binary_expression "(int)MVar11 < iVar6" (cast_expression "(int)MVar11" ( (type_descriptor "int" primitive_type) ) identifier) < identifier) )) (goto_statement "goto LAB_000bb559;" goto statement_identifier ;)) }) (else_clause "else {\nLAB_000bb523:\n      iVar6 = 1;\n    }" else (compound_statement "{\nLAB_000bb523:\n      iVar6 = 1;\n    }" { (labeled_statement "LAB_000bb523:\n      iVar6 = 1;" statement_identifier : (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;)) }))) }) (else_clause "else {\n    MVar11 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)) {\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)) goto LAB_000bb523;\n    }\n    MVar11 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)) {\nLAB_000bb559:\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      iVar6 = (int)MVar11;\n    }\n    else {\n      iVar6 = 2;\n    }\n  }" else (compound_statement "{\n    MVar11 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)) {\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)) goto LAB_000bb523;\n    }\n    MVar11 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)) {\nLAB_000bb559:\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      iVar6 = (int)MVar11;\n    }\n    else {\n      iVar6 = 2;\n    }\n  }" { (expression_statement "MVar11 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar11 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (if_statement "if (((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)) {\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)) goto LAB_000bb523;\n    }" if (parenthesized_expression "(((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2))" ( (binary_expression "((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)" (parenthesized_expression "((int)(MVar11 >> 0x20) == 0)" ( (binary_expression "(int)(MVar11 >> 0x20) == 0" (cast_expression "(int)(MVar11 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(MVar11 >> 0x20)" ( (binary_expression "MVar11 >> 0x20" identifier >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)MVar11 < 2)" ( (binary_expression "(uint)MVar11 < 2" (cast_expression "(uint)MVar11" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)) goto LAB_000bb523;\n    }" { (expression_statement "MVar11 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar11 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (if_statement "if (((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)) goto LAB_000bb523;" if (parenthesized_expression "(((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2))" ( (binary_expression "((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)" (parenthesized_expression "((int)(MVar11 >> 0x20) == 0)" ( (binary_expression "(int)(MVar11 >> 0x20) == 0" (cast_expression "(int)(MVar11 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(MVar11 >> 0x20)" ( (binary_expression "MVar11 >> 0x20" identifier >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)MVar11 < 2)" ( (binary_expression "(uint)MVar11 < 2" (cast_expression "(uint)MVar11" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (goto_statement "goto LAB_000bb523;" goto statement_identifier ;)) })) (expression_statement "MVar11 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar11 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (if_statement "if (((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)) {\nLAB_000bb559:\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      iVar6 = (int)MVar11;\n    }\n    else {\n      iVar6 = 2;\n    }" if (parenthesized_expression "(((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2))" ( (binary_expression "((int)(MVar11 >> 0x20) == 0) && ((uint)MVar11 < 2)" (parenthesized_expression "((int)(MVar11 >> 0x20) == 0)" ( (binary_expression "(int)(MVar11 >> 0x20) == 0" (cast_expression "(int)(MVar11 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(MVar11 >> 0x20)" ( (binary_expression "MVar11 >> 0x20" identifier >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)MVar11 < 2)" ( (binary_expression "(uint)MVar11 < 2" (cast_expression "(uint)MVar11" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\nLAB_000bb559:\n      MVar11 = GetMagickResourceLimit(ThreadResource);\n      iVar6 = (int)MVar11;\n    }" { (labeled_statement "LAB_000bb559:\n      MVar11 = GetMagickResourceLimit(ThreadResource);" statement_identifier : (expression_statement "MVar11 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar11 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;)) (expression_statement "iVar6 = (int)MVar11;" (assignment_expression "iVar6 = (int)MVar11" identifier = (cast_expression "(int)MVar11" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n      iVar6 = 2;\n    }" else (compound_statement "{\n      iVar6 = 2;\n    }" { (expression_statement "iVar6 = 2;" (assignment_expression "iVar6 = 2" identifier = number_literal) ;) }))) }))) (expression_statement "local_98 = hald_image;" (assignment_expression "local_98 = hald_image" identifier = identifier) ;) (expression_statement "local_9c = image;" (assignment_expression "local_9c = image" identifier = identifier) ;) (expression_statement "local_7c = MagickTrue;" (assignment_expression "local_7c = MagickTrue" identifier = identifier) ;) (expression_statement "local_84 = local_b8;" (assignment_expression "local_84 = local_b8" identifier = identifier) ;) (expression_statement "local_78 = &progress;" (assignment_expression "local_78 = &progress" identifier = (pointer_expression "&progress" & identifier)) ;) (expression_statement "local_94 = exception;" (assignment_expression "local_94 = exception" identifier = identifier) ;) (expression_statement "local_a4 = dVar4;" (assignment_expression "local_a4 = dVar4" identifier = identifier) ;) (expression_statement "local_90 = cache_view;" (assignment_expression "local_90 = cache_view" identifier = identifier) ;) (expression_statement "local_8c = cache_view_00;" (assignment_expression "local_8c = cache_view_00" identifier = identifier) ;) (expression_statement "local_88 = &zero;" (assignment_expression "local_88 = &zero" identifier = (pointer_expression "&zero" & identifier)) ;) (expression_statement "local_80 = iVar10;" (assignment_expression "local_80 = iVar10" identifier = identifier) ;) (expression_statement "GOMP_parallel(HaldClutImage__omp_fn_8,&local_a4,iVar6,0);" (call_expression "GOMP_parallel(HaldClutImage__omp_fn_8,&local_a4,iVar6,0)" identifier (argument_list "(HaldClutImage__omp_fn_8,&local_a4,iVar6,0)" ( identifier , (pointer_expression "&local_a4" & identifier) , identifier , number_literal ))) ;) (expression_statement "MVar5 = local_7c;" (assignment_expression "MVar5 = local_7c" identifier = identifier) ;) (expression_statement "DestroyCacheView(cache_view);" (call_expression "DestroyCacheView(cache_view)" identifier (argument_list "(cache_view)" ( identifier ))) ;) (expression_statement "DestroyCacheView(cache_view_00);" (call_expression "DestroyCacheView(cache_view_00)" identifier (argument_list "(cache_view_00)" ( identifier ))) ;) (labeled_statement "LAB_000bb466:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(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 MVar5;" return identifier ;) })))
(translation_unit "int HaldClutImage(int param_1,int param_2,undefined4 param_3)\n\n{\n  bool bVar1;\n  double dVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  int in_GS_OFFSET;\n  undefined8 uVar10;\n  int local_b8;\n  undefined4 local_ac;\n  undefined4 local_a8;\n  double local_a4;\n  int local_9c;\n  int local_98;\n  undefined4 local_94;\n  undefined4 local_90;\n  undefined4 local_8c;\n  undefined1 *local_88;\n  int local_84;\n  int local_80;\n  int local_7c;\n  undefined4 *local_78;\n  undefined1 local_70 [80];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xbb239;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/enhance.c",0xa98,"HaldClutImage");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/enhance.c","HaldClutImage",0xa9b,&DAT_002b6e4e,param_1 + 0x318\n                  );\n  }\n  if (param_2 == 0) {\n                    \n    __assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage");\n  }\n  if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage");\n  }\n  iVar3 = SetImageStorageClass(param_1,1,param_3);\n  if (iVar3 == 0) goto LAB_000bb466;\n  if (*(int *)(param_1 + 0x294) == 0) {\n    SetImageAlphaChannel(param_1,0xb,param_3);\n  }\n  local_ac = 0;\n  local_a8 = 0;\n  dVar2 = (double)*(uint *)(param_2 + 0x18);\n  uVar9 = *(uint *)(param_2 + 0x1c);\n  if (dVar2 < (double)*(uint *)(param_2 + 0x1c)) {\n    uVar9 = *(uint *)(param_2 + 0x18);\n  }\n  if (uVar9 < 9) {\n    local_b8 = 0x10;\n    iVar3 = 4;\n  }\n  else {\n    iVar4 = 2;\n    do {\n      iVar4 = iVar4 + 1;\n      iVar3 = iVar4 * iVar4;\n    } while ((uint)(iVar3 * iVar4) < uVar9);\n    local_b8 = iVar3 * iVar3;\n  }\n  GetPixelInfo(param_2,local_70);\n  uVar5 = AcquireVirtualCacheView(param_2,param_3);\n  uVar6 = AcquireAuthenticCacheView(param_1,param_3);\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    iVar8 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar7 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar7 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar8 < iVar7 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar8 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar7 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar7 = iVar4;\n      }\n      iVar7 = iVar7 >> 6;\n      if (iVar8 < iVar7) goto LAB_000bb559;\n    }\n    else {\nLAB_000bb523:\n      iVar7 = 1;\n    }\n  }\n  else {\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;\n    }\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\nLAB_000bb559:\n      iVar7 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar7 = 2;\n    }\n  }\n  local_98 = param_2;\n  local_9c = param_1;\n  local_7c = 1;\n  local_84 = local_b8;\n  local_78 = &local_ac;\n  local_94 = param_3;\n  local_a4 = dVar2;\n  local_90 = uVar5;\n  local_8c = uVar6;\n  local_88 = local_70;\n  local_80 = iVar3;\n  GOMP_parallel(FUN_000b5550,&local_a4,iVar7,0);\n  iVar3 = local_7c;\n  DestroyCacheView(uVar5);\n  DestroyCacheView(uVar6);\nLAB_000bb466:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return iVar3;\n}\n\n" (function_definition "int HaldClutImage(int param_1,int param_2,undefined4 param_3)\n\n{\n  bool bVar1;\n  double dVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  int in_GS_OFFSET;\n  undefined8 uVar10;\n  int local_b8;\n  undefined4 local_ac;\n  undefined4 local_a8;\n  double local_a4;\n  int local_9c;\n  int local_98;\n  undefined4 local_94;\n  undefined4 local_90;\n  undefined4 local_8c;\n  undefined1 *local_88;\n  int local_84;\n  int local_80;\n  int local_7c;\n  undefined4 *local_78;\n  undefined1 local_70 [80];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xbb239;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/enhance.c",0xa98,"HaldClutImage");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/enhance.c","HaldClutImage",0xa9b,&DAT_002b6e4e,param_1 + 0x318\n                  );\n  }\n  if (param_2 == 0) {\n                    \n    __assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage");\n  }\n  if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage");\n  }\n  iVar3 = SetImageStorageClass(param_1,1,param_3);\n  if (iVar3 == 0) goto LAB_000bb466;\n  if (*(int *)(param_1 + 0x294) == 0) {\n    SetImageAlphaChannel(param_1,0xb,param_3);\n  }\n  local_ac = 0;\n  local_a8 = 0;\n  dVar2 = (double)*(uint *)(param_2 + 0x18);\n  uVar9 = *(uint *)(param_2 + 0x1c);\n  if (dVar2 < (double)*(uint *)(param_2 + 0x1c)) {\n    uVar9 = *(uint *)(param_2 + 0x18);\n  }\n  if (uVar9 < 9) {\n    local_b8 = 0x10;\n    iVar3 = 4;\n  }\n  else {\n    iVar4 = 2;\n    do {\n      iVar4 = iVar4 + 1;\n      iVar3 = iVar4 * iVar4;\n    } while ((uint)(iVar3 * iVar4) < uVar9);\n    local_b8 = iVar3 * iVar3;\n  }\n  GetPixelInfo(param_2,local_70);\n  uVar5 = AcquireVirtualCacheView(param_2,param_3);\n  uVar6 = AcquireAuthenticCacheView(param_1,param_3);\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    iVar8 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar7 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar7 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar8 < iVar7 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar8 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar7 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar7 = iVar4;\n      }\n      iVar7 = iVar7 >> 6;\n      if (iVar8 < iVar7) goto LAB_000bb559;\n    }\n    else {\nLAB_000bb523:\n      iVar7 = 1;\n    }\n  }\n  else {\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;\n    }\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\nLAB_000bb559:\n      iVar7 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar7 = 2;\n    }\n  }\n  local_98 = param_2;\n  local_9c = param_1;\n  local_7c = 1;\n  local_84 = local_b8;\n  local_78 = &local_ac;\n  local_94 = param_3;\n  local_a4 = dVar2;\n  local_90 = uVar5;\n  local_8c = uVar6;\n  local_88 = local_70;\n  local_80 = iVar3;\n  GOMP_parallel(FUN_000b5550,&local_a4,iVar7,0);\n  iVar3 = local_7c;\n  DestroyCacheView(uVar5);\n  DestroyCacheView(uVar6);\nLAB_000bb466:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return iVar3;\n}" primitive_type (function_declarator "HaldClutImage(int param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  bool bVar1;\n  double dVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  int in_GS_OFFSET;\n  undefined8 uVar10;\n  int local_b8;\n  undefined4 local_ac;\n  undefined4 local_a8;\n  double local_a4;\n  int local_9c;\n  int local_98;\n  undefined4 local_94;\n  undefined4 local_90;\n  undefined4 local_8c;\n  undefined1 *local_88;\n  int local_84;\n  int local_80;\n  int local_7c;\n  undefined4 *local_78;\n  undefined1 local_70 [80];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xbb239;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/enhance.c",0xa98,"HaldClutImage");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/enhance.c","HaldClutImage",0xa9b,&DAT_002b6e4e,param_1 + 0x318\n                  );\n  }\n  if (param_2 == 0) {\n                    \n    __assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage");\n  }\n  if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage");\n  }\n  iVar3 = SetImageStorageClass(param_1,1,param_3);\n  if (iVar3 == 0) goto LAB_000bb466;\n  if (*(int *)(param_1 + 0x294) == 0) {\n    SetImageAlphaChannel(param_1,0xb,param_3);\n  }\n  local_ac = 0;\n  local_a8 = 0;\n  dVar2 = (double)*(uint *)(param_2 + 0x18);\n  uVar9 = *(uint *)(param_2 + 0x1c);\n  if (dVar2 < (double)*(uint *)(param_2 + 0x1c)) {\n    uVar9 = *(uint *)(param_2 + 0x18);\n  }\n  if (uVar9 < 9) {\n    local_b8 = 0x10;\n    iVar3 = 4;\n  }\n  else {\n    iVar4 = 2;\n    do {\n      iVar4 = iVar4 + 1;\n      iVar3 = iVar4 * iVar4;\n    } while ((uint)(iVar3 * iVar4) < uVar9);\n    local_b8 = iVar3 * iVar3;\n  }\n  GetPixelInfo(param_2,local_70);\n  uVar5 = AcquireVirtualCacheView(param_2,param_3);\n  uVar6 = AcquireAuthenticCacheView(param_1,param_3);\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    iVar8 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar7 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar7 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar8 < iVar7 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar8 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar7 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar7 = iVar4;\n      }\n      iVar7 = iVar7 >> 6;\n      if (iVar8 < iVar7) goto LAB_000bb559;\n    }\n    else {\nLAB_000bb523:\n      iVar7 = 1;\n    }\n  }\n  else {\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;\n    }\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\nLAB_000bb559:\n      iVar7 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar7 = 2;\n    }\n  }\n  local_98 = param_2;\n  local_9c = param_1;\n  local_7c = 1;\n  local_84 = local_b8;\n  local_78 = &local_ac;\n  local_94 = param_3;\n  local_a4 = dVar2;\n  local_90 = uVar5;\n  local_8c = uVar6;\n  local_88 = local_70;\n  local_80 = iVar3;\n  GOMP_parallel(FUN_000b5550,&local_a4,iVar7,0);\n  iVar3 = local_7c;\n  DestroyCacheView(uVar5);\n  DestroyCacheView(uVar6);\nLAB_000bb466:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return iVar3;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "double dVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined8 uVar10;" type_identifier identifier ;) (declaration "int local_b8;" primitive_type identifier ;) (declaration "undefined4 local_ac;" type_identifier identifier ;) (declaration "undefined4 local_a8;" type_identifier identifier ;) (declaration "double local_a4;" primitive_type identifier ;) (declaration "int local_9c;" primitive_type identifier ;) (declaration "int local_98;" primitive_type identifier ;) (declaration "undefined4 local_94;" type_identifier identifier ;) (declaration "undefined4 local_90;" type_identifier identifier ;) (declaration "undefined4 local_8c;" type_identifier identifier ;) (declaration "undefined1 *local_88;" type_identifier (pointer_declarator "*local_88" * identifier) ;) (declaration "int local_84;" primitive_type identifier ;) (declaration "int local_80;" primitive_type identifier ;) (declaration "int local_7c;" primitive_type identifier ;) (declaration "undefined4 *local_78;" type_identifier (pointer_declarator "*local_78" * identifier) ;) (declaration "undefined1 local_70 [80];" type_identifier (array_declarator "local_70 [80]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xbb239;" (assignment_expression "uStack_14 = 0xbb239" 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/enhance.c",0xa98,"HaldClutImage");\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/enhance.c",0xa98,"HaldClutImage");\n  }" { (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/enhance.c",0xa98,"HaldClutImage");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/enhance.c",0xa98,"HaldClutImage")" identifier (argument_list "("image != (Image *) NULL","MagickCore/enhance.c",0xa98,"HaldClutImage")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/enhance.c"" " string_content ") , number_literal , (string_literal ""HaldClutImage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage");\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/enhance.c",0xa99,\n                  "HaldClutImage");\n  }" { (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/enhance.c"" " string_content ") , number_literal , (string_literal ""HaldClutImage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/enhance.c","HaldClutImage",0xa9b,&DAT_002b6e4e,param_1 + 0x318\n                  );\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/enhance.c","HaldClutImage",0xa9b,&DAT_002b6e4e,param_1 + 0x318\n                  );\n  }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/enhance.c","HaldClutImage",0xa9b,&DAT_002b6e4e,param_1 + 0x318\n                  );" (call_expression "LogMagickEvent(0x8000,"MagickCore/enhance.c","HaldClutImage",0xa9b,&DAT_002b6e4e,param_1 + 0x318\n                  )" identifier (argument_list "(0x8000,"MagickCore/enhance.c","HaldClutImage",0xa9b,&DAT_002b6e4e,param_1 + 0x318\n                  )" ( number_literal , (string_literal ""MagickCore/enhance.c"" " string_content ") , (string_literal ""HaldClutImage"" " string_content ") , number_literal , (pointer_expression "&DAT_002b6e4e" & identifier) , (binary_expression "param_1 + 0x318" identifier + number_literal) ))) ;) })) (if_statement "if (param_2 == 0) {\n                    \n    __assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage");\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage");\n  }" { (expression_statement "__assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage");" (call_expression "__assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage")" identifier (argument_list "("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage")" ( (string_literal ""hald_image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/enhance.c"" " string_content ") , number_literal , (string_literal ""HaldClutImage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage");\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x3344) != -0x54535255)" ( (binary_expression "*(int *)(param_2 + 0x3344) != -0x54535255" (pointer_expression "*(int *)(param_2 + 0x3344)" * (cast_expression "(int *)(param_2 + 0x3344)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3344)" ( (binary_expression "param_2 + 0x3344" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage");\n  }" { (expression_statement "__assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage");" (call_expression "__assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage")" identifier (argument_list "("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage")" ( (string_literal ""hald_image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/enhance.c"" " string_content ") , number_literal , (string_literal ""HaldClutImage"" " string_content ") ))) ;) })) (expression_statement "iVar3 = SetImageStorageClass(param_1,1,param_3);" (assignment_expression "iVar3 = SetImageStorageClass(param_1,1,param_3)" identifier = (call_expression "SetImageStorageClass(param_1,1,param_3)" identifier (argument_list "(param_1,1,param_3)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar3 == 0) goto LAB_000bb466;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000bb466;" goto statement_identifier ;)) (if_statement "if (*(int *)(param_1 + 0x294) == 0) {\n    SetImageAlphaChannel(param_1,0xb,param_3);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x294) == 0)" ( (binary_expression "*(int *)(param_1 + 0x294) == 0" (pointer_expression "*(int *)(param_1 + 0x294)" * (cast_expression "(int *)(param_1 + 0x294)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x294)" ( (binary_expression "param_1 + 0x294" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    SetImageAlphaChannel(param_1,0xb,param_3);\n  }" { (expression_statement "SetImageAlphaChannel(param_1,0xb,param_3);" (call_expression "SetImageAlphaChannel(param_1,0xb,param_3)" identifier (argument_list "(param_1,0xb,param_3)" ( identifier , number_literal , identifier ))) ;) })) (expression_statement "local_ac = 0;" (assignment_expression "local_ac = 0" identifier = number_literal) ;) (expression_statement "local_a8 = 0;" (assignment_expression "local_a8 = 0" identifier = number_literal) ;) (expression_statement "dVar2 = (double)*(uint *)(param_2 + 0x18);" (assignment_expression "dVar2 = (double)*(uint *)(param_2 + 0x18)" identifier = (cast_expression "(double)*(uint *)(param_2 + 0x18)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(uint *)(param_2 + 0x18)" * (cast_expression "(uint *)(param_2 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))))) ;) (expression_statement "uVar9 = *(uint *)(param_2 + 0x1c);" (assignment_expression "uVar9 = *(uint *)(param_2 + 0x1c)" identifier = (pointer_expression "*(uint *)(param_2 + 0x1c)" * (cast_expression "(uint *)(param_2 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) ))))) ;) (if_statement "if (dVar2 < (double)*(uint *)(param_2 + 0x1c)) {\n    uVar9 = *(uint *)(param_2 + 0x18);\n  }" if (parenthesized_expression "(dVar2 < (double)*(uint *)(param_2 + 0x1c))" ( (binary_expression "dVar2 < (double)*(uint *)(param_2 + 0x1c)" identifier < (cast_expression "(double)*(uint *)(param_2 + 0x1c)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(uint *)(param_2 + 0x1c)" * (cast_expression "(uint *)(param_2 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))))) )) (compound_statement "{\n    uVar9 = *(uint *)(param_2 + 0x18);\n  }" { (expression_statement "uVar9 = *(uint *)(param_2 + 0x18);" (assignment_expression "uVar9 = *(uint *)(param_2 + 0x18)" identifier = (pointer_expression "*(uint *)(param_2 + 0x18)" * (cast_expression "(uint *)(param_2 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) ;) })) (if_statement "if (uVar9 < 9) {\n    local_b8 = 0x10;\n    iVar3 = 4;\n  }\n  else {\n    iVar4 = 2;\n    do {\n      iVar4 = iVar4 + 1;\n      iVar3 = iVar4 * iVar4;\n    } while ((uint)(iVar3 * iVar4) < uVar9);\n    local_b8 = iVar3 * iVar3;\n  }" if (parenthesized_expression "(uVar9 < 9)" ( (binary_expression "uVar9 < 9" identifier < number_literal) )) (compound_statement "{\n    local_b8 = 0x10;\n    iVar3 = 4;\n  }" { (expression_statement "local_b8 = 0x10;" (assignment_expression "local_b8 = 0x10" identifier = number_literal) ;) (expression_statement "iVar3 = 4;" (assignment_expression "iVar3 = 4" identifier = number_literal) ;) }) (else_clause "else {\n    iVar4 = 2;\n    do {\n      iVar4 = iVar4 + 1;\n      iVar3 = iVar4 * iVar4;\n    } while ((uint)(iVar3 * iVar4) < uVar9);\n    local_b8 = iVar3 * iVar3;\n  }" else (compound_statement "{\n    iVar4 = 2;\n    do {\n      iVar4 = iVar4 + 1;\n      iVar3 = iVar4 * iVar4;\n    } while ((uint)(iVar3 * iVar4) < uVar9);\n    local_b8 = iVar3 * iVar3;\n  }" { (expression_statement "iVar4 = 2;" (assignment_expression "iVar4 = 2" identifier = number_literal) ;) (do_statement "do {\n      iVar4 = iVar4 + 1;\n      iVar3 = iVar4 * iVar4;\n    } while ((uint)(iVar3 * iVar4) < uVar9);" do (compound_statement "{\n      iVar4 = iVar4 + 1;\n      iVar3 = iVar4 * iVar4;\n    }" { (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = iVar4 * iVar4;" (assignment_expression "iVar3 = iVar4 * iVar4" identifier = (binary_expression "iVar4 * iVar4" identifier * identifier)) ;) }) while (parenthesized_expression "((uint)(iVar3 * iVar4) < uVar9)" ( (binary_expression "(uint)(iVar3 * iVar4) < uVar9" (call_expression "(uint)(iVar3 * iVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar3 * iVar4)" ( (binary_expression "iVar3 * iVar4" identifier * identifier) ))) < identifier) )) ;) (expression_statement "local_b8 = iVar3 * iVar3;" (assignment_expression "local_b8 = iVar3 * iVar3" identifier = (binary_expression "iVar3 * iVar3" identifier * identifier)) ;) }))) (expression_statement "GetPixelInfo(param_2,local_70);" (call_expression "GetPixelInfo(param_2,local_70)" identifier (argument_list "(param_2,local_70)" ( identifier , identifier ))) ;) (expression_statement "uVar5 = AcquireVirtualCacheView(param_2,param_3);" (assignment_expression "uVar5 = AcquireVirtualCacheView(param_2,param_3)" identifier = (call_expression "AcquireVirtualCacheView(param_2,param_3)" identifier (argument_list "(param_2,param_3)" ( identifier , identifier )))) ;) (expression_statement "uVar6 = AcquireAuthenticCacheView(param_1,param_3);" (assignment_expression "uVar6 = AcquireAuthenticCacheView(param_1,param_3)" identifier = (call_expression "AcquireAuthenticCacheView(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( 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    iVar8 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar7 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar7 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar8 < iVar7 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar8 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar7 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar7 = iVar4;\n      }\n      iVar7 = iVar7 >> 6;\n      if (iVar8 < iVar7) goto LAB_000bb559;\n    }\n    else {\nLAB_000bb523:\n      iVar7 = 1;\n    }\n  }\n  else {\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;\n    }\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\nLAB_000bb559:\n      iVar7 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar7 = 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    iVar8 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar7 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar7 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar8 < iVar7 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar8 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar7 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar7 = iVar4;\n      }\n      iVar7 = iVar7 >> 6;\n      if (iVar8 < iVar7) goto LAB_000bb559;\n    }\n    else {\nLAB_000bb523:\n      iVar7 = 1;\n    }\n  }" { (expression_statement "iVar8 = GetMagickResourceLimit(7);" (assignment_expression "iVar8 = 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 "iVar7 = iVar4 + 0x3f;" (assignment_expression "iVar7 = iVar4 + 0x3f" identifier = (binary_expression "iVar4 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < iVar4) {\n      iVar7 = iVar4;\n    }" if (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (compound_statement "{\n      iVar7 = iVar4;\n    }" { (expression_statement "iVar7 = iVar4;" (assignment_expression "iVar7 = iVar4" identifier = identifier) ;) })) (expression_statement "bVar1 = 0x7f < iVar4;" (assignment_expression "bVar1 = 0x7f < iVar4" identifier = (binary_expression "0x7f < iVar4" number_literal < identifier)) ;) (if_statement "if (iVar8 < iVar7 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }" if (parenthesized_expression "(iVar8 < iVar7 >> 6)" ( (binary_expression "iVar8 < iVar7 >> 6" identifier < (binary_expression "iVar7 >> 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      iVar8 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar7 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar7 = iVar4;\n      }\n      iVar7 = iVar7 >> 6;\n      if (iVar8 < iVar7) goto LAB_000bb559;\n    }\n    else {\nLAB_000bb523:\n      iVar7 = 1;\n    }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n      iVar8 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar7 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar7 = iVar4;\n      }\n      iVar7 = iVar7 >> 6;\n      if (iVar8 < iVar7) goto LAB_000bb559;\n    }" { (expression_statement "iVar8 = GetMagickResourceLimit(7);" (assignment_expression "iVar8 = 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 "iVar7 = iVar4 + 0x3f;" (assignment_expression "iVar7 = iVar4 + 0x3f" identifier = (binary_expression "iVar4 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < iVar4) {\n        iVar7 = iVar4;\n      }" if (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (compound_statement "{\n        iVar7 = iVar4;\n      }" { (expression_statement "iVar7 = iVar4;" (assignment_expression "iVar7 = iVar4" identifier = identifier) ;) })) (expression_statement "iVar7 = iVar7 >> 6;" (assignment_expression "iVar7 = iVar7 >> 6" identifier = (binary_expression "iVar7 >> 6" identifier >> number_literal)) ;) (if_statement "if (iVar8 < iVar7) goto LAB_000bb559;" if (parenthesized_expression "(iVar8 < iVar7)" ( (binary_expression "iVar8 < iVar7" identifier < identifier) )) (goto_statement "goto LAB_000bb559;" goto statement_identifier ;)) }) (else_clause "else {\nLAB_000bb523:\n      iVar7 = 1;\n    }" else (compound_statement "{\nLAB_000bb523:\n      iVar7 = 1;\n    }" { (labeled_statement "LAB_000bb523:\n      iVar7 = 1;" statement_identifier : (expression_statement "iVar7 = 1;" (assignment_expression "iVar7 = 1" identifier = number_literal) ;)) }))) }) (else_clause "else {\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;\n    }\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\nLAB_000bb559:\n      iVar7 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar7 = 2;\n    }\n  }" else (compound_statement "{\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;\n    }\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\nLAB_000bb559:\n      iVar7 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar7 = 2;\n    }\n  }" { (expression_statement "uVar10 = GetMagickResourceLimit(7);" (assignment_expression "uVar10 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (if_statement "if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;\n    }" if (parenthesized_expression "(((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2))" ( (binary_expression "((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)" (parenthesized_expression "((int)((ulonglong)uVar10 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar10 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar10 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar10 >> 0x20)" ( (binary_expression "(ulonglong)uVar10 >> 0x20" (cast_expression "(ulonglong)uVar10" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar10 < 2)" ( (binary_expression "(uint)uVar10 < 2" (cast_expression "(uint)uVar10" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;\n    }" { (expression_statement "uVar10 = GetMagickResourceLimit(7);" (assignment_expression "uVar10 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (if_statement "if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;" if (parenthesized_expression "(((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2))" ( (binary_expression "((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)" (parenthesized_expression "((int)((ulonglong)uVar10 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar10 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar10 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar10 >> 0x20)" ( (binary_expression "(ulonglong)uVar10 >> 0x20" (cast_expression "(ulonglong)uVar10" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar10 < 2)" ( (binary_expression "(uint)uVar10 < 2" (cast_expression "(uint)uVar10" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (goto_statement "goto LAB_000bb523;" goto statement_identifier ;)) })) (expression_statement "uVar10 = GetMagickResourceLimit(7);" (assignment_expression "uVar10 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (if_statement "if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\nLAB_000bb559:\n      iVar7 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar7 = 2;\n    }" if (parenthesized_expression "(((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2))" ( (binary_expression "((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)" (parenthesized_expression "((int)((ulonglong)uVar10 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar10 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar10 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar10 >> 0x20)" ( (binary_expression "(ulonglong)uVar10 >> 0x20" (cast_expression "(ulonglong)uVar10" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar10 < 2)" ( (binary_expression "(uint)uVar10 < 2" (cast_expression "(uint)uVar10" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\nLAB_000bb559:\n      iVar7 = GetMagickResourceLimit(7);\n    }" { (labeled_statement "LAB_000bb559:\n      iVar7 = GetMagickResourceLimit(7);" statement_identifier : (expression_statement "iVar7 = GetMagickResourceLimit(7);" (assignment_expression "iVar7 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;)) }) (else_clause "else {\n      iVar7 = 2;\n    }" else (compound_statement "{\n      iVar7 = 2;\n    }" { (expression_statement "iVar7 = 2;" (assignment_expression "iVar7 = 2" identifier = number_literal) ;) }))) }))) (expression_statement "local_98 = param_2;" (assignment_expression "local_98 = param_2" identifier = identifier) ;) (expression_statement "local_9c = param_1;" (assignment_expression "local_9c = param_1" identifier = identifier) ;) (expression_statement "local_7c = 1;" (assignment_expression "local_7c = 1" identifier = number_literal) ;) (expression_statement "local_84 = local_b8;" (assignment_expression "local_84 = local_b8" identifier = identifier) ;) (expression_statement "local_78 = &local_ac;" (assignment_expression "local_78 = &local_ac" identifier = (pointer_expression "&local_ac" & identifier)) ;) (expression_statement "local_94 = param_3;" (assignment_expression "local_94 = param_3" identifier = identifier) ;) (expression_statement "local_a4 = dVar2;" (assignment_expression "local_a4 = dVar2" identifier = identifier) ;) (expression_statement "local_90 = uVar5;" (assignment_expression "local_90 = uVar5" identifier = identifier) ;) (expression_statement "local_8c = uVar6;" (assignment_expression "local_8c = uVar6" identifier = identifier) ;) (expression_statement "local_88 = local_70;" (assignment_expression "local_88 = local_70" identifier = identifier) ;) (expression_statement "local_80 = iVar3;" (assignment_expression "local_80 = iVar3" identifier = identifier) ;) (expression_statement "GOMP_parallel(FUN_000b5550,&local_a4,iVar7,0);" (call_expression "GOMP_parallel(FUN_000b5550,&local_a4,iVar7,0)" identifier (argument_list "(FUN_000b5550,&local_a4,iVar7,0)" ( identifier , (pointer_expression "&local_a4" & identifier) , identifier , number_literal ))) ;) (expression_statement "iVar3 = local_7c;" (assignment_expression "iVar3 = local_7c" identifier = identifier) ;) (expression_statement "DestroyCacheView(uVar5);" (call_expression "DestroyCacheView(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "DestroyCacheView(uVar6);" (call_expression "DestroyCacheView(uVar6)" identifier (argument_list "(uVar6)" ( identifier ))) ;) (labeled_statement "LAB_000bb466:\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 iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (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 ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (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 ( (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 , (pointer_expression & IDENT) , (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 ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (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 , LIT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT * IDENT) ))) < IDENT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * IDENT)) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (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) )) (goto_statement goto statement_identifier ;)) }) (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 { (labeled_statement statement_identifier : (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 = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (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 "int HaldClutImage(int param_1,int param_2,undefined4 param_3)\n\n{\n  bool bVar1;\n  double dVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  int in_GS_OFFSET;\n  undefined8 uVar10;\n  int local_b8;\n  undefined4 local_ac;\n  undefined4 local_a8;\n  double local_a4;\n  int local_9c;\n  int local_98;\n  undefined4 local_94;\n  undefined4 local_90;\n  undefined4 local_8c;\n  undefined1 *local_88;\n  int local_84;\n  int local_80;\n  int local_7c;\n  undefined4 *local_78;\n  undefined1 local_70 [80];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xbb239;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/enhance.c",0xa98,"HaldClutImage");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/enhance.c","HaldClutImage",0xa9b,&DAT_002b6e4e,param_1 + 0x318\n                  );\n  }\n  if (param_2 == 0) {\n                    \n    __assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage");\n  }\n  if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage");\n  }\n  iVar3 = SetImageStorageClass(param_1,1,param_3);\n  if (iVar3 == 0) goto LAB_000bb466;\n  if (*(int *)(param_1 + 0x294) == 0) {\n    SetImageAlphaChannel(param_1,0xb,param_3);\n  }\n  local_ac = 0;\n  local_a8 = 0;\n  dVar2 = (double)*(uint *)(param_2 + 0x18);\n  uVar9 = *(uint *)(param_2 + 0x1c);\n  if (dVar2 < (double)*(uint *)(param_2 + 0x1c)) {\n    uVar9 = *(uint *)(param_2 + 0x18);\n  }\n  if (uVar9 < 9) {\n    local_b8 = 0x10;\n    iVar3 = 4;\n  }\n  else {\n    iVar4 = 2;\n    do {\n      iVar4 = iVar4 + 1;\n      iVar3 = iVar4 * iVar4;\n    } while ((uint)(iVar3 * iVar4) < uVar9);\n    local_b8 = iVar3 * iVar3;\n  }\n  GetPixelInfo(param_2,local_70);\n  uVar5 = AcquireVirtualCacheView(param_2,param_3);\n  uVar6 = AcquireAuthenticCacheView(param_1,param_3);\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    iVar8 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar7 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar7 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar8 < iVar7 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar8 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar7 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar7 = iVar4;\n      }\n      iVar7 = iVar7 >> 6;\n      if (iVar8 < iVar7) goto LAB_000bb559;\n    }\n    else {\nLAB_000bb523:\n      iVar7 = 1;\n    }\n  }\n  else {\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;\n    }\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\nLAB_000bb559:\n      iVar7 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar7 = 2;\n    }\n  }\n  local_98 = param_2;\n  local_9c = param_1;\n  local_7c = 1;\n  local_84 = local_b8;\n  local_78 = &local_ac;\n  local_94 = param_3;\n  local_a4 = dVar2;\n  local_90 = uVar5;\n  local_8c = uVar6;\n  local_88 = local_70;\n  local_80 = iVar3;\n  GOMP_parallel(FUN_000b5550,&local_a4,iVar7,0);\n  iVar3 = local_7c;\n  DestroyCacheView(uVar5);\n  DestroyCacheView(uVar6);\nLAB_000bb466:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return iVar3;\n}" (primitive_type "int") (function_declarator "HaldClutImage(int param_1,int param_2,undefined4 param_3)" (identifier "HaldClutImage") (parameter_list "(int param_1,int param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  bool bVar1;\n  double dVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  int in_GS_OFFSET;\n  undefined8 uVar10;\n  int local_b8;\n  undefined4 local_ac;\n  undefined4 local_a8;\n  double local_a4;\n  int local_9c;\n  int local_98;\n  undefined4 local_94;\n  undefined4 local_90;\n  undefined4 local_8c;\n  undefined1 *local_88;\n  int local_84;\n  int local_80;\n  int local_7c;\n  undefined4 *local_78;\n  undefined1 local_70 [80];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xbb239;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/enhance.c",0xa98,"HaldClutImage");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/enhance.c","HaldClutImage",0xa9b,&DAT_002b6e4e,param_1 + 0x318\n                  );\n  }\n  if (param_2 == 0) {\n                    \n    __assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage");\n  }\n  if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage");\n  }\n  iVar3 = SetImageStorageClass(param_1,1,param_3);\n  if (iVar3 == 0) goto LAB_000bb466;\n  if (*(int *)(param_1 + 0x294) == 0) {\n    SetImageAlphaChannel(param_1,0xb,param_3);\n  }\n  local_ac = 0;\n  local_a8 = 0;\n  dVar2 = (double)*(uint *)(param_2 + 0x18);\n  uVar9 = *(uint *)(param_2 + 0x1c);\n  if (dVar2 < (double)*(uint *)(param_2 + 0x1c)) {\n    uVar9 = *(uint *)(param_2 + 0x18);\n  }\n  if (uVar9 < 9) {\n    local_b8 = 0x10;\n    iVar3 = 4;\n  }\n  else {\n    iVar4 = 2;\n    do {\n      iVar4 = iVar4 + 1;\n      iVar3 = iVar4 * iVar4;\n    } while ((uint)(iVar3 * iVar4) < uVar9);\n    local_b8 = iVar3 * iVar3;\n  }\n  GetPixelInfo(param_2,local_70);\n  uVar5 = AcquireVirtualCacheView(param_2,param_3);\n  uVar6 = AcquireAuthenticCacheView(param_1,param_3);\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    iVar8 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar7 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar7 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar8 < iVar7 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar8 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar7 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar7 = iVar4;\n      }\n      iVar7 = iVar7 >> 6;\n      if (iVar8 < iVar7) goto LAB_000bb559;\n    }\n    else {\nLAB_000bb523:\n      iVar7 = 1;\n    }\n  }\n  else {\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;\n    }\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\nLAB_000bb559:\n      iVar7 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar7 = 2;\n    }\n  }\n  local_98 = param_2;\n  local_9c = param_1;\n  local_7c = 1;\n  local_84 = local_b8;\n  local_78 = &local_ac;\n  local_94 = param_3;\n  local_a4 = dVar2;\n  local_90 = uVar5;\n  local_8c = uVar6;\n  local_88 = local_70;\n  local_80 = iVar3;\n  GOMP_parallel(FUN_000b5550,&local_a4,iVar7,0);\n  iVar3 = local_7c;\n  DestroyCacheView(uVar5);\n  DestroyCacheView(uVar6);\nLAB_000bb466:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return iVar3;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "double dVar2;" (primitive_type "double") (identifier "dVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined8 uVar10;" (type_identifier "undefined8") (identifier "uVar10") (; ";")) (declaration "int local_b8;" (primitive_type "int") (identifier "local_b8") (; ";")) (declaration "undefined4 local_ac;" (type_identifier "undefined4") (identifier "local_ac") (; ";")) (declaration "undefined4 local_a8;" (type_identifier "undefined4") (identifier "local_a8") (; ";")) (declaration "double local_a4;" (primitive_type "double") (identifier "local_a4") (; ";")) (declaration "int local_9c;" (primitive_type "int") (identifier "local_9c") (; ";")) (declaration "int local_98;" (primitive_type "int") (identifier "local_98") (; ";")) (declaration "undefined4 local_94;" (type_identifier "undefined4") (identifier "local_94") (; ";")) (declaration "undefined4 local_90;" (type_identifier "undefined4") (identifier "local_90") (; ";")) (declaration "undefined4 local_8c;" (type_identifier "undefined4") (identifier "local_8c") (; ";")) (declaration "undefined1 *local_88;" (type_identifier "undefined1") (pointer_declarator "*local_88" (* "*") (identifier "local_88")) (; ";")) (declaration "int local_84;" (primitive_type "int") (identifier "local_84") (; ";")) (declaration "int local_80;" (primitive_type "int") (identifier "local_80") (; ";")) (declaration "int local_7c;" (primitive_type "int") (identifier "local_7c") (; ";")) (declaration "undefined4 *local_78;" (type_identifier "undefined4") (pointer_declarator "*local_78" (* "*") (identifier "local_78")) (; ";")) (declaration "undefined1 local_70 [80];" (type_identifier "undefined1") (array_declarator "local_70 [80]" (identifier "local_70") ([ "[") (number_literal "80") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0xbb239;" (assignment_expression "uStack_14 = 0xbb239" (identifier "uStack_14") (= "=") (number_literal "0xbb239")) (; ";")) (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/enhance.c",0xa98,"HaldClutImage");\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/enhance.c",0xa98,"HaldClutImage");\n  }" ({ "{") (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/enhance.c",0xa98,"HaldClutImage");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/enhance.c",0xa98,"HaldClutImage")" (identifier "__assert_fail") (argument_list "("image != (Image *) NULL","MagickCore/enhance.c",0xa98,"HaldClutImage")" (( "(") (string_literal ""image != (Image *) NULL"" (" """) (string_content "image != (Image *) NULL") (" """)) (, ",") (string_literal ""MagickCore/enhance.c"" (" """) (string_content "MagickCore/enhance.c") (" """)) (, ",") (number_literal "0xa98") (, ",") (string_literal ""HaldClutImage"" (" """) (string_content "HaldClutImage") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage");\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/enhance.c",0xa99,\n                  "HaldClutImage");\n  }" ({ "{") (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage")" (identifier "__assert_fail") (argument_list "("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,\n                  "HaldClutImage")" (( "(") (string_literal ""image->signature == MagickCoreSignature"" (" """) (string_content "image->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/enhance.c"" (" """) (string_content "MagickCore/enhance.c") (" """)) (, ",") (number_literal "0xa99") (, ",") (string_literal ""HaldClutImage"" (" """) (string_content "HaldClutImage") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/enhance.c","HaldClutImage",0xa9b,&DAT_002b6e4e,param_1 + 0x318\n                  );\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/enhance.c","HaldClutImage",0xa9b,&DAT_002b6e4e,param_1 + 0x318\n                  );\n  }" ({ "{") (expression_statement "LogMagickEvent(0x8000,"MagickCore/enhance.c","HaldClutImage",0xa9b,&DAT_002b6e4e,param_1 + 0x318\n                  );" (call_expression "LogMagickEvent(0x8000,"MagickCore/enhance.c","HaldClutImage",0xa9b,&DAT_002b6e4e,param_1 + 0x318\n                  )" (identifier "LogMagickEvent") (argument_list "(0x8000,"MagickCore/enhance.c","HaldClutImage",0xa9b,&DAT_002b6e4e,param_1 + 0x318\n                  )" (( "(") (number_literal "0x8000") (, ",") (string_literal ""MagickCore/enhance.c"" (" """) (string_content "MagickCore/enhance.c") (" """)) (, ",") (string_literal ""HaldClutImage"" (" """) (string_content "HaldClutImage") (" """)) (, ",") (number_literal "0xa9b") (, ",") (pointer_expression "&DAT_002b6e4e" (& "&") (identifier "DAT_002b6e4e")) (, ",") (binary_expression "param_1 + 0x318" (identifier "param_1") (+ "+") (number_literal "0x318")) () ")"))) (; ";")) (} "}"))) (if_statement "if (param_2 == 0) {\n                    \n    __assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage");\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage");\n  }" ({ "{") (expression_statement "__assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage");" (call_expression "__assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage")" (identifier "__assert_fail") (argument_list "("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage")" (( "(") (string_literal ""hald_image != (Image *) NULL"" (" """) (string_content "hald_image != (Image *) NULL") (" """)) (, ",") (string_literal ""MagickCore/enhance.c"" (" """) (string_content "MagickCore/enhance.c") (" """)) (, ",") (number_literal "0xa9c") (, ",") (string_literal ""HaldClutImage"" (" """) (string_content "HaldClutImage") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage");\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x3344) != -0x54535255)" (( "(") (binary_expression "*(int *)(param_2 + 0x3344) != -0x54535255" (pointer_expression "*(int *)(param_2 + 0x3344)" (* "*") (cast_expression "(int *)(param_2 + 0x3344)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x3344)" (( "(") (binary_expression "param_2 + 0x3344" (identifier "param_2") (+ "+") (number_literal "0x3344")) () ")")))) (!= "!=") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n                    \n    __assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage");\n  }" ({ "{") (expression_statement "__assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage");" (call_expression "__assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage")" (identifier "__assert_fail") (argument_list "("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,\n                  "HaldClutImage")" (( "(") (string_literal ""hald_image->signature == MagickCoreSignature"" (" """) (string_content "hald_image->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/enhance.c"" (" """) (string_content "MagickCore/enhance.c") (" """)) (, ",") (number_literal "0xa9d") (, ",") (string_literal ""HaldClutImage"" (" """) (string_content "HaldClutImage") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar3 = SetImageStorageClass(param_1,1,param_3);" (assignment_expression "iVar3 = SetImageStorageClass(param_1,1,param_3)" (identifier "iVar3") (= "=") (call_expression "SetImageStorageClass(param_1,1,param_3)" (identifier "SetImageStorageClass") (argument_list "(param_1,1,param_3)" (( "(") (identifier "param_1") (, ",") (number_literal "1") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) goto LAB_000bb466;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000bb466;" (goto "goto") (statement_identifier "LAB_000bb466") (; ";"))) (if_statement "if (*(int *)(param_1 + 0x294) == 0) {\n    SetImageAlphaChannel(param_1,0xb,param_3);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x294) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x294) == 0" (pointer_expression "*(int *)(param_1 + 0x294)" (* "*") (cast_expression "(int *)(param_1 + 0x294)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x294)" (( "(") (binary_expression "param_1 + 0x294" (identifier "param_1") (+ "+") (number_literal "0x294")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    SetImageAlphaChannel(param_1,0xb,param_3);\n  }" ({ "{") (expression_statement "SetImageAlphaChannel(param_1,0xb,param_3);" (call_expression "SetImageAlphaChannel(param_1,0xb,param_3)" (identifier "SetImageAlphaChannel") (argument_list "(param_1,0xb,param_3)" (( "(") (identifier "param_1") (, ",") (number_literal "0xb") (, ",") (identifier "param_3") () ")"))) (; ";")) (} "}"))) (expression_statement "local_ac = 0;" (assignment_expression "local_ac = 0" (identifier "local_ac") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_a8 = 0;" (assignment_expression "local_a8 = 0" (identifier "local_a8") (= "=") (number_literal "0")) (; ";")) (expression_statement "dVar2 = (double)*(uint *)(param_2 + 0x18);" (assignment_expression "dVar2 = (double)*(uint *)(param_2 + 0x18)" (identifier "dVar2") (= "=") (cast_expression "(double)*(uint *)(param_2 + 0x18)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(uint *)(param_2 + 0x18)" (* "*") (cast_expression "(uint *)(param_2 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))))) (; ";")) (expression_statement "uVar9 = *(uint *)(param_2 + 0x1c);" (assignment_expression "uVar9 = *(uint *)(param_2 + 0x1c)" (identifier "uVar9") (= "=") (pointer_expression "*(uint *)(param_2 + 0x1c)" (* "*") (cast_expression "(uint *)(param_2 + 0x1c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (if_statement "if (dVar2 < (double)*(uint *)(param_2 + 0x1c)) {\n    uVar9 = *(uint *)(param_2 + 0x18);\n  }" (if "if") (parenthesized_expression "(dVar2 < (double)*(uint *)(param_2 + 0x1c))" (( "(") (binary_expression "dVar2 < (double)*(uint *)(param_2 + 0x1c)" (identifier "dVar2") (< "<") (cast_expression "(double)*(uint *)(param_2 + 0x1c)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(uint *)(param_2 + 0x1c)" (* "*") (cast_expression "(uint *)(param_2 + 0x1c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")")))))) () ")")) (compound_statement "{\n    uVar9 = *(uint *)(param_2 + 0x18);\n  }" ({ "{") (expression_statement "uVar9 = *(uint *)(param_2 + 0x18);" (assignment_expression "uVar9 = *(uint *)(param_2 + 0x18)" (identifier "uVar9") (= "=") (pointer_expression "*(uint *)(param_2 + 0x18)" (* "*") (cast_expression "(uint *)(param_2 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (} "}"))) (if_statement "if (uVar9 < 9) {\n    local_b8 = 0x10;\n    iVar3 = 4;\n  }\n  else {\n    iVar4 = 2;\n    do {\n      iVar4 = iVar4 + 1;\n      iVar3 = iVar4 * iVar4;\n    } while ((uint)(iVar3 * iVar4) < uVar9);\n    local_b8 = iVar3 * iVar3;\n  }" (if "if") (parenthesized_expression "(uVar9 < 9)" (( "(") (binary_expression "uVar9 < 9" (identifier "uVar9") (< "<") (number_literal "9")) () ")")) (compound_statement "{\n    local_b8 = 0x10;\n    iVar3 = 4;\n  }" ({ "{") (expression_statement "local_b8 = 0x10;" (assignment_expression "local_b8 = 0x10" (identifier "local_b8") (= "=") (number_literal "0x10")) (; ";")) (expression_statement "iVar3 = 4;" (assignment_expression "iVar3 = 4" (identifier "iVar3") (= "=") (number_literal "4")) (; ";")) (} "}")) (else_clause "else {\n    iVar4 = 2;\n    do {\n      iVar4 = iVar4 + 1;\n      iVar3 = iVar4 * iVar4;\n    } while ((uint)(iVar3 * iVar4) < uVar9);\n    local_b8 = iVar3 * iVar3;\n  }" (else "else") (compound_statement "{\n    iVar4 = 2;\n    do {\n      iVar4 = iVar4 + 1;\n      iVar3 = iVar4 * iVar4;\n    } while ((uint)(iVar3 * iVar4) < uVar9);\n    local_b8 = iVar3 * iVar3;\n  }" ({ "{") (expression_statement "iVar4 = 2;" (assignment_expression "iVar4 = 2" (identifier "iVar4") (= "=") (number_literal "2")) (; ";")) (do_statement "do {\n      iVar4 = iVar4 + 1;\n      iVar3 = iVar4 * iVar4;\n    } while ((uint)(iVar3 * iVar4) < uVar9);" (do "do") (compound_statement "{\n      iVar4 = iVar4 + 1;\n      iVar3 = iVar4 * iVar4;\n    }" ({ "{") (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar3 = iVar4 * iVar4;" (assignment_expression "iVar3 = iVar4 * iVar4" (identifier "iVar3") (= "=") (binary_expression "iVar4 * iVar4" (identifier "iVar4") (* "*") (identifier "iVar4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((uint)(iVar3 * iVar4) < uVar9)" (( "(") (binary_expression "(uint)(iVar3 * iVar4) < uVar9" (call_expression "(uint)(iVar3 * iVar4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar3 * iVar4)" (( "(") (binary_expression "iVar3 * iVar4" (identifier "iVar3") (* "*") (identifier "iVar4")) () ")"))) (< "<") (identifier "uVar9")) () ")")) (; ";")) (expression_statement "local_b8 = iVar3 * iVar3;" (assignment_expression "local_b8 = iVar3 * iVar3" (identifier "local_b8") (= "=") (binary_expression "iVar3 * iVar3" (identifier "iVar3") (* "*") (identifier "iVar3"))) (; ";")) (} "}")))) (expression_statement "GetPixelInfo(param_2,local_70);" (call_expression "GetPixelInfo(param_2,local_70)" (identifier "GetPixelInfo") (argument_list "(param_2,local_70)" (( "(") (identifier "param_2") (, ",") (identifier "local_70") () ")"))) (; ";")) (expression_statement "uVar5 = AcquireVirtualCacheView(param_2,param_3);" (assignment_expression "uVar5 = AcquireVirtualCacheView(param_2,param_3)" (identifier "uVar5") (= "=") (call_expression "AcquireVirtualCacheView(param_2,param_3)" (identifier "AcquireVirtualCacheView") (argument_list "(param_2,param_3)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "uVar6 = AcquireAuthenticCacheView(param_1,param_3);" (assignment_expression "uVar6 = AcquireAuthenticCacheView(param_1,param_3)" (identifier "uVar6") (= "=") (call_expression "AcquireAuthenticCacheView(param_1,param_3)" (identifier "AcquireAuthenticCacheView") (argument_list "(param_1,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") () ")")))) (; ";")) (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    iVar8 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar7 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar7 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar8 < iVar7 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar8 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar7 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar7 = iVar4;\n      }\n      iVar7 = iVar7 >> 6;\n      if (iVar8 < iVar7) goto LAB_000bb559;\n    }\n    else {\nLAB_000bb523:\n      iVar7 = 1;\n    }\n  }\n  else {\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;\n    }\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\nLAB_000bb559:\n      iVar7 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar7 = 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    iVar8 = GetMagickResourceLimit(7);\n    iVar4 = *(int *)(param_1 + 0x1c);\n    iVar7 = iVar4 + 0x3f;\n    if (-1 < iVar4) {\n      iVar7 = iVar4;\n    }\n    bVar1 = 0x7f < iVar4;\n    if (iVar8 < iVar7 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }\n    if (bVar1) {\n      iVar8 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar7 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar7 = iVar4;\n      }\n      iVar7 = iVar7 >> 6;\n      if (iVar8 < iVar7) goto LAB_000bb559;\n    }\n    else {\nLAB_000bb523:\n      iVar7 = 1;\n    }\n  }" ({ "{") (expression_statement "iVar8 = GetMagickResourceLimit(7);" (assignment_expression "iVar8 = GetMagickResourceLimit(7)" (identifier "iVar8") (= "=") (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 "iVar7 = iVar4 + 0x3f;" (assignment_expression "iVar7 = iVar4 + 0x3f" (identifier "iVar7") (= "=") (binary_expression "iVar4 + 0x3f" (identifier "iVar4") (+ "+") (number_literal "0x3f"))) (; ";")) (if_statement "if (-1 < iVar4) {\n      iVar7 = iVar4;\n    }" (if "if") (parenthesized_expression "(-1 < iVar4)" (( "(") (binary_expression "-1 < iVar4" (number_literal "-1") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n      iVar7 = iVar4;\n    }" ({ "{") (expression_statement "iVar7 = iVar4;" (assignment_expression "iVar7 = iVar4" (identifier "iVar7") (= "=") (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 (iVar8 < iVar7 >> 6) {\n      iVar4 = GetMagickResourceLimit(7);\n      bVar1 = 1 < iVar4;\n    }" (if "if") (parenthesized_expression "(iVar8 < iVar7 >> 6)" (( "(") (binary_expression "iVar8 < iVar7 >> 6" (identifier "iVar8") (< "<") (binary_expression "iVar7 >> 6" (identifier "iVar7") (>> ">>") (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      iVar8 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar7 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar7 = iVar4;\n      }\n      iVar7 = iVar7 >> 6;\n      if (iVar8 < iVar7) goto LAB_000bb559;\n    }\n    else {\nLAB_000bb523:\n      iVar7 = 1;\n    }" (if "if") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (compound_statement "{\n      iVar8 = GetMagickResourceLimit(7);\n      iVar4 = *(int *)(param_1 + 0x1c);\n      iVar7 = iVar4 + 0x3f;\n      if (-1 < iVar4) {\n        iVar7 = iVar4;\n      }\n      iVar7 = iVar7 >> 6;\n      if (iVar8 < iVar7) goto LAB_000bb559;\n    }" ({ "{") (expression_statement "iVar8 = GetMagickResourceLimit(7);" (assignment_expression "iVar8 = GetMagickResourceLimit(7)" (identifier "iVar8") (= "=") (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 "iVar7 = iVar4 + 0x3f;" (assignment_expression "iVar7 = iVar4 + 0x3f" (identifier "iVar7") (= "=") (binary_expression "iVar4 + 0x3f" (identifier "iVar4") (+ "+") (number_literal "0x3f"))) (; ";")) (if_statement "if (-1 < iVar4) {\n        iVar7 = iVar4;\n      }" (if "if") (parenthesized_expression "(-1 < iVar4)" (( "(") (binary_expression "-1 < iVar4" (number_literal "-1") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n        iVar7 = iVar4;\n      }" ({ "{") (expression_statement "iVar7 = iVar4;" (assignment_expression "iVar7 = iVar4" (identifier "iVar7") (= "=") (identifier "iVar4")) (; ";")) (} "}"))) (expression_statement "iVar7 = iVar7 >> 6;" (assignment_expression "iVar7 = iVar7 >> 6" (identifier "iVar7") (= "=") (binary_expression "iVar7 >> 6" (identifier "iVar7") (>> ">>") (number_literal "6"))) (; ";")) (if_statement "if (iVar8 < iVar7) goto LAB_000bb559;" (if "if") (parenthesized_expression "(iVar8 < iVar7)" (( "(") (binary_expression "iVar8 < iVar7" (identifier "iVar8") (< "<") (identifier "iVar7")) () ")")) (goto_statement "goto LAB_000bb559;" (goto "goto") (statement_identifier "LAB_000bb559") (; ";"))) (} "}")) (else_clause "else {\nLAB_000bb523:\n      iVar7 = 1;\n    }" (else "else") (compound_statement "{\nLAB_000bb523:\n      iVar7 = 1;\n    }" ({ "{") (labeled_statement "LAB_000bb523:\n      iVar7 = 1;" (statement_identifier "LAB_000bb523") (: ":") (expression_statement "iVar7 = 1;" (assignment_expression "iVar7 = 1" (identifier "iVar7") (= "=") (number_literal "1")) (; ";"))) (} "}")))) (} "}")) (else_clause "else {\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;\n    }\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\nLAB_000bb559:\n      iVar7 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar7 = 2;\n    }\n  }" (else "else") (compound_statement "{\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;\n    }\n    uVar10 = GetMagickResourceLimit(7);\n    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\nLAB_000bb559:\n      iVar7 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar7 = 2;\n    }\n  }" ({ "{") (expression_statement "uVar10 = GetMagickResourceLimit(7);" (assignment_expression "uVar10 = GetMagickResourceLimit(7)" (identifier "uVar10") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (if_statement "if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;\n    }" (if "if") (parenthesized_expression "(((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2))" (( "(") (binary_expression "((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)" (parenthesized_expression "((int)((ulonglong)uVar10 >> 0x20) == 0)" (( "(") (binary_expression "(int)((ulonglong)uVar10 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar10 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar10 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar10 >> 0x20" (cast_expression "(ulonglong)uVar10" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar10")) (>> ">>") (number_literal "0x20")) () ")"))) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((uint)uVar10 < 2)" (( "(") (binary_expression "(uint)uVar10 < 2" (cast_expression "(uint)uVar10" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar10")) (< "<") (number_literal "2")) () ")"))) () ")")) (compound_statement "{\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;\n    }" ({ "{") (expression_statement "uVar10 = GetMagickResourceLimit(7);" (assignment_expression "uVar10 = GetMagickResourceLimit(7)" (identifier "uVar10") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (if_statement "if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;" (if "if") (parenthesized_expression "(((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2))" (( "(") (binary_expression "((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)" (parenthesized_expression "((int)((ulonglong)uVar10 >> 0x20) == 0)" (( "(") (binary_expression "(int)((ulonglong)uVar10 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar10 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar10 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar10 >> 0x20" (cast_expression "(ulonglong)uVar10" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar10")) (>> ">>") (number_literal "0x20")) () ")"))) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((uint)uVar10 < 2)" (( "(") (binary_expression "(uint)uVar10 < 2" (cast_expression "(uint)uVar10" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar10")) (< "<") (number_literal "2")) () ")"))) () ")")) (goto_statement "goto LAB_000bb523;" (goto "goto") (statement_identifier "LAB_000bb523") (; ";"))) (} "}"))) (expression_statement "uVar10 = GetMagickResourceLimit(7);" (assignment_expression "uVar10 = GetMagickResourceLimit(7)" (identifier "uVar10") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (if_statement "if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\nLAB_000bb559:\n      iVar7 = GetMagickResourceLimit(7);\n    }\n    else {\n      iVar7 = 2;\n    }" (if "if") (parenthesized_expression "(((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2))" (( "(") (binary_expression "((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)" (parenthesized_expression "((int)((ulonglong)uVar10 >> 0x20) == 0)" (( "(") (binary_expression "(int)((ulonglong)uVar10 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar10 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar10 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar10 >> 0x20" (cast_expression "(ulonglong)uVar10" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar10")) (>> ">>") (number_literal "0x20")) () ")"))) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((uint)uVar10 < 2)" (( "(") (binary_expression "(uint)uVar10 < 2" (cast_expression "(uint)uVar10" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar10")) (< "<") (number_literal "2")) () ")"))) () ")")) (compound_statement "{\nLAB_000bb559:\n      iVar7 = GetMagickResourceLimit(7);\n    }" ({ "{") (labeled_statement "LAB_000bb559:\n      iVar7 = GetMagickResourceLimit(7);" (statement_identifier "LAB_000bb559") (: ":") (expression_statement "iVar7 = GetMagickResourceLimit(7);" (assignment_expression "iVar7 = GetMagickResourceLimit(7)" (identifier "iVar7") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";"))) (} "}")) (else_clause "else {\n      iVar7 = 2;\n    }" (else "else") (compound_statement "{\n      iVar7 = 2;\n    }" ({ "{") (expression_statement "iVar7 = 2;" (assignment_expression "iVar7 = 2" (identifier "iVar7") (= "=") (number_literal "2")) (; ";")) (} "}")))) (} "}")))) (expression_statement "local_98 = param_2;" (assignment_expression "local_98 = param_2" (identifier "local_98") (= "=") (identifier "param_2")) (; ";")) (expression_statement "local_9c = param_1;" (assignment_expression "local_9c = param_1" (identifier "local_9c") (= "=") (identifier "param_1")) (; ";")) (expression_statement "local_7c = 1;" (assignment_expression "local_7c = 1" (identifier "local_7c") (= "=") (number_literal "1")) (; ";")) (expression_statement "local_84 = local_b8;" (assignment_expression "local_84 = local_b8" (identifier "local_84") (= "=") (identifier "local_b8")) (; ";")) (expression_statement "local_78 = &local_ac;" (assignment_expression "local_78 = &local_ac" (identifier "local_78") (= "=") (pointer_expression "&local_ac" (& "&") (identifier "local_ac"))) (; ";")) (expression_statement "local_94 = param_3;" (assignment_expression "local_94 = param_3" (identifier "local_94") (= "=") (identifier "param_3")) (; ";")) (expression_statement "local_a4 = dVar2;" (assignment_expression "local_a4 = dVar2" (identifier "local_a4") (= "=") (identifier "dVar2")) (; ";")) (expression_statement "local_90 = uVar5;" (assignment_expression "local_90 = uVar5" (identifier "local_90") (= "=") (identifier "uVar5")) (; ";")) (expression_statement "local_8c = uVar6;" (assignment_expression "local_8c = uVar6" (identifier "local_8c") (= "=") (identifier "uVar6")) (; ";")) (expression_statement "local_88 = local_70;" (assignment_expression "local_88 = local_70" (identifier "local_88") (= "=") (identifier "local_70")) (; ";")) (expression_statement "local_80 = iVar3;" (assignment_expression "local_80 = iVar3" (identifier "local_80") (= "=") (identifier "iVar3")) (; ";")) (expression_statement "GOMP_parallel(FUN_000b5550,&local_a4,iVar7,0);" (call_expression "GOMP_parallel(FUN_000b5550,&local_a4,iVar7,0)" (identifier "GOMP_parallel") (argument_list "(FUN_000b5550,&local_a4,iVar7,0)" (( "(") (identifier "FUN_000b5550") (, ",") (pointer_expression "&local_a4" (& "&") (identifier "local_a4")) (, ",") (identifier "iVar7") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar3 = local_7c;" (assignment_expression "iVar3 = local_7c" (identifier "iVar3") (= "=") (identifier "local_7c")) (; ";")) (expression_statement "DestroyCacheView(uVar5);" (call_expression "DestroyCacheView(uVar5)" (identifier "DestroyCacheView") (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "DestroyCacheView(uVar6);" (call_expression "DestroyCacheView(uVar6)" (identifier "DestroyCacheView") (argument_list "(uVar6)" (( "(") (identifier "uVar6") () ")"))) (; ";")) (labeled_statement "LAB_000bb466:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }" (statement_identifier "LAB_000bb466") (: ":") (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 iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))

/* 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 */

type_1 function_1(type_2 *var_2,type_2 *var_6,type_3 *exception)

{
  int var_27;
  size_t var_23;
  bool bVar3;
  double var_11;
  type_1 var_8;
  int var_13;
  type_4 *cache_view;
  type_4 *cache_view_00;
  type_5 var_19;
  size_t sVar8;
  type_6 var_12;
  int var_14;
  int var_1;
  type_7 var_24;
  int local_b8;
  type_8 progress;
  double local_a4;
  type_2 *local_9c;
  type_2 *local_98;
  type_3 *local_94;
  type_4 *local_90;
  type_4 *local_8c;
  type_9 *local_88;
  int local_84;
  int local_80;
  type_1 local_7c;
  type_8 *local_78;
  type_9 zero;
  
  var_27 = *(int *)(var_1 + 0x14);
  if (var_2 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("image != (Image *) NULL","MagickCore/enhance.c",0xa98,"HaldClutImage");
  }
  if (var_2->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    var_3("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,
                  "HaldClutImage");
  }
  if (var_2->debug != var_4) {
    var_5(TraceEvent,"MagickCore/enhance.c","HaldClutImage",0xa9b,"%s",var_2->filename);
  }
  if (var_6 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"HaldClutImage");
  }
  if (var_6->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    var_3("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,
                  "HaldClutImage");
  }
  var_8 = var_7(var_2,DirectClass,exception);
  if (var_8 == var_4) goto LAB_000bb466;
  if (var_2->alpha_trait == var_9) {
    var_10(var_2,OpaqueAlphaChannel,exception);
  }
  progress._0_4_ = 0;
  progress._4_4_ = 0;
  var_11 = (double)var_6->columns;
  var_12 = var_6->rows;
  if (var_11 < (double)var_6->rows) {
    var_12 = var_6->columns;
  }
  if (var_12 < 9) {
    local_b8 = 0x10;
    var_14 = 4;
  }
  else {
    var_13 = 2;
    do {
      var_13 = var_13 + 1;
      var_14 = var_13 * var_13;
    } while ((type_6)(var_14 * var_13) < var_12);
    local_b8 = var_14 * var_14;
  }
  var_15(var_6,&zero);
  cache_view = var_16(var_6,exception);
  cache_view_00 = var_17(var_2,exception);
  var_19 = var_18(var_2);
  if (((var_19 == var_20) || (var_19 = var_18(var_2), var_19 == var_21)) &&
     ((var_19 = var_18(var_2), var_19 == var_20 ||
      (var_19 = var_18(var_2), var_19 == var_21)))) {
    var_24 = var_22(ThreadResource);
    var_23 = var_2->rows;
    sVar8 = var_23 + 0x3f;
    if (-1 < (int)var_23) {
      sVar8 = var_23;
    }
    bVar3 = 0x7f < (int)var_23;
    if ((int)var_24 < (int)sVar8 >> 6) {
      var_24 = var_22(ThreadResource);
      bVar3 = 1 < (int)var_24;
    }
    if (bVar3) {
      var_24 = var_22(ThreadResource);
      var_23 = var_2->rows;
      sVar8 = var_23 + 0x3f;
      if (-1 < (int)var_23) {
        sVar8 = var_23;
      }
      var_13 = (int)sVar8 >> 6;
      if ((int)var_24 < var_13) goto LAB_000bb559;
    }
    else {
LAB_000bb523:
      var_13 = 1;
    }
  }
  else {
    var_24 = var_22(ThreadResource);
    if (((int)(var_24 >> 0x20) == 0) && ((type_6)var_24 < 2)) {
      var_24 = var_22(ThreadResource);
      if (((int)(var_24 >> 0x20) == 0) && ((type_6)var_24 < 2)) goto LAB_000bb523;
    }
    var_24 = var_22(ThreadResource);
    if (((int)(var_24 >> 0x20) == 0) && ((type_6)var_24 < 2)) {
LAB_000bb559:
      var_24 = var_22(ThreadResource);
      var_13 = (int)var_24;
    }
    else {
      var_13 = 2;
    }
  }
  local_98 = var_6;
  local_9c = var_2;
  local_7c = MagickTrue;
  local_84 = local_b8;
  local_78 = &progress;
  local_94 = exception;
  local_a4 = var_11;
  local_90 = cache_view;
  local_8c = cache_view_00;
  local_88 = &zero;
  local_80 = var_14;
  var_25(HaldClutImage__omp_fn_8,&local_a4,var_13,0);
  var_8 = local_7c;
  var_26(cache_view);
  var_26(cache_view_00);
LAB_000bb466:
  if (var_27 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_28();
  }
  return var_8;
}


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

int MASKED(int param_1,int param_2,undefined4 param_3)

{
  bool bVar1;
  double dVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  int iVar7;
  int iVar8;
  uint uVar9;
  int in_GS_OFFSET;
  undefined8 uVar10;
  int local_b8;
  undefined4 local_ac;
  undefined4 local_a8;
  double local_a4;
  int local_9c;
  int local_98;
  undefined4 local_94;
  undefined4 local_90;
  undefined4 local_8c;
  undefined1 *local_88;
  int local_84;
  int local_80;
  int local_7c;
  undefined4 *local_78;
  undefined1 local_70 [80];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0xbb239;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/enhance.c",0xa98,"MASKED");
  }
  if (*(int *)(param_1 + 0x3344) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa99,
                  "MASKED");
  }
  if (*(int *)(param_1 + 0x3328) != 0) {
    LogMagickEvent(0x8000,"MagickCore/enhance.c","MASKED",0xa9b,&DAT_002b6e4e,param_1 + 0x318
                  );
  }
  if (param_2 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("hald_image != (Image *) NULL","MagickCore/enhance.c",0xa9c,"MASKED");
  }
  if (*(int *)(param_2 + 0x3344) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("hald_image->signature == MagickCoreSignature","MagickCore/enhance.c",0xa9d,
                  "MASKED");
  }
  iVar3 = SetImageStorageClass(param_1,1,param_3);
  if (iVar3 == 0) goto LAB_000bb466;
  if (*(int *)(param_1 + 0x294) == 0) {
    SetImageAlphaChannel(param_1,0xb,param_3);
  }
  local_ac = 0;
  local_a8 = 0;
  dVar2 = (double)*(uint *)(param_2 + 0x18);
  uVar9 = *(uint *)(param_2 + 0x1c);
  if (dVar2 < (double)*(uint *)(param_2 + 0x1c)) {
    uVar9 = *(uint *)(param_2 + 0x18);
  }
  if (uVar9 < 9) {
    local_b8 = 0x10;
    iVar3 = 4;
  }
  else {
    iVar4 = 2;
    do {
      iVar4 = iVar4 + 1;
      iVar3 = iVar4 * iVar4;
    } while ((uint)(iVar3 * iVar4) < uVar9);
    local_b8 = iVar3 * iVar3;
  }
  GetPixelInfo(param_2,local_70);
  uVar5 = AcquireVirtualCacheView(param_2,param_3);
  uVar6 = AcquireAuthenticCacheView(param_1,param_3);
  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)))) {
    iVar8 = GetMagickResourceLimit(7);
    iVar4 = *(int *)(param_1 + 0x1c);
    iVar7 = iVar4 + 0x3f;
    if (-1 < iVar4) {
      iVar7 = iVar4;
    }
    bVar1 = 0x7f < iVar4;
    if (iVar8 < iVar7 >> 6) {
      iVar4 = GetMagickResourceLimit(7);
      bVar1 = 1 < iVar4;
    }
    if (bVar1) {
      iVar8 = GetMagickResourceLimit(7);
      iVar4 = *(int *)(param_1 + 0x1c);
      iVar7 = iVar4 + 0x3f;
      if (-1 < iVar4) {
        iVar7 = iVar4;
      }
      iVar7 = iVar7 >> 6;
      if (iVar8 < iVar7) goto LAB_000bb559;
    }
    else {
LAB_000bb523:
      iVar7 = 1;
    }
  }
  else {
    uVar10 = GetMagickResourceLimit(7);
    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {
      uVar10 = GetMagickResourceLimit(7);
      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_000bb523;
    }
    uVar10 = GetMagickResourceLimit(7);
    if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {
LAB_000bb559:
      iVar7 = GetMagickResourceLimit(7);
    }
    else {
      iVar7 = 2;
    }
  }
  local_98 = param_2;
  local_9c = param_1;
  local_7c = 1;
  local_84 = local_b8;
  local_78 = &local_ac;
  local_94 = param_3;
  local_a4 = dVar2;
  local_90 = uVar5;
  local_8c = uVar6;
  local_88 = local_70;
  local_80 = iVar3;
  GOMP_parallel(FUN_000b5550,&local_a4,iVar7,0);
  iVar3 = local_7c;
  DestroyCacheView(uVar5);
  DestroyCacheView(uVar6);
LAB_000bb466:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0029eab0();
  }
  return iVar3;
}

