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

MagickBooleanType
RandomThresholdImage
          (Image *image,double min_threshold,double max_threshold,ExceptionInfo *exception)

{
  int iVar1;
  bool bVar2;
  MagickBooleanType MVar3;
  size_t sVar4;
  undefined4 *__s;
  RandomInfo *pRVar5;
  CacheView *cache_view;
  ulong uVar6;
  int iVar7;
  CacheType CVar8;
  ExceptionInfo *exception_00;
  int *piVar9;
  char *string;
  size_t sVar10;
  undefined4 *puVar11;
  undefined4 *puVar12;
  int in_GS_OFFSET;
  MagickSizeType MVar13;
  MagickOffsetType progress;
  double local_9c;
  double local_94;
  Image *local_8c;
  ExceptionInfo *local_88;
  CacheView *local_84;
  undefined4 *local_80;
  MagickBooleanType local_7c;
  MagickOffsetType *local_78;
  PixelInfo threshold;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (image == (Image *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage");
  }
  if (image->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,
                  "RandomThresholdImage");
  }
  if (image->debug != MagickFalse) {
    LogMagickEvent(TraceEvent,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,"%s",
                   image->filename);
  }
  if (exception == (ExceptionInfo *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,
                  "RandomThresholdImage");
  }
  if (exception->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,
                  "RandomThresholdImage");
  }
  MVar3 = SetImageStorageClass(image,DirectClass,exception);
  if (MVar3 == MagickFalse) goto LAB_001af657;
  GetPixelInfo(image,&threshold);
  progress._0_4_ = 0;
  progress._4_4_ = 0;
  MVar13 = GetMagickResourceLimit(ThreadResource);
  sVar4 = (size_t)MVar13;
  __s = (undefined4 *)AcquireQuantumMemory(sVar4,4);
  if (__s == (undefined4 *)0x0) {
    exception_00 = AcquireExceptionInfo();
    piVar9 = __errno_location();
    string = GetExceptionMessage(*piVar9);
    ThrowMagickException
              (exception_00,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,
               FatalErrorException,"MemoryAllocationFailed","`%s\'",string);
    DestroyString(string);
    CatchException(exception_00);
    DestroyExceptionInfo(exception_00);
    MagickCoreTerminus();
                    /* WARNING: Subroutine does not return */
    _exit(1);
  }
  memset(__s,0,sVar4 * 4);
  if (0 < (int)sVar4) {
    puVar11 = __s;
    do {
      pRVar5 = AcquireRandomInfo();
      puVar12 = puVar11 + 1;
      *puVar11 = pRVar5;
      puVar11 = puVar12;
    } while (puVar12 != __s + sVar4);
  }
  cache_view = AcquireAuthenticCacheView(image,exception);
  uVar6 = GetRandomSecretKey((RandomInfo *)*__s);
  if (uVar6 == 0xffffffff) {
    CVar8 = GetImagePixelCacheType(image);
    if (((CVar8 == MemoryCache) || (CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache)) &&
       ((CVar8 = GetImagePixelCacheType(image), CVar8 == MemoryCache ||
        (CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache)))) {
      MVar13 = GetMagickResourceLimit(ThreadResource);
      sVar4 = image->rows;
      sVar10 = sVar4 + 0x3f;
      if (-1 < (int)sVar4) {
        sVar10 = sVar4;
      }
      bVar2 = 0x7f < (int)sVar4;
      if ((int)MVar13 < (int)sVar10 >> 6) {
        MVar13 = GetMagickResourceLimit(ThreadResource);
        bVar2 = 1 < (int)MVar13;
      }
      if (!bVar2) goto LAB_001af728;
      MVar13 = GetMagickResourceLimit(ThreadResource);
      sVar4 = image->rows;
      sVar10 = sVar4 + 0x3f;
      if (-1 < (int)sVar4) {
        sVar10 = sVar4;
      }
      iVar7 = (int)sVar10 >> 6;
      if ((int)MVar13 < iVar7) {
        MVar13 = GetMagickResourceLimit(ThreadResource);
        iVar7 = (int)MVar13;
      }
    }
    else {
      MVar13 = GetMagickResourceLimit(ThreadResource);
      if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) {
        MVar13 = GetMagickResourceLimit(ThreadResource);
        if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) goto LAB_001af728;
      }
      MVar13 = GetMagickResourceLimit(ThreadResource);
      if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) {
        MVar13 = GetMagickResourceLimit(ThreadResource);
        iVar7 = (int)MVar13;
      }
      else {
        iVar7 = 2;
      }
    }
  }
  else {
LAB_001af728:
    iVar7 = 1;
  }
  local_8c = image;
  local_7c = MagickTrue;
  local_94 = max_threshold;
  local_88 = exception;
  local_78 = &progress;
  local_9c = min_threshold;
  local_84 = cache_view;
  local_80 = __s;
  GOMP_parallel(RandomThresholdImage__omp_fn_7,&local_9c,iVar7,0);
  MVar3 = local_7c;
  DestroyCacheView(cache_view);
  for (iVar7 = 0; MVar13 = GetMagickResourceLimit(ThreadResource), iVar7 < (int)MVar13;
      iVar7 = iVar7 + 1) {
    if ((RandomInfo *)__s[iVar7] != (RandomInfo *)0x0) {
      pRVar5 = DestroyRandomInfo((RandomInfo *)__s[iVar7]);
      __s[iVar7] = pRVar5;
    }
  }
  RelinquishMagickMemory(__s);
LAB_001af657:
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return MVar3;
}



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

int RandomThresholdImage(int param_1,undefined8 param_2,undefined8 param_3,int param_4)

{
  bool bVar1;
  int iVar2;
  undefined4 *__s;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  int *piVar6;
  undefined4 uVar7;
  undefined4 *puVar8;
  undefined4 *puVar9;
  int in_GS_OFFSET;
  undefined8 uVar10;
  undefined4 local_a4;
  undefined4 local_a0;
  undefined8 local_9c;
  undefined8 local_94;
  int local_8c;
  int local_88;
  undefined4 local_84;
  undefined4 *local_80;
  int local_7c;
  undefined4 *local_78;
  undefined1 local_70 [80];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1af5b9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage");
  }
  if (*(int *)(param_1 + 0x3344) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,
                  "RandomThresholdImage");
  }
  if (*(int *)(param_1 + 0x3328) != 0) {
    LogMagickEvent(0x8000,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,&DAT_002b6e4e,
                   param_1 + 0x318);
  }
  if (param_4 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,
                  "RandomThresholdImage");
  }
  if (*(int *)(param_4 + 0x1c) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,
                  "RandomThresholdImage");
  }
  iVar2 = SetImageStorageClass(param_1,1,param_4);
  if (iVar2 == 0) goto LAB_001af657;
  GetPixelInfo(param_1,local_70);
  local_a4 = 0;
  local_a0 = 0;
  iVar2 = GetMagickResourceLimit(7);
  __s = (undefined4 *)AcquireQuantumMemory(iVar2,4);
  if (__s == (undefined4 *)0x0) {
    uVar3 = AcquireExceptionInfo();
    piVar6 = __errno_location();
    uVar7 = GetExceptionMessage(*piVar6);
    ThrowMagickException
              (uVar3,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,700,
               "MemoryAllocationFailed","`%s\'",uVar7);
    DestroyString(uVar7);
    CatchException(uVar3);
    DestroyExceptionInfo(uVar3);
    MagickCoreTerminus();
                    /* WARNING: Subroutine does not return */
    _exit(1);
  }
  memset(__s,0,iVar2 * 4);
  if (0 < iVar2) {
    puVar8 = __s;
    do {
      uVar3 = AcquireRandomInfo();
      puVar9 = puVar8 + 1;
      *puVar8 = uVar3;
      puVar8 = puVar9;
    } while (puVar9 != __s + iVar2);
  }
  uVar3 = AcquireAuthenticCacheView(param_1,param_4);
  iVar2 = GetRandomSecretKey(*__s);
  if (iVar2 == -1) {
    iVar2 = GetImagePixelCacheType(param_1);
    if (((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)) &&
       ((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||
        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)))) {
      iVar5 = GetMagickResourceLimit(7);
      iVar2 = *(int *)(param_1 + 0x1c);
      iVar4 = iVar2 + 0x3f;
      if (-1 < iVar2) {
        iVar4 = iVar2;
      }
      bVar1 = 0x7f < iVar2;
      if (iVar5 < iVar4 >> 6) {
        iVar2 = GetMagickResourceLimit(7);
        bVar1 = 1 < iVar2;
      }
      if (!bVar1) goto LAB_001af728;
      iVar5 = GetMagickResourceLimit(7);
      iVar2 = *(int *)(param_1 + 0x1c);
      iVar4 = iVar2 + 0x3f;
      if (-1 < iVar2) {
        iVar4 = iVar2;
      }
      iVar4 = iVar4 >> 6;
      if (iVar5 < iVar4) {
        iVar4 = GetMagickResourceLimit(7);
      }
    }
    else {
      uVar10 = GetMagickResourceLimit(7);
      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {
        uVar10 = GetMagickResourceLimit(7);
        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;
      }
      uVar10 = GetMagickResourceLimit(7);
      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {
        iVar4 = GetMagickResourceLimit(7);
      }
      else {
        iVar4 = 2;
      }
    }
  }
  else {
LAB_001af728:
    iVar4 = 1;
  }
  local_8c = param_1;
  local_7c = 1;
  local_94 = param_3;
  local_88 = param_4;
  local_78 = &local_a4;
  local_9c = param_2;
  local_84 = uVar3;
  local_80 = __s;
  GOMP_parallel(FUN_001aae40,&local_9c,iVar4,0);
  iVar2 = local_7c;
  DestroyCacheView(uVar3);
  for (iVar4 = 0; iVar5 = GetMagickResourceLimit(7), iVar4 < iVar5; iVar4 = iVar4 + 1) {
    if (__s[iVar4] != 0) {
      uVar3 = DestroyRandomInfo(__s[iVar4]);
      __s[iVar4] = uVar3;
    }
  }
  RelinquishMagickMemory(__s);
LAB_001af657:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0029eab0();
  }
  return iVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00038830
ADD EBX,0x229a47
SUB ESP,0xbc
MOV EAX,dword ptr [ESP + 0xe4]
MOV ESI,dword ptr [ESP + 0xd0]
FLD qword ptr [ESP + 0xd4]
FSTP qword ptr [ESP + 0x8]
FLD qword ptr [ESP + 0xdc]
MOV dword ptr [ESP + 0x18],EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xac],EAX
XOR EAX,EAX
FSTP qword ptr [ESP + 0x10]
TEST ESI,ESI
JZ 0x001af96e
CMP dword ptr [ESI + 0x3344],0xabacadab
JNZ 0x001af992
MOV EAX,dword ptr [ESI + 0x3328]
TEST EAX,EAX
JNZ 0x001af7d0
MOV EBP,dword ptr [ESP + 0x18]
TEST EBP,EBP
JZ 0x001af94f
MOV EAX,dword ptr [ESP + 0x18]
CMP dword ptr [EAX + 0x1c],0xabacadab
JNZ 0x001af9b1
SUB ESP,0x4
PUSH dword ptr [ESP + 0x1c]
PUSH 0x1
PUSH ESI
CALL 0x00030bc0
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JNZ 0x001af680
MOV ECX,dword ptr [ESP + 0xac]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,EBP
JNZ 0x001af98d
ADD ESP,0xbc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
LEA EAX,[ESP + 0x64]
PUSH EAX
PUSH ESI
CALL 0x000320a0
MOV dword ptr [ESP + 0x38],0x0
MOV dword ptr [ESP + 0x3c],0x0
MOV dword ptr [ESP],0x7
CALL 0x00032640
POP ECX
POP EDI
PUSH 0x4
MOV EBP,EAX
PUSH EAX
CALL 0x000317b0
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x001af9d0
LEA EDX,[EBP*0x4 + 0x0]
SUB ESP,0x4
PUSH EDX
MOV dword ptr [ESP + 0x24],EDX
PUSH 0x0
PUSH EAX
CALL 0x000310a0
ADD ESP,0x10
TEST EBP,EBP
JLE 0x001af703
MOV EDX,dword ptr [ESP + 0x1c]
MOV dword ptr [ESP + 0x1c],ESI
MOV ESI,EDI
LEA EAX,[EDI + EDX*0x1]
MOV EBP,EAX
CALL 0x000331c0
ADD ESI,0x4
MOV dword ptr [ESI + -0x4],EAX
CMP ESI,EBP
JNZ 0x001af6f0
MOV ESI,dword ptr [ESP + 0x1c]
SUB ESP,0x8
PUSH dword ptr [ESP + 0x20]
PUSH ESI
CALL 0x00032fa0
MOV dword ptr [ESP + 0x2c],EAX
POP EDX
PUSH dword ptr [EDI]
CALL 0x000328e0
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x001af810
MOV EAX,0x1
MOV EDX,dword ptr [ESP + 0x18]
MOV dword ptr [ESP + 0x40],ESI
XOR ESI,ESI
MOV ECX,dword ptr [ESP + 0x1c]
MOV dword ptr [ESP + 0x4c],EDI
FLD qword ptr [ESP + 0x10]
MOV dword ptr [ESP + 0x50],0x1
FSTP qword ptr [ESP + 0x38]
FLD qword ptr [ESP + 0x8]
MOV dword ptr [ESP + 0x44],EDX
LEA EDX,[ESP + 0x28]
MOV dword ptr [ESP + 0x48],ECX
FSTP qword ptr [ESP + 0x30]
MOV dword ptr [ESP + 0x54],EDX
PUSH 0x0
PUSH EAX
LEA EAX,[ESP + 0x38]
PUSH EAX
LEA EAX,[EBX + 0xffdd1e40]
PUSH EAX
CALL 0x000324d0
MOV EBP,dword ptr [ESP + 0x60]
POP EAX
PUSH dword ptr [ESP + 0x28]
CALL 0x00032f30
ADD ESP,0x10
JMP 0x001af7a9
MOV EAX,dword ptr [EDI + ESI*0x4]
TEST EAX,EAX
JZ 0x001af7a6
SUB ESP,0xc
PUSH EAX
CALL 0x00030f10
ADD ESP,0x10
MOV dword ptr [EDI + ESI*0x4],EAX
ADD ESI,0x1
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
CMP ESI,EAX
JL 0x001af790
SUB ESP,0xc
PUSH EDI
CALL 0x00033ac8
ADD ESP,0x10
JMP 0x001af657
LEA EAX,[ESI + 0x318]
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xffedde4e]
PUSH EAX
LEA EAX,[EBX + 0xffef0d94]
PUSH 0x8c5
PUSH EAX
LEA EAX,[EBX + 0xffef0afe]
PUSH EAX
PUSH 0x8000
CALL 0x000323b0
ADD ESP,0x20
JMP 0x001af622
SUB ESP,0xc
PUSH ESI
CALL 0x000318f0
ADD ESP,0x10
CMP EAX,0x4
JZ 0x001af8a0
SUB ESP,0xc
PUSH ESI
CALL 0x000318f0
ADD ESP,0x10
CMP EAX,0x3
JZ 0x001af8a0
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
CMP EDX,0x0
JA 0x001af868
CMP EAX,0x1
JA 0x001af868
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
CMP EDX,0x0
JA 0x001af868
CMP EAX,0x1
JBE 0x001af728
LEA ESI,[ESI]
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
CMP EDX,0x0
JA 0x001af930
CMP EAX,0x1
JA 0x001af930
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
JMP 0x001af72d
SUB ESP,0xc
PUSH ESI
CALL 0x000318f0
ADD ESP,0x10
CMP EAX,0x4
JZ 0x001af8c6
SUB ESP,0xc
PUSH ESI
CALL 0x000318f0
ADD ESP,0x10
CMP EAX,0x3
JNZ 0x001af832
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 0x001af93a
TEST CL,CL
JZ 0x001af728
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 0x001af919
MOV EAX,EDX
JMP 0x001af72d
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
MOV EDX,EAX
MOV EAX,EDX
JMP 0x001af72d
MOV EAX,0x2
JMP 0x001af72d
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
CMP EAX,0x1
SETG CL
JMP 0x001af8eb
LEA EAX,[EBX + 0xffef0dac]
PUSH EAX
LEA EAX,[EBX + 0xffef0afe]
PUSH 0x8c6
PUSH EAX
LEA EAX,[EBX + 0xffec6a3c]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffef0dac]
PUSH EAX
LEA EAX,[EBX + 0xffef0afe]
PUSH 0x8c2
PUSH EAX
LEA EAX,[EBX + 0xffede594]
PUSH EAX
CALL 0x000313d0
CALL 0x0029eab0
LEA EAX,[EBX + 0xffef0dac]
PUSH EAX
LEA EAX,[EBX + 0xffef0afe]
PUSH 0x8c3
PUSH EAX
LEA EAX,[EBX + 0xffed1338]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffef0dac]
PUSH EAX
LEA EAX,[EBX + 0xffef0afe]
PUSH 0x8c7
PUSH EAX
LEA EAX,[EBX + 0xffec776c]
PUSH EAX
CALL 0x000313d0
CALL 0x00032f50
MOV ESI,EAX
CALL 0x000305f0
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x00031c10
ADD ESP,0x10
PUSH EAX
MOV EDI,EAX
LEA EAX,[EBX + 0xffec8a40]
PUSH EAX
LEA EAX,[EBX + 0xffec63d6]
PUSH EAX
LEA EAX,[EBX + 0xffef0d78]
PUSH 0x2bc
PUSH 0x43
PUSH EAX
LEA EAX,[EBX + 0xffed8e56]
PUSH EAX
PUSH ESI
CALL 0x00032e80
ADD ESP,0x14
PUSH EDI
CALL 0x00032950
MOV dword ptr [ESP],ESI
CALL 0x000320b0
MOV dword ptr [ESP],ESI
CALL 0x000335b0
ADD ESP,0x10
CALL 0x000308c0
SUB ESP,0xc
PUSH 0x1
CALL 0x00031270
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint RandomThresholdImage(int param_1,undefined8 param_2,undefined8 param_3,int param_4)\n\n{\n  bool bVar1;\n  int iVar2;\n  undefined4 *__s;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  int in_GS_OFFSET;\n  undefined8 uVar10;\n  undefined4 local_a4;\n  undefined4 local_a0;\n  undefined8 local_9c;\n  undefined8 local_94;\n  int local_8c;\n  int local_88;\n  undefined4 local_84;\n  undefined4 *local_80;\n  int local_7c;\n  undefined4 *local_78;\n  undefined1 local_70 [80];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1af5b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,&DAT_002b6e4e,\n                   param_1 + 0x318);\n  }\n  if (param_4 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage");\n  }\n  if (*(int *)(param_4 + 0x1c) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage");\n  }\n  iVar2 = SetImageStorageClass(param_1,1,param_4);\n  if (iVar2 == 0) goto LAB_001af657;\n  GetPixelInfo(param_1,local_70);\n  local_a4 = 0;\n  local_a0 = 0;\n  iVar2 = GetMagickResourceLimit(7);\n  __s = (undefined4 *)AcquireQuantumMemory(iVar2,4);\n  if (__s == (undefined4 *)0x0) {\n    uVar3 = AcquireExceptionInfo();\n    piVar6 = __errno_location();\n    uVar7 = GetExceptionMessage(*piVar6);\n    ThrowMagickException\n              (uVar3,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,700,\n               "MemoryAllocationFailed","`%s\'",uVar7);\n    DestroyString(uVar7);\n    CatchException(uVar3);\n    DestroyExceptionInfo(uVar3);\n    MagickCoreTerminus();\n                    /* WARNING: Subroutine does not return */\n    _exit(1);\n  }\n  memset(__s,0,iVar2 * 4);\n  if (0 < iVar2) {\n    puVar8 = __s;\n    do {\n      uVar3 = AcquireRandomInfo();\n      puVar9 = puVar8 + 1;\n      *puVar8 = uVar3;\n      puVar8 = puVar9;\n    } while (puVar9 != __s + iVar2);\n  }\n  uVar3 = AcquireAuthenticCacheView(param_1,param_4);\n  iVar2 = GetRandomSecretKey(*__s);\n  if (iVar2 == -1) {\n    iVar2 = GetImagePixelCacheType(param_1);\n    if (((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)) &&\n       ((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)))) {\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      bVar1 = 0x7f < iVar2;\n      if (iVar5 < iVar4 >> 6) {\n        iVar2 = GetMagickResourceLimit(7);\n        bVar1 = 1 < iVar2;\n      }\n      if (!bVar1) goto LAB_001af728;\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      iVar4 = iVar4 >> 6;\n      if (iVar5 < iVar4) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n      else {\n        iVar4 = 2;\n      }\n    }\n  }\n  else {\nLAB_001af728:\n    iVar4 = 1;\n  }\n  local_8c = param_1;\n  local_7c = 1;\n  local_94 = param_3;\n  local_88 = param_4;\n  local_78 = &local_a4;\n  local_9c = param_2;\n  local_84 = uVar3;\n  local_80 = __s;\n  GOMP_parallel(FUN_001aae40,&local_9c,iVar4,0);\n  iVar2 = local_7c;\n  DestroyCacheView(uVar3);\n  for (iVar4 = 0; iVar5 = GetMagickResourceLimit(7), iVar4 < iVar5; iVar4 = iVar4 + 1) {\n    if (__s[iVar4] != 0) {\n      uVar3 = DestroyRandomInfo(__s[iVar4]);\n      __s[iVar4] = uVar3;\n    }\n  }\n  RelinquishMagickMemory(__s);\nLAB_001af657:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }\n  return iVar2;\n}\n\n" comment (function_definition "int RandomThresholdImage(int param_1,undefined8 param_2,undefined8 param_3,int param_4)\n\n{\n  bool bVar1;\n  int iVar2;\n  undefined4 *__s;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  int in_GS_OFFSET;\n  undefined8 uVar10;\n  undefined4 local_a4;\n  undefined4 local_a0;\n  undefined8 local_9c;\n  undefined8 local_94;\n  int local_8c;\n  int local_88;\n  undefined4 local_84;\n  undefined4 *local_80;\n  int local_7c;\n  undefined4 *local_78;\n  undefined1 local_70 [80];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1af5b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,&DAT_002b6e4e,\n                   param_1 + 0x318);\n  }\n  if (param_4 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage");\n  }\n  if (*(int *)(param_4 + 0x1c) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage");\n  }\n  iVar2 = SetImageStorageClass(param_1,1,param_4);\n  if (iVar2 == 0) goto LAB_001af657;\n  GetPixelInfo(param_1,local_70);\n  local_a4 = 0;\n  local_a0 = 0;\n  iVar2 = GetMagickResourceLimit(7);\n  __s = (undefined4 *)AcquireQuantumMemory(iVar2,4);\n  if (__s == (undefined4 *)0x0) {\n    uVar3 = AcquireExceptionInfo();\n    piVar6 = __errno_location();\n    uVar7 = GetExceptionMessage(*piVar6);\n    ThrowMagickException\n              (uVar3,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,700,\n               "MemoryAllocationFailed","`%s\'",uVar7);\n    DestroyString(uVar7);\n    CatchException(uVar3);\n    DestroyExceptionInfo(uVar3);\n    MagickCoreTerminus();\n                    /* WARNING: Subroutine does not return */\n    _exit(1);\n  }\n  memset(__s,0,iVar2 * 4);\n  if (0 < iVar2) {\n    puVar8 = __s;\n    do {\n      uVar3 = AcquireRandomInfo();\n      puVar9 = puVar8 + 1;\n      *puVar8 = uVar3;\n      puVar8 = puVar9;\n    } while (puVar9 != __s + iVar2);\n  }\n  uVar3 = AcquireAuthenticCacheView(param_1,param_4);\n  iVar2 = GetRandomSecretKey(*__s);\n  if (iVar2 == -1) {\n    iVar2 = GetImagePixelCacheType(param_1);\n    if (((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)) &&\n       ((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)))) {\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      bVar1 = 0x7f < iVar2;\n      if (iVar5 < iVar4 >> 6) {\n        iVar2 = GetMagickResourceLimit(7);\n        bVar1 = 1 < iVar2;\n      }\n      if (!bVar1) goto LAB_001af728;\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      iVar4 = iVar4 >> 6;\n      if (iVar5 < iVar4) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n      else {\n        iVar4 = 2;\n      }\n    }\n  }\n  else {\nLAB_001af728:\n    iVar4 = 1;\n  }\n  local_8c = param_1;\n  local_7c = 1;\n  local_94 = param_3;\n  local_88 = param_4;\n  local_78 = &local_a4;\n  local_9c = param_2;\n  local_84 = uVar3;\n  local_80 = __s;\n  GOMP_parallel(FUN_001aae40,&local_9c,iVar4,0);\n  iVar2 = local_7c;\n  DestroyCacheView(uVar3);\n  for (iVar4 = 0; iVar5 = GetMagickResourceLimit(7), iVar4 < iVar5; iVar4 = iVar4 + 1) {\n    if (__s[iVar4] != 0) {\n      uVar3 = DestroyRandomInfo(__s[iVar4]);\n      __s[iVar4] = uVar3;\n    }\n  }\n  RelinquishMagickMemory(__s);\nLAB_001af657:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }\n  return iVar2;\n}" primitive_type (function_declarator "RandomThresholdImage(int param_1,undefined8 param_2,undefined8 param_3,int param_4)" identifier (parameter_list "(int param_1,undefined8 param_2,undefined8 param_3,int param_4)" ( (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 "int param_4" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  undefined4 *__s;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  int in_GS_OFFSET;\n  undefined8 uVar10;\n  undefined4 local_a4;\n  undefined4 local_a0;\n  undefined8 local_9c;\n  undefined8 local_94;\n  int local_8c;\n  int local_88;\n  undefined4 local_84;\n  undefined4 *local_80;\n  int local_7c;\n  undefined4 *local_78;\n  undefined1 local_70 [80];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1af5b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,&DAT_002b6e4e,\n                   param_1 + 0x318);\n  }\n  if (param_4 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage");\n  }\n  if (*(int *)(param_4 + 0x1c) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage");\n  }\n  iVar2 = SetImageStorageClass(param_1,1,param_4);\n  if (iVar2 == 0) goto LAB_001af657;\n  GetPixelInfo(param_1,local_70);\n  local_a4 = 0;\n  local_a0 = 0;\n  iVar2 = GetMagickResourceLimit(7);\n  __s = (undefined4 *)AcquireQuantumMemory(iVar2,4);\n  if (__s == (undefined4 *)0x0) {\n    uVar3 = AcquireExceptionInfo();\n    piVar6 = __errno_location();\n    uVar7 = GetExceptionMessage(*piVar6);\n    ThrowMagickException\n              (uVar3,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,700,\n               "MemoryAllocationFailed","`%s\'",uVar7);\n    DestroyString(uVar7);\n    CatchException(uVar3);\n    DestroyExceptionInfo(uVar3);\n    MagickCoreTerminus();\n                    /* WARNING: Subroutine does not return */\n    _exit(1);\n  }\n  memset(__s,0,iVar2 * 4);\n  if (0 < iVar2) {\n    puVar8 = __s;\n    do {\n      uVar3 = AcquireRandomInfo();\n      puVar9 = puVar8 + 1;\n      *puVar8 = uVar3;\n      puVar8 = puVar9;\n    } while (puVar9 != __s + iVar2);\n  }\n  uVar3 = AcquireAuthenticCacheView(param_1,param_4);\n  iVar2 = GetRandomSecretKey(*__s);\n  if (iVar2 == -1) {\n    iVar2 = GetImagePixelCacheType(param_1);\n    if (((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)) &&\n       ((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)))) {\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      bVar1 = 0x7f < iVar2;\n      if (iVar5 < iVar4 >> 6) {\n        iVar2 = GetMagickResourceLimit(7);\n        bVar1 = 1 < iVar2;\n      }\n      if (!bVar1) goto LAB_001af728;\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      iVar4 = iVar4 >> 6;\n      if (iVar5 < iVar4) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n      else {\n        iVar4 = 2;\n      }\n    }\n  }\n  else {\nLAB_001af728:\n    iVar4 = 1;\n  }\n  local_8c = param_1;\n  local_7c = 1;\n  local_94 = param_3;\n  local_88 = param_4;\n  local_78 = &local_a4;\n  local_9c = param_2;\n  local_84 = uVar3;\n  local_80 = __s;\n  GOMP_parallel(FUN_001aae40,&local_9c,iVar4,0);\n  iVar2 = local_7c;\n  DestroyCacheView(uVar3);\n  for (iVar4 = 0; iVar5 = GetMagickResourceLimit(7), iVar4 < iVar5; iVar4 = iVar4 + 1) {\n    if (__s[iVar4] != 0) {\n      uVar3 = DestroyRandomInfo(__s[iVar4]);\n      __s[iVar4] = uVar3;\n    }\n  }\n  RelinquishMagickMemory(__s);\nLAB_001af657:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }\n  return iVar2;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined4 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined8 uVar10;" type_identifier identifier ;) (declaration "undefined4 local_a4;" type_identifier identifier ;) (declaration "undefined4 local_a0;" type_identifier identifier ;) (declaration "undefined8 local_9c;" type_identifier identifier ;) (declaration "undefined8 local_94;" type_identifier identifier ;) (declaration "int local_8c;" primitive_type identifier ;) (declaration "int local_88;" primitive_type identifier ;) (declaration "undefined4 local_84;" type_identifier identifier ;) (declaration "undefined4 *local_80;" type_identifier (pointer_declarator "*local_80" * identifier) ;) (declaration "int local_7c;" primitive_type identifier ;) (declaration "undefined4 *local_78;" type_identifier (pointer_declarator "*local_78" * identifier) ;) (declaration "undefined1 local_70 [80];" type_identifier (array_declarator "local_70 [80]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1af5b9;" (assignment_expression "uStack_14 = 0x1af5b9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage");\n  }" { comment (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage")" identifier (argument_list "("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/threshold.c"" " string_content ") , number_literal , (string_literal ""RandomThresholdImage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage");\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/threshold.c",0x8c3,\n                  "RandomThresholdImage");\n  }" { comment (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/threshold.c"" " string_content ") , number_literal , (string_literal ""RandomThresholdImage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,&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/threshold.c","RandomThresholdImage",0x8c5,&DAT_002b6e4e,\n                   param_1 + 0x318);\n  }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,&DAT_002b6e4e,\n                   param_1 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,&DAT_002b6e4e,\n                   param_1 + 0x318)" identifier (argument_list "(0x8000,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,&DAT_002b6e4e,\n                   param_1 + 0x318)" ( number_literal , (string_literal ""MagickCore/threshold.c"" " string_content ") , (string_literal ""RandomThresholdImage"" " string_content ") , number_literal , (pointer_expression "&DAT_002b6e4e" & identifier) , (binary_expression "param_1 + 0x318" identifier + number_literal) ))) ;) })) (if_statement "if (param_4 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage");\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage");\n  }" { comment (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/threshold.c"" " string_content ") , number_literal , (string_literal ""RandomThresholdImage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_4 + 0x1c) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage");\n  }" if (parenthesized_expression "(*(int *)(param_4 + 0x1c) != -0x54535255)" ( (binary_expression "*(int *)(param_4 + 0x1c) != -0x54535255" (pointer_expression "*(int *)(param_4 + 0x1c)" * (cast_expression "(int *)(param_4 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x1c)" ( (binary_expression "param_4 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage");\n  }" { comment (expression_statement "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage");" (call_expression "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage")" identifier (argument_list "("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage")" ( (string_literal ""exception->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/threshold.c"" " string_content ") , number_literal , (string_literal ""RandomThresholdImage"" " string_content ") ))) ;) })) (expression_statement "iVar2 = SetImageStorageClass(param_1,1,param_4);" (assignment_expression "iVar2 = SetImageStorageClass(param_1,1,param_4)" identifier = (call_expression "SetImageStorageClass(param_1,1,param_4)" identifier (argument_list "(param_1,1,param_4)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar2 == 0) goto LAB_001af657;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_001af657;" goto statement_identifier ;)) (expression_statement "GetPixelInfo(param_1,local_70);" (call_expression "GetPixelInfo(param_1,local_70)" identifier (argument_list "(param_1,local_70)" ( identifier , identifier ))) ;) (expression_statement "local_a4 = 0;" (assignment_expression "local_a4 = 0" identifier = number_literal) ;) (expression_statement "local_a0 = 0;" (assignment_expression "local_a0 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = GetMagickResourceLimit(7);" (assignment_expression "iVar2 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (expression_statement "__s = (undefined4 *)AcquireQuantumMemory(iVar2,4);" (assignment_expression "__s = (undefined4 *)AcquireQuantumMemory(iVar2,4)" identifier = (cast_expression "(undefined4 *)AcquireQuantumMemory(iVar2,4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireQuantumMemory(iVar2,4)" identifier (argument_list "(iVar2,4)" ( identifier , number_literal ))))) ;) (if_statement "if (__s == (undefined4 *)0x0) {\n    uVar3 = AcquireExceptionInfo();\n    piVar6 = __errno_location();\n    uVar7 = GetExceptionMessage(*piVar6);\n    ThrowMagickException\n              (uVar3,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,700,\n               "MemoryAllocationFailed","`%s\'",uVar7);\n    DestroyString(uVar7);\n    CatchException(uVar3);\n    DestroyExceptionInfo(uVar3);\n    MagickCoreTerminus();\n                    /* WARNING: Subroutine does not return */\n    _exit(1);\n  }" if (parenthesized_expression "(__s == (undefined4 *)0x0)" ( (binary_expression "__s == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar3 = AcquireExceptionInfo();\n    piVar6 = __errno_location();\n    uVar7 = GetExceptionMessage(*piVar6);\n    ThrowMagickException\n              (uVar3,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,700,\n               "MemoryAllocationFailed","`%s\'",uVar7);\n    DestroyString(uVar7);\n    CatchException(uVar3);\n    DestroyExceptionInfo(uVar3);\n    MagickCoreTerminus();\n                    /* WARNING: Subroutine does not return */\n    _exit(1);\n  }" { (expression_statement "uVar3 = AcquireExceptionInfo();" (assignment_expression "uVar3 = AcquireExceptionInfo()" identifier = (call_expression "AcquireExceptionInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar7 = GetExceptionMessage(*piVar6);" (assignment_expression "uVar7 = GetExceptionMessage(*piVar6)" identifier = (call_expression "GetExceptionMessage(*piVar6)" identifier (argument_list "(*piVar6)" ( (pointer_expression "*piVar6" * identifier) )))) ;) (expression_statement "ThrowMagickException\n              (uVar3,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,700,\n               "MemoryAllocationFailed","`%s\'",uVar7);" (call_expression "ThrowMagickException\n              (uVar3,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,700,\n               "MemoryAllocationFailed","`%s\'",uVar7)" identifier (argument_list "(uVar3,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,700,\n               "MemoryAllocationFailed","`%s\'",uVar7)" ( identifier , (string_literal ""./MagickCore/random-private.h"" " string_content ") , (string_literal ""AcquireRandomInfoThreadSet"" " string_content ") , number_literal , number_literal , (string_literal ""MemoryAllocationFailed"" " string_content ") , (string_literal ""`%s\'"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "DestroyString(uVar7);" (call_expression "DestroyString(uVar7)" identifier (argument_list "(uVar7)" ( identifier ))) ;) (expression_statement "CatchException(uVar3);" (call_expression "CatchException(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (expression_statement "DestroyExceptionInfo(uVar3);" (call_expression "DestroyExceptionInfo(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (expression_statement "MagickCoreTerminus();" (call_expression "MagickCoreTerminus()" identifier (argument_list "()" ( ))) ;) comment (expression_statement "_exit(1);" (call_expression "_exit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (expression_statement "memset(__s,0,iVar2 * 4);" (call_expression "memset(__s,0,iVar2 * 4)" identifier (argument_list "(__s,0,iVar2 * 4)" ( identifier , number_literal , (binary_expression "iVar2 * 4" identifier * number_literal) ))) ;) (if_statement "if (0 < iVar2) {\n    puVar8 = __s;\n    do {\n      uVar3 = AcquireRandomInfo();\n      puVar9 = puVar8 + 1;\n      *puVar8 = uVar3;\n      puVar8 = puVar9;\n    } while (puVar9 != __s + iVar2);\n  }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n    puVar8 = __s;\n    do {\n      uVar3 = AcquireRandomInfo();\n      puVar9 = puVar8 + 1;\n      *puVar8 = uVar3;\n      puVar8 = puVar9;\n    } while (puVar9 != __s + iVar2);\n  }" { (expression_statement "puVar8 = __s;" (assignment_expression "puVar8 = __s" identifier = identifier) ;) (do_statement "do {\n      uVar3 = AcquireRandomInfo();\n      puVar9 = puVar8 + 1;\n      *puVar8 = uVar3;\n      puVar8 = puVar9;\n    } while (puVar9 != __s + iVar2);" do (compound_statement "{\n      uVar3 = AcquireRandomInfo();\n      puVar9 = puVar8 + 1;\n      *puVar8 = uVar3;\n      puVar8 = puVar9;\n    }" { (expression_statement "uVar3 = AcquireRandomInfo();" (assignment_expression "uVar3 = AcquireRandomInfo()" identifier = (call_expression "AcquireRandomInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar9 = puVar8 + 1;" (assignment_expression "puVar9 = puVar8 + 1" identifier = (binary_expression "puVar8 + 1" identifier + number_literal)) ;) (expression_statement "*puVar8 = uVar3;" (assignment_expression "*puVar8 = uVar3" (pointer_expression "*puVar8" * identifier) = identifier) ;) (expression_statement "puVar8 = puVar9;" (assignment_expression "puVar8 = puVar9" identifier = identifier) ;) }) while (parenthesized_expression "(puVar9 != __s + iVar2)" ( (binary_expression "puVar9 != __s + iVar2" identifier != (binary_expression "__s + iVar2" identifier + identifier)) )) ;) })) (expression_statement "uVar3 = AcquireAuthenticCacheView(param_1,param_4);" (assignment_expression "uVar3 = AcquireAuthenticCacheView(param_1,param_4)" identifier = (call_expression "AcquireAuthenticCacheView(param_1,param_4)" identifier (argument_list "(param_1,param_4)" ( identifier , identifier )))) ;) (expression_statement "iVar2 = GetRandomSecretKey(*__s);" (assignment_expression "iVar2 = GetRandomSecretKey(*__s)" identifier = (call_expression "GetRandomSecretKey(*__s)" identifier (argument_list "(*__s)" ( (pointer_expression "*__s" * identifier) )))) ;) (if_statement "if (iVar2 == -1) {\n    iVar2 = GetImagePixelCacheType(param_1);\n    if (((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)) &&\n       ((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)))) {\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      bVar1 = 0x7f < iVar2;\n      if (iVar5 < iVar4 >> 6) {\n        iVar2 = GetMagickResourceLimit(7);\n        bVar1 = 1 < iVar2;\n      }\n      if (!bVar1) goto LAB_001af728;\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      iVar4 = iVar4 >> 6;\n      if (iVar5 < iVar4) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n      else {\n        iVar4 = 2;\n      }\n    }\n  }\n  else {\nLAB_001af728:\n    iVar4 = 1;\n  }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n    iVar2 = GetImagePixelCacheType(param_1);\n    if (((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)) &&\n       ((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)))) {\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      bVar1 = 0x7f < iVar2;\n      if (iVar5 < iVar4 >> 6) {\n        iVar2 = GetMagickResourceLimit(7);\n        bVar1 = 1 < iVar2;\n      }\n      if (!bVar1) goto LAB_001af728;\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      iVar4 = iVar4 >> 6;\n      if (iVar5 < iVar4) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n      else {\n        iVar4 = 2;\n      }\n    }\n  }" { (expression_statement "iVar2 = GetImagePixelCacheType(param_1);" (assignment_expression "iVar2 = GetImagePixelCacheType(param_1)" identifier = (call_expression "GetImagePixelCacheType(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)) &&\n       ((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)))) {\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      bVar1 = 0x7f < iVar2;\n      if (iVar5 < iVar4 >> 6) {\n        iVar2 = GetMagickResourceLimit(7);\n        bVar1 = 1 < iVar2;\n      }\n      if (!bVar1) goto LAB_001af728;\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      iVar4 = iVar4 >> 6;\n      if (iVar5 < iVar4) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n      else {\n        iVar4 = 2;\n      }\n    }" if (parenthesized_expression "(((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)) &&\n       ((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3))))" ( (binary_expression "((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)) &&\n       ((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)))" (parenthesized_expression "((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3))" ( (binary_expression "(iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)" (parenthesized_expression "(iVar2 == 4)" ( (binary_expression "iVar2 == 4" identifier == number_literal) )) || (parenthesized_expression "(iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)" ( (comma_expression "iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3" (assignment_expression "iVar2 = GetImagePixelCacheType(param_1)" identifier = (call_expression "GetImagePixelCacheType(param_1)" identifier (argument_list "(param_1)" ( identifier )))) , (binary_expression "iVar2 == 3" identifier == number_literal)) ))) )) && (parenthesized_expression "((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)))" ( (parenthesized_expression "(iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3))" ( (comma_expression "iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)" (assignment_expression "iVar2 = GetImagePixelCacheType(param_1)" identifier = (call_expression "GetImagePixelCacheType(param_1)" identifier (argument_list "(param_1)" ( identifier )))) , (binary_expression "iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)" (binary_expression "iVar2 == 4" identifier == number_literal) || (parenthesized_expression "(iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)" ( (comma_expression "iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3" (assignment_expression "iVar2 = GetImagePixelCacheType(param_1)" identifier = (call_expression "GetImagePixelCacheType(param_1)" identifier (argument_list "(param_1)" ( identifier )))) , (binary_expression "iVar2 == 3" identifier == number_literal)) )))) )) ))) )) (compound_statement "{\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      bVar1 = 0x7f < iVar2;\n      if (iVar5 < iVar4 >> 6) {\n        iVar2 = GetMagickResourceLimit(7);\n        bVar1 = 1 < iVar2;\n      }\n      if (!bVar1) goto LAB_001af728;\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      iVar4 = iVar4 >> 6;\n      if (iVar5 < iVar4) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n    }" { (expression_statement "iVar5 = GetMagickResourceLimit(7);" (assignment_expression "iVar5 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar2 = *(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 "iVar4 = iVar2 + 0x3f;" (assignment_expression "iVar4 = iVar2 + 0x3f" identifier = (binary_expression "iVar2 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n        iVar4 = iVar2;\n      }" { (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" identifier = identifier) ;) })) (expression_statement "bVar1 = 0x7f < iVar2;" (assignment_expression "bVar1 = 0x7f < iVar2" identifier = (binary_expression "0x7f < iVar2" number_literal < identifier)) ;) (if_statement "if (iVar5 < iVar4 >> 6) {\n        iVar2 = GetMagickResourceLimit(7);\n        bVar1 = 1 < iVar2;\n      }" if (parenthesized_expression "(iVar5 < iVar4 >> 6)" ( (binary_expression "iVar5 < iVar4 >> 6" identifier < (binary_expression "iVar4 >> 6" identifier >> number_literal)) )) (compound_statement "{\n        iVar2 = GetMagickResourceLimit(7);\n        bVar1 = 1 < iVar2;\n      }" { (expression_statement "iVar2 = GetMagickResourceLimit(7);" (assignment_expression "iVar2 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (expression_statement "bVar1 = 1 < iVar2;" (assignment_expression "bVar1 = 1 < iVar2" identifier = (binary_expression "1 < iVar2" number_literal < identifier)) ;) })) (if_statement "if (!bVar1) goto LAB_001af728;" if (parenthesized_expression "(!bVar1)" ( (unary_expression "!bVar1" ! identifier) )) (goto_statement "goto LAB_001af728;" goto statement_identifier ;)) (expression_statement "iVar5 = GetMagickResourceLimit(7);" (assignment_expression "iVar5 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar2 = *(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 "iVar4 = iVar2 + 0x3f;" (assignment_expression "iVar4 = iVar2 + 0x3f" identifier = (binary_expression "iVar2 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n        iVar4 = iVar2;\n      }" { (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" identifier = identifier) ;) })) (expression_statement "iVar4 = iVar4 >> 6;" (assignment_expression "iVar4 = iVar4 >> 6" identifier = (binary_expression "iVar4 >> 6" identifier >> number_literal)) ;) (if_statement "if (iVar5 < iVar4) {\n        iVar4 = GetMagickResourceLimit(7);\n      }" if (parenthesized_expression "(iVar5 < iVar4)" ( (binary_expression "iVar5 < iVar4" identifier < identifier) )) (compound_statement "{\n        iVar4 = GetMagickResourceLimit(7);\n      }" { (expression_statement "iVar4 = GetMagickResourceLimit(7);" (assignment_expression "iVar4 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) })) }) (else_clause "else {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n      else {\n        iVar4 = 2;\n      }\n    }" else (compound_statement "{\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n      else {\n        iVar4 = 2;\n      }\n    }" { (expression_statement "uVar10 = GetMagickResourceLimit(7);" (assignment_expression "uVar10 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (if_statement "if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }" if (parenthesized_expression "(((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2))" ( (binary_expression "((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)" (parenthesized_expression "((int)((ulonglong)uVar10 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar10 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar10 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar10 >> 0x20)" ( (binary_expression "(ulonglong)uVar10 >> 0x20" (cast_expression "(ulonglong)uVar10" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar10 < 2)" ( (binary_expression "(uint)uVar10 < 2" (cast_expression "(uint)uVar10" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }" { (expression_statement "uVar10 = GetMagickResourceLimit(7);" (assignment_expression "uVar10 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (if_statement "if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;" if (parenthesized_expression "(((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2))" ( (binary_expression "((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)" (parenthesized_expression "((int)((ulonglong)uVar10 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar10 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar10 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar10 >> 0x20)" ( (binary_expression "(ulonglong)uVar10 >> 0x20" (cast_expression "(ulonglong)uVar10" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar10 < 2)" ( (binary_expression "(uint)uVar10 < 2" (cast_expression "(uint)uVar10" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (goto_statement "goto LAB_001af728;" goto statement_identifier ;)) })) (expression_statement "uVar10 = GetMagickResourceLimit(7);" (assignment_expression "uVar10 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (if_statement "if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n      else {\n        iVar4 = 2;\n      }" if (parenthesized_expression "(((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2))" ( (binary_expression "((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)" (parenthesized_expression "((int)((ulonglong)uVar10 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar10 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar10 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar10 >> 0x20)" ( (binary_expression "(ulonglong)uVar10 >> 0x20" (cast_expression "(ulonglong)uVar10" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar10 < 2)" ( (binary_expression "(uint)uVar10 < 2" (cast_expression "(uint)uVar10" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n        iVar4 = GetMagickResourceLimit(7);\n      }" { (expression_statement "iVar4 = GetMagickResourceLimit(7);" (assignment_expression "iVar4 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) }) (else_clause "else {\n        iVar4 = 2;\n      }" else (compound_statement "{\n        iVar4 = 2;\n      }" { (expression_statement "iVar4 = 2;" (assignment_expression "iVar4 = 2" identifier = number_literal) ;) }))) }))) }) (else_clause "else {\nLAB_001af728:\n    iVar4 = 1;\n  }" else (compound_statement "{\nLAB_001af728:\n    iVar4 = 1;\n  }" { (labeled_statement "LAB_001af728:\n    iVar4 = 1;" statement_identifier : (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;)) }))) (expression_statement "local_8c = param_1;" (assignment_expression "local_8c = param_1" identifier = identifier) ;) (expression_statement "local_7c = 1;" (assignment_expression "local_7c = 1" identifier = number_literal) ;) (expression_statement "local_94 = param_3;" (assignment_expression "local_94 = param_3" identifier = identifier) ;) (expression_statement "local_88 = param_4;" (assignment_expression "local_88 = param_4" identifier = identifier) ;) (expression_statement "local_78 = &local_a4;" (assignment_expression "local_78 = &local_a4" identifier = (pointer_expression "&local_a4" & identifier)) ;) (expression_statement "local_9c = param_2;" (assignment_expression "local_9c = param_2" identifier = identifier) ;) (expression_statement "local_84 = uVar3;" (assignment_expression "local_84 = uVar3" identifier = identifier) ;) (expression_statement "local_80 = __s;" (assignment_expression "local_80 = __s" identifier = identifier) ;) (expression_statement "GOMP_parallel(FUN_001aae40,&local_9c,iVar4,0);" (call_expression "GOMP_parallel(FUN_001aae40,&local_9c,iVar4,0)" identifier (argument_list "(FUN_001aae40,&local_9c,iVar4,0)" ( identifier , (pointer_expression "&local_9c" & identifier) , identifier , number_literal ))) ;) (expression_statement "iVar2 = local_7c;" (assignment_expression "iVar2 = local_7c" identifier = identifier) ;) (expression_statement "DestroyCacheView(uVar3);" (call_expression "DestroyCacheView(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (for_statement "for (iVar4 = 0; iVar5 = GetMagickResourceLimit(7), iVar4 < iVar5; iVar4 = iVar4 + 1) {\n    if (__s[iVar4] != 0) {\n      uVar3 = DestroyRandomInfo(__s[iVar4]);\n      __s[iVar4] = uVar3;\n    }\n  }" for ( (assignment_expression "iVar4 = 0" identifier = number_literal) ; (comma_expression "iVar5 = GetMagickResourceLimit(7), iVar4 < iVar5" (assignment_expression "iVar5 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) , (binary_expression "iVar4 < iVar5" identifier < identifier)) ; (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ) (compound_statement "{\n    if (__s[iVar4] != 0) {\n      uVar3 = DestroyRandomInfo(__s[iVar4]);\n      __s[iVar4] = uVar3;\n    }\n  }" { (if_statement "if (__s[iVar4] != 0) {\n      uVar3 = DestroyRandomInfo(__s[iVar4]);\n      __s[iVar4] = uVar3;\n    }" if (parenthesized_expression "(__s[iVar4] != 0)" ( (binary_expression "__s[iVar4] != 0" (subscript_expression "__s[iVar4]" identifier [ identifier ]) != number_literal) )) (compound_statement "{\n      uVar3 = DestroyRandomInfo(__s[iVar4]);\n      __s[iVar4] = uVar3;\n    }" { (expression_statement "uVar3 = DestroyRandomInfo(__s[iVar4]);" (assignment_expression "uVar3 = DestroyRandomInfo(__s[iVar4])" identifier = (call_expression "DestroyRandomInfo(__s[iVar4])" identifier (argument_list "(__s[iVar4])" ( (subscript_expression "__s[iVar4]" identifier [ identifier ]) )))) ;) (expression_statement "__s[iVar4] = uVar3;" (assignment_expression "__s[iVar4] = uVar3" (subscript_expression "__s[iVar4]" identifier [ identifier ]) = identifier) ;) })) })) (expression_statement "RelinquishMagickMemory(__s);" (call_expression "RelinquishMagickMemory(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (labeled_statement "LAB_001af657:\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 iVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* WARNING: Enum "DisposeType": Some values do not have unique names */\n/* WARNING: Enum "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "PixelChannel": Some values do not have unique names */\n/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n/* WARNING: Enum "LogEventType": Some values do not have unique names */\n\nMagickBooleanType\nRandomThresholdImage\n          (Image *image,double min_threshold,double max_threshold,ExceptionInfo *exception)\n\n{\n  int iVar1;\n  bool bVar2;\n  MagickBooleanType MVar3;\n  size_t sVar4;\n  undefined4 *__s;\n  RandomInfo *pRVar5;\n  CacheView *cache_view;\n  ulong uVar6;\n  int iVar7;\n  CacheType CVar8;\n  ExceptionInfo *exception_00;\n  int *piVar9;\n  char *string;\n  size_t sVar10;\n  undefined4 *puVar11;\n  undefined4 *puVar12;\n  int in_GS_OFFSET;\n  MagickSizeType MVar13;\n  MagickOffsetType progress;\n  double local_9c;\n  double local_94;\n  Image *local_8c;\n  ExceptionInfo *local_88;\n  CacheView *local_84;\n  undefined4 *local_80;\n  MagickBooleanType local_7c;\n  MagickOffsetType *local_78;\n  PixelInfo threshold;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage");\n  }\n  if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage");\n  }\n  if (image->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,"%s",\n                   image->filename);\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage");\n  }\n  if (exception->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage");\n  }\n  MVar3 = SetImageStorageClass(image,DirectClass,exception);\n  if (MVar3 == MagickFalse) goto LAB_001af657;\n  GetPixelInfo(image,&threshold);\n  progress._0_4_ = 0;\n  progress._4_4_ = 0;\n  MVar13 = GetMagickResourceLimit(ThreadResource);\n  sVar4 = (size_t)MVar13;\n  __s = (undefined4 *)AcquireQuantumMemory(sVar4,4);\n  if (__s == (undefined4 *)0x0) {\n    exception_00 = AcquireExceptionInfo();\n    piVar9 = __errno_location();\n    string = GetExceptionMessage(*piVar9);\n    ThrowMagickException\n              (exception_00,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,\n               FatalErrorException,"MemoryAllocationFailed","`%s\'",string);\n    DestroyString(string);\n    CatchException(exception_00);\n    DestroyExceptionInfo(exception_00);\n    MagickCoreTerminus();\n                    /* WARNING: Subroutine does not return */\n    _exit(1);\n  }\n  memset(__s,0,sVar4 * 4);\n  if (0 < (int)sVar4) {\n    puVar11 = __s;\n    do {\n      pRVar5 = AcquireRandomInfo();\n      puVar12 = puVar11 + 1;\n      *puVar11 = pRVar5;\n      puVar11 = puVar12;\n    } while (puVar12 != __s + sVar4);\n  }\n  cache_view = AcquireAuthenticCacheView(image,exception);\n  uVar6 = GetRandomSecretKey((RandomInfo *)*__s);\n  if (uVar6 == 0xffffffff) {\n    CVar8 = GetImagePixelCacheType(image);\n    if (((CVar8 == MemoryCache) || (CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache)) &&\n       ((CVar8 = GetImagePixelCacheType(image), CVar8 == MemoryCache ||\n        (CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache)))) {\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      sVar4 = image->rows;\n      sVar10 = sVar4 + 0x3f;\n      if (-1 < (int)sVar4) {\n        sVar10 = sVar4;\n      }\n      bVar2 = 0x7f < (int)sVar4;\n      if ((int)MVar13 < (int)sVar10 >> 6) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        bVar2 = 1 < (int)MVar13;\n      }\n      if (!bVar2) goto LAB_001af728;\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      sVar4 = image->rows;\n      sVar10 = sVar4 + 0x3f;\n      if (-1 < (int)sVar4) {\n        sVar10 = sVar4;\n      }\n      iVar7 = (int)sVar10 >> 6;\n      if ((int)MVar13 < iVar7) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        iVar7 = (int)MVar13;\n      }\n    }\n    else {\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) goto LAB_001af728;\n      }\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        iVar7 = (int)MVar13;\n      }\n      else {\n        iVar7 = 2;\n      }\n    }\n  }\n  else {\nLAB_001af728:\n    iVar7 = 1;\n  }\n  local_8c = image;\n  local_7c = MagickTrue;\n  local_94 = max_threshold;\n  local_88 = exception;\n  local_78 = &progress;\n  local_9c = min_threshold;\n  local_84 = cache_view;\n  local_80 = __s;\n  GOMP_parallel(RandomThresholdImage__omp_fn_7,&local_9c,iVar7,0);\n  MVar3 = local_7c;\n  DestroyCacheView(cache_view);\n  for (iVar7 = 0; MVar13 = GetMagickResourceLimit(ThreadResource), iVar7 < (int)MVar13;\n      iVar7 = iVar7 + 1) {\n    if ((RandomInfo *)__s[iVar7] != (RandomInfo *)0x0) {\n      pRVar5 = DestroyRandomInfo((RandomInfo *)__s[iVar7]);\n      __s[iVar7] = pRVar5;\n    }\n  }\n  RelinquishMagickMemory(__s);\nLAB_001af657:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return MVar3;\n}\n\n" comment comment comment comment comment comment comment comment (function_definition "MagickBooleanType\nRandomThresholdImage\n          (Image *image,double min_threshold,double max_threshold,ExceptionInfo *exception)\n\n{\n  int iVar1;\n  bool bVar2;\n  MagickBooleanType MVar3;\n  size_t sVar4;\n  undefined4 *__s;\n  RandomInfo *pRVar5;\n  CacheView *cache_view;\n  ulong uVar6;\n  int iVar7;\n  CacheType CVar8;\n  ExceptionInfo *exception_00;\n  int *piVar9;\n  char *string;\n  size_t sVar10;\n  undefined4 *puVar11;\n  undefined4 *puVar12;\n  int in_GS_OFFSET;\n  MagickSizeType MVar13;\n  MagickOffsetType progress;\n  double local_9c;\n  double local_94;\n  Image *local_8c;\n  ExceptionInfo *local_88;\n  CacheView *local_84;\n  undefined4 *local_80;\n  MagickBooleanType local_7c;\n  MagickOffsetType *local_78;\n  PixelInfo threshold;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage");\n  }\n  if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage");\n  }\n  if (image->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,"%s",\n                   image->filename);\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage");\n  }\n  if (exception->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage");\n  }\n  MVar3 = SetImageStorageClass(image,DirectClass,exception);\n  if (MVar3 == MagickFalse) goto LAB_001af657;\n  GetPixelInfo(image,&threshold);\n  progress._0_4_ = 0;\n  progress._4_4_ = 0;\n  MVar13 = GetMagickResourceLimit(ThreadResource);\n  sVar4 = (size_t)MVar13;\n  __s = (undefined4 *)AcquireQuantumMemory(sVar4,4);\n  if (__s == (undefined4 *)0x0) {\n    exception_00 = AcquireExceptionInfo();\n    piVar9 = __errno_location();\n    string = GetExceptionMessage(*piVar9);\n    ThrowMagickException\n              (exception_00,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,\n               FatalErrorException,"MemoryAllocationFailed","`%s\'",string);\n    DestroyString(string);\n    CatchException(exception_00);\n    DestroyExceptionInfo(exception_00);\n    MagickCoreTerminus();\n                    /* WARNING: Subroutine does not return */\n    _exit(1);\n  }\n  memset(__s,0,sVar4 * 4);\n  if (0 < (int)sVar4) {\n    puVar11 = __s;\n    do {\n      pRVar5 = AcquireRandomInfo();\n      puVar12 = puVar11 + 1;\n      *puVar11 = pRVar5;\n      puVar11 = puVar12;\n    } while (puVar12 != __s + sVar4);\n  }\n  cache_view = AcquireAuthenticCacheView(image,exception);\n  uVar6 = GetRandomSecretKey((RandomInfo *)*__s);\n  if (uVar6 == 0xffffffff) {\n    CVar8 = GetImagePixelCacheType(image);\n    if (((CVar8 == MemoryCache) || (CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache)) &&\n       ((CVar8 = GetImagePixelCacheType(image), CVar8 == MemoryCache ||\n        (CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache)))) {\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      sVar4 = image->rows;\n      sVar10 = sVar4 + 0x3f;\n      if (-1 < (int)sVar4) {\n        sVar10 = sVar4;\n      }\n      bVar2 = 0x7f < (int)sVar4;\n      if ((int)MVar13 < (int)sVar10 >> 6) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        bVar2 = 1 < (int)MVar13;\n      }\n      if (!bVar2) goto LAB_001af728;\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      sVar4 = image->rows;\n      sVar10 = sVar4 + 0x3f;\n      if (-1 < (int)sVar4) {\n        sVar10 = sVar4;\n      }\n      iVar7 = (int)sVar10 >> 6;\n      if ((int)MVar13 < iVar7) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        iVar7 = (int)MVar13;\n      }\n    }\n    else {\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) goto LAB_001af728;\n      }\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        iVar7 = (int)MVar13;\n      }\n      else {\n        iVar7 = 2;\n      }\n    }\n  }\n  else {\nLAB_001af728:\n    iVar7 = 1;\n  }\n  local_8c = image;\n  local_7c = MagickTrue;\n  local_94 = max_threshold;\n  local_88 = exception;\n  local_78 = &progress;\n  local_9c = min_threshold;\n  local_84 = cache_view;\n  local_80 = __s;\n  GOMP_parallel(RandomThresholdImage__omp_fn_7,&local_9c,iVar7,0);\n  MVar3 = local_7c;\n  DestroyCacheView(cache_view);\n  for (iVar7 = 0; MVar13 = GetMagickResourceLimit(ThreadResource), iVar7 < (int)MVar13;\n      iVar7 = iVar7 + 1) {\n    if ((RandomInfo *)__s[iVar7] != (RandomInfo *)0x0) {\n      pRVar5 = DestroyRandomInfo((RandomInfo *)__s[iVar7]);\n      __s[iVar7] = pRVar5;\n    }\n  }\n  RelinquishMagickMemory(__s);\nLAB_001af657:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return MVar3;\n}" type_identifier (function_declarator "RandomThresholdImage\n          (Image *image,double min_threshold,double max_threshold,ExceptionInfo *exception)" identifier (parameter_list "(Image *image,double min_threshold,double max_threshold,ExceptionInfo *exception)" ( (parameter_declaration "Image *image" type_identifier (pointer_declarator "*image" * identifier)) , (parameter_declaration "double min_threshold" primitive_type identifier) , (parameter_declaration "double max_threshold" primitive_type identifier) , (parameter_declaration "ExceptionInfo *exception" type_identifier (pointer_declarator "*exception" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  MagickBooleanType MVar3;\n  size_t sVar4;\n  undefined4 *__s;\n  RandomInfo *pRVar5;\n  CacheView *cache_view;\n  ulong uVar6;\n  int iVar7;\n  CacheType CVar8;\n  ExceptionInfo *exception_00;\n  int *piVar9;\n  char *string;\n  size_t sVar10;\n  undefined4 *puVar11;\n  undefined4 *puVar12;\n  int in_GS_OFFSET;\n  MagickSizeType MVar13;\n  MagickOffsetType progress;\n  double local_9c;\n  double local_94;\n  Image *local_8c;\n  ExceptionInfo *local_88;\n  CacheView *local_84;\n  undefined4 *local_80;\n  MagickBooleanType local_7c;\n  MagickOffsetType *local_78;\n  PixelInfo threshold;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage");\n  }\n  if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage");\n  }\n  if (image->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,"%s",\n                   image->filename);\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage");\n  }\n  if (exception->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage");\n  }\n  MVar3 = SetImageStorageClass(image,DirectClass,exception);\n  if (MVar3 == MagickFalse) goto LAB_001af657;\n  GetPixelInfo(image,&threshold);\n  progress._0_4_ = 0;\n  progress._4_4_ = 0;\n  MVar13 = GetMagickResourceLimit(ThreadResource);\n  sVar4 = (size_t)MVar13;\n  __s = (undefined4 *)AcquireQuantumMemory(sVar4,4);\n  if (__s == (undefined4 *)0x0) {\n    exception_00 = AcquireExceptionInfo();\n    piVar9 = __errno_location();\n    string = GetExceptionMessage(*piVar9);\n    ThrowMagickException\n              (exception_00,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,\n               FatalErrorException,"MemoryAllocationFailed","`%s\'",string);\n    DestroyString(string);\n    CatchException(exception_00);\n    DestroyExceptionInfo(exception_00);\n    MagickCoreTerminus();\n                    /* WARNING: Subroutine does not return */\n    _exit(1);\n  }\n  memset(__s,0,sVar4 * 4);\n  if (0 < (int)sVar4) {\n    puVar11 = __s;\n    do {\n      pRVar5 = AcquireRandomInfo();\n      puVar12 = puVar11 + 1;\n      *puVar11 = pRVar5;\n      puVar11 = puVar12;\n    } while (puVar12 != __s + sVar4);\n  }\n  cache_view = AcquireAuthenticCacheView(image,exception);\n  uVar6 = GetRandomSecretKey((RandomInfo *)*__s);\n  if (uVar6 == 0xffffffff) {\n    CVar8 = GetImagePixelCacheType(image);\n    if (((CVar8 == MemoryCache) || (CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache)) &&\n       ((CVar8 = GetImagePixelCacheType(image), CVar8 == MemoryCache ||\n        (CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache)))) {\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      sVar4 = image->rows;\n      sVar10 = sVar4 + 0x3f;\n      if (-1 < (int)sVar4) {\n        sVar10 = sVar4;\n      }\n      bVar2 = 0x7f < (int)sVar4;\n      if ((int)MVar13 < (int)sVar10 >> 6) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        bVar2 = 1 < (int)MVar13;\n      }\n      if (!bVar2) goto LAB_001af728;\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      sVar4 = image->rows;\n      sVar10 = sVar4 + 0x3f;\n      if (-1 < (int)sVar4) {\n        sVar10 = sVar4;\n      }\n      iVar7 = (int)sVar10 >> 6;\n      if ((int)MVar13 < iVar7) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        iVar7 = (int)MVar13;\n      }\n    }\n    else {\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) goto LAB_001af728;\n      }\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        iVar7 = (int)MVar13;\n      }\n      else {\n        iVar7 = 2;\n      }\n    }\n  }\n  else {\nLAB_001af728:\n    iVar7 = 1;\n  }\n  local_8c = image;\n  local_7c = MagickTrue;\n  local_94 = max_threshold;\n  local_88 = exception;\n  local_78 = &progress;\n  local_9c = min_threshold;\n  local_84 = cache_view;\n  local_80 = __s;\n  GOMP_parallel(RandomThresholdImage__omp_fn_7,&local_9c,iVar7,0);\n  MVar3 = local_7c;\n  DestroyCacheView(cache_view);\n  for (iVar7 = 0; MVar13 = GetMagickResourceLimit(ThreadResource), iVar7 < (int)MVar13;\n      iVar7 = iVar7 + 1) {\n    if ((RandomInfo *)__s[iVar7] != (RandomInfo *)0x0) {\n      pRVar5 = DestroyRandomInfo((RandomInfo *)__s[iVar7]);\n      __s[iVar7] = pRVar5;\n    }\n  }\n  RelinquishMagickMemory(__s);\nLAB_001af657:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return MVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "MagickBooleanType MVar3;" type_identifier identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "undefined4 *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "RandomInfo *pRVar5;" type_identifier (pointer_declarator "*pRVar5" * identifier) ;) (declaration "CacheView *cache_view;" type_identifier (pointer_declarator "*cache_view" * identifier) ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "CacheType CVar8;" type_identifier identifier ;) (declaration "ExceptionInfo *exception_00;" type_identifier (pointer_declarator "*exception_00" * identifier) ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "char *string;" primitive_type (pointer_declarator "*string" * identifier) ;) (declaration "size_t sVar10;" primitive_type identifier ;) (declaration "undefined4 *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "undefined4 *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "MagickSizeType MVar13;" type_identifier identifier ;) (declaration "MagickOffsetType progress;" type_identifier identifier ;) (declaration "double local_9c;" primitive_type identifier ;) (declaration "double local_94;" primitive_type identifier ;) (declaration "Image *local_8c;" type_identifier (pointer_declarator "*local_8c" * identifier) ;) (declaration "ExceptionInfo *local_88;" type_identifier (pointer_declarator "*local_88" * identifier) ;) (declaration "CacheView *local_84;" type_identifier (pointer_declarator "*local_84" * identifier) ;) (declaration "undefined4 *local_80;" type_identifier (pointer_declarator "*local_80" * identifier) ;) (declaration "MagickBooleanType local_7c;" type_identifier identifier ;) (declaration "MagickOffsetType *local_78;" type_identifier (pointer_declarator "*local_78" * identifier) ;) (declaration "PixelInfo threshold;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage");\n  }" if (parenthesized_expression "(image == (Image *)0x0)" ( (binary_expression "image == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage");\n  }" { comment (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage")" identifier (argument_list "("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/threshold.c"" " string_content ") , number_literal , (string_literal ""RandomThresholdImage"" " string_content ") ))) ;) })) (if_statement "if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage");\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/threshold.c",0x8c3,\n                  "RandomThresholdImage");\n  }" { comment (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/threshold.c"" " string_content ") , number_literal , (string_literal ""RandomThresholdImage"" " string_content ") ))) ;) })) (if_statement "if (image->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,"%s",\n                   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/threshold.c","RandomThresholdImage",0x8c5,"%s",\n                   image->filename);\n  }" { (expression_statement "LogMagickEvent(TraceEvent,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,"%s",\n                   image->filename);" (call_expression "LogMagickEvent(TraceEvent,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,"%s",\n                   image->filename)" identifier (argument_list "(TraceEvent,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,"%s",\n                   image->filename)" ( identifier , (string_literal ""MagickCore/threshold.c"" " string_content ") , (string_literal ""RandomThresholdImage"" " 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/threshold.c",0x8c6,\n                  "RandomThresholdImage");\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/threshold.c",0x8c6,\n                  "RandomThresholdImage");\n  }" { comment (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/threshold.c"" " string_content ") , number_literal , (string_literal ""RandomThresholdImage"" " string_content ") ))) ;) })) (if_statement "if (exception->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage");\n  }" if (parenthesized_expression "(exception->signature != 0xabacadab)" ( (binary_expression "exception->signature != 0xabacadab" (field_expression "exception->signature" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage");\n  }" { comment (expression_statement "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage");" (call_expression "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage")" identifier (argument_list "("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage")" ( (string_literal ""exception->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/threshold.c"" " string_content ") , number_literal , (string_literal ""RandomThresholdImage"" " string_content ") ))) ;) })) (expression_statement "MVar3 = SetImageStorageClass(image,DirectClass,exception);" (assignment_expression "MVar3 = SetImageStorageClass(image,DirectClass,exception)" identifier = (call_expression "SetImageStorageClass(image,DirectClass,exception)" identifier (argument_list "(image,DirectClass,exception)" ( identifier , identifier , identifier )))) ;) (if_statement "if (MVar3 == MagickFalse) goto LAB_001af657;" if (parenthesized_expression "(MVar3 == MagickFalse)" ( (binary_expression "MVar3 == MagickFalse" identifier == identifier) )) (goto_statement "goto LAB_001af657;" goto statement_identifier ;)) (expression_statement "GetPixelInfo(image,&threshold);" (call_expression "GetPixelInfo(image,&threshold)" identifier (argument_list "(image,&threshold)" ( identifier , (pointer_expression "&threshold" & identifier) ))) ;) (expression_statement "progress._0_4_ = 0;" (assignment_expression "progress._0_4_ = 0" (field_expression "progress._0_4_" identifier . field_identifier) = number_literal) ;) (expression_statement "progress._4_4_ = 0;" (assignment_expression "progress._4_4_ = 0" (field_expression "progress._4_4_" identifier . field_identifier) = number_literal) ;) (expression_statement "MVar13 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar13 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (expression_statement "sVar4 = (size_t)MVar13;" (assignment_expression "sVar4 = (size_t)MVar13" identifier = (cast_expression "(size_t)MVar13" ( (type_descriptor "size_t" primitive_type) ) identifier)) ;) (expression_statement "__s = (undefined4 *)AcquireQuantumMemory(sVar4,4);" (assignment_expression "__s = (undefined4 *)AcquireQuantumMemory(sVar4,4)" identifier = (cast_expression "(undefined4 *)AcquireQuantumMemory(sVar4,4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireQuantumMemory(sVar4,4)" identifier (argument_list "(sVar4,4)" ( identifier , number_literal ))))) ;) (if_statement "if (__s == (undefined4 *)0x0) {\n    exception_00 = AcquireExceptionInfo();\n    piVar9 = __errno_location();\n    string = GetExceptionMessage(*piVar9);\n    ThrowMagickException\n              (exception_00,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,\n               FatalErrorException,"MemoryAllocationFailed","`%s\'",string);\n    DestroyString(string);\n    CatchException(exception_00);\n    DestroyExceptionInfo(exception_00);\n    MagickCoreTerminus();\n                    /* WARNING: Subroutine does not return */\n    _exit(1);\n  }" if (parenthesized_expression "(__s == (undefined4 *)0x0)" ( (binary_expression "__s == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    exception_00 = AcquireExceptionInfo();\n    piVar9 = __errno_location();\n    string = GetExceptionMessage(*piVar9);\n    ThrowMagickException\n              (exception_00,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,\n               FatalErrorException,"MemoryAllocationFailed","`%s\'",string);\n    DestroyString(string);\n    CatchException(exception_00);\n    DestroyExceptionInfo(exception_00);\n    MagickCoreTerminus();\n                    /* WARNING: Subroutine does not return */\n    _exit(1);\n  }" { (expression_statement "exception_00 = AcquireExceptionInfo();" (assignment_expression "exception_00 = AcquireExceptionInfo()" identifier = (call_expression "AcquireExceptionInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar9 = __errno_location();" (assignment_expression "piVar9 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "string = GetExceptionMessage(*piVar9);" (assignment_expression "string = GetExceptionMessage(*piVar9)" identifier = (call_expression "GetExceptionMessage(*piVar9)" identifier (argument_list "(*piVar9)" ( (pointer_expression "*piVar9" * identifier) )))) ;) (expression_statement "ThrowMagickException\n              (exception_00,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,\n               FatalErrorException,"MemoryAllocationFailed","`%s\'",string);" (call_expression "ThrowMagickException\n              (exception_00,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,\n               FatalErrorException,"MemoryAllocationFailed","`%s\'",string)" identifier (argument_list "(exception_00,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,\n               FatalErrorException,"MemoryAllocationFailed","`%s\'",string)" ( identifier , (string_literal ""./MagickCore/random-private.h"" " string_content ") , (string_literal ""AcquireRandomInfoThreadSet"" " string_content ") , number_literal , identifier , (string_literal ""MemoryAllocationFailed"" " string_content ") , (string_literal ""`%s\'"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "DestroyString(string);" (call_expression "DestroyString(string)" identifier (argument_list "(string)" ( identifier ))) ;) (expression_statement "CatchException(exception_00);" (call_expression "CatchException(exception_00)" identifier (argument_list "(exception_00)" ( identifier ))) ;) (expression_statement "DestroyExceptionInfo(exception_00);" (call_expression "DestroyExceptionInfo(exception_00)" identifier (argument_list "(exception_00)" ( identifier ))) ;) (expression_statement "MagickCoreTerminus();" (call_expression "MagickCoreTerminus()" identifier (argument_list "()" ( ))) ;) comment (expression_statement "_exit(1);" (call_expression "_exit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (expression_statement "memset(__s,0,sVar4 * 4);" (call_expression "memset(__s,0,sVar4 * 4)" identifier (argument_list "(__s,0,sVar4 * 4)" ( identifier , number_literal , (binary_expression "sVar4 * 4" identifier * number_literal) ))) ;) (if_statement "if (0 < (int)sVar4) {\n    puVar11 = __s;\n    do {\n      pRVar5 = AcquireRandomInfo();\n      puVar12 = puVar11 + 1;\n      *puVar11 = pRVar5;\n      puVar11 = puVar12;\n    } while (puVar12 != __s + sVar4);\n  }" if (parenthesized_expression "(0 < (int)sVar4)" ( (binary_expression "0 < (int)sVar4" number_literal < (cast_expression "(int)sVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    puVar11 = __s;\n    do {\n      pRVar5 = AcquireRandomInfo();\n      puVar12 = puVar11 + 1;\n      *puVar11 = pRVar5;\n      puVar11 = puVar12;\n    } while (puVar12 != __s + sVar4);\n  }" { (expression_statement "puVar11 = __s;" (assignment_expression "puVar11 = __s" identifier = identifier) ;) (do_statement "do {\n      pRVar5 = AcquireRandomInfo();\n      puVar12 = puVar11 + 1;\n      *puVar11 = pRVar5;\n      puVar11 = puVar12;\n    } while (puVar12 != __s + sVar4);" do (compound_statement "{\n      pRVar5 = AcquireRandomInfo();\n      puVar12 = puVar11 + 1;\n      *puVar11 = pRVar5;\n      puVar11 = puVar12;\n    }" { (expression_statement "pRVar5 = AcquireRandomInfo();" (assignment_expression "pRVar5 = AcquireRandomInfo()" identifier = (call_expression "AcquireRandomInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar12 = puVar11 + 1;" (assignment_expression "puVar12 = puVar11 + 1" identifier = (binary_expression "puVar11 + 1" identifier + number_literal)) ;) (expression_statement "*puVar11 = pRVar5;" (assignment_expression "*puVar11 = pRVar5" (pointer_expression "*puVar11" * identifier) = identifier) ;) (expression_statement "puVar11 = puVar12;" (assignment_expression "puVar11 = puVar12" identifier = identifier) ;) }) while (parenthesized_expression "(puVar12 != __s + sVar4)" ( (binary_expression "puVar12 != __s + sVar4" identifier != (binary_expression "__s + sVar4" identifier + identifier)) )) ;) })) (expression_statement "cache_view = AcquireAuthenticCacheView(image,exception);" (assignment_expression "cache_view = AcquireAuthenticCacheView(image,exception)" identifier = (call_expression "AcquireAuthenticCacheView(image,exception)" identifier (argument_list "(image,exception)" ( identifier , identifier )))) ;) (expression_statement "uVar6 = GetRandomSecretKey((RandomInfo *)*__s);" (assignment_expression "uVar6 = GetRandomSecretKey((RandomInfo *)*__s)" identifier = (call_expression "GetRandomSecretKey((RandomInfo *)*__s)" identifier (argument_list "((RandomInfo *)*__s)" ( (cast_expression "(RandomInfo *)*__s" ( (type_descriptor "RandomInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*__s" * identifier)) )))) ;) (if_statement "if (uVar6 == 0xffffffff) {\n    CVar8 = GetImagePixelCacheType(image);\n    if (((CVar8 == MemoryCache) || (CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache)) &&\n       ((CVar8 = GetImagePixelCacheType(image), CVar8 == MemoryCache ||\n        (CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache)))) {\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      sVar4 = image->rows;\n      sVar10 = sVar4 + 0x3f;\n      if (-1 < (int)sVar4) {\n        sVar10 = sVar4;\n      }\n      bVar2 = 0x7f < (int)sVar4;\n      if ((int)MVar13 < (int)sVar10 >> 6) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        bVar2 = 1 < (int)MVar13;\n      }\n      if (!bVar2) goto LAB_001af728;\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      sVar4 = image->rows;\n      sVar10 = sVar4 + 0x3f;\n      if (-1 < (int)sVar4) {\n        sVar10 = sVar4;\n      }\n      iVar7 = (int)sVar10 >> 6;\n      if ((int)MVar13 < iVar7) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        iVar7 = (int)MVar13;\n      }\n    }\n    else {\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) goto LAB_001af728;\n      }\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        iVar7 = (int)MVar13;\n      }\n      else {\n        iVar7 = 2;\n      }\n    }\n  }\n  else {\nLAB_001af728:\n    iVar7 = 1;\n  }" if (parenthesized_expression "(uVar6 == 0xffffffff)" ( (binary_expression "uVar6 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n    CVar8 = GetImagePixelCacheType(image);\n    if (((CVar8 == MemoryCache) || (CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache)) &&\n       ((CVar8 = GetImagePixelCacheType(image), CVar8 == MemoryCache ||\n        (CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache)))) {\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      sVar4 = image->rows;\n      sVar10 = sVar4 + 0x3f;\n      if (-1 < (int)sVar4) {\n        sVar10 = sVar4;\n      }\n      bVar2 = 0x7f < (int)sVar4;\n      if ((int)MVar13 < (int)sVar10 >> 6) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        bVar2 = 1 < (int)MVar13;\n      }\n      if (!bVar2) goto LAB_001af728;\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      sVar4 = image->rows;\n      sVar10 = sVar4 + 0x3f;\n      if (-1 < (int)sVar4) {\n        sVar10 = sVar4;\n      }\n      iVar7 = (int)sVar10 >> 6;\n      if ((int)MVar13 < iVar7) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        iVar7 = (int)MVar13;\n      }\n    }\n    else {\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) goto LAB_001af728;\n      }\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        iVar7 = (int)MVar13;\n      }\n      else {\n        iVar7 = 2;\n      }\n    }\n  }" { (expression_statement "CVar8 = GetImagePixelCacheType(image);" (assignment_expression "CVar8 = GetImagePixelCacheType(image)" identifier = (call_expression "GetImagePixelCacheType(image)" identifier (argument_list "(image)" ( identifier )))) ;) (if_statement "if (((CVar8 == MemoryCache) || (CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache)) &&\n       ((CVar8 = GetImagePixelCacheType(image), CVar8 == MemoryCache ||\n        (CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache)))) {\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      sVar4 = image->rows;\n      sVar10 = sVar4 + 0x3f;\n      if (-1 < (int)sVar4) {\n        sVar10 = sVar4;\n      }\n      bVar2 = 0x7f < (int)sVar4;\n      if ((int)MVar13 < (int)sVar10 >> 6) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        bVar2 = 1 < (int)MVar13;\n      }\n      if (!bVar2) goto LAB_001af728;\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      sVar4 = image->rows;\n      sVar10 = sVar4 + 0x3f;\n      if (-1 < (int)sVar4) {\n        sVar10 = sVar4;\n      }\n      iVar7 = (int)sVar10 >> 6;\n      if ((int)MVar13 < iVar7) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        iVar7 = (int)MVar13;\n      }\n    }\n    else {\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) goto LAB_001af728;\n      }\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        iVar7 = (int)MVar13;\n      }\n      else {\n        iVar7 = 2;\n      }\n    }" if (parenthesized_expression "(((CVar8 == MemoryCache) || (CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache)) &&\n       ((CVar8 = GetImagePixelCacheType(image), CVar8 == MemoryCache ||\n        (CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache))))" ( (binary_expression "((CVar8 == MemoryCache) || (CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache)) &&\n       ((CVar8 = GetImagePixelCacheType(image), CVar8 == MemoryCache ||\n        (CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache)))" (parenthesized_expression "((CVar8 == MemoryCache) || (CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache))" ( (binary_expression "(CVar8 == MemoryCache) || (CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache)" (parenthesized_expression "(CVar8 == MemoryCache)" ( (binary_expression "CVar8 == MemoryCache" identifier == identifier) )) || (parenthesized_expression "(CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache)" ( (comma_expression "CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache" (assignment_expression "CVar8 = GetImagePixelCacheType(image)" identifier = (call_expression "GetImagePixelCacheType(image)" identifier (argument_list "(image)" ( identifier )))) , (binary_expression "CVar8 == MapCache" identifier == identifier)) ))) )) && (parenthesized_expression "((CVar8 = GetImagePixelCacheType(image), CVar8 == MemoryCache ||\n        (CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache)))" ( (parenthesized_expression "(CVar8 = GetImagePixelCacheType(image), CVar8 == MemoryCache ||\n        (CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache))" ( (comma_expression "CVar8 = GetImagePixelCacheType(image), CVar8 == MemoryCache ||\n        (CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache)" (assignment_expression "CVar8 = GetImagePixelCacheType(image)" identifier = (call_expression "GetImagePixelCacheType(image)" identifier (argument_list "(image)" ( identifier )))) , (binary_expression "CVar8 == MemoryCache ||\n        (CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache)" (binary_expression "CVar8 == MemoryCache" identifier == identifier) || (parenthesized_expression "(CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache)" ( (comma_expression "CVar8 = GetImagePixelCacheType(image), CVar8 == MapCache" (assignment_expression "CVar8 = GetImagePixelCacheType(image)" identifier = (call_expression "GetImagePixelCacheType(image)" identifier (argument_list "(image)" ( identifier )))) , (binary_expression "CVar8 == MapCache" identifier == identifier)) )))) )) ))) )) (compound_statement "{\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      sVar4 = image->rows;\n      sVar10 = sVar4 + 0x3f;\n      if (-1 < (int)sVar4) {\n        sVar10 = sVar4;\n      }\n      bVar2 = 0x7f < (int)sVar4;\n      if ((int)MVar13 < (int)sVar10 >> 6) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        bVar2 = 1 < (int)MVar13;\n      }\n      if (!bVar2) goto LAB_001af728;\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      sVar4 = image->rows;\n      sVar10 = sVar4 + 0x3f;\n      if (-1 < (int)sVar4) {\n        sVar10 = sVar4;\n      }\n      iVar7 = (int)sVar10 >> 6;\n      if ((int)MVar13 < iVar7) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        iVar7 = (int)MVar13;\n      }\n    }" { (expression_statement "MVar13 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar13 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (expression_statement "sVar4 = image->rows;" (assignment_expression "sVar4 = image->rows" identifier = (field_expression "image->rows" identifier -> field_identifier)) ;) (expression_statement "sVar10 = sVar4 + 0x3f;" (assignment_expression "sVar10 = sVar4 + 0x3f" identifier = (binary_expression "sVar4 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < (int)sVar4) {\n        sVar10 = sVar4;\n      }" if (parenthesized_expression "(-1 < (int)sVar4)" ( (binary_expression "-1 < (int)sVar4" number_literal < (cast_expression "(int)sVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        sVar10 = sVar4;\n      }" { (expression_statement "sVar10 = sVar4;" (assignment_expression "sVar10 = sVar4" identifier = identifier) ;) })) (expression_statement "bVar2 = 0x7f < (int)sVar4;" (assignment_expression "bVar2 = 0x7f < (int)sVar4" identifier = (binary_expression "0x7f < (int)sVar4" number_literal < (cast_expression "(int)sVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if ((int)MVar13 < (int)sVar10 >> 6) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        bVar2 = 1 < (int)MVar13;\n      }" if (parenthesized_expression "((int)MVar13 < (int)sVar10 >> 6)" ( (binary_expression "(int)MVar13 < (int)sVar10 >> 6" (cast_expression "(int)MVar13" ( (type_descriptor "int" primitive_type) ) identifier) < (binary_expression "(int)sVar10 >> 6" (cast_expression "(int)sVar10" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) )) (compound_statement "{\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        bVar2 = 1 < (int)MVar13;\n      }" { (expression_statement "MVar13 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar13 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (expression_statement "bVar2 = 1 < (int)MVar13;" (assignment_expression "bVar2 = 1 < (int)MVar13" identifier = (binary_expression "1 < (int)MVar13" number_literal < (cast_expression "(int)MVar13" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (if_statement "if (!bVar2) goto LAB_001af728;" if (parenthesized_expression "(!bVar2)" ( (unary_expression "!bVar2" ! identifier) )) (goto_statement "goto LAB_001af728;" goto statement_identifier ;)) (expression_statement "MVar13 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar13 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (expression_statement "sVar4 = image->rows;" (assignment_expression "sVar4 = image->rows" identifier = (field_expression "image->rows" identifier -> field_identifier)) ;) (expression_statement "sVar10 = sVar4 + 0x3f;" (assignment_expression "sVar10 = sVar4 + 0x3f" identifier = (binary_expression "sVar4 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < (int)sVar4) {\n        sVar10 = sVar4;\n      }" if (parenthesized_expression "(-1 < (int)sVar4)" ( (binary_expression "-1 < (int)sVar4" number_literal < (cast_expression "(int)sVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        sVar10 = sVar4;\n      }" { (expression_statement "sVar10 = sVar4;" (assignment_expression "sVar10 = sVar4" identifier = identifier) ;) })) (expression_statement "iVar7 = (int)sVar10 >> 6;" (assignment_expression "iVar7 = (int)sVar10 >> 6" identifier = (binary_expression "(int)sVar10 >> 6" (cast_expression "(int)sVar10" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (if_statement "if ((int)MVar13 < iVar7) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        iVar7 = (int)MVar13;\n      }" if (parenthesized_expression "((int)MVar13 < iVar7)" ( (binary_expression "(int)MVar13 < iVar7" (cast_expression "(int)MVar13" ( (type_descriptor "int" primitive_type) ) identifier) < identifier) )) (compound_statement "{\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        iVar7 = (int)MVar13;\n      }" { (expression_statement "MVar13 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar13 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (expression_statement "iVar7 = (int)MVar13;" (assignment_expression "iVar7 = (int)MVar13" identifier = (cast_expression "(int)MVar13" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) }) (else_clause "else {\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) goto LAB_001af728;\n      }\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        iVar7 = (int)MVar13;\n      }\n      else {\n        iVar7 = 2;\n      }\n    }" else (compound_statement "{\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) goto LAB_001af728;\n      }\n      MVar13 = GetMagickResourceLimit(ThreadResource);\n      if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        iVar7 = (int)MVar13;\n      }\n      else {\n        iVar7 = 2;\n      }\n    }" { (expression_statement "MVar13 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar13 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (if_statement "if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) goto LAB_001af728;\n      }" if (parenthesized_expression "(((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2))" ( (binary_expression "((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)" (parenthesized_expression "((int)(MVar13 >> 0x20) == 0)" ( (binary_expression "(int)(MVar13 >> 0x20) == 0" (cast_expression "(int)(MVar13 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(MVar13 >> 0x20)" ( (binary_expression "MVar13 >> 0x20" identifier >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)MVar13 < 2)" ( (binary_expression "(uint)MVar13 < 2" (cast_expression "(uint)MVar13" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) goto LAB_001af728;\n      }" { (expression_statement "MVar13 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar13 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (if_statement "if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) goto LAB_001af728;" if (parenthesized_expression "(((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2))" ( (binary_expression "((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)" (parenthesized_expression "((int)(MVar13 >> 0x20) == 0)" ( (binary_expression "(int)(MVar13 >> 0x20) == 0" (cast_expression "(int)(MVar13 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(MVar13 >> 0x20)" ( (binary_expression "MVar13 >> 0x20" identifier >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)MVar13 < 2)" ( (binary_expression "(uint)MVar13 < 2" (cast_expression "(uint)MVar13" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (goto_statement "goto LAB_001af728;" goto statement_identifier ;)) })) (expression_statement "MVar13 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar13 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (if_statement "if (((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)) {\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        iVar7 = (int)MVar13;\n      }\n      else {\n        iVar7 = 2;\n      }" if (parenthesized_expression "(((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2))" ( (binary_expression "((int)(MVar13 >> 0x20) == 0) && ((uint)MVar13 < 2)" (parenthesized_expression "((int)(MVar13 >> 0x20) == 0)" ( (binary_expression "(int)(MVar13 >> 0x20) == 0" (cast_expression "(int)(MVar13 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(MVar13 >> 0x20)" ( (binary_expression "MVar13 >> 0x20" identifier >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)MVar13 < 2)" ( (binary_expression "(uint)MVar13 < 2" (cast_expression "(uint)MVar13" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n        MVar13 = GetMagickResourceLimit(ThreadResource);\n        iVar7 = (int)MVar13;\n      }" { (expression_statement "MVar13 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar13 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (expression_statement "iVar7 = (int)MVar13;" (assignment_expression "iVar7 = (int)MVar13" identifier = (cast_expression "(int)MVar13" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n        iVar7 = 2;\n      }" else (compound_statement "{\n        iVar7 = 2;\n      }" { (expression_statement "iVar7 = 2;" (assignment_expression "iVar7 = 2" identifier = number_literal) ;) }))) }))) }) (else_clause "else {\nLAB_001af728:\n    iVar7 = 1;\n  }" else (compound_statement "{\nLAB_001af728:\n    iVar7 = 1;\n  }" { (labeled_statement "LAB_001af728:\n    iVar7 = 1;" statement_identifier : (expression_statement "iVar7 = 1;" (assignment_expression "iVar7 = 1" identifier = number_literal) ;)) }))) (expression_statement "local_8c = image;" (assignment_expression "local_8c = image" identifier = identifier) ;) (expression_statement "local_7c = MagickTrue;" (assignment_expression "local_7c = MagickTrue" identifier = identifier) ;) (expression_statement "local_94 = max_threshold;" (assignment_expression "local_94 = max_threshold" identifier = identifier) ;) (expression_statement "local_88 = exception;" (assignment_expression "local_88 = exception" identifier = identifier) ;) (expression_statement "local_78 = &progress;" (assignment_expression "local_78 = &progress" identifier = (pointer_expression "&progress" & identifier)) ;) (expression_statement "local_9c = min_threshold;" (assignment_expression "local_9c = min_threshold" identifier = identifier) ;) (expression_statement "local_84 = cache_view;" (assignment_expression "local_84 = cache_view" identifier = identifier) ;) (expression_statement "local_80 = __s;" (assignment_expression "local_80 = __s" identifier = identifier) ;) (expression_statement "GOMP_parallel(RandomThresholdImage__omp_fn_7,&local_9c,iVar7,0);" (call_expression "GOMP_parallel(RandomThresholdImage__omp_fn_7,&local_9c,iVar7,0)" identifier (argument_list "(RandomThresholdImage__omp_fn_7,&local_9c,iVar7,0)" ( identifier , (pointer_expression "&local_9c" & identifier) , identifier , number_literal ))) ;) (expression_statement "MVar3 = local_7c;" (assignment_expression "MVar3 = local_7c" identifier = identifier) ;) (expression_statement "DestroyCacheView(cache_view);" (call_expression "DestroyCacheView(cache_view)" identifier (argument_list "(cache_view)" ( identifier ))) ;) (for_statement "for (iVar7 = 0; MVar13 = GetMagickResourceLimit(ThreadResource), iVar7 < (int)MVar13;\n      iVar7 = iVar7 + 1) {\n    if ((RandomInfo *)__s[iVar7] != (RandomInfo *)0x0) {\n      pRVar5 = DestroyRandomInfo((RandomInfo *)__s[iVar7]);\n      __s[iVar7] = pRVar5;\n    }\n  }" for ( (assignment_expression "iVar7 = 0" identifier = number_literal) ; (comma_expression "MVar13 = GetMagickResourceLimit(ThreadResource), iVar7 < (int)MVar13" (assignment_expression "MVar13 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) , (binary_expression "iVar7 < (int)MVar13" identifier < (cast_expression "(int)MVar13" ( (type_descriptor "int" primitive_type) ) identifier))) ; (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ) (compound_statement "{\n    if ((RandomInfo *)__s[iVar7] != (RandomInfo *)0x0) {\n      pRVar5 = DestroyRandomInfo((RandomInfo *)__s[iVar7]);\n      __s[iVar7] = pRVar5;\n    }\n  }" { (if_statement "if ((RandomInfo *)__s[iVar7] != (RandomInfo *)0x0) {\n      pRVar5 = DestroyRandomInfo((RandomInfo *)__s[iVar7]);\n      __s[iVar7] = pRVar5;\n    }" if (parenthesized_expression "((RandomInfo *)__s[iVar7] != (RandomInfo *)0x0)" ( (binary_expression "(RandomInfo *)__s[iVar7] != (RandomInfo *)0x0" (cast_expression "(RandomInfo *)__s[iVar7]" ( (type_descriptor "RandomInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "__s[iVar7]" identifier [ identifier ])) != (cast_expression "(RandomInfo *)0x0" ( (type_descriptor "RandomInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pRVar5 = DestroyRandomInfo((RandomInfo *)__s[iVar7]);\n      __s[iVar7] = pRVar5;\n    }" { (expression_statement "pRVar5 = DestroyRandomInfo((RandomInfo *)__s[iVar7]);" (assignment_expression "pRVar5 = DestroyRandomInfo((RandomInfo *)__s[iVar7])" identifier = (call_expression "DestroyRandomInfo((RandomInfo *)__s[iVar7])" identifier (argument_list "((RandomInfo *)__s[iVar7])" ( (cast_expression "(RandomInfo *)__s[iVar7]" ( (type_descriptor "RandomInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "__s[iVar7]" identifier [ identifier ])) )))) ;) (expression_statement "__s[iVar7] = pRVar5;" (assignment_expression "__s[iVar7] = pRVar5" (subscript_expression "__s[iVar7]" identifier [ identifier ]) = identifier) ;) })) })) (expression_statement "RelinquishMagickMemory(__s);" (call_expression "RelinquishMagickMemory(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (labeled_statement "LAB_001af657:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return MVar3;" return identifier ;) })))
(translation_unit "int RandomThresholdImage(int param_1,undefined8 param_2,undefined8 param_3,int param_4)\n\n{\n  bool bVar1;\n  int iVar2;\n  undefined4 *__s;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  int in_GS_OFFSET;\n  undefined8 uVar10;\n  undefined4 local_a4;\n  undefined4 local_a0;\n  undefined8 local_9c;\n  undefined8 local_94;\n  int local_8c;\n  int local_88;\n  undefined4 local_84;\n  undefined4 *local_80;\n  int local_7c;\n  undefined4 *local_78;\n  undefined1 local_70 [80];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1af5b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,&DAT_002b6e4e,\n                   param_1 + 0x318);\n  }\n  if (param_4 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage");\n  }\n  if (*(int *)(param_4 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage");\n  }\n  iVar2 = SetImageStorageClass(param_1,1,param_4);\n  if (iVar2 == 0) goto LAB_001af657;\n  GetPixelInfo(param_1,local_70);\n  local_a4 = 0;\n  local_a0 = 0;\n  iVar2 = GetMagickResourceLimit(7);\n  __s = (undefined4 *)AcquireQuantumMemory(iVar2,4);\n  if (__s == (undefined4 *)0x0) {\n    uVar3 = AcquireExceptionInfo();\n    piVar6 = __errno_location();\n    uVar7 = GetExceptionMessage(*piVar6);\n    ThrowMagickException\n              (uVar3,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,700,\n               "MemoryAllocationFailed","`%s\'",uVar7);\n    DestroyString(uVar7);\n    CatchException(uVar3);\n    DestroyExceptionInfo(uVar3);\n    MagickCoreTerminus();\n                    \n    _exit(1);\n  }\n  memset(__s,0,iVar2 * 4);\n  if (0 < iVar2) {\n    puVar8 = __s;\n    do {\n      uVar3 = AcquireRandomInfo();\n      puVar9 = puVar8 + 1;\n      *puVar8 = uVar3;\n      puVar8 = puVar9;\n    } while (puVar9 != __s + iVar2);\n  }\n  uVar3 = AcquireAuthenticCacheView(param_1,param_4);\n  iVar2 = GetRandomSecretKey(*__s);\n  if (iVar2 == -1) {\n    iVar2 = GetImagePixelCacheType(param_1);\n    if (((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)) &&\n       ((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)))) {\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      bVar1 = 0x7f < iVar2;\n      if (iVar5 < iVar4 >> 6) {\n        iVar2 = GetMagickResourceLimit(7);\n        bVar1 = 1 < iVar2;\n      }\n      if (!bVar1) goto LAB_001af728;\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      iVar4 = iVar4 >> 6;\n      if (iVar5 < iVar4) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n      else {\n        iVar4 = 2;\n      }\n    }\n  }\n  else {\nLAB_001af728:\n    iVar4 = 1;\n  }\n  local_8c = param_1;\n  local_7c = 1;\n  local_94 = param_3;\n  local_88 = param_4;\n  local_78 = &local_a4;\n  local_9c = param_2;\n  local_84 = uVar3;\n  local_80 = __s;\n  GOMP_parallel(FUN_001aae40,&local_9c,iVar4,0);\n  iVar2 = local_7c;\n  DestroyCacheView(uVar3);\n  for (iVar4 = 0; iVar5 = GetMagickResourceLimit(7), iVar4 < iVar5; iVar4 = iVar4 + 1) {\n    if (__s[iVar4] != 0) {\n      uVar3 = DestroyRandomInfo(__s[iVar4]);\n      __s[iVar4] = uVar3;\n    }\n  }\n  RelinquishMagickMemory(__s);\nLAB_001af657:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return iVar2;\n}\n\n" (function_definition "int RandomThresholdImage(int param_1,undefined8 param_2,undefined8 param_3,int param_4)\n\n{\n  bool bVar1;\n  int iVar2;\n  undefined4 *__s;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  int in_GS_OFFSET;\n  undefined8 uVar10;\n  undefined4 local_a4;\n  undefined4 local_a0;\n  undefined8 local_9c;\n  undefined8 local_94;\n  int local_8c;\n  int local_88;\n  undefined4 local_84;\n  undefined4 *local_80;\n  int local_7c;\n  undefined4 *local_78;\n  undefined1 local_70 [80];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1af5b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,&DAT_002b6e4e,\n                   param_1 + 0x318);\n  }\n  if (param_4 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage");\n  }\n  if (*(int *)(param_4 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage");\n  }\n  iVar2 = SetImageStorageClass(param_1,1,param_4);\n  if (iVar2 == 0) goto LAB_001af657;\n  GetPixelInfo(param_1,local_70);\n  local_a4 = 0;\n  local_a0 = 0;\n  iVar2 = GetMagickResourceLimit(7);\n  __s = (undefined4 *)AcquireQuantumMemory(iVar2,4);\n  if (__s == (undefined4 *)0x0) {\n    uVar3 = AcquireExceptionInfo();\n    piVar6 = __errno_location();\n    uVar7 = GetExceptionMessage(*piVar6);\n    ThrowMagickException\n              (uVar3,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,700,\n               "MemoryAllocationFailed","`%s\'",uVar7);\n    DestroyString(uVar7);\n    CatchException(uVar3);\n    DestroyExceptionInfo(uVar3);\n    MagickCoreTerminus();\n                    \n    _exit(1);\n  }\n  memset(__s,0,iVar2 * 4);\n  if (0 < iVar2) {\n    puVar8 = __s;\n    do {\n      uVar3 = AcquireRandomInfo();\n      puVar9 = puVar8 + 1;\n      *puVar8 = uVar3;\n      puVar8 = puVar9;\n    } while (puVar9 != __s + iVar2);\n  }\n  uVar3 = AcquireAuthenticCacheView(param_1,param_4);\n  iVar2 = GetRandomSecretKey(*__s);\n  if (iVar2 == -1) {\n    iVar2 = GetImagePixelCacheType(param_1);\n    if (((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)) &&\n       ((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)))) {\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      bVar1 = 0x7f < iVar2;\n      if (iVar5 < iVar4 >> 6) {\n        iVar2 = GetMagickResourceLimit(7);\n        bVar1 = 1 < iVar2;\n      }\n      if (!bVar1) goto LAB_001af728;\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      iVar4 = iVar4 >> 6;\n      if (iVar5 < iVar4) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n      else {\n        iVar4 = 2;\n      }\n    }\n  }\n  else {\nLAB_001af728:\n    iVar4 = 1;\n  }\n  local_8c = param_1;\n  local_7c = 1;\n  local_94 = param_3;\n  local_88 = param_4;\n  local_78 = &local_a4;\n  local_9c = param_2;\n  local_84 = uVar3;\n  local_80 = __s;\n  GOMP_parallel(FUN_001aae40,&local_9c,iVar4,0);\n  iVar2 = local_7c;\n  DestroyCacheView(uVar3);\n  for (iVar4 = 0; iVar5 = GetMagickResourceLimit(7), iVar4 < iVar5; iVar4 = iVar4 + 1) {\n    if (__s[iVar4] != 0) {\n      uVar3 = DestroyRandomInfo(__s[iVar4]);\n      __s[iVar4] = uVar3;\n    }\n  }\n  RelinquishMagickMemory(__s);\nLAB_001af657:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return iVar2;\n}" primitive_type (function_declarator "RandomThresholdImage(int param_1,undefined8 param_2,undefined8 param_3,int param_4)" identifier (parameter_list "(int param_1,undefined8 param_2,undefined8 param_3,int param_4)" ( (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 "int param_4" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  undefined4 *__s;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  int in_GS_OFFSET;\n  undefined8 uVar10;\n  undefined4 local_a4;\n  undefined4 local_a0;\n  undefined8 local_9c;\n  undefined8 local_94;\n  int local_8c;\n  int local_88;\n  undefined4 local_84;\n  undefined4 *local_80;\n  int local_7c;\n  undefined4 *local_78;\n  undefined1 local_70 [80];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1af5b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,&DAT_002b6e4e,\n                   param_1 + 0x318);\n  }\n  if (param_4 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage");\n  }\n  if (*(int *)(param_4 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage");\n  }\n  iVar2 = SetImageStorageClass(param_1,1,param_4);\n  if (iVar2 == 0) goto LAB_001af657;\n  GetPixelInfo(param_1,local_70);\n  local_a4 = 0;\n  local_a0 = 0;\n  iVar2 = GetMagickResourceLimit(7);\n  __s = (undefined4 *)AcquireQuantumMemory(iVar2,4);\n  if (__s == (undefined4 *)0x0) {\n    uVar3 = AcquireExceptionInfo();\n    piVar6 = __errno_location();\n    uVar7 = GetExceptionMessage(*piVar6);\n    ThrowMagickException\n              (uVar3,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,700,\n               "MemoryAllocationFailed","`%s\'",uVar7);\n    DestroyString(uVar7);\n    CatchException(uVar3);\n    DestroyExceptionInfo(uVar3);\n    MagickCoreTerminus();\n                    \n    _exit(1);\n  }\n  memset(__s,0,iVar2 * 4);\n  if (0 < iVar2) {\n    puVar8 = __s;\n    do {\n      uVar3 = AcquireRandomInfo();\n      puVar9 = puVar8 + 1;\n      *puVar8 = uVar3;\n      puVar8 = puVar9;\n    } while (puVar9 != __s + iVar2);\n  }\n  uVar3 = AcquireAuthenticCacheView(param_1,param_4);\n  iVar2 = GetRandomSecretKey(*__s);\n  if (iVar2 == -1) {\n    iVar2 = GetImagePixelCacheType(param_1);\n    if (((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)) &&\n       ((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)))) {\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      bVar1 = 0x7f < iVar2;\n      if (iVar5 < iVar4 >> 6) {\n        iVar2 = GetMagickResourceLimit(7);\n        bVar1 = 1 < iVar2;\n      }\n      if (!bVar1) goto LAB_001af728;\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      iVar4 = iVar4 >> 6;\n      if (iVar5 < iVar4) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n      else {\n        iVar4 = 2;\n      }\n    }\n  }\n  else {\nLAB_001af728:\n    iVar4 = 1;\n  }\n  local_8c = param_1;\n  local_7c = 1;\n  local_94 = param_3;\n  local_88 = param_4;\n  local_78 = &local_a4;\n  local_9c = param_2;\n  local_84 = uVar3;\n  local_80 = __s;\n  GOMP_parallel(FUN_001aae40,&local_9c,iVar4,0);\n  iVar2 = local_7c;\n  DestroyCacheView(uVar3);\n  for (iVar4 = 0; iVar5 = GetMagickResourceLimit(7), iVar4 < iVar5; iVar4 = iVar4 + 1) {\n    if (__s[iVar4] != 0) {\n      uVar3 = DestroyRandomInfo(__s[iVar4]);\n      __s[iVar4] = uVar3;\n    }\n  }\n  RelinquishMagickMemory(__s);\nLAB_001af657:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return iVar2;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined4 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined8 uVar10;" type_identifier identifier ;) (declaration "undefined4 local_a4;" type_identifier identifier ;) (declaration "undefined4 local_a0;" type_identifier identifier ;) (declaration "undefined8 local_9c;" type_identifier identifier ;) (declaration "undefined8 local_94;" type_identifier identifier ;) (declaration "int local_8c;" primitive_type identifier ;) (declaration "int local_88;" primitive_type identifier ;) (declaration "undefined4 local_84;" type_identifier identifier ;) (declaration "undefined4 *local_80;" type_identifier (pointer_declarator "*local_80" * identifier) ;) (declaration "int local_7c;" primitive_type identifier ;) (declaration "undefined4 *local_78;" type_identifier (pointer_declarator "*local_78" * identifier) ;) (declaration "undefined1 local_70 [80];" type_identifier (array_declarator "local_70 [80]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1af5b9;" (assignment_expression "uStack_14 = 0x1af5b9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage");\n  }" { (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage")" identifier (argument_list "("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/threshold.c"" " string_content ") , number_literal , (string_literal ""RandomThresholdImage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage");\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/threshold.c",0x8c3,\n                  "RandomThresholdImage");\n  }" { (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/threshold.c"" " string_content ") , number_literal , (string_literal ""RandomThresholdImage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,&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/threshold.c","RandomThresholdImage",0x8c5,&DAT_002b6e4e,\n                   param_1 + 0x318);\n  }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,&DAT_002b6e4e,\n                   param_1 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,&DAT_002b6e4e,\n                   param_1 + 0x318)" identifier (argument_list "(0x8000,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,&DAT_002b6e4e,\n                   param_1 + 0x318)" ( number_literal , (string_literal ""MagickCore/threshold.c"" " string_content ") , (string_literal ""RandomThresholdImage"" " string_content ") , number_literal , (pointer_expression "&DAT_002b6e4e" & identifier) , (binary_expression "param_1 + 0x318" identifier + number_literal) ))) ;) })) (if_statement "if (param_4 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage");\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage");\n  }" { (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/threshold.c"" " string_content ") , number_literal , (string_literal ""RandomThresholdImage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_4 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage");\n  }" if (parenthesized_expression "(*(int *)(param_4 + 0x1c) != -0x54535255)" ( (binary_expression "*(int *)(param_4 + 0x1c) != -0x54535255" (pointer_expression "*(int *)(param_4 + 0x1c)" * (cast_expression "(int *)(param_4 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x1c)" ( (binary_expression "param_4 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage");\n  }" { (expression_statement "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage");" (call_expression "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage")" identifier (argument_list "("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage")" ( (string_literal ""exception->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/threshold.c"" " string_content ") , number_literal , (string_literal ""RandomThresholdImage"" " string_content ") ))) ;) })) (expression_statement "iVar2 = SetImageStorageClass(param_1,1,param_4);" (assignment_expression "iVar2 = SetImageStorageClass(param_1,1,param_4)" identifier = (call_expression "SetImageStorageClass(param_1,1,param_4)" identifier (argument_list "(param_1,1,param_4)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar2 == 0) goto LAB_001af657;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_001af657;" goto statement_identifier ;)) (expression_statement "GetPixelInfo(param_1,local_70);" (call_expression "GetPixelInfo(param_1,local_70)" identifier (argument_list "(param_1,local_70)" ( identifier , identifier ))) ;) (expression_statement "local_a4 = 0;" (assignment_expression "local_a4 = 0" identifier = number_literal) ;) (expression_statement "local_a0 = 0;" (assignment_expression "local_a0 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = GetMagickResourceLimit(7);" (assignment_expression "iVar2 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (expression_statement "__s = (undefined4 *)AcquireQuantumMemory(iVar2,4);" (assignment_expression "__s = (undefined4 *)AcquireQuantumMemory(iVar2,4)" identifier = (cast_expression "(undefined4 *)AcquireQuantumMemory(iVar2,4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireQuantumMemory(iVar2,4)" identifier (argument_list "(iVar2,4)" ( identifier , number_literal ))))) ;) (if_statement "if (__s == (undefined4 *)0x0) {\n    uVar3 = AcquireExceptionInfo();\n    piVar6 = __errno_location();\n    uVar7 = GetExceptionMessage(*piVar6);\n    ThrowMagickException\n              (uVar3,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,700,\n               "MemoryAllocationFailed","`%s\'",uVar7);\n    DestroyString(uVar7);\n    CatchException(uVar3);\n    DestroyExceptionInfo(uVar3);\n    MagickCoreTerminus();\n                    \n    _exit(1);\n  }" if (parenthesized_expression "(__s == (undefined4 *)0x0)" ( (binary_expression "__s == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar3 = AcquireExceptionInfo();\n    piVar6 = __errno_location();\n    uVar7 = GetExceptionMessage(*piVar6);\n    ThrowMagickException\n              (uVar3,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,700,\n               "MemoryAllocationFailed","`%s\'",uVar7);\n    DestroyString(uVar7);\n    CatchException(uVar3);\n    DestroyExceptionInfo(uVar3);\n    MagickCoreTerminus();\n                    \n    _exit(1);\n  }" { (expression_statement "uVar3 = AcquireExceptionInfo();" (assignment_expression "uVar3 = AcquireExceptionInfo()" identifier = (call_expression "AcquireExceptionInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar7 = GetExceptionMessage(*piVar6);" (assignment_expression "uVar7 = GetExceptionMessage(*piVar6)" identifier = (call_expression "GetExceptionMessage(*piVar6)" identifier (argument_list "(*piVar6)" ( (pointer_expression "*piVar6" * identifier) )))) ;) (expression_statement "ThrowMagickException\n              (uVar3,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,700,\n               "MemoryAllocationFailed","`%s\'",uVar7);" (call_expression "ThrowMagickException\n              (uVar3,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,700,\n               "MemoryAllocationFailed","`%s\'",uVar7)" identifier (argument_list "(uVar3,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,700,\n               "MemoryAllocationFailed","`%s\'",uVar7)" ( identifier , (string_literal ""./MagickCore/random-private.h"" " string_content ") , (string_literal ""AcquireRandomInfoThreadSet"" " string_content ") , number_literal , number_literal , (string_literal ""MemoryAllocationFailed"" " string_content ") , (string_literal ""`%s\'"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "DestroyString(uVar7);" (call_expression "DestroyString(uVar7)" identifier (argument_list "(uVar7)" ( identifier ))) ;) (expression_statement "CatchException(uVar3);" (call_expression "CatchException(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (expression_statement "DestroyExceptionInfo(uVar3);" (call_expression "DestroyExceptionInfo(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (expression_statement "MagickCoreTerminus();" (call_expression "MagickCoreTerminus()" identifier (argument_list "()" ( ))) ;) (expression_statement "_exit(1);" (call_expression "_exit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (expression_statement "memset(__s,0,iVar2 * 4);" (call_expression "memset(__s,0,iVar2 * 4)" identifier (argument_list "(__s,0,iVar2 * 4)" ( identifier , number_literal , (binary_expression "iVar2 * 4" identifier * number_literal) ))) ;) (if_statement "if (0 < iVar2) {\n    puVar8 = __s;\n    do {\n      uVar3 = AcquireRandomInfo();\n      puVar9 = puVar8 + 1;\n      *puVar8 = uVar3;\n      puVar8 = puVar9;\n    } while (puVar9 != __s + iVar2);\n  }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n    puVar8 = __s;\n    do {\n      uVar3 = AcquireRandomInfo();\n      puVar9 = puVar8 + 1;\n      *puVar8 = uVar3;\n      puVar8 = puVar9;\n    } while (puVar9 != __s + iVar2);\n  }" { (expression_statement "puVar8 = __s;" (assignment_expression "puVar8 = __s" identifier = identifier) ;) (do_statement "do {\n      uVar3 = AcquireRandomInfo();\n      puVar9 = puVar8 + 1;\n      *puVar8 = uVar3;\n      puVar8 = puVar9;\n    } while (puVar9 != __s + iVar2);" do (compound_statement "{\n      uVar3 = AcquireRandomInfo();\n      puVar9 = puVar8 + 1;\n      *puVar8 = uVar3;\n      puVar8 = puVar9;\n    }" { (expression_statement "uVar3 = AcquireRandomInfo();" (assignment_expression "uVar3 = AcquireRandomInfo()" identifier = (call_expression "AcquireRandomInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar9 = puVar8 + 1;" (assignment_expression "puVar9 = puVar8 + 1" identifier = (binary_expression "puVar8 + 1" identifier + number_literal)) ;) (expression_statement "*puVar8 = uVar3;" (assignment_expression "*puVar8 = uVar3" (pointer_expression "*puVar8" * identifier) = identifier) ;) (expression_statement "puVar8 = puVar9;" (assignment_expression "puVar8 = puVar9" identifier = identifier) ;) }) while (parenthesized_expression "(puVar9 != __s + iVar2)" ( (binary_expression "puVar9 != __s + iVar2" identifier != (binary_expression "__s + iVar2" identifier + identifier)) )) ;) })) (expression_statement "uVar3 = AcquireAuthenticCacheView(param_1,param_4);" (assignment_expression "uVar3 = AcquireAuthenticCacheView(param_1,param_4)" identifier = (call_expression "AcquireAuthenticCacheView(param_1,param_4)" identifier (argument_list "(param_1,param_4)" ( identifier , identifier )))) ;) (expression_statement "iVar2 = GetRandomSecretKey(*__s);" (assignment_expression "iVar2 = GetRandomSecretKey(*__s)" identifier = (call_expression "GetRandomSecretKey(*__s)" identifier (argument_list "(*__s)" ( (pointer_expression "*__s" * identifier) )))) ;) (if_statement "if (iVar2 == -1) {\n    iVar2 = GetImagePixelCacheType(param_1);\n    if (((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)) &&\n       ((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)))) {\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      bVar1 = 0x7f < iVar2;\n      if (iVar5 < iVar4 >> 6) {\n        iVar2 = GetMagickResourceLimit(7);\n        bVar1 = 1 < iVar2;\n      }\n      if (!bVar1) goto LAB_001af728;\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      iVar4 = iVar4 >> 6;\n      if (iVar5 < iVar4) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n      else {\n        iVar4 = 2;\n      }\n    }\n  }\n  else {\nLAB_001af728:\n    iVar4 = 1;\n  }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n    iVar2 = GetImagePixelCacheType(param_1);\n    if (((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)) &&\n       ((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)))) {\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      bVar1 = 0x7f < iVar2;\n      if (iVar5 < iVar4 >> 6) {\n        iVar2 = GetMagickResourceLimit(7);\n        bVar1 = 1 < iVar2;\n      }\n      if (!bVar1) goto LAB_001af728;\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      iVar4 = iVar4 >> 6;\n      if (iVar5 < iVar4) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n      else {\n        iVar4 = 2;\n      }\n    }\n  }" { (expression_statement "iVar2 = GetImagePixelCacheType(param_1);" (assignment_expression "iVar2 = GetImagePixelCacheType(param_1)" identifier = (call_expression "GetImagePixelCacheType(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)) &&\n       ((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)))) {\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      bVar1 = 0x7f < iVar2;\n      if (iVar5 < iVar4 >> 6) {\n        iVar2 = GetMagickResourceLimit(7);\n        bVar1 = 1 < iVar2;\n      }\n      if (!bVar1) goto LAB_001af728;\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      iVar4 = iVar4 >> 6;\n      if (iVar5 < iVar4) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n      else {\n        iVar4 = 2;\n      }\n    }" if (parenthesized_expression "(((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)) &&\n       ((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3))))" ( (binary_expression "((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)) &&\n       ((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)))" (parenthesized_expression "((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3))" ( (binary_expression "(iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)" (parenthesized_expression "(iVar2 == 4)" ( (binary_expression "iVar2 == 4" identifier == number_literal) )) || (parenthesized_expression "(iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)" ( (comma_expression "iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3" (assignment_expression "iVar2 = GetImagePixelCacheType(param_1)" identifier = (call_expression "GetImagePixelCacheType(param_1)" identifier (argument_list "(param_1)" ( identifier )))) , (binary_expression "iVar2 == 3" identifier == number_literal)) ))) )) && (parenthesized_expression "((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)))" ( (parenthesized_expression "(iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3))" ( (comma_expression "iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)" (assignment_expression "iVar2 = GetImagePixelCacheType(param_1)" identifier = (call_expression "GetImagePixelCacheType(param_1)" identifier (argument_list "(param_1)" ( identifier )))) , (binary_expression "iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)" (binary_expression "iVar2 == 4" identifier == number_literal) || (parenthesized_expression "(iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)" ( (comma_expression "iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3" (assignment_expression "iVar2 = GetImagePixelCacheType(param_1)" identifier = (call_expression "GetImagePixelCacheType(param_1)" identifier (argument_list "(param_1)" ( identifier )))) , (binary_expression "iVar2 == 3" identifier == number_literal)) )))) )) ))) )) (compound_statement "{\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      bVar1 = 0x7f < iVar2;\n      if (iVar5 < iVar4 >> 6) {\n        iVar2 = GetMagickResourceLimit(7);\n        bVar1 = 1 < iVar2;\n      }\n      if (!bVar1) goto LAB_001af728;\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      iVar4 = iVar4 >> 6;\n      if (iVar5 < iVar4) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n    }" { (expression_statement "iVar5 = GetMagickResourceLimit(7);" (assignment_expression "iVar5 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar2 = *(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 "iVar4 = iVar2 + 0x3f;" (assignment_expression "iVar4 = iVar2 + 0x3f" identifier = (binary_expression "iVar2 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n        iVar4 = iVar2;\n      }" { (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" identifier = identifier) ;) })) (expression_statement "bVar1 = 0x7f < iVar2;" (assignment_expression "bVar1 = 0x7f < iVar2" identifier = (binary_expression "0x7f < iVar2" number_literal < identifier)) ;) (if_statement "if (iVar5 < iVar4 >> 6) {\n        iVar2 = GetMagickResourceLimit(7);\n        bVar1 = 1 < iVar2;\n      }" if (parenthesized_expression "(iVar5 < iVar4 >> 6)" ( (binary_expression "iVar5 < iVar4 >> 6" identifier < (binary_expression "iVar4 >> 6" identifier >> number_literal)) )) (compound_statement "{\n        iVar2 = GetMagickResourceLimit(7);\n        bVar1 = 1 < iVar2;\n      }" { (expression_statement "iVar2 = GetMagickResourceLimit(7);" (assignment_expression "iVar2 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (expression_statement "bVar1 = 1 < iVar2;" (assignment_expression "bVar1 = 1 < iVar2" identifier = (binary_expression "1 < iVar2" number_literal < identifier)) ;) })) (if_statement "if (!bVar1) goto LAB_001af728;" if (parenthesized_expression "(!bVar1)" ( (unary_expression "!bVar1" ! identifier) )) (goto_statement "goto LAB_001af728;" goto statement_identifier ;)) (expression_statement "iVar5 = GetMagickResourceLimit(7);" (assignment_expression "iVar5 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar2 = *(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 "iVar4 = iVar2 + 0x3f;" (assignment_expression "iVar4 = iVar2 + 0x3f" identifier = (binary_expression "iVar2 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n        iVar4 = iVar2;\n      }" { (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" identifier = identifier) ;) })) (expression_statement "iVar4 = iVar4 >> 6;" (assignment_expression "iVar4 = iVar4 >> 6" identifier = (binary_expression "iVar4 >> 6" identifier >> number_literal)) ;) (if_statement "if (iVar5 < iVar4) {\n        iVar4 = GetMagickResourceLimit(7);\n      }" if (parenthesized_expression "(iVar5 < iVar4)" ( (binary_expression "iVar5 < iVar4" identifier < identifier) )) (compound_statement "{\n        iVar4 = GetMagickResourceLimit(7);\n      }" { (expression_statement "iVar4 = GetMagickResourceLimit(7);" (assignment_expression "iVar4 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) })) }) (else_clause "else {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n      else {\n        iVar4 = 2;\n      }\n    }" else (compound_statement "{\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n      else {\n        iVar4 = 2;\n      }\n    }" { (expression_statement "uVar10 = GetMagickResourceLimit(7);" (assignment_expression "uVar10 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (if_statement "if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }" if (parenthesized_expression "(((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2))" ( (binary_expression "((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)" (parenthesized_expression "((int)((ulonglong)uVar10 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar10 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar10 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar10 >> 0x20)" ( (binary_expression "(ulonglong)uVar10 >> 0x20" (cast_expression "(ulonglong)uVar10" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar10 < 2)" ( (binary_expression "(uint)uVar10 < 2" (cast_expression "(uint)uVar10" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }" { (expression_statement "uVar10 = GetMagickResourceLimit(7);" (assignment_expression "uVar10 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (if_statement "if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;" if (parenthesized_expression "(((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2))" ( (binary_expression "((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)" (parenthesized_expression "((int)((ulonglong)uVar10 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar10 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar10 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar10 >> 0x20)" ( (binary_expression "(ulonglong)uVar10 >> 0x20" (cast_expression "(ulonglong)uVar10" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar10 < 2)" ( (binary_expression "(uint)uVar10 < 2" (cast_expression "(uint)uVar10" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (goto_statement "goto LAB_001af728;" goto statement_identifier ;)) })) (expression_statement "uVar10 = GetMagickResourceLimit(7);" (assignment_expression "uVar10 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (if_statement "if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n      else {\n        iVar4 = 2;\n      }" if (parenthesized_expression "(((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2))" ( (binary_expression "((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)" (parenthesized_expression "((int)((ulonglong)uVar10 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar10 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar10 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar10 >> 0x20)" ( (binary_expression "(ulonglong)uVar10 >> 0x20" (cast_expression "(ulonglong)uVar10" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar10 < 2)" ( (binary_expression "(uint)uVar10 < 2" (cast_expression "(uint)uVar10" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n        iVar4 = GetMagickResourceLimit(7);\n      }" { (expression_statement "iVar4 = GetMagickResourceLimit(7);" (assignment_expression "iVar4 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) }) (else_clause "else {\n        iVar4 = 2;\n      }" else (compound_statement "{\n        iVar4 = 2;\n      }" { (expression_statement "iVar4 = 2;" (assignment_expression "iVar4 = 2" identifier = number_literal) ;) }))) }))) }) (else_clause "else {\nLAB_001af728:\n    iVar4 = 1;\n  }" else (compound_statement "{\nLAB_001af728:\n    iVar4 = 1;\n  }" { (labeled_statement "LAB_001af728:\n    iVar4 = 1;" statement_identifier : (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;)) }))) (expression_statement "local_8c = param_1;" (assignment_expression "local_8c = param_1" identifier = identifier) ;) (expression_statement "local_7c = 1;" (assignment_expression "local_7c = 1" identifier = number_literal) ;) (expression_statement "local_94 = param_3;" (assignment_expression "local_94 = param_3" identifier = identifier) ;) (expression_statement "local_88 = param_4;" (assignment_expression "local_88 = param_4" identifier = identifier) ;) (expression_statement "local_78 = &local_a4;" (assignment_expression "local_78 = &local_a4" identifier = (pointer_expression "&local_a4" & identifier)) ;) (expression_statement "local_9c = param_2;" (assignment_expression "local_9c = param_2" identifier = identifier) ;) (expression_statement "local_84 = uVar3;" (assignment_expression "local_84 = uVar3" identifier = identifier) ;) (expression_statement "local_80 = __s;" (assignment_expression "local_80 = __s" identifier = identifier) ;) (expression_statement "GOMP_parallel(FUN_001aae40,&local_9c,iVar4,0);" (call_expression "GOMP_parallel(FUN_001aae40,&local_9c,iVar4,0)" identifier (argument_list "(FUN_001aae40,&local_9c,iVar4,0)" ( identifier , (pointer_expression "&local_9c" & identifier) , identifier , number_literal ))) ;) (expression_statement "iVar2 = local_7c;" (assignment_expression "iVar2 = local_7c" identifier = identifier) ;) (expression_statement "DestroyCacheView(uVar3);" (call_expression "DestroyCacheView(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (for_statement "for (iVar4 = 0; iVar5 = GetMagickResourceLimit(7), iVar4 < iVar5; iVar4 = iVar4 + 1) {\n    if (__s[iVar4] != 0) {\n      uVar3 = DestroyRandomInfo(__s[iVar4]);\n      __s[iVar4] = uVar3;\n    }\n  }" for ( (assignment_expression "iVar4 = 0" identifier = number_literal) ; (comma_expression "iVar5 = GetMagickResourceLimit(7), iVar4 < iVar5" (assignment_expression "iVar5 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) , (binary_expression "iVar4 < iVar5" identifier < identifier)) ; (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ) (compound_statement "{\n    if (__s[iVar4] != 0) {\n      uVar3 = DestroyRandomInfo(__s[iVar4]);\n      __s[iVar4] = uVar3;\n    }\n  }" { (if_statement "if (__s[iVar4] != 0) {\n      uVar3 = DestroyRandomInfo(__s[iVar4]);\n      __s[iVar4] = uVar3;\n    }" if (parenthesized_expression "(__s[iVar4] != 0)" ( (binary_expression "__s[iVar4] != 0" (subscript_expression "__s[iVar4]" identifier [ identifier ]) != number_literal) )) (compound_statement "{\n      uVar3 = DestroyRandomInfo(__s[iVar4]);\n      __s[iVar4] = uVar3;\n    }" { (expression_statement "uVar3 = DestroyRandomInfo(__s[iVar4]);" (assignment_expression "uVar3 = DestroyRandomInfo(__s[iVar4])" identifier = (call_expression "DestroyRandomInfo(__s[iVar4])" identifier (argument_list "(__s[iVar4])" ( (subscript_expression "__s[iVar4]" identifier [ identifier ]) )))) ;) (expression_statement "__s[iVar4] = uVar3;" (assignment_expression "__s[iVar4] = uVar3" (subscript_expression "__s[iVar4]" identifier [ identifier ]) = identifier) ;) })) })) (expression_statement "RelinquishMagickMemory(__s);" (call_expression "RelinquishMagickMemory(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (labeled_statement "LAB_001af657:\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 iVar2;" 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) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * 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 (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , (pointer_expression & IDENT) , (binary_expression IDENT + LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , LIT , (string_literal " string_content ") , (string_literal " string_content escape_sequence ") , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression IDENT * LIT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + IDENT)) )) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT == LIT)) ))) )) && (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression (binary_expression IDENT == LIT) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT == LIT)) )))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression LIT < IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT >> LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression LIT < IDENT)) ;) })) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) == LIT) )) && (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) == LIT) )) && (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) ))) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) == LIT) )) && (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) }))) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) , (binary_expression IDENT < IDENT)) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ IDENT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = IDENT) ;) })) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int RandomThresholdImage(int param_1,undefined8 param_2,undefined8 param_3,int param_4)\n\n{\n  bool bVar1;\n  int iVar2;\n  undefined4 *__s;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  int in_GS_OFFSET;\n  undefined8 uVar10;\n  undefined4 local_a4;\n  undefined4 local_a0;\n  undefined8 local_9c;\n  undefined8 local_94;\n  int local_8c;\n  int local_88;\n  undefined4 local_84;\n  undefined4 *local_80;\n  int local_7c;\n  undefined4 *local_78;\n  undefined1 local_70 [80];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1af5b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,&DAT_002b6e4e,\n                   param_1 + 0x318);\n  }\n  if (param_4 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage");\n  }\n  if (*(int *)(param_4 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage");\n  }\n  iVar2 = SetImageStorageClass(param_1,1,param_4);\n  if (iVar2 == 0) goto LAB_001af657;\n  GetPixelInfo(param_1,local_70);\n  local_a4 = 0;\n  local_a0 = 0;\n  iVar2 = GetMagickResourceLimit(7);\n  __s = (undefined4 *)AcquireQuantumMemory(iVar2,4);\n  if (__s == (undefined4 *)0x0) {\n    uVar3 = AcquireExceptionInfo();\n    piVar6 = __errno_location();\n    uVar7 = GetExceptionMessage(*piVar6);\n    ThrowMagickException\n              (uVar3,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,700,\n               "MemoryAllocationFailed","`%s\'",uVar7);\n    DestroyString(uVar7);\n    CatchException(uVar3);\n    DestroyExceptionInfo(uVar3);\n    MagickCoreTerminus();\n                    \n    _exit(1);\n  }\n  memset(__s,0,iVar2 * 4);\n  if (0 < iVar2) {\n    puVar8 = __s;\n    do {\n      uVar3 = AcquireRandomInfo();\n      puVar9 = puVar8 + 1;\n      *puVar8 = uVar3;\n      puVar8 = puVar9;\n    } while (puVar9 != __s + iVar2);\n  }\n  uVar3 = AcquireAuthenticCacheView(param_1,param_4);\n  iVar2 = GetRandomSecretKey(*__s);\n  if (iVar2 == -1) {\n    iVar2 = GetImagePixelCacheType(param_1);\n    if (((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)) &&\n       ((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)))) {\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      bVar1 = 0x7f < iVar2;\n      if (iVar5 < iVar4 >> 6) {\n        iVar2 = GetMagickResourceLimit(7);\n        bVar1 = 1 < iVar2;\n      }\n      if (!bVar1) goto LAB_001af728;\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      iVar4 = iVar4 >> 6;\n      if (iVar5 < iVar4) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n      else {\n        iVar4 = 2;\n      }\n    }\n  }\n  else {\nLAB_001af728:\n    iVar4 = 1;\n  }\n  local_8c = param_1;\n  local_7c = 1;\n  local_94 = param_3;\n  local_88 = param_4;\n  local_78 = &local_a4;\n  local_9c = param_2;\n  local_84 = uVar3;\n  local_80 = __s;\n  GOMP_parallel(FUN_001aae40,&local_9c,iVar4,0);\n  iVar2 = local_7c;\n  DestroyCacheView(uVar3);\n  for (iVar4 = 0; iVar5 = GetMagickResourceLimit(7), iVar4 < iVar5; iVar4 = iVar4 + 1) {\n    if (__s[iVar4] != 0) {\n      uVar3 = DestroyRandomInfo(__s[iVar4]);\n      __s[iVar4] = uVar3;\n    }\n  }\n  RelinquishMagickMemory(__s);\nLAB_001af657:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return iVar2;\n}" (primitive_type "int") (function_declarator "RandomThresholdImage(int param_1,undefined8 param_2,undefined8 param_3,int param_4)" (identifier "RandomThresholdImage") (parameter_list "(int param_1,undefined8 param_2,undefined8 param_3,int param_4)" (( "(") (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 "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  undefined4 *__s;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  int in_GS_OFFSET;\n  undefined8 uVar10;\n  undefined4 local_a4;\n  undefined4 local_a0;\n  undefined8 local_9c;\n  undefined8 local_94;\n  int local_8c;\n  int local_88;\n  undefined4 local_84;\n  undefined4 *local_80;\n  int local_7c;\n  undefined4 *local_78;\n  undefined1 local_70 [80];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1af5b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,&DAT_002b6e4e,\n                   param_1 + 0x318);\n  }\n  if (param_4 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage");\n  }\n  if (*(int *)(param_4 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage");\n  }\n  iVar2 = SetImageStorageClass(param_1,1,param_4);\n  if (iVar2 == 0) goto LAB_001af657;\n  GetPixelInfo(param_1,local_70);\n  local_a4 = 0;\n  local_a0 = 0;\n  iVar2 = GetMagickResourceLimit(7);\n  __s = (undefined4 *)AcquireQuantumMemory(iVar2,4);\n  if (__s == (undefined4 *)0x0) {\n    uVar3 = AcquireExceptionInfo();\n    piVar6 = __errno_location();\n    uVar7 = GetExceptionMessage(*piVar6);\n    ThrowMagickException\n              (uVar3,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,700,\n               "MemoryAllocationFailed","`%s\'",uVar7);\n    DestroyString(uVar7);\n    CatchException(uVar3);\n    DestroyExceptionInfo(uVar3);\n    MagickCoreTerminus();\n                    \n    _exit(1);\n  }\n  memset(__s,0,iVar2 * 4);\n  if (0 < iVar2) {\n    puVar8 = __s;\n    do {\n      uVar3 = AcquireRandomInfo();\n      puVar9 = puVar8 + 1;\n      *puVar8 = uVar3;\n      puVar8 = puVar9;\n    } while (puVar9 != __s + iVar2);\n  }\n  uVar3 = AcquireAuthenticCacheView(param_1,param_4);\n  iVar2 = GetRandomSecretKey(*__s);\n  if (iVar2 == -1) {\n    iVar2 = GetImagePixelCacheType(param_1);\n    if (((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)) &&\n       ((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)))) {\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      bVar1 = 0x7f < iVar2;\n      if (iVar5 < iVar4 >> 6) {\n        iVar2 = GetMagickResourceLimit(7);\n        bVar1 = 1 < iVar2;\n      }\n      if (!bVar1) goto LAB_001af728;\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      iVar4 = iVar4 >> 6;\n      if (iVar5 < iVar4) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n      else {\n        iVar4 = 2;\n      }\n    }\n  }\n  else {\nLAB_001af728:\n    iVar4 = 1;\n  }\n  local_8c = param_1;\n  local_7c = 1;\n  local_94 = param_3;\n  local_88 = param_4;\n  local_78 = &local_a4;\n  local_9c = param_2;\n  local_84 = uVar3;\n  local_80 = __s;\n  GOMP_parallel(FUN_001aae40,&local_9c,iVar4,0);\n  iVar2 = local_7c;\n  DestroyCacheView(uVar3);\n  for (iVar4 = 0; iVar5 = GetMagickResourceLimit(7), iVar4 < iVar5; iVar4 = iVar4 + 1) {\n    if (__s[iVar4] != 0) {\n      uVar3 = DestroyRandomInfo(__s[iVar4]);\n      __s[iVar4] = uVar3;\n    }\n  }\n  RelinquishMagickMemory(__s);\nLAB_001af657:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return iVar2;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 *__s;" (type_identifier "undefined4") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "undefined4 *puVar8;" (type_identifier "undefined4") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "undefined4 *puVar9;" (type_identifier "undefined4") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined8 uVar10;" (type_identifier "undefined8") (identifier "uVar10") (; ";")) (declaration "undefined4 local_a4;" (type_identifier "undefined4") (identifier "local_a4") (; ";")) (declaration "undefined4 local_a0;" (type_identifier "undefined4") (identifier "local_a0") (; ";")) (declaration "undefined8 local_9c;" (type_identifier "undefined8") (identifier "local_9c") (; ";")) (declaration "undefined8 local_94;" (type_identifier "undefined8") (identifier "local_94") (; ";")) (declaration "int local_8c;" (primitive_type "int") (identifier "local_8c") (; ";")) (declaration "int local_88;" (primitive_type "int") (identifier "local_88") (; ";")) (declaration "undefined4 local_84;" (type_identifier "undefined4") (identifier "local_84") (; ";")) (declaration "undefined4 *local_80;" (type_identifier "undefined4") (pointer_declarator "*local_80" (* "*") (identifier "local_80")) (; ";")) (declaration "int local_7c;" (primitive_type "int") (identifier "local_7c") (; ";")) (declaration "undefined4 *local_78;" (type_identifier "undefined4") (pointer_declarator "*local_78" (* "*") (identifier "local_78")) (; ";")) (declaration "undefined1 local_70 [80];" (type_identifier "undefined1") (array_declarator "local_70 [80]" (identifier "local_70") ([ "[") (number_literal "80") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1af5b9;" (assignment_expression "uStack_14 = 0x1af5b9" (identifier "uStack_14") (= "=") (number_literal "0x1af5b9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage");\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage");\n  }" ({ "{") (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage")" (identifier "__assert_fail") (argument_list "("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage")" (( "(") (string_literal ""image != (Image *) NULL"" (" """) (string_content "image != (Image *) NULL") (" """)) (, ",") (string_literal ""MagickCore/threshold.c"" (" """) (string_content "MagickCore/threshold.c") (" """)) (, ",") (number_literal "0x8c2") (, ",") (string_literal ""RandomThresholdImage"" (" """) (string_content "RandomThresholdImage") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage");\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/threshold.c",0x8c3,\n                  "RandomThresholdImage");\n  }" ({ "{") (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage")" (identifier "__assert_fail") (argument_list "("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,\n                  "RandomThresholdImage")" (( "(") (string_literal ""image->signature == MagickCoreSignature"" (" """) (string_content "image->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/threshold.c"" (" """) (string_content "MagickCore/threshold.c") (" """)) (, ",") (number_literal "0x8c3") (, ",") (string_literal ""RandomThresholdImage"" (" """) (string_content "RandomThresholdImage") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,&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/threshold.c","RandomThresholdImage",0x8c5,&DAT_002b6e4e,\n                   param_1 + 0x318);\n  }" ({ "{") (expression_statement "LogMagickEvent(0x8000,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,&DAT_002b6e4e,\n                   param_1 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,&DAT_002b6e4e,\n                   param_1 + 0x318)" (identifier "LogMagickEvent") (argument_list "(0x8000,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,&DAT_002b6e4e,\n                   param_1 + 0x318)" (( "(") (number_literal "0x8000") (, ",") (string_literal ""MagickCore/threshold.c"" (" """) (string_content "MagickCore/threshold.c") (" """)) (, ",") (string_literal ""RandomThresholdImage"" (" """) (string_content "RandomThresholdImage") (" """)) (, ",") (number_literal "0x8c5") (, ",") (pointer_expression "&DAT_002b6e4e" (& "&") (identifier "DAT_002b6e4e")) (, ",") (binary_expression "param_1 + 0x318" (identifier "param_1") (+ "+") (number_literal "0x318")) () ")"))) (; ";")) (} "}"))) (if_statement "if (param_4 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage");\n  }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage");\n  }" ({ "{") (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage")" (identifier "__assert_fail") (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,\n                  "RandomThresholdImage")" (( "(") (string_literal ""exception != (ExceptionInfo *) NULL"" (" """) (string_content "exception != (ExceptionInfo *) NULL") (" """)) (, ",") (string_literal ""MagickCore/threshold.c"" (" """) (string_content "MagickCore/threshold.c") (" """)) (, ",") (number_literal "0x8c6") (, ",") (string_literal ""RandomThresholdImage"" (" """) (string_content "RandomThresholdImage") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_4 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage");\n  }" (if "if") (parenthesized_expression "(*(int *)(param_4 + 0x1c) != -0x54535255)" (( "(") (binary_expression "*(int *)(param_4 + 0x1c) != -0x54535255" (pointer_expression "*(int *)(param_4 + 0x1c)" (* "*") (cast_expression "(int *)(param_4 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0x1c)" (( "(") (binary_expression "param_4 + 0x1c" (identifier "param_4") (+ "+") (number_literal "0x1c")) () ")")))) (!= "!=") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage");\n  }" ({ "{") (expression_statement "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage");" (call_expression "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage")" (identifier "__assert_fail") (argument_list "("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,\n                  "RandomThresholdImage")" (( "(") (string_literal ""exception->signature == MagickCoreSignature"" (" """) (string_content "exception->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/threshold.c"" (" """) (string_content "MagickCore/threshold.c") (" """)) (, ",") (number_literal "0x8c7") (, ",") (string_literal ""RandomThresholdImage"" (" """) (string_content "RandomThresholdImage") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar2 = SetImageStorageClass(param_1,1,param_4);" (assignment_expression "iVar2 = SetImageStorageClass(param_1,1,param_4)" (identifier "iVar2") (= "=") (call_expression "SetImageStorageClass(param_1,1,param_4)" (identifier "SetImageStorageClass") (argument_list "(param_1,1,param_4)" (( "(") (identifier "param_1") (, ",") (number_literal "1") (, ",") (identifier "param_4") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) goto LAB_001af657;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_001af657;" (goto "goto") (statement_identifier "LAB_001af657") (; ";"))) (expression_statement "GetPixelInfo(param_1,local_70);" (call_expression "GetPixelInfo(param_1,local_70)" (identifier "GetPixelInfo") (argument_list "(param_1,local_70)" (( "(") (identifier "param_1") (, ",") (identifier "local_70") () ")"))) (; ";")) (expression_statement "local_a4 = 0;" (assignment_expression "local_a4 = 0" (identifier "local_a4") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_a0 = 0;" (assignment_expression "local_a0 = 0" (identifier "local_a0") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = GetMagickResourceLimit(7);" (assignment_expression "iVar2 = GetMagickResourceLimit(7)" (identifier "iVar2") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (expression_statement "__s = (undefined4 *)AcquireQuantumMemory(iVar2,4);" (assignment_expression "__s = (undefined4 *)AcquireQuantumMemory(iVar2,4)" (identifier "__s") (= "=") (cast_expression "(undefined4 *)AcquireQuantumMemory(iVar2,4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "AcquireQuantumMemory(iVar2,4)" (identifier "AcquireQuantumMemory") (argument_list "(iVar2,4)" (( "(") (identifier "iVar2") (, ",") (number_literal "4") () ")"))))) (; ";")) (if_statement "if (__s == (undefined4 *)0x0) {\n    uVar3 = AcquireExceptionInfo();\n    piVar6 = __errno_location();\n    uVar7 = GetExceptionMessage(*piVar6);\n    ThrowMagickException\n              (uVar3,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,700,\n               "MemoryAllocationFailed","`%s\'",uVar7);\n    DestroyString(uVar7);\n    CatchException(uVar3);\n    DestroyExceptionInfo(uVar3);\n    MagickCoreTerminus();\n                    \n    _exit(1);\n  }" (if "if") (parenthesized_expression "(__s == (undefined4 *)0x0)" (( "(") (binary_expression "__s == (undefined4 *)0x0" (identifier "__s") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar3 = AcquireExceptionInfo();\n    piVar6 = __errno_location();\n    uVar7 = GetExceptionMessage(*piVar6);\n    ThrowMagickException\n              (uVar3,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,700,\n               "MemoryAllocationFailed","`%s\'",uVar7);\n    DestroyString(uVar7);\n    CatchException(uVar3);\n    DestroyExceptionInfo(uVar3);\n    MagickCoreTerminus();\n                    \n    _exit(1);\n  }" ({ "{") (expression_statement "uVar3 = AcquireExceptionInfo();" (assignment_expression "uVar3 = AcquireExceptionInfo()" (identifier "uVar3") (= "=") (call_expression "AcquireExceptionInfo()" (identifier "AcquireExceptionInfo") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" (identifier "piVar6") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar7 = GetExceptionMessage(*piVar6);" (assignment_expression "uVar7 = GetExceptionMessage(*piVar6)" (identifier "uVar7") (= "=") (call_expression "GetExceptionMessage(*piVar6)" (identifier "GetExceptionMessage") (argument_list "(*piVar6)" (( "(") (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) () ")")))) (; ";")) (expression_statement "ThrowMagickException\n              (uVar3,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,700,\n               "MemoryAllocationFailed","`%s\'",uVar7);" (call_expression "ThrowMagickException\n              (uVar3,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,700,\n               "MemoryAllocationFailed","`%s\'",uVar7)" (identifier "ThrowMagickException") (argument_list "(uVar3,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,700,\n               "MemoryAllocationFailed","`%s\'",uVar7)" (( "(") (identifier "uVar3") (, ",") (string_literal ""./MagickCore/random-private.h"" (" """) (string_content "./MagickCore/random-private.h") (" """)) (, ",") (string_literal ""AcquireRandomInfoThreadSet"" (" """) (string_content "AcquireRandomInfoThreadSet") (" """)) (, ",") (number_literal "0x43") (, ",") (number_literal "700") (, ",") (string_literal ""MemoryAllocationFailed"" (" """) (string_content "MemoryAllocationFailed") (" """)) (, ",") (string_literal ""`%s\'"" (" """) (string_content "`%s") (escape_sequence "\'") (" """)) (, ",") (identifier "uVar7") () ")"))) (; ";")) (expression_statement "DestroyString(uVar7);" (call_expression "DestroyString(uVar7)" (identifier "DestroyString") (argument_list "(uVar7)" (( "(") (identifier "uVar7") () ")"))) (; ";")) (expression_statement "CatchException(uVar3);" (call_expression "CatchException(uVar3)" (identifier "CatchException") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "DestroyExceptionInfo(uVar3);" (call_expression "DestroyExceptionInfo(uVar3)" (identifier "DestroyExceptionInfo") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "MagickCoreTerminus();" (call_expression "MagickCoreTerminus()" (identifier "MagickCoreTerminus") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "_exit(1);" (call_expression "_exit(1)" (identifier "_exit") (argument_list "(1)" (( "(") (number_literal "1") () ")"))) (; ";")) (} "}"))) (expression_statement "memset(__s,0,iVar2 * 4);" (call_expression "memset(__s,0,iVar2 * 4)" (identifier "memset") (argument_list "(__s,0,iVar2 * 4)" (( "(") (identifier "__s") (, ",") (number_literal "0") (, ",") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4")) () ")"))) (; ";")) (if_statement "if (0 < iVar2) {\n    puVar8 = __s;\n    do {\n      uVar3 = AcquireRandomInfo();\n      puVar9 = puVar8 + 1;\n      *puVar8 = uVar3;\n      puVar8 = puVar9;\n    } while (puVar9 != __s + iVar2);\n  }" (if "if") (parenthesized_expression "(0 < iVar2)" (( "(") (binary_expression "0 < iVar2" (number_literal "0") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n    puVar8 = __s;\n    do {\n      uVar3 = AcquireRandomInfo();\n      puVar9 = puVar8 + 1;\n      *puVar8 = uVar3;\n      puVar8 = puVar9;\n    } while (puVar9 != __s + iVar2);\n  }" ({ "{") (expression_statement "puVar8 = __s;" (assignment_expression "puVar8 = __s" (identifier "puVar8") (= "=") (identifier "__s")) (; ";")) (do_statement "do {\n      uVar3 = AcquireRandomInfo();\n      puVar9 = puVar8 + 1;\n      *puVar8 = uVar3;\n      puVar8 = puVar9;\n    } while (puVar9 != __s + iVar2);" (do "do") (compound_statement "{\n      uVar3 = AcquireRandomInfo();\n      puVar9 = puVar8 + 1;\n      *puVar8 = uVar3;\n      puVar8 = puVar9;\n    }" ({ "{") (expression_statement "uVar3 = AcquireRandomInfo();" (assignment_expression "uVar3 = AcquireRandomInfo()" (identifier "uVar3") (= "=") (call_expression "AcquireRandomInfo()" (identifier "AcquireRandomInfo") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar9 = puVar8 + 1;" (assignment_expression "puVar9 = puVar8 + 1" (identifier "puVar9") (= "=") (binary_expression "puVar8 + 1" (identifier "puVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar8 = uVar3;" (assignment_expression "*puVar8 = uVar3" (pointer_expression "*puVar8" (* "*") (identifier "puVar8")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "puVar8 = puVar9;" (assignment_expression "puVar8 = puVar9" (identifier "puVar8") (= "=") (identifier "puVar9")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar9 != __s + iVar2)" (( "(") (binary_expression "puVar9 != __s + iVar2" (identifier "puVar9") (!= "!=") (binary_expression "__s + iVar2" (identifier "__s") (+ "+") (identifier "iVar2"))) () ")")) (; ";")) (} "}"))) (expression_statement "uVar3 = AcquireAuthenticCacheView(param_1,param_4);" (assignment_expression "uVar3 = AcquireAuthenticCacheView(param_1,param_4)" (identifier "uVar3") (= "=") (call_expression "AcquireAuthenticCacheView(param_1,param_4)" (identifier "AcquireAuthenticCacheView") (argument_list "(param_1,param_4)" (( "(") (identifier "param_1") (, ",") (identifier "param_4") () ")")))) (; ";")) (expression_statement "iVar2 = GetRandomSecretKey(*__s);" (assignment_expression "iVar2 = GetRandomSecretKey(*__s)" (identifier "iVar2") (= "=") (call_expression "GetRandomSecretKey(*__s)" (identifier "GetRandomSecretKey") (argument_list "(*__s)" (( "(") (pointer_expression "*__s" (* "*") (identifier "__s")) () ")")))) (; ";")) (if_statement "if (iVar2 == -1) {\n    iVar2 = GetImagePixelCacheType(param_1);\n    if (((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)) &&\n       ((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)))) {\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      bVar1 = 0x7f < iVar2;\n      if (iVar5 < iVar4 >> 6) {\n        iVar2 = GetMagickResourceLimit(7);\n        bVar1 = 1 < iVar2;\n      }\n      if (!bVar1) goto LAB_001af728;\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      iVar4 = iVar4 >> 6;\n      if (iVar5 < iVar4) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n      else {\n        iVar4 = 2;\n      }\n    }\n  }\n  else {\nLAB_001af728:\n    iVar4 = 1;\n  }" (if "if") (parenthesized_expression "(iVar2 == -1)" (( "(") (binary_expression "iVar2 == -1" (identifier "iVar2") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n    iVar2 = GetImagePixelCacheType(param_1);\n    if (((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)) &&\n       ((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)))) {\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      bVar1 = 0x7f < iVar2;\n      if (iVar5 < iVar4 >> 6) {\n        iVar2 = GetMagickResourceLimit(7);\n        bVar1 = 1 < iVar2;\n      }\n      if (!bVar1) goto LAB_001af728;\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      iVar4 = iVar4 >> 6;\n      if (iVar5 < iVar4) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n      else {\n        iVar4 = 2;\n      }\n    }\n  }" ({ "{") (expression_statement "iVar2 = GetImagePixelCacheType(param_1);" (assignment_expression "iVar2 = GetImagePixelCacheType(param_1)" (identifier "iVar2") (= "=") (call_expression "GetImagePixelCacheType(param_1)" (identifier "GetImagePixelCacheType") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)) &&\n       ((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)))) {\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      bVar1 = 0x7f < iVar2;\n      if (iVar5 < iVar4 >> 6) {\n        iVar2 = GetMagickResourceLimit(7);\n        bVar1 = 1 < iVar2;\n      }\n      if (!bVar1) goto LAB_001af728;\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      iVar4 = iVar4 >> 6;\n      if (iVar5 < iVar4) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n    }\n    else {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n      else {\n        iVar4 = 2;\n      }\n    }" (if "if") (parenthesized_expression "(((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)) &&\n       ((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3))))" (( "(") (binary_expression "((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)) &&\n       ((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)))" (parenthesized_expression "((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3))" (( "(") (binary_expression "(iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)" (parenthesized_expression "(iVar2 == 4)" (( "(") (binary_expression "iVar2 == 4" (identifier "iVar2") (== "==") (number_literal "4")) () ")")) (|| "||") (parenthesized_expression "(iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)" (( "(") (comma_expression "iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3" (assignment_expression "iVar2 = GetImagePixelCacheType(param_1)" (identifier "iVar2") (= "=") (call_expression "GetImagePixelCacheType(param_1)" (identifier "GetImagePixelCacheType") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (, ",") (binary_expression "iVar2 == 3" (identifier "iVar2") (== "==") (number_literal "3"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)))" (( "(") (parenthesized_expression "(iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3))" (( "(") (comma_expression "iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)" (assignment_expression "iVar2 = GetImagePixelCacheType(param_1)" (identifier "iVar2") (= "=") (call_expression "GetImagePixelCacheType(param_1)" (identifier "GetImagePixelCacheType") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (, ",") (binary_expression "iVar2 == 4 ||\n        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)" (binary_expression "iVar2 == 4" (identifier "iVar2") (== "==") (number_literal "4")) (|| "||") (parenthesized_expression "(iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)" (( "(") (comma_expression "iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3" (assignment_expression "iVar2 = GetImagePixelCacheType(param_1)" (identifier "iVar2") (= "=") (call_expression "GetImagePixelCacheType(param_1)" (identifier "GetImagePixelCacheType") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (, ",") (binary_expression "iVar2 == 3" (identifier "iVar2") (== "==") (number_literal "3"))) () ")")))) () ")")) () ")"))) () ")")) (compound_statement "{\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      bVar1 = 0x7f < iVar2;\n      if (iVar5 < iVar4 >> 6) {\n        iVar2 = GetMagickResourceLimit(7);\n        bVar1 = 1 < iVar2;\n      }\n      if (!bVar1) goto LAB_001af728;\n      iVar5 = GetMagickResourceLimit(7);\n      iVar2 = *(int *)(param_1 + 0x1c);\n      iVar4 = iVar2 + 0x3f;\n      if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }\n      iVar4 = iVar4 >> 6;\n      if (iVar5 < iVar4) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n    }" ({ "{") (expression_statement "iVar5 = GetMagickResourceLimit(7);" (assignment_expression "iVar5 = GetMagickResourceLimit(7)" (identifier "iVar5") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x1c)" (identifier "iVar2") (= "=") (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 "iVar4 = iVar2 + 0x3f;" (assignment_expression "iVar4 = iVar2 + 0x3f" (identifier "iVar4") (= "=") (binary_expression "iVar2 + 0x3f" (identifier "iVar2") (+ "+") (number_literal "0x3f"))) (; ";")) (if_statement "if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }" (if "if") (parenthesized_expression "(-1 < iVar2)" (( "(") (binary_expression "-1 < iVar2" (number_literal "-1") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n        iVar4 = iVar2;\n      }" ({ "{") (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" (identifier "iVar4") (= "=") (identifier "iVar2")) (; ";")) (} "}"))) (expression_statement "bVar1 = 0x7f < iVar2;" (assignment_expression "bVar1 = 0x7f < iVar2" (identifier "bVar1") (= "=") (binary_expression "0x7f < iVar2" (number_literal "0x7f") (< "<") (identifier "iVar2"))) (; ";")) (if_statement "if (iVar5 < iVar4 >> 6) {\n        iVar2 = GetMagickResourceLimit(7);\n        bVar1 = 1 < iVar2;\n      }" (if "if") (parenthesized_expression "(iVar5 < iVar4 >> 6)" (( "(") (binary_expression "iVar5 < iVar4 >> 6" (identifier "iVar5") (< "<") (binary_expression "iVar4 >> 6" (identifier "iVar4") (>> ">>") (number_literal "6"))) () ")")) (compound_statement "{\n        iVar2 = GetMagickResourceLimit(7);\n        bVar1 = 1 < iVar2;\n      }" ({ "{") (expression_statement "iVar2 = GetMagickResourceLimit(7);" (assignment_expression "iVar2 = GetMagickResourceLimit(7)" (identifier "iVar2") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (expression_statement "bVar1 = 1 < iVar2;" (assignment_expression "bVar1 = 1 < iVar2" (identifier "bVar1") (= "=") (binary_expression "1 < iVar2" (number_literal "1") (< "<") (identifier "iVar2"))) (; ";")) (} "}"))) (if_statement "if (!bVar1) goto LAB_001af728;" (if "if") (parenthesized_expression "(!bVar1)" (( "(") (unary_expression "!bVar1" (! "!") (identifier "bVar1")) () ")")) (goto_statement "goto LAB_001af728;" (goto "goto") (statement_identifier "LAB_001af728") (; ";"))) (expression_statement "iVar5 = GetMagickResourceLimit(7);" (assignment_expression "iVar5 = GetMagickResourceLimit(7)" (identifier "iVar5") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x1c)" (identifier "iVar2") (= "=") (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 "iVar4 = iVar2 + 0x3f;" (assignment_expression "iVar4 = iVar2 + 0x3f" (identifier "iVar4") (= "=") (binary_expression "iVar2 + 0x3f" (identifier "iVar2") (+ "+") (number_literal "0x3f"))) (; ";")) (if_statement "if (-1 < iVar2) {\n        iVar4 = iVar2;\n      }" (if "if") (parenthesized_expression "(-1 < iVar2)" (( "(") (binary_expression "-1 < iVar2" (number_literal "-1") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n        iVar4 = iVar2;\n      }" ({ "{") (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" (identifier "iVar4") (= "=") (identifier "iVar2")) (; ";")) (} "}"))) (expression_statement "iVar4 = iVar4 >> 6;" (assignment_expression "iVar4 = iVar4 >> 6" (identifier "iVar4") (= "=") (binary_expression "iVar4 >> 6" (identifier "iVar4") (>> ">>") (number_literal "6"))) (; ";")) (if_statement "if (iVar5 < iVar4) {\n        iVar4 = GetMagickResourceLimit(7);\n      }" (if "if") (parenthesized_expression "(iVar5 < iVar4)" (( "(") (binary_expression "iVar5 < iVar4" (identifier "iVar5") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n        iVar4 = GetMagickResourceLimit(7);\n      }" ({ "{") (expression_statement "iVar4 = GetMagickResourceLimit(7);" (assignment_expression "iVar4 = GetMagickResourceLimit(7)" (identifier "iVar4") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n      else {\n        iVar4 = 2;\n      }\n    }" (else "else") (compound_statement "{\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }\n      uVar10 = GetMagickResourceLimit(7);\n      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n      else {\n        iVar4 = 2;\n      }\n    }" ({ "{") (expression_statement "uVar10 = GetMagickResourceLimit(7);" (assignment_expression "uVar10 = GetMagickResourceLimit(7)" (identifier "uVar10") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (if_statement "if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }" (if "if") (parenthesized_expression "(((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2))" (( "(") (binary_expression "((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)" (parenthesized_expression "((int)((ulonglong)uVar10 >> 0x20) == 0)" (( "(") (binary_expression "(int)((ulonglong)uVar10 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar10 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar10 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar10 >> 0x20" (cast_expression "(ulonglong)uVar10" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar10")) (>> ">>") (number_literal "0x20")) () ")"))) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((uint)uVar10 < 2)" (( "(") (binary_expression "(uint)uVar10 < 2" (cast_expression "(uint)uVar10" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar10")) (< "<") (number_literal "2")) () ")"))) () ")")) (compound_statement "{\n        uVar10 = GetMagickResourceLimit(7);\n        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;\n      }" ({ "{") (expression_statement "uVar10 = GetMagickResourceLimit(7);" (assignment_expression "uVar10 = GetMagickResourceLimit(7)" (identifier "uVar10") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (if_statement "if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;" (if "if") (parenthesized_expression "(((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2))" (( "(") (binary_expression "((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)" (parenthesized_expression "((int)((ulonglong)uVar10 >> 0x20) == 0)" (( "(") (binary_expression "(int)((ulonglong)uVar10 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar10 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar10 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar10 >> 0x20" (cast_expression "(ulonglong)uVar10" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar10")) (>> ">>") (number_literal "0x20")) () ")"))) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((uint)uVar10 < 2)" (( "(") (binary_expression "(uint)uVar10 < 2" (cast_expression "(uint)uVar10" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar10")) (< "<") (number_literal "2")) () ")"))) () ")")) (goto_statement "goto LAB_001af728;" (goto "goto") (statement_identifier "LAB_001af728") (; ";"))) (} "}"))) (expression_statement "uVar10 = GetMagickResourceLimit(7);" (assignment_expression "uVar10 = GetMagickResourceLimit(7)" (identifier "uVar10") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (if_statement "if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {\n        iVar4 = GetMagickResourceLimit(7);\n      }\n      else {\n        iVar4 = 2;\n      }" (if "if") (parenthesized_expression "(((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2))" (( "(") (binary_expression "((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)" (parenthesized_expression "((int)((ulonglong)uVar10 >> 0x20) == 0)" (( "(") (binary_expression "(int)((ulonglong)uVar10 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar10 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar10 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar10 >> 0x20" (cast_expression "(ulonglong)uVar10" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar10")) (>> ">>") (number_literal "0x20")) () ")"))) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((uint)uVar10 < 2)" (( "(") (binary_expression "(uint)uVar10 < 2" (cast_expression "(uint)uVar10" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar10")) (< "<") (number_literal "2")) () ")"))) () ")")) (compound_statement "{\n        iVar4 = GetMagickResourceLimit(7);\n      }" ({ "{") (expression_statement "iVar4 = GetMagickResourceLimit(7);" (assignment_expression "iVar4 = GetMagickResourceLimit(7)" (identifier "iVar4") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (} "}")) (else_clause "else {\n        iVar4 = 2;\n      }" (else "else") (compound_statement "{\n        iVar4 = 2;\n      }" ({ "{") (expression_statement "iVar4 = 2;" (assignment_expression "iVar4 = 2" (identifier "iVar4") (= "=") (number_literal "2")) (; ";")) (} "}")))) (} "}")))) (} "}")) (else_clause "else {\nLAB_001af728:\n    iVar4 = 1;\n  }" (else "else") (compound_statement "{\nLAB_001af728:\n    iVar4 = 1;\n  }" ({ "{") (labeled_statement "LAB_001af728:\n    iVar4 = 1;" (statement_identifier "LAB_001af728") (: ":") (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" (identifier "iVar4") (= "=") (number_literal "1")) (; ";"))) (} "}")))) (expression_statement "local_8c = param_1;" (assignment_expression "local_8c = param_1" (identifier "local_8c") (= "=") (identifier "param_1")) (; ";")) (expression_statement "local_7c = 1;" (assignment_expression "local_7c = 1" (identifier "local_7c") (= "=") (number_literal "1")) (; ";")) (expression_statement "local_94 = param_3;" (assignment_expression "local_94 = param_3" (identifier "local_94") (= "=") (identifier "param_3")) (; ";")) (expression_statement "local_88 = param_4;" (assignment_expression "local_88 = param_4" (identifier "local_88") (= "=") (identifier "param_4")) (; ";")) (expression_statement "local_78 = &local_a4;" (assignment_expression "local_78 = &local_a4" (identifier "local_78") (= "=") (pointer_expression "&local_a4" (& "&") (identifier "local_a4"))) (; ";")) (expression_statement "local_9c = param_2;" (assignment_expression "local_9c = param_2" (identifier "local_9c") (= "=") (identifier "param_2")) (; ";")) (expression_statement "local_84 = uVar3;" (assignment_expression "local_84 = uVar3" (identifier "local_84") (= "=") (identifier "uVar3")) (; ";")) (expression_statement "local_80 = __s;" (assignment_expression "local_80 = __s" (identifier "local_80") (= "=") (identifier "__s")) (; ";")) (expression_statement "GOMP_parallel(FUN_001aae40,&local_9c,iVar4,0);" (call_expression "GOMP_parallel(FUN_001aae40,&local_9c,iVar4,0)" (identifier "GOMP_parallel") (argument_list "(FUN_001aae40,&local_9c,iVar4,0)" (( "(") (identifier "FUN_001aae40") (, ",") (pointer_expression "&local_9c" (& "&") (identifier "local_9c")) (, ",") (identifier "iVar4") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar2 = local_7c;" (assignment_expression "iVar2 = local_7c" (identifier "iVar2") (= "=") (identifier "local_7c")) (; ";")) (expression_statement "DestroyCacheView(uVar3);" (call_expression "DestroyCacheView(uVar3)" (identifier "DestroyCacheView") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (for_statement "for (iVar4 = 0; iVar5 = GetMagickResourceLimit(7), iVar4 < iVar5; iVar4 = iVar4 + 1) {\n    if (__s[iVar4] != 0) {\n      uVar3 = DestroyRandomInfo(__s[iVar4]);\n      __s[iVar4] = uVar3;\n    }\n  }" (for "for") (( "(") (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";") (comma_expression "iVar5 = GetMagickResourceLimit(7), iVar4 < iVar5" (assignment_expression "iVar5 = GetMagickResourceLimit(7)" (identifier "iVar5") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (, ",") (binary_expression "iVar4 < iVar5" (identifier "iVar4") (< "<") (identifier "iVar5"))) (; ";") (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) () ")") (compound_statement "{\n    if (__s[iVar4] != 0) {\n      uVar3 = DestroyRandomInfo(__s[iVar4]);\n      __s[iVar4] = uVar3;\n    }\n  }" ({ "{") (if_statement "if (__s[iVar4] != 0) {\n      uVar3 = DestroyRandomInfo(__s[iVar4]);\n      __s[iVar4] = uVar3;\n    }" (if "if") (parenthesized_expression "(__s[iVar4] != 0)" (( "(") (binary_expression "__s[iVar4] != 0" (subscript_expression "__s[iVar4]" (identifier "__s") ([ "[") (identifier "iVar4") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = DestroyRandomInfo(__s[iVar4]);\n      __s[iVar4] = uVar3;\n    }" ({ "{") (expression_statement "uVar3 = DestroyRandomInfo(__s[iVar4]);" (assignment_expression "uVar3 = DestroyRandomInfo(__s[iVar4])" (identifier "uVar3") (= "=") (call_expression "DestroyRandomInfo(__s[iVar4])" (identifier "DestroyRandomInfo") (argument_list "(__s[iVar4])" (( "(") (subscript_expression "__s[iVar4]" (identifier "__s") ([ "[") (identifier "iVar4") (] "]")) () ")")))) (; ";")) (expression_statement "__s[iVar4] = uVar3;" (assignment_expression "__s[iVar4] = uVar3" (subscript_expression "__s[iVar4]" (identifier "__s") ([ "[") (identifier "iVar4") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (} "}"))) (} "}"))) (expression_statement "RelinquishMagickMemory(__s);" (call_expression "RelinquishMagickMemory(__s)" (identifier "RelinquishMagickMemory") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (labeled_statement "LAB_001af657:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }" (statement_identifier "LAB_001af657") (: ":") (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 iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

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

type_1
function_1
          (type_2 *var_2,double min_threshold,double max_threshold,type_3 *var_6)

{
  int var_40;
  bool bVar2;
  type_1 var_8;
  size_t var_23;
  type_4 *var_12;
  type_5 *pRVar5;
  type_6 *cache_view;
  type_7 var_29;
  int var_34;
  type_8 var_31;
  type_3 *exception_00;
  int *piVar9;
  char *string;
  size_t sVar10;
  type_4 *var_25;
  type_4 *var_26;
  int var_1;
  type_9 var_35;
  type_10 progress;
  double local_9c;
  double local_94;
  type_2 *local_8c;
  type_3 *local_88;
  type_6 *local_84;
  type_4 *local_80;
  type_1 local_7c;
  type_10 *local_78;
  type_11 threshold;
  
  var_40 = *(int *)(var_1 + 0x14);
  if (var_2 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"RandomThresholdImage");
  }
  if (var_2->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    var_3("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,
                  "RandomThresholdImage");
  }
  if (var_2->debug != var_4) {
    var_5(TraceEvent,"MagickCore/threshold.c","RandomThresholdImage",0x8c5,"%s",
                   var_2->filename);
  }
  if (var_6 == (type_3 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,
                  "RandomThresholdImage");
  }
  if (var_6->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    var_3("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,
                  "RandomThresholdImage");
  }
  var_8 = var_7(var_2,DirectClass,var_6);
  if (var_8 == var_4) goto LAB_001af657;
  var_9(var_2,&threshold);
  progress._0_4_ = 0;
  progress._4_4_ = 0;
  var_35 = var_10(ThreadResource);
  var_23 = (size_t)var_35;
  var_12 = (type_4 *)var_11(var_23,4);
  if (var_12 == (type_4 *)0x0) {
    exception_00 = var_13();
    piVar9 = var_14();
    string = var_15(*piVar9);
    var_16
              (exception_00,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,
               FatalErrorException,"MemoryAllocationFailed","`%s\'",string);
    var_17(string);
    var_18(exception_00);
    var_19(exception_00);
    var_20();
                    /* WARNING: Subroutine does not return */
    var_21(1);
  }
  var_22(var_12,0,var_23 * 4);
  if (0 < (int)var_23) {
    var_25 = var_12;
    do {
      pRVar5 = var_24();
      var_26 = var_25 + 1;
      *var_25 = pRVar5;
      var_25 = var_26;
    } while (var_26 != var_12 + var_23);
  }
  cache_view = var_27(var_2,var_6);
  var_29 = var_28((type_5 *)*var_12);
  if (var_29 == 0xffffffff) {
    var_31 = var_30(var_2);
    if (((var_31 == var_32) || (var_31 = var_30(var_2), var_31 == var_33)) &&
       ((var_31 = var_30(var_2), var_31 == var_32 ||
        (var_31 = var_30(var_2), var_31 == var_33)))) {
      var_35 = var_10(ThreadResource);
      var_23 = var_2->rows;
      sVar10 = var_23 + 0x3f;
      if (-1 < (int)var_23) {
        sVar10 = var_23;
      }
      bVar2 = 0x7f < (int)var_23;
      if ((int)var_35 < (int)sVar10 >> 6) {
        var_35 = var_10(ThreadResource);
        bVar2 = 1 < (int)var_35;
      }
      if (!bVar2) goto LAB_001af728;
      var_35 = var_10(ThreadResource);
      var_23 = var_2->rows;
      sVar10 = var_23 + 0x3f;
      if (-1 < (int)var_23) {
        sVar10 = var_23;
      }
      var_34 = (int)sVar10 >> 6;
      if ((int)var_35 < var_34) {
        var_35 = var_10(ThreadResource);
        var_34 = (int)var_35;
      }
    }
    else {
      var_35 = var_10(ThreadResource);
      if (((int)(var_35 >> 0x20) == 0) && ((type_12)var_35 < 2)) {
        var_35 = var_10(ThreadResource);
        if (((int)(var_35 >> 0x20) == 0) && ((type_12)var_35 < 2)) goto LAB_001af728;
      }
      var_35 = var_10(ThreadResource);
      if (((int)(var_35 >> 0x20) == 0) && ((type_12)var_35 < 2)) {
        var_35 = var_10(ThreadResource);
        var_34 = (int)var_35;
      }
      else {
        var_34 = 2;
      }
    }
  }
  else {
LAB_001af728:
    var_34 = 1;
  }
  local_8c = var_2;
  local_7c = MagickTrue;
  local_94 = max_threshold;
  local_88 = var_6;
  local_78 = &progress;
  local_9c = min_threshold;
  local_84 = cache_view;
  local_80 = var_12;
  var_36(RandomThresholdImage__omp_fn_7,&local_9c,var_34,0);
  var_8 = local_7c;
  var_37(cache_view);
  for (var_34 = 0; var_35 = var_10(ThreadResource), var_34 < (int)var_35;
      var_34 = var_34 + 1) {
    if ((type_5 *)var_12[var_34] != (type_5 *)0x0) {
      pRVar5 = var_38((type_5 *)var_12[var_34]);
      var_12[var_34] = pRVar5;
    }
  }
  var_39(var_12);
LAB_001af657:
  if (var_40 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_41();
  }
  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: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator 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: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (string_literal (string_content)) (number_literal) (pointer_expression argument: (identifier)) (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (string_literal (string_content)) (number_literal) (number_literal) (string_literal (string_content)) (string_literal (string_content) (escape_sequence)) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (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))) (do_statement body: (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: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (parenthesized_expression (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (number_literal) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (number_literal) right: (identifier)))))) (if_statement condition: (parenthesized_expression (unary_expression argument: (identifier))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))))))) alternative: (else_clause (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (for_statement initializer: (assignment_expression left: (identifier) right: (number_literal)) condition: (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal)))) right: (binary_expression left: (identifier) right: (identifier))) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (return_statement (identifier)))))

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

int MASKED(int param_1,undefined8 param_2,undefined8 param_3,int param_4)

{
  bool bVar1;
  int iVar2;
  undefined4 *__s;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  int *piVar6;
  undefined4 uVar7;
  undefined4 *puVar8;
  undefined4 *puVar9;
  int in_GS_OFFSET;
  undefined8 uVar10;
  undefined4 local_a4;
  undefined4 local_a0;
  undefined8 local_9c;
  undefined8 local_94;
  int local_8c;
  int local_88;
  undefined4 local_84;
  undefined4 *local_80;
  int local_7c;
  undefined4 *local_78;
  undefined1 local_70 [80];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1af5b9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/threshold.c",0x8c2,"MASKED");
  }
  if (*(int *)(param_1 + 0x3344) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c3,
                  "MASKED");
  }
  if (*(int *)(param_1 + 0x3328) != 0) {
    LogMagickEvent(0x8000,"MagickCore/threshold.c","MASKED",0x8c5,&DAT_002b6e4e,
                   param_1 + 0x318);
  }
  if (param_4 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/threshold.c",0x8c6,
                  "MASKED");
  }
  if (*(int *)(param_4 + 0x1c) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/threshold.c",0x8c7,
                  "MASKED");
  }
  iVar2 = SetImageStorageClass(param_1,1,param_4);
  if (iVar2 == 0) goto LAB_001af657;
  GetPixelInfo(param_1,local_70);
  local_a4 = 0;
  local_a0 = 0;
  iVar2 = GetMagickResourceLimit(7);
  __s = (undefined4 *)AcquireQuantumMemory(iVar2,4);
  if (__s == (undefined4 *)0x0) {
    uVar3 = AcquireExceptionInfo();
    piVar6 = __errno_location();
    uVar7 = GetExceptionMessage(*piVar6);
    ThrowMagickException
              (uVar3,"./MagickCore/random-private.h","AcquireRandomInfoThreadSet",0x43,700,
               "MemoryAllocationFailed","`%s\'",uVar7);
    DestroyString(uVar7);
    CatchException(uVar3);
    DestroyExceptionInfo(uVar3);
    MagickCoreTerminus();
                    /* WARNING: Subroutine does not return */
    _exit(1);
  }
  memset(__s,0,iVar2 * 4);
  if (0 < iVar2) {
    puVar8 = __s;
    do {
      uVar3 = AcquireRandomInfo();
      puVar9 = puVar8 + 1;
      *puVar8 = uVar3;
      puVar8 = puVar9;
    } while (puVar9 != __s + iVar2);
  }
  uVar3 = AcquireAuthenticCacheView(param_1,param_4);
  iVar2 = GetRandomSecretKey(*__s);
  if (iVar2 == -1) {
    iVar2 = GetImagePixelCacheType(param_1);
    if (((iVar2 == 4) || (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)) &&
       ((iVar2 = GetImagePixelCacheType(param_1), iVar2 == 4 ||
        (iVar2 = GetImagePixelCacheType(param_1), iVar2 == 3)))) {
      iVar5 = GetMagickResourceLimit(7);
      iVar2 = *(int *)(param_1 + 0x1c);
      iVar4 = iVar2 + 0x3f;
      if (-1 < iVar2) {
        iVar4 = iVar2;
      }
      bVar1 = 0x7f < iVar2;
      if (iVar5 < iVar4 >> 6) {
        iVar2 = GetMagickResourceLimit(7);
        bVar1 = 1 < iVar2;
      }
      if (!bVar1) goto LAB_001af728;
      iVar5 = GetMagickResourceLimit(7);
      iVar2 = *(int *)(param_1 + 0x1c);
      iVar4 = iVar2 + 0x3f;
      if (-1 < iVar2) {
        iVar4 = iVar2;
      }
      iVar4 = iVar4 >> 6;
      if (iVar5 < iVar4) {
        iVar4 = GetMagickResourceLimit(7);
      }
    }
    else {
      uVar10 = GetMagickResourceLimit(7);
      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {
        uVar10 = GetMagickResourceLimit(7);
        if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) goto LAB_001af728;
      }
      uVar10 = GetMagickResourceLimit(7);
      if (((int)((ulonglong)uVar10 >> 0x20) == 0) && ((uint)uVar10 < 2)) {
        iVar4 = GetMagickResourceLimit(7);
      }
      else {
        iVar4 = 2;
      }
    }
  }
  else {
LAB_001af728:
    iVar4 = 1;
  }
  local_8c = param_1;
  local_7c = 1;
  local_94 = param_3;
  local_88 = param_4;
  local_78 = &local_a4;
  local_9c = param_2;
  local_84 = uVar3;
  local_80 = __s;
  GOMP_parallel(FUN_001aae40,&local_9c,iVar4,0);
  iVar2 = local_7c;
  DestroyCacheView(uVar3);
  for (iVar4 = 0; iVar5 = GetMagickResourceLimit(7), iVar4 < iVar5; iVar4 = iVar4 + 1) {
    if (__s[iVar4] != 0) {
      uVar3 = DestroyRandomInfo(__s[iVar4]);
      __s[iVar4] = uVar3;
    }
  }
  RelinquishMagickMemory(__s);
LAB_001af657:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0029eab0();
  }
  return iVar2;
}

