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

Image * UnsharpMaskImage(Image *image,double radius,double sigma,double gain,double threshold,
                        ExceptionInfo *exception)

{
  size_t sVar1;
  bool bVar2;
  double dVar3;
  int iVar4;
  Image *image_00;
  CacheView *cache_view;
  CacheView *cache_view_00;
  CacheType CVar5;
  size_t sVar6;
  int in_GS_OFFSET;
  MagickSizeType MVar7;
  MagickOffsetType progress;
  double local_54;
  double local_4c;
  Image *local_44;
  ExceptionInfo *local_40;
  CacheView *local_3c;
  CacheView *local_38;
  Image *local_34;
  int local_30;
  MagickOffsetType *local_2c;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0xaf6b9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (image == (Image *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage");
  }
  if (image->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,
                  "UnsharpMaskImage");
  }
  if (image->debug != MagickFalse) {
    LogMagickEvent(TraceEvent,"MagickCore/effect.c","UnsharpMaskImage",0xf70,"%s",image->filename);
  }
  if (exception == (ExceptionInfo *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,
                  "UnsharpMaskImage");
  }
  image_00 = BlurImage(image,radius,sigma,exception);
  if (image_00 == (Image *)0x0) goto LAB_000af868;
  progress._0_4_ = 0;
  dVar3 = (double)DAT_0029f710;
  progress._4_4_ = 0;
  cache_view = AcquireVirtualCacheView(image,exception);
  cache_view_00 = AcquireAuthenticCacheView(image_00,exception);
  CVar5 = GetImagePixelCacheType(image);
  if (((CVar5 == MemoryCache) || (CVar5 = GetImagePixelCacheType(image), CVar5 == MapCache)) &&
     ((CVar5 = GetImagePixelCacheType(image_00), CVar5 == MemoryCache ||
      (CVar5 = GetImagePixelCacheType(image_00), CVar5 == MapCache)))) {
    MVar7 = GetMagickResourceLimit(ThreadResource);
    sVar1 = image->rows;
    sVar6 = sVar1 + 0x3f;
    if (-1 < (int)sVar1) {
      sVar6 = sVar1;
    }
    bVar2 = 0x7f < (int)sVar1;
    if ((int)MVar7 < (int)sVar6 >> 6) {
      MVar7 = GetMagickResourceLimit(ThreadResource);
      bVar2 = 1 < (int)MVar7;
    }
    if (bVar2) {
      MVar7 = GetMagickResourceLimit(ThreadResource);
      sVar1 = image->rows;
      sVar6 = sVar1 + 0x3f;
      if (-1 < (int)sVar1) {
        sVar6 = sVar1;
      }
      if ((int)MVar7 < (int)sVar6 >> 6) {
        GetMagickResourceLimit(ThreadResource);
      }
    }
  }
  else {
    MVar7 = GetMagickResourceLimit(ThreadResource);
    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {
      MVar7 = GetMagickResourceLimit(ThreadResource);
      if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) goto LAB_000af7e0;
    }
    MVar7 = GetMagickResourceLimit(ThreadResource);
    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {
      GetMagickResourceLimit(ThreadResource);
    }
  }
LAB_000af7e0:
  local_40 = exception;
  local_44 = image;
  local_2c = &progress;
  local_54 = gain;
  local_30 = 1;
  local_4c = threshold * dVar3;
  local_3c = cache_view;
  local_38 = cache_view_00;
  local_34 = image_00;
  GOMP_parallel();
  iVar4 = local_30;
  image_00->type = image->type;
  DestroyCacheView(cache_view_00);
  DestroyCacheView(cache_view);
  if (iVar4 == 0) {
    image_00 = DestroyImage(image_00);
  }
LAB_000af868:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return image_00;
}



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

int UnsharpMaskImage(int param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,
                    double param_5,int param_6)

{
  bool bVar1;
  double dVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  int in_GS_OFFSET;
  undefined8 uVar9;
  undefined4 local_5c;
  undefined4 local_58;
  undefined8 local_54;
  double local_4c;
  int local_44;
  int local_40;
  undefined4 local_3c;
  undefined4 local_38;
  int local_34;
  int local_30;
  undefined4 *local_2c;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0xaf6b9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage");
  }
  if (*(int *)(param_1 + 0x3344) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,
                  "UnsharpMaskImage");
  }
  if (*(int *)(param_1 + 0x3328) != 0) {
    LogMagickEvent(0x8000,"MagickCore/effect.c","UnsharpMaskImage",0xf70,&DAT_002b6e4e,
                   param_1 + 0x318);
  }
  if (param_6 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,
                  "UnsharpMaskImage");
  }
  iVar3 = BlurImage(param_1,param_2,param_3,param_6);
  if (iVar3 == 0) goto LAB_000af868;
  local_5c = 0;
  dVar2 = (double)DAT_0029f710;
  local_58 = 0;
  uVar4 = AcquireVirtualCacheView();
  uVar5 = AcquireAuthenticCacheView();
  iVar6 = GetImagePixelCacheType();
  if (((iVar6 == 4) || (iVar6 = GetImagePixelCacheType(), iVar6 == 3)) &&
     ((iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||
      (iVar6 = GetImagePixelCacheType(), iVar6 == 3)))) {
    iVar7 = GetMagickResourceLimit();
    iVar6 = *(int *)(param_1 + 0x1c);
    iVar8 = iVar6 + 0x3f;
    if (-1 < iVar6) {
      iVar8 = iVar6;
    }
    bVar1 = 0x7f < iVar6;
    if (iVar7 < iVar8 >> 6) {
      iVar6 = GetMagickResourceLimit();
      bVar1 = 1 < iVar6;
    }
    if (bVar1) {
      iVar7 = GetMagickResourceLimit();
      iVar6 = *(int *)(param_1 + 0x1c);
      iVar8 = iVar6 + 0x3f;
      if (-1 < iVar6) {
        iVar8 = iVar6;
      }
      if (iVar7 < iVar8 >> 6) {
        GetMagickResourceLimit();
      }
    }
  }
  else {
    uVar9 = GetMagickResourceLimit();
    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {
      uVar9 = GetMagickResourceLimit();
      if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;
    }
    uVar9 = GetMagickResourceLimit();
    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {
      GetMagickResourceLimit();
    }
  }
LAB_000af7e0:
  local_40 = param_6;
  local_44 = param_1;
  local_2c = &local_5c;
  local_54 = param_4;
  local_30 = 1;
  local_4c = param_5 * dVar2;
  local_3c = uVar4;
  local_38 = uVar5;
  local_34 = iVar3;
  GOMP_parallel();
  iVar6 = local_30;
  *(undefined4 *)(iVar3 + 0x278) = *(undefined4 *)(param_1 + 0x278);
  DestroyCacheView();
  DestroyCacheView();
  if (iVar6 == 0) {
    iVar3 = DestroyImage();
  }
LAB_000af868:
  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,0x329947
SUB ESP,0x6c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x5c],EAX
XOR EAX,EAX
MOV ESI,dword ptr [ESP + 0x80]
FLD qword ptr [ESP + 0x84]
FLD qword ptr [ESP + 0x8c]
FLD qword ptr [ESP + 0x94]
FSTP qword ptr [ESP + 0x10]
FLD qword ptr [ESP + 0x9c]
FSTP qword ptr [ESP]
MOV EBP,dword ptr [ESP + 0xa4]
TEST ESI,ESI
JZ 0x000af9fb
CMP dword ptr [ESI + 0x3344],0xabacadab
JNZ 0x000afa41
MOV EAX,dword ptr [ESI + 0x3328]
TEST EAX,EAX
JNZ 0x000af920
TEST EBP,EBP
JZ 0x000afa1e
SUB ESP,0x8
PUSH EBP
SUB ESP,0x10
FSTP qword ptr [ESP + 0x8]
FSTP qword ptr [ESP]
PUSH ESI
CALL 0x000314f0
ADD ESP,0x20
MOV EDI,EAX
TEST EAX,EAX
JZ 0x000af868
FLD qword ptr [ESP]
MOV dword ptr [ESP + 0x20],0x0
SUB ESP,0x8
FMUL dword ptr [EBX + 0xffec6710]
MOV dword ptr [ESP + 0x2c],0x0
FSTP qword ptr [ESP + 0x20]
PUSH EBP
PUSH ESI
CALL 0x00030eb0
MOV dword ptr [ESP + 0x10],EAX
POP ECX
POP EAX
PUSH EBP
PUSH EDI
CALL 0x00032fa0
MOV dword ptr [ESP],ESI
MOV dword ptr [ESP + 0x18],EAX
CALL 0x000318f0
ADD ESP,0x10
CMP EAX,0x4
JZ 0x000af888
SUB ESP,0xc
PUSH ESI
CALL 0x000318f0
ADD ESP,0x10
CMP EAX,0x3
JZ 0x000af888
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
CMP EDX,0x0
JBE 0x000af8f0
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
CMP EDX,0x0
JBE 0x000af970
MOV EAX,0x2
MOV EDX,dword ptr [ESP]
MOV dword ptr [ESP + 0x3c],EBP
MOV ECX,dword ptr [ESP + 0x8]
MOV dword ptr [ESP + 0x48],EDI
FLD qword ptr [ESP + 0x18]
MOV dword ptr [ESP + 0x38],ESI
FSTP qword ptr [ESP + 0x30]
FLD qword ptr [ESP + 0x10]
MOV dword ptr [ESP + 0x40],EDX
LEA EDX,[ESP + 0x20]
MOV dword ptr [ESP + 0x44],ECX
FSTP qword ptr [ESP + 0x28]
MOV dword ptr [ESP + 0x50],EDX
MOV dword ptr [ESP + 0x4c],0x1
PUSH 0x0
PUSH EAX
LEA EAX,[ESP + 0x30]
PUSH EAX
LEA EAX,[EBX + 0xffccf400]
PUSH EAX
CALL 0x000324d0
MOV EAX,dword ptr [ESI + 0x278]
MOV EBP,dword ptr [ESP + 0x5c]
MOV dword ptr [EDI + 0x278],EAX
POP EAX
PUSH dword ptr [ESP + 0x14]
CALL 0x00032f30
POP EDX
PUSH dword ptr [ESP + 0xc]
CALL 0x00032f30
ADD ESP,0x10
TEST EBP,EBP
JNZ 0x000af868
SUB ESP,0xc
PUSH EDI
CALL 0x00032dd0
ADD ESP,0x10
MOV EDI,EAX
MOV ECX,dword ptr [ESP + 0x5c]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,EDI
JNZ 0x000af9f6
ADD ESP,0x6c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH EDI
CALL 0x000318f0
ADD ESP,0x10
CMP EAX,0x4
JZ 0x000af8ae
SUB ESP,0xc
PUSH EDI
CALL 0x000318f0
ADD ESP,0x10
CMP EAX,0x3
JNZ 0x000af7af
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 0x000af9c0
TEST CL,CL
JNZ 0x000af990
MOV EAX,0x1
JMP 0x000af7e0
CMP EAX,0x1
JA 0x000af7c5
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
CMP EDX,0x0
JA 0x000af7c5
CMP EAX,0x1
JA 0x000af7c5
JMP 0x000af8df
FSTP qword ptr [ESP + 0x18]
LEA EAX,[ESI + 0x318]
SUB ESP,0x8
FSTP qword ptr [ESP + 0x10]
PUSH EAX
LEA EAX,[EBX + 0xffedde4e]
PUSH EAX
LEA EAX,[EBX + 0xffed9160]
PUSH 0xf70
PUSH EAX
LEA EAX,[EBX + 0xffed8da8]
PUSH EAX
PUSH 0x8000
CALL 0x000323b0
ADD ESP,0x20
FLD qword ptr [ESP + 0x8]
FLD qword ptr [ESP + 0x18]
JMP 0x000af725
CMP EAX,0x1
JA 0x000af7db
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
JMP 0x000af7e0
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 EDX,EAX
JG 0x000af9e0
MOV EAX,EDX
JMP 0x000af7e0
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
CMP EAX,0x1
SETG CL
JMP 0x000af8d7
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
MOV EDX,EAX
MOV EAX,EDX
JMP 0x000af7e0
CALL 0x0029eab0
FSTP ST0
FSTP ST0
LEA EAX,[EBX + 0xffed9174]
PUSH EAX
LEA EAX,[EBX + 0xffed8da8]
PUSH 0xf6d
PUSH EAX
LEA EAX,[EBX + 0xffec67a5]
PUSH EAX
CALL 0x000313d0
FSTP ST0
FSTP ST0
LEA EAX,[EBX + 0xffed9174]
PUSH EAX
LEA EAX,[EBX + 0xffed8da8]
PUSH 0xf71
PUSH EAX
LEA EAX,[EBX + 0xffec6a3c]
PUSH EAX
CALL 0x000313d0
FSTP ST0
FSTP ST0
LEA EAX,[EBX + 0xffed9174]
PUSH EAX
LEA EAX,[EBX + 0xffed8da8]
PUSH 0xf6e
PUSH EAX
LEA EAX,[EBX + 0xffed1338]
PUSH EAX
CALL 0x000313d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint UnsharpMaskImage(int param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                    double param_5,int param_6)\n\n{\n  bool bVar1;\n  double dVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int in_GS_OFFSET;\n  undefined8 uVar9;\n  undefined4 local_5c;\n  undefined4 local_58;\n  undefined8 local_54;\n  double local_4c;\n  int local_44;\n  int local_40;\n  undefined4 local_3c;\n  undefined4 local_38;\n  int local_34;\n  int local_30;\n  undefined4 *local_2c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xaf6b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/effect.c","UnsharpMaskImage",0xf70,&DAT_002b6e4e,\n                   param_1 + 0x318);\n  }\n  if (param_6 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage");\n  }\n  iVar3 = BlurImage(param_1,param_2,param_3,param_6);\n  if (iVar3 == 0) goto LAB_000af868;\n  local_5c = 0;\n  dVar2 = (double)DAT_0029f710;\n  local_58 = 0;\n  uVar4 = AcquireVirtualCacheView();\n  uVar5 = AcquireAuthenticCacheView();\n  iVar6 = GetImagePixelCacheType();\n  if (((iVar6 == 4) || (iVar6 = GetImagePixelCacheType(), iVar6 == 3)) &&\n     ((iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3)))) {\n    iVar7 = GetMagickResourceLimit();\n    iVar6 = *(int *)(param_1 + 0x1c);\n    iVar8 = iVar6 + 0x3f;\n    if (-1 < iVar6) {\n      iVar8 = iVar6;\n    }\n    bVar1 = 0x7f < iVar6;\n    if (iVar7 < iVar8 >> 6) {\n      iVar6 = GetMagickResourceLimit();\n      bVar1 = 1 < iVar6;\n    }\n    if (bVar1) {\n      iVar7 = GetMagickResourceLimit();\n      iVar6 = *(int *)(param_1 + 0x1c);\n      iVar8 = iVar6 + 0x3f;\n      if (-1 < iVar6) {\n        iVar8 = iVar6;\n      }\n      if (iVar7 < iVar8 >> 6) {\n        GetMagickResourceLimit();\n      }\n    }\n  }\n  else {\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      uVar9 = GetMagickResourceLimit();\n      if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;\n    }\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      GetMagickResourceLimit();\n    }\n  }\nLAB_000af7e0:\n  local_40 = param_6;\n  local_44 = param_1;\n  local_2c = &local_5c;\n  local_54 = param_4;\n  local_30 = 1;\n  local_4c = param_5 * dVar2;\n  local_3c = uVar4;\n  local_38 = uVar5;\n  local_34 = iVar3;\n  GOMP_parallel();\n  iVar6 = local_30;\n  *(undefined4 *)(iVar3 + 0x278) = *(undefined4 *)(param_1 + 0x278);\n  DestroyCacheView();\n  DestroyCacheView();\n  if (iVar6 == 0) {\n    iVar3 = DestroyImage();\n  }\nLAB_000af868:\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 UnsharpMaskImage(int param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                    double param_5,int param_6)\n\n{\n  bool bVar1;\n  double dVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int in_GS_OFFSET;\n  undefined8 uVar9;\n  undefined4 local_5c;\n  undefined4 local_58;\n  undefined8 local_54;\n  double local_4c;\n  int local_44;\n  int local_40;\n  undefined4 local_3c;\n  undefined4 local_38;\n  int local_34;\n  int local_30;\n  undefined4 *local_2c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xaf6b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/effect.c","UnsharpMaskImage",0xf70,&DAT_002b6e4e,\n                   param_1 + 0x318);\n  }\n  if (param_6 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage");\n  }\n  iVar3 = BlurImage(param_1,param_2,param_3,param_6);\n  if (iVar3 == 0) goto LAB_000af868;\n  local_5c = 0;\n  dVar2 = (double)DAT_0029f710;\n  local_58 = 0;\n  uVar4 = AcquireVirtualCacheView();\n  uVar5 = AcquireAuthenticCacheView();\n  iVar6 = GetImagePixelCacheType();\n  if (((iVar6 == 4) || (iVar6 = GetImagePixelCacheType(), iVar6 == 3)) &&\n     ((iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3)))) {\n    iVar7 = GetMagickResourceLimit();\n    iVar6 = *(int *)(param_1 + 0x1c);\n    iVar8 = iVar6 + 0x3f;\n    if (-1 < iVar6) {\n      iVar8 = iVar6;\n    }\n    bVar1 = 0x7f < iVar6;\n    if (iVar7 < iVar8 >> 6) {\n      iVar6 = GetMagickResourceLimit();\n      bVar1 = 1 < iVar6;\n    }\n    if (bVar1) {\n      iVar7 = GetMagickResourceLimit();\n      iVar6 = *(int *)(param_1 + 0x1c);\n      iVar8 = iVar6 + 0x3f;\n      if (-1 < iVar6) {\n        iVar8 = iVar6;\n      }\n      if (iVar7 < iVar8 >> 6) {\n        GetMagickResourceLimit();\n      }\n    }\n  }\n  else {\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      uVar9 = GetMagickResourceLimit();\n      if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;\n    }\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      GetMagickResourceLimit();\n    }\n  }\nLAB_000af7e0:\n  local_40 = param_6;\n  local_44 = param_1;\n  local_2c = &local_5c;\n  local_54 = param_4;\n  local_30 = 1;\n  local_4c = param_5 * dVar2;\n  local_3c = uVar4;\n  local_38 = uVar5;\n  local_34 = iVar3;\n  GOMP_parallel();\n  iVar6 = local_30;\n  *(undefined4 *)(iVar3 + 0x278) = *(undefined4 *)(param_1 + 0x278);\n  DestroyCacheView();\n  DestroyCacheView();\n  if (iVar6 == 0) {\n    iVar3 = DestroyImage();\n  }\nLAB_000af868:\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 "UnsharpMaskImage(int param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                    double param_5,int param_6)" identifier (parameter_list "(int param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                    double param_5,int param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "double param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  double dVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int in_GS_OFFSET;\n  undefined8 uVar9;\n  undefined4 local_5c;\n  undefined4 local_58;\n  undefined8 local_54;\n  double local_4c;\n  int local_44;\n  int local_40;\n  undefined4 local_3c;\n  undefined4 local_38;\n  int local_34;\n  int local_30;\n  undefined4 *local_2c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xaf6b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/effect.c","UnsharpMaskImage",0xf70,&DAT_002b6e4e,\n                   param_1 + 0x318);\n  }\n  if (param_6 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage");\n  }\n  iVar3 = BlurImage(param_1,param_2,param_3,param_6);\n  if (iVar3 == 0) goto LAB_000af868;\n  local_5c = 0;\n  dVar2 = (double)DAT_0029f710;\n  local_58 = 0;\n  uVar4 = AcquireVirtualCacheView();\n  uVar5 = AcquireAuthenticCacheView();\n  iVar6 = GetImagePixelCacheType();\n  if (((iVar6 == 4) || (iVar6 = GetImagePixelCacheType(), iVar6 == 3)) &&\n     ((iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3)))) {\n    iVar7 = GetMagickResourceLimit();\n    iVar6 = *(int *)(param_1 + 0x1c);\n    iVar8 = iVar6 + 0x3f;\n    if (-1 < iVar6) {\n      iVar8 = iVar6;\n    }\n    bVar1 = 0x7f < iVar6;\n    if (iVar7 < iVar8 >> 6) {\n      iVar6 = GetMagickResourceLimit();\n      bVar1 = 1 < iVar6;\n    }\n    if (bVar1) {\n      iVar7 = GetMagickResourceLimit();\n      iVar6 = *(int *)(param_1 + 0x1c);\n      iVar8 = iVar6 + 0x3f;\n      if (-1 < iVar6) {\n        iVar8 = iVar6;\n      }\n      if (iVar7 < iVar8 >> 6) {\n        GetMagickResourceLimit();\n      }\n    }\n  }\n  else {\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      uVar9 = GetMagickResourceLimit();\n      if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;\n    }\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      GetMagickResourceLimit();\n    }\n  }\nLAB_000af7e0:\n  local_40 = param_6;\n  local_44 = param_1;\n  local_2c = &local_5c;\n  local_54 = param_4;\n  local_30 = 1;\n  local_4c = param_5 * dVar2;\n  local_3c = uVar4;\n  local_38 = uVar5;\n  local_34 = iVar3;\n  GOMP_parallel();\n  iVar6 = local_30;\n  *(undefined4 *)(iVar3 + 0x278) = *(undefined4 *)(param_1 + 0x278);\n  DestroyCacheView();\n  DestroyCacheView();\n  if (iVar6 == 0) {\n    iVar3 = DestroyImage();\n  }\nLAB_000af868:\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 "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined8 uVar9;" type_identifier identifier ;) (declaration "undefined4 local_5c;" type_identifier identifier ;) (declaration "undefined4 local_58;" type_identifier identifier ;) (declaration "undefined8 local_54;" type_identifier identifier ;) (declaration "double local_4c;" primitive_type identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "undefined4 local_3c;" type_identifier identifier ;) (declaration "undefined4 local_38;" type_identifier identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "undefined4 *local_2c;" type_identifier (pointer_declarator "*local_2c" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xaf6b9;" (assignment_expression "uStack_14 = 0xaf6b9" 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 != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage");\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 != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage");\n  }" { comment (expression_statement "__assert_fail("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage");" (call_expression "__assert_fail("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage")" identifier (argument_list "("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage")" ( (string_literal ""image != (const Image *) NULL"" " string_content ") , (string_literal ""MagickCore/effect.c"" " string_content ") , number_literal , (string_literal ""UnsharpMaskImage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage");\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/effect.c",0xf6e,\n                  "UnsharpMaskImage");\n  }" { comment (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/effect.c"" " string_content ") , number_literal , (string_literal ""UnsharpMaskImage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/effect.c","UnsharpMaskImage",0xf70,&DAT_002b6e4e,\n                   param_1 + 0x318);\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/effect.c","UnsharpMaskImage",0xf70,&DAT_002b6e4e,\n                   param_1 + 0x318);\n  }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/effect.c","UnsharpMaskImage",0xf70,&DAT_002b6e4e,\n                   param_1 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/effect.c","UnsharpMaskImage",0xf70,&DAT_002b6e4e,\n                   param_1 + 0x318)" identifier (argument_list "(0x8000,"MagickCore/effect.c","UnsharpMaskImage",0xf70,&DAT_002b6e4e,\n                   param_1 + 0x318)" ( number_literal , (string_literal ""MagickCore/effect.c"" " string_content ") , (string_literal ""UnsharpMaskImage"" " string_content ") , number_literal , (pointer_expression "&DAT_002b6e4e" & identifier) , (binary_expression "param_1 + 0x318" identifier + number_literal) ))) ;) })) (if_statement "if (param_6 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage");\n  }" if (parenthesized_expression "(param_6 == 0)" ( (binary_expression "param_6 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage");\n  }" { comment (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/effect.c"" " string_content ") , number_literal , (string_literal ""UnsharpMaskImage"" " string_content ") ))) ;) })) (expression_statement "iVar3 = BlurImage(param_1,param_2,param_3,param_6);" (assignment_expression "iVar3 = BlurImage(param_1,param_2,param_3,param_6)" identifier = (call_expression "BlurImage(param_1,param_2,param_3,param_6)" identifier (argument_list "(param_1,param_2,param_3,param_6)" ( identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) goto LAB_000af868;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000af868;" goto statement_identifier ;)) (expression_statement "local_5c = 0;" (assignment_expression "local_5c = 0" identifier = number_literal) ;) (expression_statement "dVar2 = (double)DAT_0029f710;" (assignment_expression "dVar2 = (double)DAT_0029f710" identifier = (cast_expression "(double)DAT_0029f710" ( (type_descriptor "double" primitive_type) ) identifier)) ;) (expression_statement "local_58 = 0;" (assignment_expression "local_58 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = AcquireVirtualCacheView();" (assignment_expression "uVar4 = AcquireVirtualCacheView()" identifier = (call_expression "AcquireVirtualCacheView()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar5 = AcquireAuthenticCacheView();" (assignment_expression "uVar5 = AcquireAuthenticCacheView()" identifier = (call_expression "AcquireAuthenticCacheView()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar6 = GetImagePixelCacheType();" (assignment_expression "iVar6 = GetImagePixelCacheType()" identifier = (call_expression "GetImagePixelCacheType()" identifier (argument_list "()" ( )))) ;) (if_statement "if (((iVar6 == 4) || (iVar6 = GetImagePixelCacheType(), iVar6 == 3)) &&\n     ((iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3)))) {\n    iVar7 = GetMagickResourceLimit();\n    iVar6 = *(int *)(param_1 + 0x1c);\n    iVar8 = iVar6 + 0x3f;\n    if (-1 < iVar6) {\n      iVar8 = iVar6;\n    }\n    bVar1 = 0x7f < iVar6;\n    if (iVar7 < iVar8 >> 6) {\n      iVar6 = GetMagickResourceLimit();\n      bVar1 = 1 < iVar6;\n    }\n    if (bVar1) {\n      iVar7 = GetMagickResourceLimit();\n      iVar6 = *(int *)(param_1 + 0x1c);\n      iVar8 = iVar6 + 0x3f;\n      if (-1 < iVar6) {\n        iVar8 = iVar6;\n      }\n      if (iVar7 < iVar8 >> 6) {\n        GetMagickResourceLimit();\n      }\n    }\n  }\n  else {\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      uVar9 = GetMagickResourceLimit();\n      if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;\n    }\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      GetMagickResourceLimit();\n    }\n  }" if (parenthesized_expression "(((iVar6 == 4) || (iVar6 = GetImagePixelCacheType(), iVar6 == 3)) &&\n     ((iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3))))" ( (binary_expression "((iVar6 == 4) || (iVar6 = GetImagePixelCacheType(), iVar6 == 3)) &&\n     ((iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3)))" (parenthesized_expression "((iVar6 == 4) || (iVar6 = GetImagePixelCacheType(), iVar6 == 3))" ( (binary_expression "(iVar6 == 4) || (iVar6 = GetImagePixelCacheType(), iVar6 == 3)" (parenthesized_expression "(iVar6 == 4)" ( (binary_expression "iVar6 == 4" identifier == number_literal) )) || (parenthesized_expression "(iVar6 = GetImagePixelCacheType(), iVar6 == 3)" ( (comma_expression "iVar6 = GetImagePixelCacheType(), iVar6 == 3" (assignment_expression "iVar6 = GetImagePixelCacheType()" identifier = (call_expression "GetImagePixelCacheType()" identifier (argument_list "()" ( )))) , (binary_expression "iVar6 == 3" identifier == number_literal)) ))) )) && (parenthesized_expression "((iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3)))" ( (parenthesized_expression "(iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3))" ( (comma_expression "iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3)" (assignment_expression "iVar6 = GetImagePixelCacheType()" identifier = (call_expression "GetImagePixelCacheType()" identifier (argument_list "()" ( )))) , (binary_expression "iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3)" (binary_expression "iVar6 == 4" identifier == number_literal) || (parenthesized_expression "(iVar6 = GetImagePixelCacheType(), iVar6 == 3)" ( (comma_expression "iVar6 = GetImagePixelCacheType(), iVar6 == 3" (assignment_expression "iVar6 = GetImagePixelCacheType()" identifier = (call_expression "GetImagePixelCacheType()" identifier (argument_list "()" ( )))) , (binary_expression "iVar6 == 3" identifier == number_literal)) )))) )) ))) )) (compound_statement "{\n    iVar7 = GetMagickResourceLimit();\n    iVar6 = *(int *)(param_1 + 0x1c);\n    iVar8 = iVar6 + 0x3f;\n    if (-1 < iVar6) {\n      iVar8 = iVar6;\n    }\n    bVar1 = 0x7f < iVar6;\n    if (iVar7 < iVar8 >> 6) {\n      iVar6 = GetMagickResourceLimit();\n      bVar1 = 1 < iVar6;\n    }\n    if (bVar1) {\n      iVar7 = GetMagickResourceLimit();\n      iVar6 = *(int *)(param_1 + 0x1c);\n      iVar8 = iVar6 + 0x3f;\n      if (-1 < iVar6) {\n        iVar8 = iVar6;\n      }\n      if (iVar7 < iVar8 >> 6) {\n        GetMagickResourceLimit();\n      }\n    }\n  }" { (expression_statement "iVar7 = GetMagickResourceLimit();" (assignment_expression "iVar7 = GetMagickResourceLimit()" identifier = (call_expression "GetMagickResourceLimit()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar6 = *(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 "iVar8 = iVar6 + 0x3f;" (assignment_expression "iVar8 = iVar6 + 0x3f" identifier = (binary_expression "iVar6 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < iVar6) {\n      iVar8 = iVar6;\n    }" if (parenthesized_expression "(-1 < iVar6)" ( (binary_expression "-1 < iVar6" number_literal < identifier) )) (compound_statement "{\n      iVar8 = iVar6;\n    }" { (expression_statement "iVar8 = iVar6;" (assignment_expression "iVar8 = iVar6" identifier = identifier) ;) })) (expression_statement "bVar1 = 0x7f < iVar6;" (assignment_expression "bVar1 = 0x7f < iVar6" identifier = (binary_expression "0x7f < iVar6" number_literal < identifier)) ;) (if_statement "if (iVar7 < iVar8 >> 6) {\n      iVar6 = GetMagickResourceLimit();\n      bVar1 = 1 < iVar6;\n    }" if (parenthesized_expression "(iVar7 < iVar8 >> 6)" ( (binary_expression "iVar7 < iVar8 >> 6" identifier < (binary_expression "iVar8 >> 6" identifier >> number_literal)) )) (compound_statement "{\n      iVar6 = GetMagickResourceLimit();\n      bVar1 = 1 < iVar6;\n    }" { (expression_statement "iVar6 = GetMagickResourceLimit();" (assignment_expression "iVar6 = GetMagickResourceLimit()" identifier = (call_expression "GetMagickResourceLimit()" identifier (argument_list "()" ( )))) ;) (expression_statement "bVar1 = 1 < iVar6;" (assignment_expression "bVar1 = 1 < iVar6" identifier = (binary_expression "1 < iVar6" number_literal < identifier)) ;) })) (if_statement "if (bVar1) {\n      iVar7 = GetMagickResourceLimit();\n      iVar6 = *(int *)(param_1 + 0x1c);\n      iVar8 = iVar6 + 0x3f;\n      if (-1 < iVar6) {\n        iVar8 = iVar6;\n      }\n      if (iVar7 < iVar8 >> 6) {\n        GetMagickResourceLimit();\n      }\n    }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n      iVar7 = GetMagickResourceLimit();\n      iVar6 = *(int *)(param_1 + 0x1c);\n      iVar8 = iVar6 + 0x3f;\n      if (-1 < iVar6) {\n        iVar8 = iVar6;\n      }\n      if (iVar7 < iVar8 >> 6) {\n        GetMagickResourceLimit();\n      }\n    }" { (expression_statement "iVar7 = GetMagickResourceLimit();" (assignment_expression "iVar7 = GetMagickResourceLimit()" identifier = (call_expression "GetMagickResourceLimit()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar6 = *(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 "iVar8 = iVar6 + 0x3f;" (assignment_expression "iVar8 = iVar6 + 0x3f" identifier = (binary_expression "iVar6 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < iVar6) {\n        iVar8 = iVar6;\n      }" if (parenthesized_expression "(-1 < iVar6)" ( (binary_expression "-1 < iVar6" number_literal < identifier) )) (compound_statement "{\n        iVar8 = iVar6;\n      }" { (expression_statement "iVar8 = iVar6;" (assignment_expression "iVar8 = iVar6" identifier = identifier) ;) })) (if_statement "if (iVar7 < iVar8 >> 6) {\n        GetMagickResourceLimit();\n      }" if (parenthesized_expression "(iVar7 < iVar8 >> 6)" ( (binary_expression "iVar7 < iVar8 >> 6" identifier < (binary_expression "iVar8 >> 6" identifier >> number_literal)) )) (compound_statement "{\n        GetMagickResourceLimit();\n      }" { (expression_statement "GetMagickResourceLimit();" (call_expression "GetMagickResourceLimit()" identifier (argument_list "()" ( ))) ;) })) })) }) (else_clause "else {\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      uVar9 = GetMagickResourceLimit();\n      if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;\n    }\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      GetMagickResourceLimit();\n    }\n  }" else (compound_statement "{\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      uVar9 = GetMagickResourceLimit();\n      if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;\n    }\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      GetMagickResourceLimit();\n    }\n  }" { (expression_statement "uVar9 = GetMagickResourceLimit();" (assignment_expression "uVar9 = GetMagickResourceLimit()" identifier = (call_expression "GetMagickResourceLimit()" identifier (argument_list "()" ( )))) ;) (if_statement "if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      uVar9 = GetMagickResourceLimit();\n      if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;\n    }" if (parenthesized_expression "(((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2))" ( (binary_expression "((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)" (parenthesized_expression "((int)((ulonglong)uVar9 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar9 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar9 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar9 >> 0x20)" ( (binary_expression "(ulonglong)uVar9 >> 0x20" (cast_expression "(ulonglong)uVar9" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar9 < 2)" ( (binary_expression "(uint)uVar9 < 2" (cast_expression "(uint)uVar9" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n      uVar9 = GetMagickResourceLimit();\n      if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;\n    }" { (expression_statement "uVar9 = GetMagickResourceLimit();" (assignment_expression "uVar9 = GetMagickResourceLimit()" identifier = (call_expression "GetMagickResourceLimit()" identifier (argument_list "()" ( )))) ;) (if_statement "if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;" if (parenthesized_expression "(((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2))" ( (binary_expression "((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)" (parenthesized_expression "((int)((ulonglong)uVar9 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar9 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar9 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar9 >> 0x20)" ( (binary_expression "(ulonglong)uVar9 >> 0x20" (cast_expression "(ulonglong)uVar9" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar9 < 2)" ( (binary_expression "(uint)uVar9 < 2" (cast_expression "(uint)uVar9" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (goto_statement "goto LAB_000af7e0;" goto statement_identifier ;)) })) (expression_statement "uVar9 = GetMagickResourceLimit();" (assignment_expression "uVar9 = GetMagickResourceLimit()" identifier = (call_expression "GetMagickResourceLimit()" identifier (argument_list "()" ( )))) ;) (if_statement "if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      GetMagickResourceLimit();\n    }" if (parenthesized_expression "(((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2))" ( (binary_expression "((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)" (parenthesized_expression "((int)((ulonglong)uVar9 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar9 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar9 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar9 >> 0x20)" ( (binary_expression "(ulonglong)uVar9 >> 0x20" (cast_expression "(ulonglong)uVar9" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar9 < 2)" ( (binary_expression "(uint)uVar9 < 2" (cast_expression "(uint)uVar9" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n      GetMagickResourceLimit();\n    }" { (expression_statement "GetMagickResourceLimit();" (call_expression "GetMagickResourceLimit()" identifier (argument_list "()" ( ))) ;) })) }))) (labeled_statement "LAB_000af7e0:\n  local_40 = param_6;" statement_identifier : (expression_statement "local_40 = param_6;" (assignment_expression "local_40 = param_6" identifier = identifier) ;)) (expression_statement "local_44 = param_1;" (assignment_expression "local_44 = param_1" identifier = identifier) ;) (expression_statement "local_2c = &local_5c;" (assignment_expression "local_2c = &local_5c" identifier = (pointer_expression "&local_5c" & identifier)) ;) (expression_statement "local_54 = param_4;" (assignment_expression "local_54 = param_4" identifier = identifier) ;) (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" identifier = number_literal) ;) (expression_statement "local_4c = param_5 * dVar2;" (assignment_expression "local_4c = param_5 * dVar2" identifier = (binary_expression "param_5 * dVar2" identifier * identifier)) ;) (expression_statement "local_3c = uVar4;" (assignment_expression "local_3c = uVar4" identifier = identifier) ;) (expression_statement "local_38 = uVar5;" (assignment_expression "local_38 = uVar5" identifier = identifier) ;) (expression_statement "local_34 = iVar3;" (assignment_expression "local_34 = iVar3" identifier = identifier) ;) (expression_statement "GOMP_parallel();" (call_expression "GOMP_parallel()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar6 = local_30;" (assignment_expression "iVar6 = local_30" identifier = identifier) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x278) = *(undefined4 *)(param_1 + 0x278);" (assignment_expression "*(undefined4 *)(iVar3 + 0x278) = *(undefined4 *)(param_1 + 0x278)" (pointer_expression "*(undefined4 *)(iVar3 + 0x278)" * (cast_expression "(undefined4 *)(iVar3 + 0x278)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x278)" ( (binary_expression "iVar3 + 0x278" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x278)" * (cast_expression "(undefined4 *)(param_1 + 0x278)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x278)" ( (binary_expression "param_1 + 0x278" identifier + number_literal) ))))) ;) (expression_statement "DestroyCacheView();" (call_expression "DestroyCacheView()" identifier (argument_list "()" ( ))) ;) (expression_statement "DestroyCacheView();" (call_expression "DestroyCacheView()" identifier (argument_list "()" ( ))) ;) (if_statement "if (iVar6 == 0) {\n    iVar3 = DestroyImage();\n  }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar3 = DestroyImage();\n  }" { (expression_statement "iVar3 = DestroyImage();" (assignment_expression "iVar3 = DestroyImage()" identifier = (call_expression "DestroyImage()" identifier (argument_list "()" ( )))) ;) })) (labeled_statement "LAB_000af868:\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\nImage * UnsharpMaskImage(Image *image,double radius,double sigma,double gain,double threshold,\n                        ExceptionInfo *exception)\n\n{\n  size_t sVar1;\n  bool bVar2;\n  double dVar3;\n  int iVar4;\n  Image *image_00;\n  CacheView *cache_view;\n  CacheView *cache_view_00;\n  CacheType CVar5;\n  size_t sVar6;\n  int in_GS_OFFSET;\n  MagickSizeType MVar7;\n  MagickOffsetType progress;\n  double local_54;\n  double local_4c;\n  Image *local_44;\n  ExceptionInfo *local_40;\n  CacheView *local_3c;\n  CacheView *local_38;\n  Image *local_34;\n  int local_30;\n  MagickOffsetType *local_2c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xaf6b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage");\n  }\n  if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage");\n  }\n  if (image->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/effect.c","UnsharpMaskImage",0xf70,"%s",image->filename);\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage");\n  }\n  image_00 = BlurImage(image,radius,sigma,exception);\n  if (image_00 == (Image *)0x0) goto LAB_000af868;\n  progress._0_4_ = 0;\n  dVar3 = (double)DAT_0029f710;\n  progress._4_4_ = 0;\n  cache_view = AcquireVirtualCacheView(image,exception);\n  cache_view_00 = AcquireAuthenticCacheView(image_00,exception);\n  CVar5 = GetImagePixelCacheType(image);\n  if (((CVar5 == MemoryCache) || (CVar5 = GetImagePixelCacheType(image), CVar5 == MapCache)) &&\n     ((CVar5 = GetImagePixelCacheType(image_00), CVar5 == MemoryCache ||\n      (CVar5 = GetImagePixelCacheType(image_00), CVar5 == MapCache)))) {\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    sVar1 = image->rows;\n    sVar6 = sVar1 + 0x3f;\n    if (-1 < (int)sVar1) {\n      sVar6 = sVar1;\n    }\n    bVar2 = 0x7f < (int)sVar1;\n    if ((int)MVar7 < (int)sVar6 >> 6) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      bVar2 = 1 < (int)MVar7;\n    }\n    if (bVar2) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      sVar1 = image->rows;\n      sVar6 = sVar1 + 0x3f;\n      if (-1 < (int)sVar1) {\n        sVar6 = sVar1;\n      }\n      if ((int)MVar7 < (int)sVar6 >> 6) {\n        GetMagickResourceLimit(ThreadResource);\n      }\n    }\n  }\n  else {\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) goto LAB_000af7e0;\n    }\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      GetMagickResourceLimit(ThreadResource);\n    }\n  }\nLAB_000af7e0:\n  local_40 = exception;\n  local_44 = image;\n  local_2c = &progress;\n  local_54 = gain;\n  local_30 = 1;\n  local_4c = threshold * dVar3;\n  local_3c = cache_view;\n  local_38 = cache_view_00;\n  local_34 = image_00;\n  GOMP_parallel();\n  iVar4 = local_30;\n  image_00->type = image->type;\n  DestroyCacheView(cache_view_00);\n  DestroyCacheView(cache_view);\n  if (iVar4 == 0) {\n    image_00 = DestroyImage(image_00);\n  }\nLAB_000af868:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return image_00;\n}\n\n" comment comment comment comment comment comment comment comment (function_definition "Image * UnsharpMaskImage(Image *image,double radius,double sigma,double gain,double threshold,\n                        ExceptionInfo *exception)\n\n{\n  size_t sVar1;\n  bool bVar2;\n  double dVar3;\n  int iVar4;\n  Image *image_00;\n  CacheView *cache_view;\n  CacheView *cache_view_00;\n  CacheType CVar5;\n  size_t sVar6;\n  int in_GS_OFFSET;\n  MagickSizeType MVar7;\n  MagickOffsetType progress;\n  double local_54;\n  double local_4c;\n  Image *local_44;\n  ExceptionInfo *local_40;\n  CacheView *local_3c;\n  CacheView *local_38;\n  Image *local_34;\n  int local_30;\n  MagickOffsetType *local_2c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xaf6b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage");\n  }\n  if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage");\n  }\n  if (image->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/effect.c","UnsharpMaskImage",0xf70,"%s",image->filename);\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage");\n  }\n  image_00 = BlurImage(image,radius,sigma,exception);\n  if (image_00 == (Image *)0x0) goto LAB_000af868;\n  progress._0_4_ = 0;\n  dVar3 = (double)DAT_0029f710;\n  progress._4_4_ = 0;\n  cache_view = AcquireVirtualCacheView(image,exception);\n  cache_view_00 = AcquireAuthenticCacheView(image_00,exception);\n  CVar5 = GetImagePixelCacheType(image);\n  if (((CVar5 == MemoryCache) || (CVar5 = GetImagePixelCacheType(image), CVar5 == MapCache)) &&\n     ((CVar5 = GetImagePixelCacheType(image_00), CVar5 == MemoryCache ||\n      (CVar5 = GetImagePixelCacheType(image_00), CVar5 == MapCache)))) {\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    sVar1 = image->rows;\n    sVar6 = sVar1 + 0x3f;\n    if (-1 < (int)sVar1) {\n      sVar6 = sVar1;\n    }\n    bVar2 = 0x7f < (int)sVar1;\n    if ((int)MVar7 < (int)sVar6 >> 6) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      bVar2 = 1 < (int)MVar7;\n    }\n    if (bVar2) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      sVar1 = image->rows;\n      sVar6 = sVar1 + 0x3f;\n      if (-1 < (int)sVar1) {\n        sVar6 = sVar1;\n      }\n      if ((int)MVar7 < (int)sVar6 >> 6) {\n        GetMagickResourceLimit(ThreadResource);\n      }\n    }\n  }\n  else {\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) goto LAB_000af7e0;\n    }\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      GetMagickResourceLimit(ThreadResource);\n    }\n  }\nLAB_000af7e0:\n  local_40 = exception;\n  local_44 = image;\n  local_2c = &progress;\n  local_54 = gain;\n  local_30 = 1;\n  local_4c = threshold * dVar3;\n  local_3c = cache_view;\n  local_38 = cache_view_00;\n  local_34 = image_00;\n  GOMP_parallel();\n  iVar4 = local_30;\n  image_00->type = image->type;\n  DestroyCacheView(cache_view_00);\n  DestroyCacheView(cache_view);\n  if (iVar4 == 0) {\n    image_00 = DestroyImage(image_00);\n  }\nLAB_000af868:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return image_00;\n}" type_identifier (pointer_declarator "* UnsharpMaskImage(Image *image,double radius,double sigma,double gain,double threshold,\n                        ExceptionInfo *exception)" * (function_declarator "UnsharpMaskImage(Image *image,double radius,double sigma,double gain,double threshold,\n                        ExceptionInfo *exception)" identifier (parameter_list "(Image *image,double radius,double sigma,double gain,double threshold,\n                        ExceptionInfo *exception)" ( (parameter_declaration "Image *image" type_identifier (pointer_declarator "*image" * identifier)) , (parameter_declaration "double radius" primitive_type identifier) , (parameter_declaration "double sigma" primitive_type identifier) , (parameter_declaration "double gain" primitive_type identifier) , (parameter_declaration "double threshold" primitive_type identifier) , (parameter_declaration "ExceptionInfo *exception" type_identifier (pointer_declarator "*exception" * identifier)) )))) (compound_statement "{\n  size_t sVar1;\n  bool bVar2;\n  double dVar3;\n  int iVar4;\n  Image *image_00;\n  CacheView *cache_view;\n  CacheView *cache_view_00;\n  CacheType CVar5;\n  size_t sVar6;\n  int in_GS_OFFSET;\n  MagickSizeType MVar7;\n  MagickOffsetType progress;\n  double local_54;\n  double local_4c;\n  Image *local_44;\n  ExceptionInfo *local_40;\n  CacheView *local_3c;\n  CacheView *local_38;\n  Image *local_34;\n  int local_30;\n  MagickOffsetType *local_2c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xaf6b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage");\n  }\n  if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage");\n  }\n  if (image->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/effect.c","UnsharpMaskImage",0xf70,"%s",image->filename);\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage");\n  }\n  image_00 = BlurImage(image,radius,sigma,exception);\n  if (image_00 == (Image *)0x0) goto LAB_000af868;\n  progress._0_4_ = 0;\n  dVar3 = (double)DAT_0029f710;\n  progress._4_4_ = 0;\n  cache_view = AcquireVirtualCacheView(image,exception);\n  cache_view_00 = AcquireAuthenticCacheView(image_00,exception);\n  CVar5 = GetImagePixelCacheType(image);\n  if (((CVar5 == MemoryCache) || (CVar5 = GetImagePixelCacheType(image), CVar5 == MapCache)) &&\n     ((CVar5 = GetImagePixelCacheType(image_00), CVar5 == MemoryCache ||\n      (CVar5 = GetImagePixelCacheType(image_00), CVar5 == MapCache)))) {\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    sVar1 = image->rows;\n    sVar6 = sVar1 + 0x3f;\n    if (-1 < (int)sVar1) {\n      sVar6 = sVar1;\n    }\n    bVar2 = 0x7f < (int)sVar1;\n    if ((int)MVar7 < (int)sVar6 >> 6) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      bVar2 = 1 < (int)MVar7;\n    }\n    if (bVar2) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      sVar1 = image->rows;\n      sVar6 = sVar1 + 0x3f;\n      if (-1 < (int)sVar1) {\n        sVar6 = sVar1;\n      }\n      if ((int)MVar7 < (int)sVar6 >> 6) {\n        GetMagickResourceLimit(ThreadResource);\n      }\n    }\n  }\n  else {\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) goto LAB_000af7e0;\n    }\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      GetMagickResourceLimit(ThreadResource);\n    }\n  }\nLAB_000af7e0:\n  local_40 = exception;\n  local_44 = image;\n  local_2c = &progress;\n  local_54 = gain;\n  local_30 = 1;\n  local_4c = threshold * dVar3;\n  local_3c = cache_view;\n  local_38 = cache_view_00;\n  local_34 = image_00;\n  GOMP_parallel();\n  iVar4 = local_30;\n  image_00->type = image->type;\n  DestroyCacheView(cache_view_00);\n  DestroyCacheView(cache_view);\n  if (iVar4 == 0) {\n    image_00 = DestroyImage(image_00);\n  }\nLAB_000af868:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return image_00;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "double dVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "Image *image_00;" type_identifier (pointer_declarator "*image_00" * 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 CVar5;" type_identifier identifier ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "MagickSizeType MVar7;" type_identifier identifier ;) (declaration "MagickOffsetType progress;" type_identifier identifier ;) (declaration "double local_54;" primitive_type identifier ;) (declaration "double local_4c;" primitive_type identifier ;) (declaration "Image *local_44;" type_identifier (pointer_declarator "*local_44" * identifier) ;) (declaration "ExceptionInfo *local_40;" type_identifier (pointer_declarator "*local_40" * identifier) ;) (declaration "CacheView *local_3c;" type_identifier (pointer_declarator "*local_3c" * identifier) ;) (declaration "CacheView *local_38;" type_identifier (pointer_declarator "*local_38" * identifier) ;) (declaration "Image *local_34;" type_identifier (pointer_declarator "*local_34" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "MagickOffsetType *local_2c;" type_identifier (pointer_declarator "*local_2c" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xaf6b9;" (assignment_expression "uStack_14 = 0xaf6b9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage");\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 != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage");\n  }" { comment (expression_statement "__assert_fail("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage");" (call_expression "__assert_fail("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage")" identifier (argument_list "("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage")" ( (string_literal ""image != (const Image *) NULL"" " string_content ") , (string_literal ""MagickCore/effect.c"" " string_content ") , number_literal , (string_literal ""UnsharpMaskImage"" " string_content ") ))) ;) })) (if_statement "if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage");\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/effect.c",0xf6e,\n                  "UnsharpMaskImage");\n  }" { comment (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/effect.c"" " string_content ") , number_literal , (string_literal ""UnsharpMaskImage"" " string_content ") ))) ;) })) (if_statement "if (image->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/effect.c","UnsharpMaskImage",0xf70,"%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/effect.c","UnsharpMaskImage",0xf70,"%s",image->filename);\n  }" { (expression_statement "LogMagickEvent(TraceEvent,"MagickCore/effect.c","UnsharpMaskImage",0xf70,"%s",image->filename);" (call_expression "LogMagickEvent(TraceEvent,"MagickCore/effect.c","UnsharpMaskImage",0xf70,"%s",image->filename)" identifier (argument_list "(TraceEvent,"MagickCore/effect.c","UnsharpMaskImage",0xf70,"%s",image->filename)" ( identifier , (string_literal ""MagickCore/effect.c"" " string_content ") , (string_literal ""UnsharpMaskImage"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (field_expression "image->filename" identifier -> field_identifier) ))) ;) })) (if_statement "if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage");\n  }" if (parenthesized_expression "(exception == (ExceptionInfo *)0x0)" ( (binary_expression "exception == (ExceptionInfo *)0x0" identifier == (cast_expression "(ExceptionInfo *)0x0" ( (type_descriptor "ExceptionInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage");\n  }" { comment (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/effect.c"" " string_content ") , number_literal , (string_literal ""UnsharpMaskImage"" " string_content ") ))) ;) })) (expression_statement "image_00 = BlurImage(image,radius,sigma,exception);" (assignment_expression "image_00 = BlurImage(image,radius,sigma,exception)" identifier = (call_expression "BlurImage(image,radius,sigma,exception)" identifier (argument_list "(image,radius,sigma,exception)" ( identifier , identifier , identifier , identifier )))) ;) (if_statement "if (image_00 == (Image *)0x0) goto LAB_000af868;" if (parenthesized_expression "(image_00 == (Image *)0x0)" ( (binary_expression "image_00 == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000af868;" goto statement_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 "dVar3 = (double)DAT_0029f710;" (assignment_expression "dVar3 = (double)DAT_0029f710" identifier = (cast_expression "(double)DAT_0029f710" ( (type_descriptor "double" primitive_type) ) identifier)) ;) (expression_statement "progress._4_4_ = 0;" (assignment_expression "progress._4_4_ = 0" (field_expression "progress._4_4_" identifier . field_identifier) = number_literal) ;) (expression_statement "cache_view = AcquireVirtualCacheView(image,exception);" (assignment_expression "cache_view = AcquireVirtualCacheView(image,exception)" identifier = (call_expression "AcquireVirtualCacheView(image,exception)" identifier (argument_list "(image,exception)" ( identifier , identifier )))) ;) (expression_statement "cache_view_00 = AcquireAuthenticCacheView(image_00,exception);" (assignment_expression "cache_view_00 = AcquireAuthenticCacheView(image_00,exception)" identifier = (call_expression "AcquireAuthenticCacheView(image_00,exception)" identifier (argument_list "(image_00,exception)" ( identifier , identifier )))) ;) (expression_statement "CVar5 = GetImagePixelCacheType(image);" (assignment_expression "CVar5 = GetImagePixelCacheType(image)" identifier = (call_expression "GetImagePixelCacheType(image)" identifier (argument_list "(image)" ( identifier )))) ;) (if_statement "if (((CVar5 == MemoryCache) || (CVar5 = GetImagePixelCacheType(image), CVar5 == MapCache)) &&\n     ((CVar5 = GetImagePixelCacheType(image_00), CVar5 == MemoryCache ||\n      (CVar5 = GetImagePixelCacheType(image_00), CVar5 == MapCache)))) {\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    sVar1 = image->rows;\n    sVar6 = sVar1 + 0x3f;\n    if (-1 < (int)sVar1) {\n      sVar6 = sVar1;\n    }\n    bVar2 = 0x7f < (int)sVar1;\n    if ((int)MVar7 < (int)sVar6 >> 6) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      bVar2 = 1 < (int)MVar7;\n    }\n    if (bVar2) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      sVar1 = image->rows;\n      sVar6 = sVar1 + 0x3f;\n      if (-1 < (int)sVar1) {\n        sVar6 = sVar1;\n      }\n      if ((int)MVar7 < (int)sVar6 >> 6) {\n        GetMagickResourceLimit(ThreadResource);\n      }\n    }\n  }\n  else {\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) goto LAB_000af7e0;\n    }\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      GetMagickResourceLimit(ThreadResource);\n    }\n  }" if (parenthesized_expression "(((CVar5 == MemoryCache) || (CVar5 = GetImagePixelCacheType(image), CVar5 == MapCache)) &&\n     ((CVar5 = GetImagePixelCacheType(image_00), CVar5 == MemoryCache ||\n      (CVar5 = GetImagePixelCacheType(image_00), CVar5 == MapCache))))" ( (binary_expression "((CVar5 == MemoryCache) || (CVar5 = GetImagePixelCacheType(image), CVar5 == MapCache)) &&\n     ((CVar5 = GetImagePixelCacheType(image_00), CVar5 == MemoryCache ||\n      (CVar5 = GetImagePixelCacheType(image_00), CVar5 == MapCache)))" (parenthesized_expression "((CVar5 == MemoryCache) || (CVar5 = GetImagePixelCacheType(image), CVar5 == MapCache))" ( (binary_expression "(CVar5 == MemoryCache) || (CVar5 = GetImagePixelCacheType(image), CVar5 == MapCache)" (parenthesized_expression "(CVar5 == MemoryCache)" ( (binary_expression "CVar5 == MemoryCache" identifier == identifier) )) || (parenthesized_expression "(CVar5 = GetImagePixelCacheType(image), CVar5 == MapCache)" ( (comma_expression "CVar5 = GetImagePixelCacheType(image), CVar5 == MapCache" (assignment_expression "CVar5 = GetImagePixelCacheType(image)" identifier = (call_expression "GetImagePixelCacheType(image)" identifier (argument_list "(image)" ( identifier )))) , (binary_expression "CVar5 == MapCache" identifier == identifier)) ))) )) && (parenthesized_expression "((CVar5 = GetImagePixelCacheType(image_00), CVar5 == MemoryCache ||\n      (CVar5 = GetImagePixelCacheType(image_00), CVar5 == MapCache)))" ( (parenthesized_expression "(CVar5 = GetImagePixelCacheType(image_00), CVar5 == MemoryCache ||\n      (CVar5 = GetImagePixelCacheType(image_00), CVar5 == MapCache))" ( (comma_expression "CVar5 = GetImagePixelCacheType(image_00), CVar5 == MemoryCache ||\n      (CVar5 = GetImagePixelCacheType(image_00), CVar5 == MapCache)" (assignment_expression "CVar5 = GetImagePixelCacheType(image_00)" identifier = (call_expression "GetImagePixelCacheType(image_00)" identifier (argument_list "(image_00)" ( identifier )))) , (binary_expression "CVar5 == MemoryCache ||\n      (CVar5 = GetImagePixelCacheType(image_00), CVar5 == MapCache)" (binary_expression "CVar5 == MemoryCache" identifier == identifier) || (parenthesized_expression "(CVar5 = GetImagePixelCacheType(image_00), CVar5 == MapCache)" ( (comma_expression "CVar5 = GetImagePixelCacheType(image_00), CVar5 == MapCache" (assignment_expression "CVar5 = GetImagePixelCacheType(image_00)" identifier = (call_expression "GetImagePixelCacheType(image_00)" identifier (argument_list "(image_00)" ( identifier )))) , (binary_expression "CVar5 == MapCache" identifier == identifier)) )))) )) ))) )) (compound_statement "{\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    sVar1 = image->rows;\n    sVar6 = sVar1 + 0x3f;\n    if (-1 < (int)sVar1) {\n      sVar6 = sVar1;\n    }\n    bVar2 = 0x7f < (int)sVar1;\n    if ((int)MVar7 < (int)sVar6 >> 6) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      bVar2 = 1 < (int)MVar7;\n    }\n    if (bVar2) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      sVar1 = image->rows;\n      sVar6 = sVar1 + 0x3f;\n      if (-1 < (int)sVar1) {\n        sVar6 = sVar1;\n      }\n      if ((int)MVar7 < (int)sVar6 >> 6) {\n        GetMagickResourceLimit(ThreadResource);\n      }\n    }\n  }" { (expression_statement "MVar7 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar7 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (expression_statement "sVar1 = image->rows;" (assignment_expression "sVar1 = image->rows" identifier = (field_expression "image->rows" identifier -> field_identifier)) ;) (expression_statement "sVar6 = sVar1 + 0x3f;" (assignment_expression "sVar6 = sVar1 + 0x3f" identifier = (binary_expression "sVar1 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < (int)sVar1) {\n      sVar6 = sVar1;\n    }" if (parenthesized_expression "(-1 < (int)sVar1)" ( (binary_expression "-1 < (int)sVar1" number_literal < (cast_expression "(int)sVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      sVar6 = sVar1;\n    }" { (expression_statement "sVar6 = sVar1;" (assignment_expression "sVar6 = sVar1" identifier = identifier) ;) })) (expression_statement "bVar2 = 0x7f < (int)sVar1;" (assignment_expression "bVar2 = 0x7f < (int)sVar1" identifier = (binary_expression "0x7f < (int)sVar1" number_literal < (cast_expression "(int)sVar1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if ((int)MVar7 < (int)sVar6 >> 6) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      bVar2 = 1 < (int)MVar7;\n    }" if (parenthesized_expression "((int)MVar7 < (int)sVar6 >> 6)" ( (binary_expression "(int)MVar7 < (int)sVar6 >> 6" (cast_expression "(int)MVar7" ( (type_descriptor "int" primitive_type) ) identifier) < (binary_expression "(int)sVar6 >> 6" (cast_expression "(int)sVar6" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) )) (compound_statement "{\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      bVar2 = 1 < (int)MVar7;\n    }" { (expression_statement "MVar7 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar7 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (expression_statement "bVar2 = 1 < (int)MVar7;" (assignment_expression "bVar2 = 1 < (int)MVar7" identifier = (binary_expression "1 < (int)MVar7" number_literal < (cast_expression "(int)MVar7" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (if_statement "if (bVar2) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      sVar1 = image->rows;\n      sVar6 = sVar1 + 0x3f;\n      if (-1 < (int)sVar1) {\n        sVar6 = sVar1;\n      }\n      if ((int)MVar7 < (int)sVar6 >> 6) {\n        GetMagickResourceLimit(ThreadResource);\n      }\n    }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      sVar1 = image->rows;\n      sVar6 = sVar1 + 0x3f;\n      if (-1 < (int)sVar1) {\n        sVar6 = sVar1;\n      }\n      if ((int)MVar7 < (int)sVar6 >> 6) {\n        GetMagickResourceLimit(ThreadResource);\n      }\n    }" { (expression_statement "MVar7 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar7 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (expression_statement "sVar1 = image->rows;" (assignment_expression "sVar1 = image->rows" identifier = (field_expression "image->rows" identifier -> field_identifier)) ;) (expression_statement "sVar6 = sVar1 + 0x3f;" (assignment_expression "sVar6 = sVar1 + 0x3f" identifier = (binary_expression "sVar1 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < (int)sVar1) {\n        sVar6 = sVar1;\n      }" if (parenthesized_expression "(-1 < (int)sVar1)" ( (binary_expression "-1 < (int)sVar1" number_literal < (cast_expression "(int)sVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        sVar6 = sVar1;\n      }" { (expression_statement "sVar6 = sVar1;" (assignment_expression "sVar6 = sVar1" identifier = identifier) ;) })) (if_statement "if ((int)MVar7 < (int)sVar6 >> 6) {\n        GetMagickResourceLimit(ThreadResource);\n      }" if (parenthesized_expression "((int)MVar7 < (int)sVar6 >> 6)" ( (binary_expression "(int)MVar7 < (int)sVar6 >> 6" (cast_expression "(int)MVar7" ( (type_descriptor "int" primitive_type) ) identifier) < (binary_expression "(int)sVar6 >> 6" (cast_expression "(int)sVar6" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) )) (compound_statement "{\n        GetMagickResourceLimit(ThreadResource);\n      }" { (expression_statement "GetMagickResourceLimit(ThreadResource);" (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier ))) ;) })) })) }) (else_clause "else {\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) goto LAB_000af7e0;\n    }\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      GetMagickResourceLimit(ThreadResource);\n    }\n  }" else (compound_statement "{\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) goto LAB_000af7e0;\n    }\n    MVar7 = GetMagickResourceLimit(ThreadResource);\n    if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      GetMagickResourceLimit(ThreadResource);\n    }\n  }" { (expression_statement "MVar7 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar7 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (if_statement "if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) goto LAB_000af7e0;\n    }" if (parenthesized_expression "(((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2))" ( (binary_expression "((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)" (parenthesized_expression "((int)(MVar7 >> 0x20) == 0)" ( (binary_expression "(int)(MVar7 >> 0x20) == 0" (cast_expression "(int)(MVar7 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(MVar7 >> 0x20)" ( (binary_expression "MVar7 >> 0x20" identifier >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)MVar7 < 2)" ( (binary_expression "(uint)MVar7 < 2" (cast_expression "(uint)MVar7" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n      MVar7 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) goto LAB_000af7e0;\n    }" { (expression_statement "MVar7 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar7 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (if_statement "if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) goto LAB_000af7e0;" if (parenthesized_expression "(((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2))" ( (binary_expression "((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)" (parenthesized_expression "((int)(MVar7 >> 0x20) == 0)" ( (binary_expression "(int)(MVar7 >> 0x20) == 0" (cast_expression "(int)(MVar7 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(MVar7 >> 0x20)" ( (binary_expression "MVar7 >> 0x20" identifier >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)MVar7 < 2)" ( (binary_expression "(uint)MVar7 < 2" (cast_expression "(uint)MVar7" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (goto_statement "goto LAB_000af7e0;" goto statement_identifier ;)) })) (expression_statement "MVar7 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar7 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (if_statement "if (((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)) {\n      GetMagickResourceLimit(ThreadResource);\n    }" if (parenthesized_expression "(((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2))" ( (binary_expression "((int)(MVar7 >> 0x20) == 0) && ((uint)MVar7 < 2)" (parenthesized_expression "((int)(MVar7 >> 0x20) == 0)" ( (binary_expression "(int)(MVar7 >> 0x20) == 0" (cast_expression "(int)(MVar7 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(MVar7 >> 0x20)" ( (binary_expression "MVar7 >> 0x20" identifier >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)MVar7 < 2)" ( (binary_expression "(uint)MVar7 < 2" (cast_expression "(uint)MVar7" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n      GetMagickResourceLimit(ThreadResource);\n    }" { (expression_statement "GetMagickResourceLimit(ThreadResource);" (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier ))) ;) })) }))) (labeled_statement "LAB_000af7e0:\n  local_40 = exception;" statement_identifier : (expression_statement "local_40 = exception;" (assignment_expression "local_40 = exception" identifier = identifier) ;)) (expression_statement "local_44 = image;" (assignment_expression "local_44 = image" identifier = identifier) ;) (expression_statement "local_2c = &progress;" (assignment_expression "local_2c = &progress" identifier = (pointer_expression "&progress" & identifier)) ;) (expression_statement "local_54 = gain;" (assignment_expression "local_54 = gain" identifier = identifier) ;) (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" identifier = number_literal) ;) (expression_statement "local_4c = threshold * dVar3;" (assignment_expression "local_4c = threshold * dVar3" identifier = (binary_expression "threshold * dVar3" identifier * identifier)) ;) (expression_statement "local_3c = cache_view;" (assignment_expression "local_3c = cache_view" identifier = identifier) ;) (expression_statement "local_38 = cache_view_00;" (assignment_expression "local_38 = cache_view_00" identifier = identifier) ;) (expression_statement "local_34 = image_00;" (assignment_expression "local_34 = image_00" identifier = identifier) ;) (expression_statement "GOMP_parallel();" (call_expression "GOMP_parallel()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar4 = local_30;" (assignment_expression "iVar4 = local_30" identifier = identifier) ;) (expression_statement "image_00->type = image->type;" (assignment_expression "image_00->type = image->type" (field_expression "image_00->type" identifier -> field_identifier) = (field_expression "image->type" identifier -> field_identifier)) ;) (expression_statement "DestroyCacheView(cache_view_00);" (call_expression "DestroyCacheView(cache_view_00)" identifier (argument_list "(cache_view_00)" ( identifier ))) ;) (expression_statement "DestroyCacheView(cache_view);" (call_expression "DestroyCacheView(cache_view)" identifier (argument_list "(cache_view)" ( identifier ))) ;) (if_statement "if (iVar4 == 0) {\n    image_00 = DestroyImage(image_00);\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    image_00 = DestroyImage(image_00);\n  }" { (expression_statement "image_00 = DestroyImage(image_00);" (assignment_expression "image_00 = DestroyImage(image_00)" identifier = (call_expression "DestroyImage(image_00)" identifier (argument_list "(image_00)" ( identifier )))) ;) })) (labeled_statement "LAB_000af868:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return image_00;" return identifier ;) })))
(translation_unit "int UnsharpMaskImage(int param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                    double param_5,int param_6)\n\n{\n  bool bVar1;\n  double dVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int in_GS_OFFSET;\n  undefined8 uVar9;\n  undefined4 local_5c;\n  undefined4 local_58;\n  undefined8 local_54;\n  double local_4c;\n  int local_44;\n  int local_40;\n  undefined4 local_3c;\n  undefined4 local_38;\n  int local_34;\n  int local_30;\n  undefined4 *local_2c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xaf6b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/effect.c","UnsharpMaskImage",0xf70,&DAT_002b6e4e,\n                   param_1 + 0x318);\n  }\n  if (param_6 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage");\n  }\n  iVar3 = BlurImage(param_1,param_2,param_3,param_6);\n  if (iVar3 == 0) goto LAB_000af868;\n  local_5c = 0;\n  dVar2 = (double)DAT_0029f710;\n  local_58 = 0;\n  uVar4 = AcquireVirtualCacheView();\n  uVar5 = AcquireAuthenticCacheView();\n  iVar6 = GetImagePixelCacheType();\n  if (((iVar6 == 4) || (iVar6 = GetImagePixelCacheType(), iVar6 == 3)) &&\n     ((iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3)))) {\n    iVar7 = GetMagickResourceLimit();\n    iVar6 = *(int *)(param_1 + 0x1c);\n    iVar8 = iVar6 + 0x3f;\n    if (-1 < iVar6) {\n      iVar8 = iVar6;\n    }\n    bVar1 = 0x7f < iVar6;\n    if (iVar7 < iVar8 >> 6) {\n      iVar6 = GetMagickResourceLimit();\n      bVar1 = 1 < iVar6;\n    }\n    if (bVar1) {\n      iVar7 = GetMagickResourceLimit();\n      iVar6 = *(int *)(param_1 + 0x1c);\n      iVar8 = iVar6 + 0x3f;\n      if (-1 < iVar6) {\n        iVar8 = iVar6;\n      }\n      if (iVar7 < iVar8 >> 6) {\n        GetMagickResourceLimit();\n      }\n    }\n  }\n  else {\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      uVar9 = GetMagickResourceLimit();\n      if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;\n    }\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      GetMagickResourceLimit();\n    }\n  }\nLAB_000af7e0:\n  local_40 = param_6;\n  local_44 = param_1;\n  local_2c = &local_5c;\n  local_54 = param_4;\n  local_30 = 1;\n  local_4c = param_5 * dVar2;\n  local_3c = uVar4;\n  local_38 = uVar5;\n  local_34 = iVar3;\n  GOMP_parallel();\n  iVar6 = local_30;\n  *(undefined4 *)(iVar3 + 0x278) = *(undefined4 *)(param_1 + 0x278);\n  DestroyCacheView();\n  DestroyCacheView();\n  if (iVar6 == 0) {\n    iVar3 = DestroyImage();\n  }\nLAB_000af868:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return iVar3;\n}\n\n" (function_definition "int UnsharpMaskImage(int param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                    double param_5,int param_6)\n\n{\n  bool bVar1;\n  double dVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int in_GS_OFFSET;\n  undefined8 uVar9;\n  undefined4 local_5c;\n  undefined4 local_58;\n  undefined8 local_54;\n  double local_4c;\n  int local_44;\n  int local_40;\n  undefined4 local_3c;\n  undefined4 local_38;\n  int local_34;\n  int local_30;\n  undefined4 *local_2c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xaf6b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/effect.c","UnsharpMaskImage",0xf70,&DAT_002b6e4e,\n                   param_1 + 0x318);\n  }\n  if (param_6 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage");\n  }\n  iVar3 = BlurImage(param_1,param_2,param_3,param_6);\n  if (iVar3 == 0) goto LAB_000af868;\n  local_5c = 0;\n  dVar2 = (double)DAT_0029f710;\n  local_58 = 0;\n  uVar4 = AcquireVirtualCacheView();\n  uVar5 = AcquireAuthenticCacheView();\n  iVar6 = GetImagePixelCacheType();\n  if (((iVar6 == 4) || (iVar6 = GetImagePixelCacheType(), iVar6 == 3)) &&\n     ((iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3)))) {\n    iVar7 = GetMagickResourceLimit();\n    iVar6 = *(int *)(param_1 + 0x1c);\n    iVar8 = iVar6 + 0x3f;\n    if (-1 < iVar6) {\n      iVar8 = iVar6;\n    }\n    bVar1 = 0x7f < iVar6;\n    if (iVar7 < iVar8 >> 6) {\n      iVar6 = GetMagickResourceLimit();\n      bVar1 = 1 < iVar6;\n    }\n    if (bVar1) {\n      iVar7 = GetMagickResourceLimit();\n      iVar6 = *(int *)(param_1 + 0x1c);\n      iVar8 = iVar6 + 0x3f;\n      if (-1 < iVar6) {\n        iVar8 = iVar6;\n      }\n      if (iVar7 < iVar8 >> 6) {\n        GetMagickResourceLimit();\n      }\n    }\n  }\n  else {\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      uVar9 = GetMagickResourceLimit();\n      if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;\n    }\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      GetMagickResourceLimit();\n    }\n  }\nLAB_000af7e0:\n  local_40 = param_6;\n  local_44 = param_1;\n  local_2c = &local_5c;\n  local_54 = param_4;\n  local_30 = 1;\n  local_4c = param_5 * dVar2;\n  local_3c = uVar4;\n  local_38 = uVar5;\n  local_34 = iVar3;\n  GOMP_parallel();\n  iVar6 = local_30;\n  *(undefined4 *)(iVar3 + 0x278) = *(undefined4 *)(param_1 + 0x278);\n  DestroyCacheView();\n  DestroyCacheView();\n  if (iVar6 == 0) {\n    iVar3 = DestroyImage();\n  }\nLAB_000af868:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return iVar3;\n}" primitive_type (function_declarator "UnsharpMaskImage(int param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                    double param_5,int param_6)" identifier (parameter_list "(int param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                    double param_5,int param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "double param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  double dVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int in_GS_OFFSET;\n  undefined8 uVar9;\n  undefined4 local_5c;\n  undefined4 local_58;\n  undefined8 local_54;\n  double local_4c;\n  int local_44;\n  int local_40;\n  undefined4 local_3c;\n  undefined4 local_38;\n  int local_34;\n  int local_30;\n  undefined4 *local_2c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xaf6b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/effect.c","UnsharpMaskImage",0xf70,&DAT_002b6e4e,\n                   param_1 + 0x318);\n  }\n  if (param_6 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage");\n  }\n  iVar3 = BlurImage(param_1,param_2,param_3,param_6);\n  if (iVar3 == 0) goto LAB_000af868;\n  local_5c = 0;\n  dVar2 = (double)DAT_0029f710;\n  local_58 = 0;\n  uVar4 = AcquireVirtualCacheView();\n  uVar5 = AcquireAuthenticCacheView();\n  iVar6 = GetImagePixelCacheType();\n  if (((iVar6 == 4) || (iVar6 = GetImagePixelCacheType(), iVar6 == 3)) &&\n     ((iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3)))) {\n    iVar7 = GetMagickResourceLimit();\n    iVar6 = *(int *)(param_1 + 0x1c);\n    iVar8 = iVar6 + 0x3f;\n    if (-1 < iVar6) {\n      iVar8 = iVar6;\n    }\n    bVar1 = 0x7f < iVar6;\n    if (iVar7 < iVar8 >> 6) {\n      iVar6 = GetMagickResourceLimit();\n      bVar1 = 1 < iVar6;\n    }\n    if (bVar1) {\n      iVar7 = GetMagickResourceLimit();\n      iVar6 = *(int *)(param_1 + 0x1c);\n      iVar8 = iVar6 + 0x3f;\n      if (-1 < iVar6) {\n        iVar8 = iVar6;\n      }\n      if (iVar7 < iVar8 >> 6) {\n        GetMagickResourceLimit();\n      }\n    }\n  }\n  else {\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      uVar9 = GetMagickResourceLimit();\n      if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;\n    }\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      GetMagickResourceLimit();\n    }\n  }\nLAB_000af7e0:\n  local_40 = param_6;\n  local_44 = param_1;\n  local_2c = &local_5c;\n  local_54 = param_4;\n  local_30 = 1;\n  local_4c = param_5 * dVar2;\n  local_3c = uVar4;\n  local_38 = uVar5;\n  local_34 = iVar3;\n  GOMP_parallel();\n  iVar6 = local_30;\n  *(undefined4 *)(iVar3 + 0x278) = *(undefined4 *)(param_1 + 0x278);\n  DestroyCacheView();\n  DestroyCacheView();\n  if (iVar6 == 0) {\n    iVar3 = DestroyImage();\n  }\nLAB_000af868:\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 "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined8 uVar9;" type_identifier identifier ;) (declaration "undefined4 local_5c;" type_identifier identifier ;) (declaration "undefined4 local_58;" type_identifier identifier ;) (declaration "undefined8 local_54;" type_identifier identifier ;) (declaration "double local_4c;" primitive_type identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "undefined4 local_3c;" type_identifier identifier ;) (declaration "undefined4 local_38;" type_identifier identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "undefined4 *local_2c;" type_identifier (pointer_declarator "*local_2c" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xaf6b9;" (assignment_expression "uStack_14 = 0xaf6b9" 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 != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage");\n  }" { (expression_statement "__assert_fail("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage");" (call_expression "__assert_fail("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage")" identifier (argument_list "("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage")" ( (string_literal ""image != (const Image *) NULL"" " string_content ") , (string_literal ""MagickCore/effect.c"" " string_content ") , number_literal , (string_literal ""UnsharpMaskImage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage");\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/effect.c",0xf6e,\n                  "UnsharpMaskImage");\n  }" { (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/effect.c"" " string_content ") , number_literal , (string_literal ""UnsharpMaskImage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/effect.c","UnsharpMaskImage",0xf70,&DAT_002b6e4e,\n                   param_1 + 0x318);\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/effect.c","UnsharpMaskImage",0xf70,&DAT_002b6e4e,\n                   param_1 + 0x318);\n  }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/effect.c","UnsharpMaskImage",0xf70,&DAT_002b6e4e,\n                   param_1 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/effect.c","UnsharpMaskImage",0xf70,&DAT_002b6e4e,\n                   param_1 + 0x318)" identifier (argument_list "(0x8000,"MagickCore/effect.c","UnsharpMaskImage",0xf70,&DAT_002b6e4e,\n                   param_1 + 0x318)" ( number_literal , (string_literal ""MagickCore/effect.c"" " string_content ") , (string_literal ""UnsharpMaskImage"" " string_content ") , number_literal , (pointer_expression "&DAT_002b6e4e" & identifier) , (binary_expression "param_1 + 0x318" identifier + number_literal) ))) ;) })) (if_statement "if (param_6 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage");\n  }" if (parenthesized_expression "(param_6 == 0)" ( (binary_expression "param_6 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage");\n  }" { (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/effect.c"" " string_content ") , number_literal , (string_literal ""UnsharpMaskImage"" " string_content ") ))) ;) })) (expression_statement "iVar3 = BlurImage(param_1,param_2,param_3,param_6);" (assignment_expression "iVar3 = BlurImage(param_1,param_2,param_3,param_6)" identifier = (call_expression "BlurImage(param_1,param_2,param_3,param_6)" identifier (argument_list "(param_1,param_2,param_3,param_6)" ( identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) goto LAB_000af868;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000af868;" goto statement_identifier ;)) (expression_statement "local_5c = 0;" (assignment_expression "local_5c = 0" identifier = number_literal) ;) (expression_statement "dVar2 = (double)DAT_0029f710;" (assignment_expression "dVar2 = (double)DAT_0029f710" identifier = (cast_expression "(double)DAT_0029f710" ( (type_descriptor "double" primitive_type) ) identifier)) ;) (expression_statement "local_58 = 0;" (assignment_expression "local_58 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = AcquireVirtualCacheView();" (assignment_expression "uVar4 = AcquireVirtualCacheView()" identifier = (call_expression "AcquireVirtualCacheView()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar5 = AcquireAuthenticCacheView();" (assignment_expression "uVar5 = AcquireAuthenticCacheView()" identifier = (call_expression "AcquireAuthenticCacheView()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar6 = GetImagePixelCacheType();" (assignment_expression "iVar6 = GetImagePixelCacheType()" identifier = (call_expression "GetImagePixelCacheType()" identifier (argument_list "()" ( )))) ;) (if_statement "if (((iVar6 == 4) || (iVar6 = GetImagePixelCacheType(), iVar6 == 3)) &&\n     ((iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3)))) {\n    iVar7 = GetMagickResourceLimit();\n    iVar6 = *(int *)(param_1 + 0x1c);\n    iVar8 = iVar6 + 0x3f;\n    if (-1 < iVar6) {\n      iVar8 = iVar6;\n    }\n    bVar1 = 0x7f < iVar6;\n    if (iVar7 < iVar8 >> 6) {\n      iVar6 = GetMagickResourceLimit();\n      bVar1 = 1 < iVar6;\n    }\n    if (bVar1) {\n      iVar7 = GetMagickResourceLimit();\n      iVar6 = *(int *)(param_1 + 0x1c);\n      iVar8 = iVar6 + 0x3f;\n      if (-1 < iVar6) {\n        iVar8 = iVar6;\n      }\n      if (iVar7 < iVar8 >> 6) {\n        GetMagickResourceLimit();\n      }\n    }\n  }\n  else {\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      uVar9 = GetMagickResourceLimit();\n      if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;\n    }\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      GetMagickResourceLimit();\n    }\n  }" if (parenthesized_expression "(((iVar6 == 4) || (iVar6 = GetImagePixelCacheType(), iVar6 == 3)) &&\n     ((iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3))))" ( (binary_expression "((iVar6 == 4) || (iVar6 = GetImagePixelCacheType(), iVar6 == 3)) &&\n     ((iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3)))" (parenthesized_expression "((iVar6 == 4) || (iVar6 = GetImagePixelCacheType(), iVar6 == 3))" ( (binary_expression "(iVar6 == 4) || (iVar6 = GetImagePixelCacheType(), iVar6 == 3)" (parenthesized_expression "(iVar6 == 4)" ( (binary_expression "iVar6 == 4" identifier == number_literal) )) || (parenthesized_expression "(iVar6 = GetImagePixelCacheType(), iVar6 == 3)" ( (comma_expression "iVar6 = GetImagePixelCacheType(), iVar6 == 3" (assignment_expression "iVar6 = GetImagePixelCacheType()" identifier = (call_expression "GetImagePixelCacheType()" identifier (argument_list "()" ( )))) , (binary_expression "iVar6 == 3" identifier == number_literal)) ))) )) && (parenthesized_expression "((iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3)))" ( (parenthesized_expression "(iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3))" ( (comma_expression "iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3)" (assignment_expression "iVar6 = GetImagePixelCacheType()" identifier = (call_expression "GetImagePixelCacheType()" identifier (argument_list "()" ( )))) , (binary_expression "iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3)" (binary_expression "iVar6 == 4" identifier == number_literal) || (parenthesized_expression "(iVar6 = GetImagePixelCacheType(), iVar6 == 3)" ( (comma_expression "iVar6 = GetImagePixelCacheType(), iVar6 == 3" (assignment_expression "iVar6 = GetImagePixelCacheType()" identifier = (call_expression "GetImagePixelCacheType()" identifier (argument_list "()" ( )))) , (binary_expression "iVar6 == 3" identifier == number_literal)) )))) )) ))) )) (compound_statement "{\n    iVar7 = GetMagickResourceLimit();\n    iVar6 = *(int *)(param_1 + 0x1c);\n    iVar8 = iVar6 + 0x3f;\n    if (-1 < iVar6) {\n      iVar8 = iVar6;\n    }\n    bVar1 = 0x7f < iVar6;\n    if (iVar7 < iVar8 >> 6) {\n      iVar6 = GetMagickResourceLimit();\n      bVar1 = 1 < iVar6;\n    }\n    if (bVar1) {\n      iVar7 = GetMagickResourceLimit();\n      iVar6 = *(int *)(param_1 + 0x1c);\n      iVar8 = iVar6 + 0x3f;\n      if (-1 < iVar6) {\n        iVar8 = iVar6;\n      }\n      if (iVar7 < iVar8 >> 6) {\n        GetMagickResourceLimit();\n      }\n    }\n  }" { (expression_statement "iVar7 = GetMagickResourceLimit();" (assignment_expression "iVar7 = GetMagickResourceLimit()" identifier = (call_expression "GetMagickResourceLimit()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar6 = *(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 "iVar8 = iVar6 + 0x3f;" (assignment_expression "iVar8 = iVar6 + 0x3f" identifier = (binary_expression "iVar6 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < iVar6) {\n      iVar8 = iVar6;\n    }" if (parenthesized_expression "(-1 < iVar6)" ( (binary_expression "-1 < iVar6" number_literal < identifier) )) (compound_statement "{\n      iVar8 = iVar6;\n    }" { (expression_statement "iVar8 = iVar6;" (assignment_expression "iVar8 = iVar6" identifier = identifier) ;) })) (expression_statement "bVar1 = 0x7f < iVar6;" (assignment_expression "bVar1 = 0x7f < iVar6" identifier = (binary_expression "0x7f < iVar6" number_literal < identifier)) ;) (if_statement "if (iVar7 < iVar8 >> 6) {\n      iVar6 = GetMagickResourceLimit();\n      bVar1 = 1 < iVar6;\n    }" if (parenthesized_expression "(iVar7 < iVar8 >> 6)" ( (binary_expression "iVar7 < iVar8 >> 6" identifier < (binary_expression "iVar8 >> 6" identifier >> number_literal)) )) (compound_statement "{\n      iVar6 = GetMagickResourceLimit();\n      bVar1 = 1 < iVar6;\n    }" { (expression_statement "iVar6 = GetMagickResourceLimit();" (assignment_expression "iVar6 = GetMagickResourceLimit()" identifier = (call_expression "GetMagickResourceLimit()" identifier (argument_list "()" ( )))) ;) (expression_statement "bVar1 = 1 < iVar6;" (assignment_expression "bVar1 = 1 < iVar6" identifier = (binary_expression "1 < iVar6" number_literal < identifier)) ;) })) (if_statement "if (bVar1) {\n      iVar7 = GetMagickResourceLimit();\n      iVar6 = *(int *)(param_1 + 0x1c);\n      iVar8 = iVar6 + 0x3f;\n      if (-1 < iVar6) {\n        iVar8 = iVar6;\n      }\n      if (iVar7 < iVar8 >> 6) {\n        GetMagickResourceLimit();\n      }\n    }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n      iVar7 = GetMagickResourceLimit();\n      iVar6 = *(int *)(param_1 + 0x1c);\n      iVar8 = iVar6 + 0x3f;\n      if (-1 < iVar6) {\n        iVar8 = iVar6;\n      }\n      if (iVar7 < iVar8 >> 6) {\n        GetMagickResourceLimit();\n      }\n    }" { (expression_statement "iVar7 = GetMagickResourceLimit();" (assignment_expression "iVar7 = GetMagickResourceLimit()" identifier = (call_expression "GetMagickResourceLimit()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar6 = *(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 "iVar8 = iVar6 + 0x3f;" (assignment_expression "iVar8 = iVar6 + 0x3f" identifier = (binary_expression "iVar6 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < iVar6) {\n        iVar8 = iVar6;\n      }" if (parenthesized_expression "(-1 < iVar6)" ( (binary_expression "-1 < iVar6" number_literal < identifier) )) (compound_statement "{\n        iVar8 = iVar6;\n      }" { (expression_statement "iVar8 = iVar6;" (assignment_expression "iVar8 = iVar6" identifier = identifier) ;) })) (if_statement "if (iVar7 < iVar8 >> 6) {\n        GetMagickResourceLimit();\n      }" if (parenthesized_expression "(iVar7 < iVar8 >> 6)" ( (binary_expression "iVar7 < iVar8 >> 6" identifier < (binary_expression "iVar8 >> 6" identifier >> number_literal)) )) (compound_statement "{\n        GetMagickResourceLimit();\n      }" { (expression_statement "GetMagickResourceLimit();" (call_expression "GetMagickResourceLimit()" identifier (argument_list "()" ( ))) ;) })) })) }) (else_clause "else {\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      uVar9 = GetMagickResourceLimit();\n      if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;\n    }\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      GetMagickResourceLimit();\n    }\n  }" else (compound_statement "{\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      uVar9 = GetMagickResourceLimit();\n      if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;\n    }\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      GetMagickResourceLimit();\n    }\n  }" { (expression_statement "uVar9 = GetMagickResourceLimit();" (assignment_expression "uVar9 = GetMagickResourceLimit()" identifier = (call_expression "GetMagickResourceLimit()" identifier (argument_list "()" ( )))) ;) (if_statement "if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      uVar9 = GetMagickResourceLimit();\n      if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;\n    }" if (parenthesized_expression "(((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2))" ( (binary_expression "((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)" (parenthesized_expression "((int)((ulonglong)uVar9 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar9 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar9 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar9 >> 0x20)" ( (binary_expression "(ulonglong)uVar9 >> 0x20" (cast_expression "(ulonglong)uVar9" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar9 < 2)" ( (binary_expression "(uint)uVar9 < 2" (cast_expression "(uint)uVar9" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n      uVar9 = GetMagickResourceLimit();\n      if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;\n    }" { (expression_statement "uVar9 = GetMagickResourceLimit();" (assignment_expression "uVar9 = GetMagickResourceLimit()" identifier = (call_expression "GetMagickResourceLimit()" identifier (argument_list "()" ( )))) ;) (if_statement "if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;" if (parenthesized_expression "(((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2))" ( (binary_expression "((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)" (parenthesized_expression "((int)((ulonglong)uVar9 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar9 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar9 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar9 >> 0x20)" ( (binary_expression "(ulonglong)uVar9 >> 0x20" (cast_expression "(ulonglong)uVar9" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar9 < 2)" ( (binary_expression "(uint)uVar9 < 2" (cast_expression "(uint)uVar9" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (goto_statement "goto LAB_000af7e0;" goto statement_identifier ;)) })) (expression_statement "uVar9 = GetMagickResourceLimit();" (assignment_expression "uVar9 = GetMagickResourceLimit()" identifier = (call_expression "GetMagickResourceLimit()" identifier (argument_list "()" ( )))) ;) (if_statement "if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      GetMagickResourceLimit();\n    }" if (parenthesized_expression "(((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2))" ( (binary_expression "((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)" (parenthesized_expression "((int)((ulonglong)uVar9 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar9 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar9 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar9 >> 0x20)" ( (binary_expression "(ulonglong)uVar9 >> 0x20" (cast_expression "(ulonglong)uVar9" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar9 < 2)" ( (binary_expression "(uint)uVar9 < 2" (cast_expression "(uint)uVar9" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n      GetMagickResourceLimit();\n    }" { (expression_statement "GetMagickResourceLimit();" (call_expression "GetMagickResourceLimit()" identifier (argument_list "()" ( ))) ;) })) }))) (labeled_statement "LAB_000af7e0:\n  local_40 = param_6;" statement_identifier : (expression_statement "local_40 = param_6;" (assignment_expression "local_40 = param_6" identifier = identifier) ;)) (expression_statement "local_44 = param_1;" (assignment_expression "local_44 = param_1" identifier = identifier) ;) (expression_statement "local_2c = &local_5c;" (assignment_expression "local_2c = &local_5c" identifier = (pointer_expression "&local_5c" & identifier)) ;) (expression_statement "local_54 = param_4;" (assignment_expression "local_54 = param_4" identifier = identifier) ;) (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" identifier = number_literal) ;) (expression_statement "local_4c = param_5 * dVar2;" (assignment_expression "local_4c = param_5 * dVar2" identifier = (binary_expression "param_5 * dVar2" identifier * identifier)) ;) (expression_statement "local_3c = uVar4;" (assignment_expression "local_3c = uVar4" identifier = identifier) ;) (expression_statement "local_38 = uVar5;" (assignment_expression "local_38 = uVar5" identifier = identifier) ;) (expression_statement "local_34 = iVar3;" (assignment_expression "local_34 = iVar3" identifier = identifier) ;) (expression_statement "GOMP_parallel();" (call_expression "GOMP_parallel()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar6 = local_30;" (assignment_expression "iVar6 = local_30" identifier = identifier) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x278) = *(undefined4 *)(param_1 + 0x278);" (assignment_expression "*(undefined4 *)(iVar3 + 0x278) = *(undefined4 *)(param_1 + 0x278)" (pointer_expression "*(undefined4 *)(iVar3 + 0x278)" * (cast_expression "(undefined4 *)(iVar3 + 0x278)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x278)" ( (binary_expression "iVar3 + 0x278" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x278)" * (cast_expression "(undefined4 *)(param_1 + 0x278)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x278)" ( (binary_expression "param_1 + 0x278" identifier + number_literal) ))))) ;) (expression_statement "DestroyCacheView();" (call_expression "DestroyCacheView()" identifier (argument_list "()" ( ))) ;) (expression_statement "DestroyCacheView();" (call_expression "DestroyCacheView()" identifier (argument_list "()" ( ))) ;) (if_statement "if (iVar6 == 0) {\n    iVar3 = DestroyImage();\n  }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar3 = DestroyImage();\n  }" { (expression_statement "iVar3 = DestroyImage();" (assignment_expression "iVar3 = DestroyImage()" identifier = (call_expression "DestroyImage()" identifier (argument_list "()" ( )))) ;) })) (labeled_statement "LAB_000af868:\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) , (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 ;) (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 ") ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (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 ( )))) , (binary_expression IDENT == LIT)) ))) )) && (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression (binary_expression IDENT == LIT) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT == LIT)) )))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (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 ( )))) ;) (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 ( )))) ;) (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) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT >> LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (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 ( )))) ;) (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 ( )))) ;) (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 (call_expression IDENT (argument_list ( ))) ;) })) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (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 = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_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 ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) })) (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 UnsharpMaskImage(int param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                    double param_5,int param_6)\n\n{\n  bool bVar1;\n  double dVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int in_GS_OFFSET;\n  undefined8 uVar9;\n  undefined4 local_5c;\n  undefined4 local_58;\n  undefined8 local_54;\n  double local_4c;\n  int local_44;\n  int local_40;\n  undefined4 local_3c;\n  undefined4 local_38;\n  int local_34;\n  int local_30;\n  undefined4 *local_2c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xaf6b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/effect.c","UnsharpMaskImage",0xf70,&DAT_002b6e4e,\n                   param_1 + 0x318);\n  }\n  if (param_6 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage");\n  }\n  iVar3 = BlurImage(param_1,param_2,param_3,param_6);\n  if (iVar3 == 0) goto LAB_000af868;\n  local_5c = 0;\n  dVar2 = (double)DAT_0029f710;\n  local_58 = 0;\n  uVar4 = AcquireVirtualCacheView();\n  uVar5 = AcquireAuthenticCacheView();\n  iVar6 = GetImagePixelCacheType();\n  if (((iVar6 == 4) || (iVar6 = GetImagePixelCacheType(), iVar6 == 3)) &&\n     ((iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3)))) {\n    iVar7 = GetMagickResourceLimit();\n    iVar6 = *(int *)(param_1 + 0x1c);\n    iVar8 = iVar6 + 0x3f;\n    if (-1 < iVar6) {\n      iVar8 = iVar6;\n    }\n    bVar1 = 0x7f < iVar6;\n    if (iVar7 < iVar8 >> 6) {\n      iVar6 = GetMagickResourceLimit();\n      bVar1 = 1 < iVar6;\n    }\n    if (bVar1) {\n      iVar7 = GetMagickResourceLimit();\n      iVar6 = *(int *)(param_1 + 0x1c);\n      iVar8 = iVar6 + 0x3f;\n      if (-1 < iVar6) {\n        iVar8 = iVar6;\n      }\n      if (iVar7 < iVar8 >> 6) {\n        GetMagickResourceLimit();\n      }\n    }\n  }\n  else {\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      uVar9 = GetMagickResourceLimit();\n      if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;\n    }\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      GetMagickResourceLimit();\n    }\n  }\nLAB_000af7e0:\n  local_40 = param_6;\n  local_44 = param_1;\n  local_2c = &local_5c;\n  local_54 = param_4;\n  local_30 = 1;\n  local_4c = param_5 * dVar2;\n  local_3c = uVar4;\n  local_38 = uVar5;\n  local_34 = iVar3;\n  GOMP_parallel();\n  iVar6 = local_30;\n  *(undefined4 *)(iVar3 + 0x278) = *(undefined4 *)(param_1 + 0x278);\n  DestroyCacheView();\n  DestroyCacheView();\n  if (iVar6 == 0) {\n    iVar3 = DestroyImage();\n  }\nLAB_000af868:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return iVar3;\n}" (primitive_type "int") (function_declarator "UnsharpMaskImage(int param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                    double param_5,int param_6)" (identifier "UnsharpMaskImage") (parameter_list "(int param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                    double param_5,int param_6)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) (, ",") (parameter_declaration "double param_5" (primitive_type "double") (identifier "param_5")) (, ",") (parameter_declaration "int param_6" (primitive_type "int") (identifier "param_6")) () ")"))) (compound_statement "{\n  bool bVar1;\n  double dVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int in_GS_OFFSET;\n  undefined8 uVar9;\n  undefined4 local_5c;\n  undefined4 local_58;\n  undefined8 local_54;\n  double local_4c;\n  int local_44;\n  int local_40;\n  undefined4 local_3c;\n  undefined4 local_38;\n  int local_34;\n  int local_30;\n  undefined4 *local_2c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xaf6b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/effect.c","UnsharpMaskImage",0xf70,&DAT_002b6e4e,\n                   param_1 + 0x318);\n  }\n  if (param_6 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage");\n  }\n  iVar3 = BlurImage(param_1,param_2,param_3,param_6);\n  if (iVar3 == 0) goto LAB_000af868;\n  local_5c = 0;\n  dVar2 = (double)DAT_0029f710;\n  local_58 = 0;\n  uVar4 = AcquireVirtualCacheView();\n  uVar5 = AcquireAuthenticCacheView();\n  iVar6 = GetImagePixelCacheType();\n  if (((iVar6 == 4) || (iVar6 = GetImagePixelCacheType(), iVar6 == 3)) &&\n     ((iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3)))) {\n    iVar7 = GetMagickResourceLimit();\n    iVar6 = *(int *)(param_1 + 0x1c);\n    iVar8 = iVar6 + 0x3f;\n    if (-1 < iVar6) {\n      iVar8 = iVar6;\n    }\n    bVar1 = 0x7f < iVar6;\n    if (iVar7 < iVar8 >> 6) {\n      iVar6 = GetMagickResourceLimit();\n      bVar1 = 1 < iVar6;\n    }\n    if (bVar1) {\n      iVar7 = GetMagickResourceLimit();\n      iVar6 = *(int *)(param_1 + 0x1c);\n      iVar8 = iVar6 + 0x3f;\n      if (-1 < iVar6) {\n        iVar8 = iVar6;\n      }\n      if (iVar7 < iVar8 >> 6) {\n        GetMagickResourceLimit();\n      }\n    }\n  }\n  else {\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      uVar9 = GetMagickResourceLimit();\n      if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;\n    }\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      GetMagickResourceLimit();\n    }\n  }\nLAB_000af7e0:\n  local_40 = param_6;\n  local_44 = param_1;\n  local_2c = &local_5c;\n  local_54 = param_4;\n  local_30 = 1;\n  local_4c = param_5 * dVar2;\n  local_3c = uVar4;\n  local_38 = uVar5;\n  local_34 = iVar3;\n  GOMP_parallel();\n  iVar6 = local_30;\n  *(undefined4 *)(iVar3 + 0x278) = *(undefined4 *)(param_1 + 0x278);\n  DestroyCacheView();\n  DestroyCacheView();\n  if (iVar6 == 0) {\n    iVar3 = DestroyImage();\n  }\nLAB_000af868:\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 "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined8 uVar9;" (type_identifier "undefined8") (identifier "uVar9") (; ";")) (declaration "undefined4 local_5c;" (type_identifier "undefined4") (identifier "local_5c") (; ";")) (declaration "undefined4 local_58;" (type_identifier "undefined4") (identifier "local_58") (; ";")) (declaration "undefined8 local_54;" (type_identifier "undefined8") (identifier "local_54") (; ";")) (declaration "double local_4c;" (primitive_type "double") (identifier "local_4c") (; ";")) (declaration "int local_44;" (primitive_type "int") (identifier "local_44") (; ";")) (declaration "int local_40;" (primitive_type "int") (identifier "local_40") (; ";")) (declaration "undefined4 local_3c;" (type_identifier "undefined4") (identifier "local_3c") (; ";")) (declaration "undefined4 local_38;" (type_identifier "undefined4") (identifier "local_38") (; ";")) (declaration "int local_34;" (primitive_type "int") (identifier "local_34") (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "undefined4 *local_2c;" (type_identifier "undefined4") (pointer_declarator "*local_2c" (* "*") (identifier "local_2c")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0xaf6b9;" (assignment_expression "uStack_14 = 0xaf6b9" (identifier "uStack_14") (= "=") (number_literal "0xaf6b9")) (; ";")) (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 != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage");\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 != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage");\n  }" ({ "{") (expression_statement "__assert_fail("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage");" (call_expression "__assert_fail("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage")" (identifier "__assert_fail") (argument_list "("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage")" (( "(") (string_literal ""image != (const Image *) NULL"" (" """) (string_content "image != (const Image *) NULL") (" """)) (, ",") (string_literal ""MagickCore/effect.c"" (" """) (string_content "MagickCore/effect.c") (" """)) (, ",") (number_literal "0xf6d") (, ",") (string_literal ""UnsharpMaskImage"" (" """) (string_content "UnsharpMaskImage") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage");\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/effect.c",0xf6e,\n                  "UnsharpMaskImage");\n  }" ({ "{") (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage")" (identifier "__assert_fail") (argument_list "("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,\n                  "UnsharpMaskImage")" (( "(") (string_literal ""image->signature == MagickCoreSignature"" (" """) (string_content "image->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/effect.c"" (" """) (string_content "MagickCore/effect.c") (" """)) (, ",") (number_literal "0xf6e") (, ",") (string_literal ""UnsharpMaskImage"" (" """) (string_content "UnsharpMaskImage") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/effect.c","UnsharpMaskImage",0xf70,&DAT_002b6e4e,\n                   param_1 + 0x318);\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/effect.c","UnsharpMaskImage",0xf70,&DAT_002b6e4e,\n                   param_1 + 0x318);\n  }" ({ "{") (expression_statement "LogMagickEvent(0x8000,"MagickCore/effect.c","UnsharpMaskImage",0xf70,&DAT_002b6e4e,\n                   param_1 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/effect.c","UnsharpMaskImage",0xf70,&DAT_002b6e4e,\n                   param_1 + 0x318)" (identifier "LogMagickEvent") (argument_list "(0x8000,"MagickCore/effect.c","UnsharpMaskImage",0xf70,&DAT_002b6e4e,\n                   param_1 + 0x318)" (( "(") (number_literal "0x8000") (, ",") (string_literal ""MagickCore/effect.c"" (" """) (string_content "MagickCore/effect.c") (" """)) (, ",") (string_literal ""UnsharpMaskImage"" (" """) (string_content "UnsharpMaskImage") (" """)) (, ",") (number_literal "0xf70") (, ",") (pointer_expression "&DAT_002b6e4e" (& "&") (identifier "DAT_002b6e4e")) (, ",") (binary_expression "param_1 + 0x318" (identifier "param_1") (+ "+") (number_literal "0x318")) () ")"))) (; ";")) (} "}"))) (if_statement "if (param_6 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage");\n  }" (if "if") (parenthesized_expression "(param_6 == 0)" (( "(") (binary_expression "param_6 == 0" (identifier "param_6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage");\n  }" ({ "{") (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage")" (identifier "__assert_fail") (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,\n                  "UnsharpMaskImage")" (( "(") (string_literal ""exception != (ExceptionInfo *) NULL"" (" """) (string_content "exception != (ExceptionInfo *) NULL") (" """)) (, ",") (string_literal ""MagickCore/effect.c"" (" """) (string_content "MagickCore/effect.c") (" """)) (, ",") (number_literal "0xf71") (, ",") (string_literal ""UnsharpMaskImage"" (" """) (string_content "UnsharpMaskImage") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar3 = BlurImage(param_1,param_2,param_3,param_6);" (assignment_expression "iVar3 = BlurImage(param_1,param_2,param_3,param_6)" (identifier "iVar3") (= "=") (call_expression "BlurImage(param_1,param_2,param_3,param_6)" (identifier "BlurImage") (argument_list "(param_1,param_2,param_3,param_6)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_6") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) goto LAB_000af868;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000af868;" (goto "goto") (statement_identifier "LAB_000af868") (; ";"))) (expression_statement "local_5c = 0;" (assignment_expression "local_5c = 0" (identifier "local_5c") (= "=") (number_literal "0")) (; ";")) (expression_statement "dVar2 = (double)DAT_0029f710;" (assignment_expression "dVar2 = (double)DAT_0029f710" (identifier "dVar2") (= "=") (cast_expression "(double)DAT_0029f710" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "DAT_0029f710"))) (; ";")) (expression_statement "local_58 = 0;" (assignment_expression "local_58 = 0" (identifier "local_58") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar4 = AcquireVirtualCacheView();" (assignment_expression "uVar4 = AcquireVirtualCacheView()" (identifier "uVar4") (= "=") (call_expression "AcquireVirtualCacheView()" (identifier "AcquireVirtualCacheView") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar5 = AcquireAuthenticCacheView();" (assignment_expression "uVar5 = AcquireAuthenticCacheView()" (identifier "uVar5") (= "=") (call_expression "AcquireAuthenticCacheView()" (identifier "AcquireAuthenticCacheView") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar6 = GetImagePixelCacheType();" (assignment_expression "iVar6 = GetImagePixelCacheType()" (identifier "iVar6") (= "=") (call_expression "GetImagePixelCacheType()" (identifier "GetImagePixelCacheType") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (((iVar6 == 4) || (iVar6 = GetImagePixelCacheType(), iVar6 == 3)) &&\n     ((iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3)))) {\n    iVar7 = GetMagickResourceLimit();\n    iVar6 = *(int *)(param_1 + 0x1c);\n    iVar8 = iVar6 + 0x3f;\n    if (-1 < iVar6) {\n      iVar8 = iVar6;\n    }\n    bVar1 = 0x7f < iVar6;\n    if (iVar7 < iVar8 >> 6) {\n      iVar6 = GetMagickResourceLimit();\n      bVar1 = 1 < iVar6;\n    }\n    if (bVar1) {\n      iVar7 = GetMagickResourceLimit();\n      iVar6 = *(int *)(param_1 + 0x1c);\n      iVar8 = iVar6 + 0x3f;\n      if (-1 < iVar6) {\n        iVar8 = iVar6;\n      }\n      if (iVar7 < iVar8 >> 6) {\n        GetMagickResourceLimit();\n      }\n    }\n  }\n  else {\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      uVar9 = GetMagickResourceLimit();\n      if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;\n    }\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      GetMagickResourceLimit();\n    }\n  }" (if "if") (parenthesized_expression "(((iVar6 == 4) || (iVar6 = GetImagePixelCacheType(), iVar6 == 3)) &&\n     ((iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3))))" (( "(") (binary_expression "((iVar6 == 4) || (iVar6 = GetImagePixelCacheType(), iVar6 == 3)) &&\n     ((iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3)))" (parenthesized_expression "((iVar6 == 4) || (iVar6 = GetImagePixelCacheType(), iVar6 == 3))" (( "(") (binary_expression "(iVar6 == 4) || (iVar6 = GetImagePixelCacheType(), iVar6 == 3)" (parenthesized_expression "(iVar6 == 4)" (( "(") (binary_expression "iVar6 == 4" (identifier "iVar6") (== "==") (number_literal "4")) () ")")) (|| "||") (parenthesized_expression "(iVar6 = GetImagePixelCacheType(), iVar6 == 3)" (( "(") (comma_expression "iVar6 = GetImagePixelCacheType(), iVar6 == 3" (assignment_expression "iVar6 = GetImagePixelCacheType()" (identifier "iVar6") (= "=") (call_expression "GetImagePixelCacheType()" (identifier "GetImagePixelCacheType") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar6 == 3" (identifier "iVar6") (== "==") (number_literal "3"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3)))" (( "(") (parenthesized_expression "(iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3))" (( "(") (comma_expression "iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3)" (assignment_expression "iVar6 = GetImagePixelCacheType()" (identifier "iVar6") (= "=") (call_expression "GetImagePixelCacheType()" (identifier "GetImagePixelCacheType") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar6 == 4 ||\n      (iVar6 = GetImagePixelCacheType(), iVar6 == 3)" (binary_expression "iVar6 == 4" (identifier "iVar6") (== "==") (number_literal "4")) (|| "||") (parenthesized_expression "(iVar6 = GetImagePixelCacheType(), iVar6 == 3)" (( "(") (comma_expression "iVar6 = GetImagePixelCacheType(), iVar6 == 3" (assignment_expression "iVar6 = GetImagePixelCacheType()" (identifier "iVar6") (= "=") (call_expression "GetImagePixelCacheType()" (identifier "GetImagePixelCacheType") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar6 == 3" (identifier "iVar6") (== "==") (number_literal "3"))) () ")")))) () ")")) () ")"))) () ")")) (compound_statement "{\n    iVar7 = GetMagickResourceLimit();\n    iVar6 = *(int *)(param_1 + 0x1c);\n    iVar8 = iVar6 + 0x3f;\n    if (-1 < iVar6) {\n      iVar8 = iVar6;\n    }\n    bVar1 = 0x7f < iVar6;\n    if (iVar7 < iVar8 >> 6) {\n      iVar6 = GetMagickResourceLimit();\n      bVar1 = 1 < iVar6;\n    }\n    if (bVar1) {\n      iVar7 = GetMagickResourceLimit();\n      iVar6 = *(int *)(param_1 + 0x1c);\n      iVar8 = iVar6 + 0x3f;\n      if (-1 < iVar6) {\n        iVar8 = iVar6;\n      }\n      if (iVar7 < iVar8 >> 6) {\n        GetMagickResourceLimit();\n      }\n    }\n  }" ({ "{") (expression_statement "iVar7 = GetMagickResourceLimit();" (assignment_expression "iVar7 = GetMagickResourceLimit()" (identifier "iVar7") (= "=") (call_expression "GetMagickResourceLimit()" (identifier "GetMagickResourceLimit") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar6 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x1c)" (identifier "iVar6") (= "=") (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 "iVar8 = iVar6 + 0x3f;" (assignment_expression "iVar8 = iVar6 + 0x3f" (identifier "iVar8") (= "=") (binary_expression "iVar6 + 0x3f" (identifier "iVar6") (+ "+") (number_literal "0x3f"))) (; ";")) (if_statement "if (-1 < iVar6) {\n      iVar8 = iVar6;\n    }" (if "if") (parenthesized_expression "(-1 < iVar6)" (( "(") (binary_expression "-1 < iVar6" (number_literal "-1") (< "<") (identifier "iVar6")) () ")")) (compound_statement "{\n      iVar8 = iVar6;\n    }" ({ "{") (expression_statement "iVar8 = iVar6;" (assignment_expression "iVar8 = iVar6" (identifier "iVar8") (= "=") (identifier "iVar6")) (; ";")) (} "}"))) (expression_statement "bVar1 = 0x7f < iVar6;" (assignment_expression "bVar1 = 0x7f < iVar6" (identifier "bVar1") (= "=") (binary_expression "0x7f < iVar6" (number_literal "0x7f") (< "<") (identifier "iVar6"))) (; ";")) (if_statement "if (iVar7 < iVar8 >> 6) {\n      iVar6 = GetMagickResourceLimit();\n      bVar1 = 1 < iVar6;\n    }" (if "if") (parenthesized_expression "(iVar7 < iVar8 >> 6)" (( "(") (binary_expression "iVar7 < iVar8 >> 6" (identifier "iVar7") (< "<") (binary_expression "iVar8 >> 6" (identifier "iVar8") (>> ">>") (number_literal "6"))) () ")")) (compound_statement "{\n      iVar6 = GetMagickResourceLimit();\n      bVar1 = 1 < iVar6;\n    }" ({ "{") (expression_statement "iVar6 = GetMagickResourceLimit();" (assignment_expression "iVar6 = GetMagickResourceLimit()" (identifier "iVar6") (= "=") (call_expression "GetMagickResourceLimit()" (identifier "GetMagickResourceLimit") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "bVar1 = 1 < iVar6;" (assignment_expression "bVar1 = 1 < iVar6" (identifier "bVar1") (= "=") (binary_expression "1 < iVar6" (number_literal "1") (< "<") (identifier "iVar6"))) (; ";")) (} "}"))) (if_statement "if (bVar1) {\n      iVar7 = GetMagickResourceLimit();\n      iVar6 = *(int *)(param_1 + 0x1c);\n      iVar8 = iVar6 + 0x3f;\n      if (-1 < iVar6) {\n        iVar8 = iVar6;\n      }\n      if (iVar7 < iVar8 >> 6) {\n        GetMagickResourceLimit();\n      }\n    }" (if "if") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (compound_statement "{\n      iVar7 = GetMagickResourceLimit();\n      iVar6 = *(int *)(param_1 + 0x1c);\n      iVar8 = iVar6 + 0x3f;\n      if (-1 < iVar6) {\n        iVar8 = iVar6;\n      }\n      if (iVar7 < iVar8 >> 6) {\n        GetMagickResourceLimit();\n      }\n    }" ({ "{") (expression_statement "iVar7 = GetMagickResourceLimit();" (assignment_expression "iVar7 = GetMagickResourceLimit()" (identifier "iVar7") (= "=") (call_expression "GetMagickResourceLimit()" (identifier "GetMagickResourceLimit") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar6 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x1c)" (identifier "iVar6") (= "=") (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 "iVar8 = iVar6 + 0x3f;" (assignment_expression "iVar8 = iVar6 + 0x3f" (identifier "iVar8") (= "=") (binary_expression "iVar6 + 0x3f" (identifier "iVar6") (+ "+") (number_literal "0x3f"))) (; ";")) (if_statement "if (-1 < iVar6) {\n        iVar8 = iVar6;\n      }" (if "if") (parenthesized_expression "(-1 < iVar6)" (( "(") (binary_expression "-1 < iVar6" (number_literal "-1") (< "<") (identifier "iVar6")) () ")")) (compound_statement "{\n        iVar8 = iVar6;\n      }" ({ "{") (expression_statement "iVar8 = iVar6;" (assignment_expression "iVar8 = iVar6" (identifier "iVar8") (= "=") (identifier "iVar6")) (; ";")) (} "}"))) (if_statement "if (iVar7 < iVar8 >> 6) {\n        GetMagickResourceLimit();\n      }" (if "if") (parenthesized_expression "(iVar7 < iVar8 >> 6)" (( "(") (binary_expression "iVar7 < iVar8 >> 6" (identifier "iVar7") (< "<") (binary_expression "iVar8 >> 6" (identifier "iVar8") (>> ">>") (number_literal "6"))) () ")")) (compound_statement "{\n        GetMagickResourceLimit();\n      }" ({ "{") (expression_statement "GetMagickResourceLimit();" (call_expression "GetMagickResourceLimit()" (identifier "GetMagickResourceLimit") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}"))) (} "}")) (else_clause "else {\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      uVar9 = GetMagickResourceLimit();\n      if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;\n    }\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      GetMagickResourceLimit();\n    }\n  }" (else "else") (compound_statement "{\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      uVar9 = GetMagickResourceLimit();\n      if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;\n    }\n    uVar9 = GetMagickResourceLimit();\n    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      GetMagickResourceLimit();\n    }\n  }" ({ "{") (expression_statement "uVar9 = GetMagickResourceLimit();" (assignment_expression "uVar9 = GetMagickResourceLimit()" (identifier "uVar9") (= "=") (call_expression "GetMagickResourceLimit()" (identifier "GetMagickResourceLimit") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      uVar9 = GetMagickResourceLimit();\n      if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;\n    }" (if "if") (parenthesized_expression "(((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2))" (( "(") (binary_expression "((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)" (parenthesized_expression "((int)((ulonglong)uVar9 >> 0x20) == 0)" (( "(") (binary_expression "(int)((ulonglong)uVar9 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar9 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar9 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar9 >> 0x20" (cast_expression "(ulonglong)uVar9" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar9")) (>> ">>") (number_literal "0x20")) () ")"))) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((uint)uVar9 < 2)" (( "(") (binary_expression "(uint)uVar9 < 2" (cast_expression "(uint)uVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar9")) (< "<") (number_literal "2")) () ")"))) () ")")) (compound_statement "{\n      uVar9 = GetMagickResourceLimit();\n      if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;\n    }" ({ "{") (expression_statement "uVar9 = GetMagickResourceLimit();" (assignment_expression "uVar9 = GetMagickResourceLimit()" (identifier "uVar9") (= "=") (call_expression "GetMagickResourceLimit()" (identifier "GetMagickResourceLimit") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;" (if "if") (parenthesized_expression "(((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2))" (( "(") (binary_expression "((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)" (parenthesized_expression "((int)((ulonglong)uVar9 >> 0x20) == 0)" (( "(") (binary_expression "(int)((ulonglong)uVar9 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar9 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar9 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar9 >> 0x20" (cast_expression "(ulonglong)uVar9" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar9")) (>> ">>") (number_literal "0x20")) () ")"))) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((uint)uVar9 < 2)" (( "(") (binary_expression "(uint)uVar9 < 2" (cast_expression "(uint)uVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar9")) (< "<") (number_literal "2")) () ")"))) () ")")) (goto_statement "goto LAB_000af7e0;" (goto "goto") (statement_identifier "LAB_000af7e0") (; ";"))) (} "}"))) (expression_statement "uVar9 = GetMagickResourceLimit();" (assignment_expression "uVar9 = GetMagickResourceLimit()" (identifier "uVar9") (= "=") (call_expression "GetMagickResourceLimit()" (identifier "GetMagickResourceLimit") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {\n      GetMagickResourceLimit();\n    }" (if "if") (parenthesized_expression "(((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2))" (( "(") (binary_expression "((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)" (parenthesized_expression "((int)((ulonglong)uVar9 >> 0x20) == 0)" (( "(") (binary_expression "(int)((ulonglong)uVar9 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar9 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar9 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar9 >> 0x20" (cast_expression "(ulonglong)uVar9" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar9")) (>> ">>") (number_literal "0x20")) () ")"))) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((uint)uVar9 < 2)" (( "(") (binary_expression "(uint)uVar9 < 2" (cast_expression "(uint)uVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar9")) (< "<") (number_literal "2")) () ")"))) () ")")) (compound_statement "{\n      GetMagickResourceLimit();\n    }" ({ "{") (expression_statement "GetMagickResourceLimit();" (call_expression "GetMagickResourceLimit()" (identifier "GetMagickResourceLimit") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}")))) (labeled_statement "LAB_000af7e0:\n  local_40 = param_6;" (statement_identifier "LAB_000af7e0") (: ":") (expression_statement "local_40 = param_6;" (assignment_expression "local_40 = param_6" (identifier "local_40") (= "=") (identifier "param_6")) (; ";"))) (expression_statement "local_44 = param_1;" (assignment_expression "local_44 = param_1" (identifier "local_44") (= "=") (identifier "param_1")) (; ";")) (expression_statement "local_2c = &local_5c;" (assignment_expression "local_2c = &local_5c" (identifier "local_2c") (= "=") (pointer_expression "&local_5c" (& "&") (identifier "local_5c"))) (; ";")) (expression_statement "local_54 = param_4;" (assignment_expression "local_54 = param_4" (identifier "local_54") (= "=") (identifier "param_4")) (; ";")) (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" (identifier "local_30") (= "=") (number_literal "1")) (; ";")) (expression_statement "local_4c = param_5 * dVar2;" (assignment_expression "local_4c = param_5 * dVar2" (identifier "local_4c") (= "=") (binary_expression "param_5 * dVar2" (identifier "param_5") (* "*") (identifier "dVar2"))) (; ";")) (expression_statement "local_3c = uVar4;" (assignment_expression "local_3c = uVar4" (identifier "local_3c") (= "=") (identifier "uVar4")) (; ";")) (expression_statement "local_38 = uVar5;" (assignment_expression "local_38 = uVar5" (identifier "local_38") (= "=") (identifier "uVar5")) (; ";")) (expression_statement "local_34 = iVar3;" (assignment_expression "local_34 = iVar3" (identifier "local_34") (= "=") (identifier "iVar3")) (; ";")) (expression_statement "GOMP_parallel();" (call_expression "GOMP_parallel()" (identifier "GOMP_parallel") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar6 = local_30;" (assignment_expression "iVar6 = local_30" (identifier "iVar6") (= "=") (identifier "local_30")) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 0x278) = *(undefined4 *)(param_1 + 0x278);" (assignment_expression "*(undefined4 *)(iVar3 + 0x278) = *(undefined4 *)(param_1 + 0x278)" (pointer_expression "*(undefined4 *)(iVar3 + 0x278)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x278)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x278)" (( "(") (binary_expression "iVar3 + 0x278" (identifier "iVar3") (+ "+") (number_literal "0x278")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x278)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x278)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x278)" (( "(") (binary_expression "param_1 + 0x278" (identifier "param_1") (+ "+") (number_literal "0x278")) () ")"))))) (; ";")) (expression_statement "DestroyCacheView();" (call_expression "DestroyCacheView()" (identifier "DestroyCacheView") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "DestroyCacheView();" (call_expression "DestroyCacheView()" (identifier "DestroyCacheView") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (iVar6 == 0) {\n    iVar3 = DestroyImage();\n  }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = DestroyImage();\n  }" ({ "{") (expression_statement "iVar3 = DestroyImage();" (assignment_expression "iVar3 = DestroyImage()" (identifier "iVar3") (= "=") (call_expression "DestroyImage()" (identifier "DestroyImage") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}"))) (labeled_statement "LAB_000af868:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }" (statement_identifier "LAB_000af868") (: ":") (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_1 *var_2,double radius,double sigma,double gain,double var_18,
                        type_2 *var_6)

{
  size_t var_16;
  bool bVar2;
  double var_19;
  int var_22;
  type_1 *var_8;
  type_3 *cache_view;
  type_3 *cache_view_00;
  type_4 var_12;
  size_t sVar6;
  int var_1;
  type_5 var_17;
  type_6 progress;
  double local_54;
  double local_4c;
  type_1 *local_44;
  type_2 *local_40;
  type_3 *local_3c;
  type_3 *local_38;
  type_1 *local_34;
  int local_30;
  type_6 *local_2c;
  int var_24;
  type_7 uStack_14;
  
  uStack_14 = 0xaf6b9;
  var_24 = *(int *)(var_1 + 0x14);
  if (var_2 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"UnsharpMaskImage");
  }
  if (var_2->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    var_3("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,
                  "UnsharpMaskImage");
  }
  if (var_2->debug != var_4) {
    var_5(TraceEvent,"MagickCore/effect.c","UnsharpMaskImage",0xf70,"%s",var_2->filename);
  }
  if (var_6 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,
                  "UnsharpMaskImage");
  }
  var_8 = var_7(var_2,radius,sigma,var_6);
  if (var_8 == (type_1 *)0x0) goto LAB_000af868;
  progress._0_4_ = 0;
  var_19 = (double)DAT_0029f710;
  progress._4_4_ = 0;
  cache_view = var_9(var_2,var_6);
  cache_view_00 = var_10(var_8,var_6);
  var_12 = var_11(var_2);
  if (((var_12 == var_13) || (var_12 = var_11(var_2), var_12 == var_14)) &&
     ((var_12 = var_11(var_8), var_12 == var_13 ||
      (var_12 = var_11(var_8), var_12 == var_14)))) {
    var_17 = var_15(ThreadResource);
    var_16 = var_2->rows;
    sVar6 = var_16 + 0x3f;
    if (-1 < (int)var_16) {
      sVar6 = var_16;
    }
    bVar2 = 0x7f < (int)var_16;
    if ((int)var_17 < (int)sVar6 >> 6) {
      var_17 = var_15(ThreadResource);
      bVar2 = 1 < (int)var_17;
    }
    if (bVar2) {
      var_17 = var_15(ThreadResource);
      var_16 = var_2->rows;
      sVar6 = var_16 + 0x3f;
      if (-1 < (int)var_16) {
        sVar6 = var_16;
      }
      if ((int)var_17 < (int)sVar6 >> 6) {
        var_15(ThreadResource);
      }
    }
  }
  else {
    var_17 = var_15(ThreadResource);
    if (((int)(var_17 >> 0x20) == 0) && ((type_8)var_17 < 2)) {
      var_17 = var_15(ThreadResource);
      if (((int)(var_17 >> 0x20) == 0) && ((type_8)var_17 < 2)) goto LAB_000af7e0;
    }
    var_17 = var_15(ThreadResource);
    if (((int)(var_17 >> 0x20) == 0) && ((type_8)var_17 < 2)) {
      var_15(ThreadResource);
    }
  }
LAB_000af7e0:
  local_40 = var_6;
  local_44 = var_2;
  local_2c = &progress;
  local_54 = gain;
  local_30 = 1;
  local_4c = var_18 * var_19;
  local_3c = cache_view;
  local_38 = cache_view_00;
  local_34 = var_8;
  var_20();
  var_22 = local_30;
  var_8->type = var_2->type;
  var_21(cache_view_00);
  var_21(cache_view);
  if (var_22 == 0) {
    var_8 = var_23(var_8);
  }
LAB_000af868:
  if (var_24 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_25();
  }
  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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) 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: (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: (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: (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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (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))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (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: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (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))) 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))) 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))) 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)))) (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)))) (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)))) (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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (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)))) (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)))) (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 (call_expression function: (identifier) arguments: (argument_list)))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) (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: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_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))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))))) (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,undefined8 param_2,undefined8 param_3,undefined8 param_4,
                    double param_5,int param_6)

{
  bool bVar1;
  double dVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  int in_GS_OFFSET;
  undefined8 uVar9;
  undefined4 local_5c;
  undefined4 local_58;
  undefined8 local_54;
  double local_4c;
  int local_44;
  int local_40;
  undefined4 local_3c;
  undefined4 local_38;
  int local_34;
  int local_30;
  undefined4 *local_2c;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0xaf6b9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (const Image *) NULL","MagickCore/effect.c",0xf6d,"MASKED");
  }
  if (*(int *)(param_1 + 0x3344) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->signature == MagickCoreSignature","MagickCore/effect.c",0xf6e,
                  "MASKED");
  }
  if (*(int *)(param_1 + 0x3328) != 0) {
    LogMagickEvent(0x8000,"MagickCore/effect.c","MASKED",0xf70,&DAT_002b6e4e,
                   param_1 + 0x318);
  }
  if (param_6 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/effect.c",0xf71,
                  "MASKED");
  }
  iVar3 = BlurImage(param_1,param_2,param_3,param_6);
  if (iVar3 == 0) goto LAB_000af868;
  local_5c = 0;
  dVar2 = (double)DAT_0029f710;
  local_58 = 0;
  uVar4 = AcquireVirtualCacheView();
  uVar5 = AcquireAuthenticCacheView();
  iVar6 = GetImagePixelCacheType();
  if (((iVar6 == 4) || (iVar6 = GetImagePixelCacheType(), iVar6 == 3)) &&
     ((iVar6 = GetImagePixelCacheType(), iVar6 == 4 ||
      (iVar6 = GetImagePixelCacheType(), iVar6 == 3)))) {
    iVar7 = GetMagickResourceLimit();
    iVar6 = *(int *)(param_1 + 0x1c);
    iVar8 = iVar6 + 0x3f;
    if (-1 < iVar6) {
      iVar8 = iVar6;
    }
    bVar1 = 0x7f < iVar6;
    if (iVar7 < iVar8 >> 6) {
      iVar6 = GetMagickResourceLimit();
      bVar1 = 1 < iVar6;
    }
    if (bVar1) {
      iVar7 = GetMagickResourceLimit();
      iVar6 = *(int *)(param_1 + 0x1c);
      iVar8 = iVar6 + 0x3f;
      if (-1 < iVar6) {
        iVar8 = iVar6;
      }
      if (iVar7 < iVar8 >> 6) {
        GetMagickResourceLimit();
      }
    }
  }
  else {
    uVar9 = GetMagickResourceLimit();
    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {
      uVar9 = GetMagickResourceLimit();
      if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) goto LAB_000af7e0;
    }
    uVar9 = GetMagickResourceLimit();
    if (((int)((ulonglong)uVar9 >> 0x20) == 0) && ((uint)uVar9 < 2)) {
      GetMagickResourceLimit();
    }
  }
LAB_000af7e0:
  local_40 = param_6;
  local_44 = param_1;
  local_2c = &local_5c;
  local_54 = param_4;
  local_30 = 1;
  local_4c = param_5 * dVar2;
  local_3c = uVar4;
  local_38 = uVar5;
  local_34 = iVar3;
  GOMP_parallel();
  iVar6 = local_30;
  *(undefined4 *)(iVar3 + 0x278) = *(undefined4 *)(param_1 + 0x278);
  DestroyCacheView();
  DestroyCacheView();
  if (iVar6 == 0) {
    iVar3 = DestroyImage();
  }
LAB_000af868:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0029eab0();
  }
  return iVar3;
}

