
/* 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 */
/* DWARF original prototype: void BlackThresholdImage._omp_fn.2(anon_struct_48_6_68167dc4 * param_0)
    */

void __thiscall BlackThresholdImage__omp_fn_2(void *this)

{
  PixelChannel PVar1;
  Image *image;
  CacheView *cache_view;
  ExceptionInfo *exception;
  long lVar2;
  int iVar3;
  int iVar4;
  MagickBooleanType MVar5;
  long lVar6;
  long lVar7;
  Quantum *pixel;
  long lVar8;
  size_t sVar9;
  long lVar10;
  double dVar11;
  double dVar12;
  
                    /* WARNING: Load size is inaccurate */
  image = *this;
  sVar9 = image->rows;
  iVar3 = omp_get_num_threads();
  iVar4 = omp_get_thread_num();
  lVar6 = (long)sVar9 / (long)iVar3;
  lVar8 = (long)sVar9 % (long)iVar3;
  if (iVar4 < lVar8) {
    lVar6 = lVar6 + 1;
    lVar8 = 0;
  }
  lVar8 = iVar4 * lVar6 + lVar8;
  lVar6 = lVar6 + lVar8;
  if (lVar8 < lVar6) {
    cache_view = *(CacheView **)((long)this + 0x10);
    exception = *(ExceptionInfo **)((long)this + 8);
    do {
      if (*(int *)((long)this + 0x28) != 0) {
        pixel = GetCacheViewAuthenticPixels(cache_view,0,lVar8,image->columns,1,exception);
        if (pixel == (Quantum *)0x0) {
          *(undefined4 *)((long)this + 0x28) = 0;
        }
        else {
          lVar10 = 0;
          if (0 < (long)image->columns) {
            do {
              dVar11 = GetPixelIntensity(image,pixel);
              sVar9 = image->number_channels;
              if (0 < (long)sVar9) {
                lVar2 = *(long *)((long)this + 0x18);
                lVar7 = 0;
                do {
                  PVar1 = image->channel_map[lVar7].channel;
                  if ((image->channel_map[PVar1].traits & UpdatePixelTrait) != UndefinedPixelTrait)
                  {
                    if (image->channel_mask != AllChannels) {
                      dVar11 = (double)pixel[lVar7];
                    }
                    switch(PVar1) {
                    case CyanPixelChannel:
                      dVar12 = *(double *)(lVar2 + 0x28);
                      break;
                    case CbPixelChannel:
                      dVar12 = *(double *)(lVar2 + 0x30);
                      break;
                    case BluePixelChannel:
                      dVar12 = *(double *)(lVar2 + 0x38);
                      break;
                    case BlackPixelChannel:
                      dVar12 = 0.0;
                      if (*(int *)(lVar2 + 4) == 2) {
                        dVar12 = *(double *)(lVar2 + 0x40);
                      }
                      break;
                    case AlphaPixelChannel:
                      dVar12 = DAT_003f95f8;
                      if (*(int *)(lVar2 + 8) != 0) {
                        dVar12 = *(double *)(lVar2 + 0x48);
                      }
                      break;
                    case IndexPixelChannel:
                      dVar12 = *(double *)(lVar2 + 0x50);
                      break;
                    default:
                      dVar12 = 0.0;
                    }
                    if (dVar11 < dVar12) {
                      pixel[lVar7] = 0.0;
                    }
                  }
                  lVar7 = lVar7 + 1;
                  sVar9 = image->number_channels;
                } while (lVar7 < (long)sVar9);
              }
              pixel = pixel + sVar9;
              lVar10 = lVar10 + 1;
            } while (lVar10 < (long)image->columns);
          }
          MVar5 = SyncCacheViewAuthenticPixels(cache_view,exception);
          if (MVar5 == MagickFalse) {
            *(undefined4 *)((long)this + 0x28) = 0;
          }
          if (image->progress_monitor != (MagickProgressMonitor)0x0) {
            LOCK();
            **(long **)((long)this + 0x20) = **(long **)((long)this + 0x20) + 1;
            UNLOCK();
            MVar5 = SetImageProgress(image,"Threshold/Image",
                                     **(MagickOffsetType **)((long)this + 0x20),image->rows);
            if (MVar5 == MagickFalse) {
              *(undefined4 *)((long)this + 0x28) = 0;
            }
          }
        }
      }
      lVar8 = lVar8 + 1;
    } while (lVar6 != lVar8);
  }
  return;
}



void FUN_002df1a5(long *param_1)

{
  uint uVar1;
  long lVar2;
  long lVar3;
  long lVar4;
  long lVar5;
  int iVar6;
  int iVar7;
  long lVar8;
  long lVar9;
  long lVar10;
  long lVar11;
  long lVar12;
  long lVar13;
  double dVar14;
  double dVar15;
  
  lVar2 = *param_1;
  lVar11 = *(long *)(lVar2 + 0x28);
  iVar6 = omp_get_num_threads();
  iVar7 = omp_get_thread_num();
  lVar8 = lVar11 / (long)iVar6;
  lVar11 = lVar11 % (long)iVar6;
  if (iVar7 < lVar11) {
    lVar8 = lVar8 + 1;
    lVar11 = 0;
  }
  lVar11 = iVar7 * lVar8 + lVar11;
  lVar8 = lVar8 + lVar11;
  if (lVar11 < lVar8) {
    lVar3 = param_1[2];
    lVar4 = param_1[1];
    do {
      if ((int)param_1[5] != 0) {
        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);
        if (lVar10 == 0) {
          *(undefined4 *)(param_1 + 5) = 0;
        }
        else {
          lVar13 = 0;
          if (0 < *(long *)(lVar2 + 0x20)) {
            do {
              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);
              lVar12 = *(long *)(lVar2 + 0x340);
              if (0 < lVar12) {
                lVar5 = param_1[3];
                lVar9 = 0;
                do {
                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);
                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {
                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {
                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);
                    }
                    switch(uVar1) {
                    case 0:
                      dVar15 = *(double *)(lVar5 + 0x28);
                      break;
                    case 1:
                      dVar15 = *(double *)(lVar5 + 0x30);
                      break;
                    case 2:
                      dVar15 = *(double *)(lVar5 + 0x38);
                      break;
                    case 3:
                      dVar15 = 0.0;
                      if (*(int *)(lVar5 + 4) == 2) {
                        dVar15 = *(double *)(lVar5 + 0x40);
                      }
                      break;
                    case 4:
                      dVar15 = DAT_003f95f8;
                      if (*(int *)(lVar5 + 8) != 0) {
                        dVar15 = *(double *)(lVar5 + 0x48);
                      }
                      break;
                    case 5:
                      dVar15 = *(double *)(lVar5 + 0x50);
                      break;
                    default:
                      dVar15 = 0.0;
                    }
                    if (dVar14 < dVar15) {
                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;
                    }
                  }
                  lVar9 = lVar9 + 1;
                  lVar12 = *(long *)(lVar2 + 0x340);
                } while (lVar9 < lVar12);
              }
              lVar10 = lVar10 + lVar12 * 4;
              lVar13 = lVar13 + 1;
            } while (lVar13 < *(long *)(lVar2 + 0x20));
          }
          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);
          if (iVar6 == 0) {
            *(undefined4 *)(param_1 + 5) = 0;
          }
          if (*(long *)(lVar2 + 0x3c8) != 0) {
            LOCK();
            *(long *)param_1[4] = *(long *)param_1[4] + 1;
            UNLOCK();
            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],
                                     *(undefined8 *)(lVar2 + 0x28));
            if (iVar6 == 0) {
              *(undefined4 *)(param_1 + 5) = 0;
            }
          }
        }
      }
      lVar11 = lVar11 + 1;
    } while (lVar8 != lVar11);
  }
  return;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x28
MOV R15,RDI
MOV RBX,qword ptr [RDI]
MOV RBP,qword ptr [RBX + 0x28]
CALL 0x00149d40
MOVSXD R12,EAX
CALL 0x0014af50
MOVSXD R14,EAX
MOV RAX,RBP
CQO
IDIV R12
MOV RSI,RAX
MOV RCX,RDX
CMP R14,RDX
JL 0x002df3ca
IMUL R14,RSI
ADD R14,RCX
LEA RAX,[RSI + R14*0x1]
MOV qword ptr [RSP + 0x8],RAX
CMP R14,RAX
JGE 0x002df3d8
MOV RAX,qword ptr [R15 + 0x10]
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [R15 + 0x8]
MOV qword ptr [RSP + 0x18],RAX
LEA R12,[0x434af0]
JMP 0x002df330
MOV dword ptr [R15 + 0x28],0x0
JMP 0x002df388
LEA RBP,[RBP + RDX*0x4]
ADD R13,0x1
CMP qword ptr [RBX + 0x20],R13
JLE 0x002df371
MOV RSI,RBP
MOV RDI,RBX
CALL 0x0014cf80
MOV RDX,qword ptr [RBX + 0x340]
TEST RDX,RDX
JLE 0x002df228
MOV RDI,qword ptr [R15 + 0x18]
MOV EAX,0x0
JMP 0x002df281
MOVSD XMM1,qword ptr [RDI + 0x28]
UCOMISD XMM1,XMM0
JBE 0x002df271
MOV dword ptr [RBP + R8*0x4],0x0
ADD RAX,0x1
MOV RDX,qword ptr [RBX + 0x340]
CMP RDX,RAX
JLE 0x002df228
MOV RSI,qword ptr [RBX + 0x360]
MOV R8,RAX
MOV RDX,RAX
SHL RDX,0x4
MOV EDX,dword ptr [RSI + RDX*0x1]
MOV ECX,EDX
SHL RCX,0x4
TEST byte ptr [RSI + RCX*0x1 + 0x4],0x2
JZ 0x002df271
CMP dword ptr [RBX + 0x358],0x7ffffff
JZ 0x002df2b8
PXOR XMM0,XMM0
CVTSS2SD XMM0,dword ptr [RBP + RAX*0x4]
CMP EDX,0x5
JA 0x002df310
MOV EDX,EDX
MOVSXD RDX,dword ptr [R12 + RDX*0x4]
ADD RDX,R12
JMP RDX
MOVSD XMM1,qword ptr [RDI + 0x30]
JMP 0x002df262
MOVSD XMM1,qword ptr [RDI + 0x38]
JMP 0x002df262
PXOR XMM1,XMM1
CMP dword ptr [RDI + 0x4],0x2
JNZ 0x002df262
MOVSD XMM1,qword ptr [RDI + 0x40]
JMP 0x002df262
MOVSD XMM1,qword ptr [0x003f95f8]
CMP dword ptr [RDI + 0x8],0x0
JZ 0x002df262
MOVSD XMM1,qword ptr [RDI + 0x48]
JMP 0x002df262
MOVSD XMM1,qword ptr [RDI + 0x50]
JMP 0x002df262
PXOR XMM1,XMM1
JMP 0x002df262
MOV dword ptr [R15 + 0x28],0x0
ADD R14,0x1
CMP qword ptr [RSP + 0x8],R14
JZ 0x002df3d8
CMP dword ptr [R15 + 0x28],0x0
JZ 0x002df321
MOV RCX,qword ptr [RBX + 0x20]
MOV R9,qword ptr [RSP + 0x18]
MOV R8D,0x1
MOV RDX,R14
MOV ESI,0x0
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x0014a9e0
MOV RBP,RAX
TEST RAX,RAX
JZ 0x002df319
MOV R13D,0x0
CMP qword ptr [RBX + 0x20],0x0
JG 0x002df23b
MOV RSI,qword ptr [RSP + 0x18]
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x0014af90
TEST EAX,EAX
JZ 0x002df21b
CMP qword ptr [RBX + 0x3c8],0x0
JZ 0x002df321
MOV RAX,qword ptr [R15 + 0x20]
ADD.LOCK qword ptr [RAX],0x1
MOV RCX,qword ptr [RBX + 0x28]
MOV RAX,qword ptr [R15 + 0x20]
MOV RDX,qword ptr [RAX]
LEA RSI,[0x4348f8]
MOV RDI,RBX
CALL 0x0014d780
TEST EAX,EAX
JNZ 0x002df321
MOV dword ptr [R15 + 0x28],0x0
JMP 0x002df321
LEA RSI,[RAX + 0x1]
MOV ECX,0x0
JMP 0x002df1e4
ADD RSP,0x28
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
(translation_unit "void FUN_002df1a5(long *param_1)\n\n{\n  uint uVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  long lVar5;\n  int iVar6;\n  int iVar7;\n  long lVar8;\n  long lVar9;\n  long lVar10;\n  long lVar11;\n  long lVar12;\n  long lVar13;\n  double dVar14;\n  double dVar15;\n  \n  lVar2 = *param_1;\n  lVar11 = *(long *)(lVar2 + 0x28);\n  iVar6 = omp_get_num_threads();\n  iVar7 = omp_get_thread_num();\n  lVar8 = lVar11 / (long)iVar6;\n  lVar11 = lVar11 % (long)iVar6;\n  if (iVar7 < lVar11) {\n    lVar8 = lVar8 + 1;\n    lVar11 = 0;\n  }\n  lVar11 = iVar7 * lVar8 + lVar11;\n  lVar8 = lVar8 + lVar11;\n  if (lVar11 < lVar8) {\n    lVar3 = param_1[2];\n    lVar4 = param_1[1];\n    do {\n      if ((int)param_1[5] != 0) {\n        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);\n        if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }\n      }\n      lVar11 = lVar11 + 1;\n    } while (lVar8 != lVar11);\n  }\n  return;\n}\n\n" (function_definition "void FUN_002df1a5(long *param_1)\n\n{\n  uint uVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  long lVar5;\n  int iVar6;\n  int iVar7;\n  long lVar8;\n  long lVar9;\n  long lVar10;\n  long lVar11;\n  long lVar12;\n  long lVar13;\n  double dVar14;\n  double dVar15;\n  \n  lVar2 = *param_1;\n  lVar11 = *(long *)(lVar2 + 0x28);\n  iVar6 = omp_get_num_threads();\n  iVar7 = omp_get_thread_num();\n  lVar8 = lVar11 / (long)iVar6;\n  lVar11 = lVar11 % (long)iVar6;\n  if (iVar7 < lVar11) {\n    lVar8 = lVar8 + 1;\n    lVar11 = 0;\n  }\n  lVar11 = iVar7 * lVar8 + lVar11;\n  lVar8 = lVar8 + lVar11;\n  if (lVar11 < lVar8) {\n    lVar3 = param_1[2];\n    lVar4 = param_1[1];\n    do {\n      if ((int)param_1[5] != 0) {\n        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);\n        if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }\n      }\n      lVar11 = lVar11 + 1;\n    } while (lVar8 != lVar11);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_002df1a5(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  long lVar5;\n  int iVar6;\n  int iVar7;\n  long lVar8;\n  long lVar9;\n  long lVar10;\n  long lVar11;\n  long lVar12;\n  long lVar13;\n  double dVar14;\n  double dVar15;\n  \n  lVar2 = *param_1;\n  lVar11 = *(long *)(lVar2 + 0x28);\n  iVar6 = omp_get_num_threads();\n  iVar7 = omp_get_thread_num();\n  lVar8 = lVar11 / (long)iVar6;\n  lVar11 = lVar11 % (long)iVar6;\n  if (iVar7 < lVar11) {\n    lVar8 = lVar8 + 1;\n    lVar11 = 0;\n  }\n  lVar11 = iVar7 * lVar8 + lVar11;\n  lVar8 = lVar8 + lVar11;\n  if (lVar11 < lVar8) {\n    lVar3 = param_1[2];\n    lVar4 = param_1[1];\n    do {\n      if ((int)param_1[5] != 0) {\n        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);\n        if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }\n      }\n      lVar11 = lVar11 + 1;\n    } while (lVar8 != lVar11);\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "long lVar8;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar9;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar10;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar11;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar12;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar13;" (sized_type_specifier "long" long) identifier ;) (declaration "double dVar14;" primitive_type identifier ;) (declaration "double dVar15;" primitive_type identifier ;) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "lVar11 = *(long *)(lVar2 + 0x28);" (assignment_expression "lVar11 = *(long *)(lVar2 + 0x28)" identifier = (pointer_expression "*(long *)(lVar2 + 0x28)" * (cast_expression "(long *)(lVar2 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x28)" ( (binary_expression "lVar2 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = omp_get_num_threads();" (assignment_expression "iVar6 = omp_get_num_threads()" identifier = (call_expression "omp_get_num_threads()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar7 = omp_get_thread_num();" (assignment_expression "iVar7 = omp_get_thread_num()" identifier = (call_expression "omp_get_thread_num()" identifier (argument_list "()" ( )))) ;) (expression_statement "lVar8 = lVar11 / (long)iVar6;" (assignment_expression "lVar8 = lVar11 / (long)iVar6" identifier = (binary_expression "lVar11 / (long)iVar6" identifier / (cast_expression "(long)iVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "lVar11 = lVar11 % (long)iVar6;" (assignment_expression "lVar11 = lVar11 % (long)iVar6" identifier = (binary_expression "lVar11 % (long)iVar6" identifier % (cast_expression "(long)iVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (if_statement "if (iVar7 < lVar11) {\n    lVar8 = lVar8 + 1;\n    lVar11 = 0;\n  }" if (parenthesized_expression "(iVar7 < lVar11)" ( (binary_expression "iVar7 < lVar11" identifier < identifier) )) (compound_statement "{\n    lVar8 = lVar8 + 1;\n    lVar11 = 0;\n  }" { (expression_statement "lVar8 = lVar8 + 1;" (assignment_expression "lVar8 = lVar8 + 1" identifier = (binary_expression "lVar8 + 1" identifier + number_literal)) ;) (expression_statement "lVar11 = 0;" (assignment_expression "lVar11 = 0" identifier = number_literal) ;) })) (expression_statement "lVar11 = iVar7 * lVar8 + lVar11;" (assignment_expression "lVar11 = iVar7 * lVar8 + lVar11" identifier = (binary_expression "iVar7 * lVar8 + lVar11" (binary_expression "iVar7 * lVar8" identifier * identifier) + identifier)) ;) (expression_statement "lVar8 = lVar8 + lVar11;" (assignment_expression "lVar8 = lVar8 + lVar11" identifier = (binary_expression "lVar8 + lVar11" identifier + identifier)) ;) (if_statement "if (lVar11 < lVar8) {\n    lVar3 = param_1[2];\n    lVar4 = param_1[1];\n    do {\n      if ((int)param_1[5] != 0) {\n        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);\n        if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }\n      }\n      lVar11 = lVar11 + 1;\n    } while (lVar8 != lVar11);\n  }" if (parenthesized_expression "(lVar11 < lVar8)" ( (binary_expression "lVar11 < lVar8" identifier < identifier) )) (compound_statement "{\n    lVar3 = param_1[2];\n    lVar4 = param_1[1];\n    do {\n      if ((int)param_1[5] != 0) {\n        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);\n        if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }\n      }\n      lVar11 = lVar11 + 1;\n    } while (lVar8 != lVar11);\n  }" { (expression_statement "lVar3 = param_1[2];" (assignment_expression "lVar3 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "lVar4 = param_1[1];" (assignment_expression "lVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (do_statement "do {\n      if ((int)param_1[5] != 0) {\n        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);\n        if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }\n      }\n      lVar11 = lVar11 + 1;\n    } while (lVar8 != lVar11);" do (compound_statement "{\n      if ((int)param_1[5] != 0) {\n        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);\n        if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }\n      }\n      lVar11 = lVar11 + 1;\n    }" { (if_statement "if ((int)param_1[5] != 0) {\n        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);\n        if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }\n      }" if (parenthesized_expression "((int)param_1[5] != 0)" ( (binary_expression "(int)param_1[5] != 0" (cast_expression "(int)param_1[5]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[5]" identifier [ number_literal ])) != number_literal) )) (compound_statement "{\n        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);\n        if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }\n      }" { (expression_statement "lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);" (assignment_expression "lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4)" identifier = (call_expression "GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4)" identifier (argument_list "(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4)" ( identifier , number_literal , identifier , (pointer_expression "*(undefined8 *)(lVar2 + 0x20)" * (cast_expression "(undefined8 *)(lVar2 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x20)" ( (binary_expression "lVar2 + 0x20" identifier + number_literal) )))) , number_literal , identifier )))) ;) (if_statement "if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }" if (parenthesized_expression "(lVar10 == 0)" ( (binary_expression "lVar10 == 0" identifier == number_literal) )) (compound_statement "{\n          *(undefined4 *)(param_1 + 5) = 0;\n        }" { (expression_statement "*(undefined4 *)(param_1 + 5) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 5) = 0" (pointer_expression "*(undefined4 *)(param_1 + 5)" * (cast_expression "(undefined4 *)(param_1 + 5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }" else (compound_statement "{\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }" { (expression_statement "lVar13 = 0;" (assignment_expression "lVar13 = 0" identifier = number_literal) ;) (if_statement "if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }" if (parenthesized_expression "(0 < *(long *)(lVar2 + 0x20))" ( (binary_expression "0 < *(long *)(lVar2 + 0x20)" number_literal < (pointer_expression "*(long *)(lVar2 + 0x20)" * (cast_expression "(long *)(lVar2 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x20)" ( (binary_expression "lVar2 + 0x20" identifier + number_literal) ))))) )) (compound_statement "{\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }" { (do_statement "do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));" do (compound_statement "{\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            }" { (expression_statement "dVar14 = (double)GetPixelIntensity(lVar2,lVar10);" (assignment_expression "dVar14 = (double)GetPixelIntensity(lVar2,lVar10)" identifier = (cast_expression "(double)GetPixelIntensity(lVar2,lVar10)" ( (type_descriptor "double" primitive_type) ) (call_expression "GetPixelIntensity(lVar2,lVar10)" identifier (argument_list "(lVar2,lVar10)" ( identifier , identifier ))))) ;) (expression_statement "lVar12 = *(long *)(lVar2 + 0x340);" (assignment_expression "lVar12 = *(long *)(lVar2 + 0x340)" identifier = (pointer_expression "*(long *)(lVar2 + 0x340)" * (cast_expression "(long *)(lVar2 + 0x340)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x340)" ( (binary_expression "lVar2 + 0x340" identifier + number_literal) ))))) ;) (if_statement "if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }" if (parenthesized_expression "(0 < lVar12)" ( (binary_expression "0 < lVar12" number_literal < identifier) )) (compound_statement "{\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }" { (expression_statement "lVar5 = param_1[3];" (assignment_expression "lVar5 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "lVar9 = 0;" (assignment_expression "lVar9 = 0" identifier = number_literal) ;) (do_statement "do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);" do (compound_statement "{\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                }" { (expression_statement "uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);" (assignment_expression "uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10)" identifier = (pointer_expression "*(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10)" * (cast_expression "(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar2 + 0x360) + lVar9 * 0x10)" ( (binary_expression "*(long *)(lVar2 + 0x360) + lVar9 * 0x10" (pointer_expression "*(long *)(lVar2 + 0x360)" * (cast_expression "(long *)(lVar2 + 0x360)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x360)" ( (binary_expression "lVar2 + 0x360" identifier + number_literal) )))) + (binary_expression "lVar9 * 0x10" identifier * number_literal)) ))))) ;) (if_statement "if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }" if (parenthesized_expression "((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0)" ( (binary_expression "(*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0" (parenthesized_expression "(*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2)" ( (binary_expression "*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2" (pointer_expression "*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10)" * (cast_expression "(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10)" ( (binary_expression "*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10" (binary_expression "*(long *)(lVar2 + 0x360) + 4" (pointer_expression "*(long *)(lVar2 + 0x360)" * (cast_expression "(long *)(lVar2 + 0x360)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x360)" ( (binary_expression "lVar2 + 0x360" identifier + number_literal) )))) + number_literal) + (binary_expression "(ulong)uVar1 * 0x10" (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }" { (if_statement "if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }" if (parenthesized_expression "(*(int *)(lVar2 + 0x358) != 0x7ffffff)" ( (binary_expression "*(int *)(lVar2 + 0x358) != 0x7ffffff" (pointer_expression "*(int *)(lVar2 + 0x358)" * (cast_expression "(int *)(lVar2 + 0x358)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x358)" ( (binary_expression "lVar2 + 0x358" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }" { (expression_statement "dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);" (assignment_expression "dVar14 = (double)*(float *)(lVar10 + lVar9 * 4)" identifier = (cast_expression "(double)*(float *)(lVar10 + lVar9 * 4)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(float *)(lVar10 + lVar9 * 4)" * (cast_expression "(float *)(lVar10 + lVar9 * 4)" ( (type_descriptor "float *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar10 + lVar9 * 4)" ( (binary_expression "lVar10 + lVar9 * 4" identifier + (binary_expression "lVar9 * 4" identifier * number_literal)) )))))) ;) })) (switch_statement "switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }" switch (parenthesized_expression "(uVar1)" ( identifier )) (compound_statement "{\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }" { (case_statement "case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;" case number_literal : (expression_statement "dVar15 = *(double *)(lVar5 + 0x28);" (assignment_expression "dVar15 = *(double *)(lVar5 + 0x28)" identifier = (pointer_expression "*(double *)(lVar5 + 0x28)" * (cast_expression "(double *)(lVar5 + 0x28)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x28)" ( (binary_expression "lVar5 + 0x28" identifier + number_literal) ))))) ;) (break_statement "break;" break ;)) (case_statement "case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;" case number_literal : (expression_statement "dVar15 = *(double *)(lVar5 + 0x30);" (assignment_expression "dVar15 = *(double *)(lVar5 + 0x30)" identifier = (pointer_expression "*(double *)(lVar5 + 0x30)" * (cast_expression "(double *)(lVar5 + 0x30)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x30)" ( (binary_expression "lVar5 + 0x30" identifier + number_literal) ))))) ;) (break_statement "break;" break ;)) (case_statement "case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;" case number_literal : (expression_statement "dVar15 = *(double *)(lVar5 + 0x38);" (assignment_expression "dVar15 = *(double *)(lVar5 + 0x38)" identifier = (pointer_expression "*(double *)(lVar5 + 0x38)" * (cast_expression "(double *)(lVar5 + 0x38)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x38)" ( (binary_expression "lVar5 + 0x38" identifier + number_literal) ))))) ;) (break_statement "break;" break ;)) (case_statement "case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;" case number_literal : (expression_statement "dVar15 = 0.0;" (assignment_expression "dVar15 = 0.0" identifier = number_literal) ;) (if_statement "if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }" if (parenthesized_expression "(*(int *)(lVar5 + 4) == 2)" ( (binary_expression "*(int *)(lVar5 + 4) == 2" (pointer_expression "*(int *)(lVar5 + 4)" * (cast_expression "(int *)(lVar5 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 4)" ( (binary_expression "lVar5 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }" { (expression_statement "dVar15 = *(double *)(lVar5 + 0x40);" (assignment_expression "dVar15 = *(double *)(lVar5 + 0x40)" identifier = (pointer_expression "*(double *)(lVar5 + 0x40)" * (cast_expression "(double *)(lVar5 + 0x40)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x40)" ( (binary_expression "lVar5 + 0x40" identifier + number_literal) ))))) ;) })) (break_statement "break;" break ;)) (case_statement "case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;" case number_literal : (expression_statement "dVar15 = DAT_003f95f8;" (assignment_expression "dVar15 = DAT_003f95f8" identifier = identifier) ;) (if_statement "if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }" if (parenthesized_expression "(*(int *)(lVar5 + 8) != 0)" ( (binary_expression "*(int *)(lVar5 + 8) != 0" (pointer_expression "*(int *)(lVar5 + 8)" * (cast_expression "(int *)(lVar5 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 8)" ( (binary_expression "lVar5 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }" { (expression_statement "dVar15 = *(double *)(lVar5 + 0x48);" (assignment_expression "dVar15 = *(double *)(lVar5 + 0x48)" identifier = (pointer_expression "*(double *)(lVar5 + 0x48)" * (cast_expression "(double *)(lVar5 + 0x48)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x48)" ( (binary_expression "lVar5 + 0x48" identifier + number_literal) ))))) ;) })) (break_statement "break;" break ;)) (case_statement "case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;" case number_literal : (expression_statement "dVar15 = *(double *)(lVar5 + 0x50);" (assignment_expression "dVar15 = *(double *)(lVar5 + 0x50)" identifier = (pointer_expression "*(double *)(lVar5 + 0x50)" * (cast_expression "(double *)(lVar5 + 0x50)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x50)" ( (binary_expression "lVar5 + 0x50" identifier + number_literal) ))))) ;) (break_statement "break;" break ;)) (case_statement "default:\n                      dVar15 = 0.0;" default : (expression_statement "dVar15 = 0.0;" (assignment_expression "dVar15 = 0.0" identifier = number_literal) ;)) })) (if_statement "if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }" if (parenthesized_expression "(dVar14 < dVar15)" ( (binary_expression "dVar14 < dVar15" identifier < identifier) )) (compound_statement "{\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }" { (expression_statement "*(undefined4 *)(lVar10 + lVar9 * 4) = 0;" (assignment_expression "*(undefined4 *)(lVar10 + lVar9 * 4) = 0" (pointer_expression "*(undefined4 *)(lVar10 + lVar9 * 4)" * (cast_expression "(undefined4 *)(lVar10 + lVar9 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar10 + lVar9 * 4)" ( (binary_expression "lVar10 + lVar9 * 4" identifier + (binary_expression "lVar9 * 4" identifier * number_literal)) )))) = number_literal) ;) })) })) (expression_statement "lVar9 = lVar9 + 1;" (assignment_expression "lVar9 = lVar9 + 1" identifier = (binary_expression "lVar9 + 1" identifier + number_literal)) ;) (expression_statement "lVar12 = *(long *)(lVar2 + 0x340);" (assignment_expression "lVar12 = *(long *)(lVar2 + 0x340)" identifier = (pointer_expression "*(long *)(lVar2 + 0x340)" * (cast_expression "(long *)(lVar2 + 0x340)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x340)" ( (binary_expression "lVar2 + 0x340" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(lVar9 < lVar12)" ( (binary_expression "lVar9 < lVar12" identifier < identifier) )) ;) })) (expression_statement "lVar10 = lVar10 + lVar12 * 4;" (assignment_expression "lVar10 = lVar10 + lVar12 * 4" identifier = (binary_expression "lVar10 + lVar12 * 4" identifier + (binary_expression "lVar12 * 4" identifier * number_literal))) ;) (expression_statement "lVar13 = lVar13 + 1;" (assignment_expression "lVar13 = lVar13 + 1" identifier = (binary_expression "lVar13 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(lVar13 < *(long *)(lVar2 + 0x20))" ( (binary_expression "lVar13 < *(long *)(lVar2 + 0x20)" identifier < (pointer_expression "*(long *)(lVar2 + 0x20)" * (cast_expression "(long *)(lVar2 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x20)" ( (binary_expression "lVar2 + 0x20" identifier + number_literal) ))))) )) ;) })) (expression_statement "iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);" (assignment_expression "iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4)" identifier = (call_expression "SyncCacheViewAuthenticPixels(lVar3,lVar4)" identifier (argument_list "(lVar3,lVar4)" ( identifier , identifier )))) ;) (if_statement "if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n            *(undefined4 *)(param_1 + 5) = 0;\n          }" { (expression_statement "*(undefined4 *)(param_1 + 5) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 5) = 0" (pointer_expression "*(undefined4 *)(param_1 + 5)" * (cast_expression "(undefined4 *)(param_1 + 5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }" if (parenthesized_expression "(*(long *)(lVar2 + 0x3c8) != 0)" ( (binary_expression "*(long *)(lVar2 + 0x3c8) != 0" (pointer_expression "*(long *)(lVar2 + 0x3c8)" * (cast_expression "(long *)(lVar2 + 0x3c8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x3c8)" ( (binary_expression "lVar2 + 0x3c8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(long *)param_1[4] = *(long *)param_1[4] + 1;" (assignment_expression "*(long *)param_1[4] = *(long *)param_1[4] + 1" (pointer_expression "*(long *)param_1[4]" * (cast_expression "(long *)param_1[4]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[4]" identifier [ number_literal ]))) = (binary_expression "*(long *)param_1[4] + 1" (pointer_expression "*(long *)param_1[4]" * (cast_expression "(long *)param_1[4]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[4]" identifier [ number_literal ]))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));" (assignment_expression "iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28))" identifier = (call_expression "SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28))" identifier (argument_list "(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28))" ( identifier , (string_literal ""Threshold/Image"" " string_content ") , (pointer_expression "*(undefined8 *)param_1[4]" * (cast_expression "(undefined8 *)param_1[4]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[4]" identifier [ number_literal ]))) , (pointer_expression "*(undefined8 *)(lVar2 + 0x28)" * (cast_expression "(undefined8 *)(lVar2 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x28)" ( (binary_expression "lVar2 + 0x28" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n              *(undefined4 *)(param_1 + 5) = 0;\n            }" { (expression_statement "*(undefined4 *)(param_1 + 5) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 5) = 0" (pointer_expression "*(undefined4 *)(param_1 + 5)" * (cast_expression "(undefined4 *)(param_1 + 5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) = number_literal) ;) })) })) }))) })) (expression_statement "lVar11 = lVar11 + 1;" (assignment_expression "lVar11 = lVar11 + 1" identifier = (binary_expression "lVar11 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(lVar8 != lVar11)" ( (binary_expression "lVar8 != lVar11" identifier != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* 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/* DWARF original prototype: void BlackThresholdImage._omp_fn.2(anon_struct_48_6_68167dc4 * param_0)\n    */\n\nvoid __thiscall BlackThresholdImage__omp_fn_2(void *this)\n\n{\n  PixelChannel PVar1;\n  Image *image;\n  CacheView *cache_view;\n  ExceptionInfo *exception;\n  long lVar2;\n  int iVar3;\n  int iVar4;\n  MagickBooleanType MVar5;\n  long lVar6;\n  long lVar7;\n  Quantum *pixel;\n  long lVar8;\n  size_t sVar9;\n  long lVar10;\n  double dVar11;\n  double dVar12;\n  \n                    /* WARNING: Load size is inaccurate */\n  image = *this;\n  sVar9 = image->rows;\n  iVar3 = omp_get_num_threads();\n  iVar4 = omp_get_thread_num();\n  lVar6 = (long)sVar9 / (long)iVar3;\n  lVar8 = (long)sVar9 % (long)iVar3;\n  if (iVar4 < lVar8) {\n    lVar6 = lVar6 + 1;\n    lVar8 = 0;\n  }\n  lVar8 = iVar4 * lVar6 + lVar8;\n  lVar6 = lVar6 + lVar8;\n  if (lVar8 < lVar6) {\n    cache_view = *(CacheView **)((long)this + 0x10);\n    exception = *(ExceptionInfo **)((long)this + 8);\n    do {\n      if (*(int *)((long)this + 0x28) != 0) {\n        pixel = GetCacheViewAuthenticPixels(cache_view,0,lVar8,image->columns,1,exception);\n        if (pixel == (Quantum *)0x0) {\n          *(undefined4 *)((long)this + 0x28) = 0;\n        }\n        else {\n          lVar10 = 0;\n          if (0 < (long)image->columns) {\n            do {\n              dVar11 = GetPixelIntensity(image,pixel);\n              sVar9 = image->number_channels;\n              if (0 < (long)sVar9) {\n                lVar2 = *(long *)((long)this + 0x18);\n                lVar7 = 0;\n                do {\n                  PVar1 = image->channel_map[lVar7].channel;\n                  if ((image->channel_map[PVar1].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                  {\n                    if (image->channel_mask != AllChannels) {\n                      dVar11 = (double)pixel[lVar7];\n                    }\n                    switch(PVar1) {\n                    case CyanPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x28);\n                      break;\n                    case CbPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x30);\n                      break;\n                    case BluePixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x38);\n                      break;\n                    case BlackPixelChannel:\n                      dVar12 = 0.0;\n                      if (*(int *)(lVar2 + 4) == 2) {\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }\n                      break;\n                    case AlphaPixelChannel:\n                      dVar12 = DAT_003f95f8;\n                      if (*(int *)(lVar2 + 8) != 0) {\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }\n                      break;\n                    case IndexPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x50);\n                      break;\n                    default:\n                      dVar12 = 0.0;\n                    }\n                    if (dVar11 < dVar12) {\n                      pixel[lVar7] = 0.0;\n                    }\n                  }\n                  lVar7 = lVar7 + 1;\n                  sVar9 = image->number_channels;\n                } while (lVar7 < (long)sVar9);\n              }\n              pixel = pixel + sVar9;\n              lVar10 = lVar10 + 1;\n            } while (lVar10 < (long)image->columns);\n          }\n          MVar5 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar5 == MagickFalse) {\n            *(undefined4 *)((long)this + 0x28) = 0;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            LOCK();\n            **(long **)((long)this + 0x20) = **(long **)((long)this + 0x20) + 1;\n            UNLOCK();\n            MVar5 = SetImageProgress(image,"Threshold/Image",\n                                     **(MagickOffsetType **)((long)this + 0x20),image->rows);\n            if (MVar5 == MagickFalse) {\n              *(undefined4 *)((long)this + 0x28) = 0;\n            }\n          }\n        }\n      }\n      lVar8 = lVar8 + 1;\n    } while (lVar6 != lVar8);\n  }\n  return;\n}\n\n" comment comment comment comment comment comment (function_definition "void __thiscall BlackThresholdImage__omp_fn_2(void *this)\n\n{\n  PixelChannel PVar1;\n  Image *image;\n  CacheView *cache_view;\n  ExceptionInfo *exception;\n  long lVar2;\n  int iVar3;\n  int iVar4;\n  MagickBooleanType MVar5;\n  long lVar6;\n  long lVar7;\n  Quantum *pixel;\n  long lVar8;\n  size_t sVar9;\n  long lVar10;\n  double dVar11;\n  double dVar12;\n  \n                    /* WARNING: Load size is inaccurate */\n  image = *this;\n  sVar9 = image->rows;\n  iVar3 = omp_get_num_threads();\n  iVar4 = omp_get_thread_num();\n  lVar6 = (long)sVar9 / (long)iVar3;\n  lVar8 = (long)sVar9 % (long)iVar3;\n  if (iVar4 < lVar8) {\n    lVar6 = lVar6 + 1;\n    lVar8 = 0;\n  }\n  lVar8 = iVar4 * lVar6 + lVar8;\n  lVar6 = lVar6 + lVar8;\n  if (lVar8 < lVar6) {\n    cache_view = *(CacheView **)((long)this + 0x10);\n    exception = *(ExceptionInfo **)((long)this + 8);\n    do {\n      if (*(int *)((long)this + 0x28) != 0) {\n        pixel = GetCacheViewAuthenticPixels(cache_view,0,lVar8,image->columns,1,exception);\n        if (pixel == (Quantum *)0x0) {\n          *(undefined4 *)((long)this + 0x28) = 0;\n        }\n        else {\n          lVar10 = 0;\n          if (0 < (long)image->columns) {\n            do {\n              dVar11 = GetPixelIntensity(image,pixel);\n              sVar9 = image->number_channels;\n              if (0 < (long)sVar9) {\n                lVar2 = *(long *)((long)this + 0x18);\n                lVar7 = 0;\n                do {\n                  PVar1 = image->channel_map[lVar7].channel;\n                  if ((image->channel_map[PVar1].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                  {\n                    if (image->channel_mask != AllChannels) {\n                      dVar11 = (double)pixel[lVar7];\n                    }\n                    switch(PVar1) {\n                    case CyanPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x28);\n                      break;\n                    case CbPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x30);\n                      break;\n                    case BluePixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x38);\n                      break;\n                    case BlackPixelChannel:\n                      dVar12 = 0.0;\n                      if (*(int *)(lVar2 + 4) == 2) {\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }\n                      break;\n                    case AlphaPixelChannel:\n                      dVar12 = DAT_003f95f8;\n                      if (*(int *)(lVar2 + 8) != 0) {\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }\n                      break;\n                    case IndexPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x50);\n                      break;\n                    default:\n                      dVar12 = 0.0;\n                    }\n                    if (dVar11 < dVar12) {\n                      pixel[lVar7] = 0.0;\n                    }\n                  }\n                  lVar7 = lVar7 + 1;\n                  sVar9 = image->number_channels;\n                } while (lVar7 < (long)sVar9);\n              }\n              pixel = pixel + sVar9;\n              lVar10 = lVar10 + 1;\n            } while (lVar10 < (long)image->columns);\n          }\n          MVar5 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar5 == MagickFalse) {\n            *(undefined4 *)((long)this + 0x28) = 0;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            LOCK();\n            **(long **)((long)this + 0x20) = **(long **)((long)this + 0x20) + 1;\n            UNLOCK();\n            MVar5 = SetImageProgress(image,"Threshold/Image",\n                                     **(MagickOffsetType **)((long)this + 0x20),image->rows);\n            if (MVar5 == MagickFalse) {\n              *(undefined4 *)((long)this + 0x28) = 0;\n            }\n          }\n        }\n      }\n      lVar8 = lVar8 + 1;\n    } while (lVar6 != lVar8);\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (function_declarator "BlackThresholdImage__omp_fn_2(void *this)" identifier (parameter_list "(void *this)" ( (parameter_declaration "void *this" primitive_type (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  PixelChannel PVar1;\n  Image *image;\n  CacheView *cache_view;\n  ExceptionInfo *exception;\n  long lVar2;\n  int iVar3;\n  int iVar4;\n  MagickBooleanType MVar5;\n  long lVar6;\n  long lVar7;\n  Quantum *pixel;\n  long lVar8;\n  size_t sVar9;\n  long lVar10;\n  double dVar11;\n  double dVar12;\n  \n                    /* WARNING: Load size is inaccurate */\n  image = *this;\n  sVar9 = image->rows;\n  iVar3 = omp_get_num_threads();\n  iVar4 = omp_get_thread_num();\n  lVar6 = (long)sVar9 / (long)iVar3;\n  lVar8 = (long)sVar9 % (long)iVar3;\n  if (iVar4 < lVar8) {\n    lVar6 = lVar6 + 1;\n    lVar8 = 0;\n  }\n  lVar8 = iVar4 * lVar6 + lVar8;\n  lVar6 = lVar6 + lVar8;\n  if (lVar8 < lVar6) {\n    cache_view = *(CacheView **)((long)this + 0x10);\n    exception = *(ExceptionInfo **)((long)this + 8);\n    do {\n      if (*(int *)((long)this + 0x28) != 0) {\n        pixel = GetCacheViewAuthenticPixels(cache_view,0,lVar8,image->columns,1,exception);\n        if (pixel == (Quantum *)0x0) {\n          *(undefined4 *)((long)this + 0x28) = 0;\n        }\n        else {\n          lVar10 = 0;\n          if (0 < (long)image->columns) {\n            do {\n              dVar11 = GetPixelIntensity(image,pixel);\n              sVar9 = image->number_channels;\n              if (0 < (long)sVar9) {\n                lVar2 = *(long *)((long)this + 0x18);\n                lVar7 = 0;\n                do {\n                  PVar1 = image->channel_map[lVar7].channel;\n                  if ((image->channel_map[PVar1].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                  {\n                    if (image->channel_mask != AllChannels) {\n                      dVar11 = (double)pixel[lVar7];\n                    }\n                    switch(PVar1) {\n                    case CyanPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x28);\n                      break;\n                    case CbPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x30);\n                      break;\n                    case BluePixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x38);\n                      break;\n                    case BlackPixelChannel:\n                      dVar12 = 0.0;\n                      if (*(int *)(lVar2 + 4) == 2) {\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }\n                      break;\n                    case AlphaPixelChannel:\n                      dVar12 = DAT_003f95f8;\n                      if (*(int *)(lVar2 + 8) != 0) {\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }\n                      break;\n                    case IndexPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x50);\n                      break;\n                    default:\n                      dVar12 = 0.0;\n                    }\n                    if (dVar11 < dVar12) {\n                      pixel[lVar7] = 0.0;\n                    }\n                  }\n                  lVar7 = lVar7 + 1;\n                  sVar9 = image->number_channels;\n                } while (lVar7 < (long)sVar9);\n              }\n              pixel = pixel + sVar9;\n              lVar10 = lVar10 + 1;\n            } while (lVar10 < (long)image->columns);\n          }\n          MVar5 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar5 == MagickFalse) {\n            *(undefined4 *)((long)this + 0x28) = 0;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            LOCK();\n            **(long **)((long)this + 0x20) = **(long **)((long)this + 0x20) + 1;\n            UNLOCK();\n            MVar5 = SetImageProgress(image,"Threshold/Image",\n                                     **(MagickOffsetType **)((long)this + 0x20),image->rows);\n            if (MVar5 == MagickFalse) {\n              *(undefined4 *)((long)this + 0x28) = 0;\n            }\n          }\n        }\n      }\n      lVar8 = lVar8 + 1;\n    } while (lVar6 != lVar8);\n  }\n  return;\n}" { (declaration "PixelChannel PVar1;" type_identifier identifier ;) (declaration "Image *image;" type_identifier (pointer_declarator "*image" * identifier) ;) (declaration "CacheView *cache_view;" type_identifier (pointer_declarator "*cache_view" * identifier) ;) (declaration "ExceptionInfo *exception;" type_identifier (pointer_declarator "*exception" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "MagickBooleanType MVar5;" type_identifier identifier ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar7;" (sized_type_specifier "long" long) identifier ;) (declaration "Quantum *pixel;" type_identifier (pointer_declarator "*pixel" * identifier) ;) (declaration "long lVar8;" (sized_type_specifier "long" long) identifier ;) (declaration "size_t sVar9;" primitive_type identifier ;) (declaration "long lVar10;" (sized_type_specifier "long" long) identifier ;) (declaration "double dVar11;" primitive_type identifier ;) (declaration "double dVar12;" primitive_type identifier ;) comment (expression_statement "image = *this;" (assignment_expression "image = *this" identifier = (pointer_expression "*this" * identifier)) ;) (expression_statement "sVar9 = image->rows;" (assignment_expression "sVar9 = image->rows" identifier = (field_expression "image->rows" identifier -> field_identifier)) ;) (expression_statement "iVar3 = omp_get_num_threads();" (assignment_expression "iVar3 = omp_get_num_threads()" identifier = (call_expression "omp_get_num_threads()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar4 = omp_get_thread_num();" (assignment_expression "iVar4 = omp_get_thread_num()" identifier = (call_expression "omp_get_thread_num()" identifier (argument_list "()" ( )))) ;) (expression_statement "lVar6 = (long)sVar9 / (long)iVar3;" (assignment_expression "lVar6 = (long)sVar9 / (long)iVar3" identifier = (binary_expression "(long)sVar9 / (long)iVar3" (cast_expression "(long)sVar9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) / (cast_expression "(long)iVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "lVar8 = (long)sVar9 % (long)iVar3;" (assignment_expression "lVar8 = (long)sVar9 % (long)iVar3" identifier = (binary_expression "(long)sVar9 % (long)iVar3" (cast_expression "(long)sVar9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) % (cast_expression "(long)iVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (if_statement "if (iVar4 < lVar8) {\n    lVar6 = lVar6 + 1;\n    lVar8 = 0;\n  }" if (parenthesized_expression "(iVar4 < lVar8)" ( (binary_expression "iVar4 < lVar8" identifier < identifier) )) (compound_statement "{\n    lVar6 = lVar6 + 1;\n    lVar8 = 0;\n  }" { (expression_statement "lVar6 = lVar6 + 1;" (assignment_expression "lVar6 = lVar6 + 1" identifier = (binary_expression "lVar6 + 1" identifier + number_literal)) ;) (expression_statement "lVar8 = 0;" (assignment_expression "lVar8 = 0" identifier = number_literal) ;) })) (expression_statement "lVar8 = iVar4 * lVar6 + lVar8;" (assignment_expression "lVar8 = iVar4 * lVar6 + lVar8" identifier = (binary_expression "iVar4 * lVar6 + lVar8" (binary_expression "iVar4 * lVar6" identifier * identifier) + identifier)) ;) (expression_statement "lVar6 = lVar6 + lVar8;" (assignment_expression "lVar6 = lVar6 + lVar8" identifier = (binary_expression "lVar6 + lVar8" identifier + identifier)) ;) (if_statement "if (lVar8 < lVar6) {\n    cache_view = *(CacheView **)((long)this + 0x10);\n    exception = *(ExceptionInfo **)((long)this + 8);\n    do {\n      if (*(int *)((long)this + 0x28) != 0) {\n        pixel = GetCacheViewAuthenticPixels(cache_view,0,lVar8,image->columns,1,exception);\n        if (pixel == (Quantum *)0x0) {\n          *(undefined4 *)((long)this + 0x28) = 0;\n        }\n        else {\n          lVar10 = 0;\n          if (0 < (long)image->columns) {\n            do {\n              dVar11 = GetPixelIntensity(image,pixel);\n              sVar9 = image->number_channels;\n              if (0 < (long)sVar9) {\n                lVar2 = *(long *)((long)this + 0x18);\n                lVar7 = 0;\n                do {\n                  PVar1 = image->channel_map[lVar7].channel;\n                  if ((image->channel_map[PVar1].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                  {\n                    if (image->channel_mask != AllChannels) {\n                      dVar11 = (double)pixel[lVar7];\n                    }\n                    switch(PVar1) {\n                    case CyanPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x28);\n                      break;\n                    case CbPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x30);\n                      break;\n                    case BluePixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x38);\n                      break;\n                    case BlackPixelChannel:\n                      dVar12 = 0.0;\n                      if (*(int *)(lVar2 + 4) == 2) {\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }\n                      break;\n                    case AlphaPixelChannel:\n                      dVar12 = DAT_003f95f8;\n                      if (*(int *)(lVar2 + 8) != 0) {\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }\n                      break;\n                    case IndexPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x50);\n                      break;\n                    default:\n                      dVar12 = 0.0;\n                    }\n                    if (dVar11 < dVar12) {\n                      pixel[lVar7] = 0.0;\n                    }\n                  }\n                  lVar7 = lVar7 + 1;\n                  sVar9 = image->number_channels;\n                } while (lVar7 < (long)sVar9);\n              }\n              pixel = pixel + sVar9;\n              lVar10 = lVar10 + 1;\n            } while (lVar10 < (long)image->columns);\n          }\n          MVar5 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar5 == MagickFalse) {\n            *(undefined4 *)((long)this + 0x28) = 0;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            LOCK();\n            **(long **)((long)this + 0x20) = **(long **)((long)this + 0x20) + 1;\n            UNLOCK();\n            MVar5 = SetImageProgress(image,"Threshold/Image",\n                                     **(MagickOffsetType **)((long)this + 0x20),image->rows);\n            if (MVar5 == MagickFalse) {\n              *(undefined4 *)((long)this + 0x28) = 0;\n            }\n          }\n        }\n      }\n      lVar8 = lVar8 + 1;\n    } while (lVar6 != lVar8);\n  }" if (parenthesized_expression "(lVar8 < lVar6)" ( (binary_expression "lVar8 < lVar6" identifier < identifier) )) (compound_statement "{\n    cache_view = *(CacheView **)((long)this + 0x10);\n    exception = *(ExceptionInfo **)((long)this + 8);\n    do {\n      if (*(int *)((long)this + 0x28) != 0) {\n        pixel = GetCacheViewAuthenticPixels(cache_view,0,lVar8,image->columns,1,exception);\n        if (pixel == (Quantum *)0x0) {\n          *(undefined4 *)((long)this + 0x28) = 0;\n        }\n        else {\n          lVar10 = 0;\n          if (0 < (long)image->columns) {\n            do {\n              dVar11 = GetPixelIntensity(image,pixel);\n              sVar9 = image->number_channels;\n              if (0 < (long)sVar9) {\n                lVar2 = *(long *)((long)this + 0x18);\n                lVar7 = 0;\n                do {\n                  PVar1 = image->channel_map[lVar7].channel;\n                  if ((image->channel_map[PVar1].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                  {\n                    if (image->channel_mask != AllChannels) {\n                      dVar11 = (double)pixel[lVar7];\n                    }\n                    switch(PVar1) {\n                    case CyanPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x28);\n                      break;\n                    case CbPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x30);\n                      break;\n                    case BluePixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x38);\n                      break;\n                    case BlackPixelChannel:\n                      dVar12 = 0.0;\n                      if (*(int *)(lVar2 + 4) == 2) {\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }\n                      break;\n                    case AlphaPixelChannel:\n                      dVar12 = DAT_003f95f8;\n                      if (*(int *)(lVar2 + 8) != 0) {\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }\n                      break;\n                    case IndexPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x50);\n                      break;\n                    default:\n                      dVar12 = 0.0;\n                    }\n                    if (dVar11 < dVar12) {\n                      pixel[lVar7] = 0.0;\n                    }\n                  }\n                  lVar7 = lVar7 + 1;\n                  sVar9 = image->number_channels;\n                } while (lVar7 < (long)sVar9);\n              }\n              pixel = pixel + sVar9;\n              lVar10 = lVar10 + 1;\n            } while (lVar10 < (long)image->columns);\n          }\n          MVar5 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar5 == MagickFalse) {\n            *(undefined4 *)((long)this + 0x28) = 0;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            LOCK();\n            **(long **)((long)this + 0x20) = **(long **)((long)this + 0x20) + 1;\n            UNLOCK();\n            MVar5 = SetImageProgress(image,"Threshold/Image",\n                                     **(MagickOffsetType **)((long)this + 0x20),image->rows);\n            if (MVar5 == MagickFalse) {\n              *(undefined4 *)((long)this + 0x28) = 0;\n            }\n          }\n        }\n      }\n      lVar8 = lVar8 + 1;\n    } while (lVar6 != lVar8);\n  }" { (expression_statement "cache_view = *(CacheView **)((long)this + 0x10);" (assignment_expression "cache_view = *(CacheView **)((long)this + 0x10)" identifier = (pointer_expression "*(CacheView **)((long)this + 0x10)" * (cast_expression "(CacheView **)((long)this + 0x10)" ( (type_descriptor "CacheView **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)this + 0x10)" ( (binary_expression "(long)this + 0x10" (cast_expression "(long)this" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "exception = *(ExceptionInfo **)((long)this + 8);" (assignment_expression "exception = *(ExceptionInfo **)((long)this + 8)" identifier = (pointer_expression "*(ExceptionInfo **)((long)this + 8)" * (cast_expression "(ExceptionInfo **)((long)this + 8)" ( (type_descriptor "ExceptionInfo **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)this + 8)" ( (binary_expression "(long)this + 8" (cast_expression "(long)this" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (do_statement "do {\n      if (*(int *)((long)this + 0x28) != 0) {\n        pixel = GetCacheViewAuthenticPixels(cache_view,0,lVar8,image->columns,1,exception);\n        if (pixel == (Quantum *)0x0) {\n          *(undefined4 *)((long)this + 0x28) = 0;\n        }\n        else {\n          lVar10 = 0;\n          if (0 < (long)image->columns) {\n            do {\n              dVar11 = GetPixelIntensity(image,pixel);\n              sVar9 = image->number_channels;\n              if (0 < (long)sVar9) {\n                lVar2 = *(long *)((long)this + 0x18);\n                lVar7 = 0;\n                do {\n                  PVar1 = image->channel_map[lVar7].channel;\n                  if ((image->channel_map[PVar1].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                  {\n                    if (image->channel_mask != AllChannels) {\n                      dVar11 = (double)pixel[lVar7];\n                    }\n                    switch(PVar1) {\n                    case CyanPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x28);\n                      break;\n                    case CbPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x30);\n                      break;\n                    case BluePixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x38);\n                      break;\n                    case BlackPixelChannel:\n                      dVar12 = 0.0;\n                      if (*(int *)(lVar2 + 4) == 2) {\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }\n                      break;\n                    case AlphaPixelChannel:\n                      dVar12 = DAT_003f95f8;\n                      if (*(int *)(lVar2 + 8) != 0) {\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }\n                      break;\n                    case IndexPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x50);\n                      break;\n                    default:\n                      dVar12 = 0.0;\n                    }\n                    if (dVar11 < dVar12) {\n                      pixel[lVar7] = 0.0;\n                    }\n                  }\n                  lVar7 = lVar7 + 1;\n                  sVar9 = image->number_channels;\n                } while (lVar7 < (long)sVar9);\n              }\n              pixel = pixel + sVar9;\n              lVar10 = lVar10 + 1;\n            } while (lVar10 < (long)image->columns);\n          }\n          MVar5 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar5 == MagickFalse) {\n            *(undefined4 *)((long)this + 0x28) = 0;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            LOCK();\n            **(long **)((long)this + 0x20) = **(long **)((long)this + 0x20) + 1;\n            UNLOCK();\n            MVar5 = SetImageProgress(image,"Threshold/Image",\n                                     **(MagickOffsetType **)((long)this + 0x20),image->rows);\n            if (MVar5 == MagickFalse) {\n              *(undefined4 *)((long)this + 0x28) = 0;\n            }\n          }\n        }\n      }\n      lVar8 = lVar8 + 1;\n    } while (lVar6 != lVar8);" do (compound_statement "{\n      if (*(int *)((long)this + 0x28) != 0) {\n        pixel = GetCacheViewAuthenticPixels(cache_view,0,lVar8,image->columns,1,exception);\n        if (pixel == (Quantum *)0x0) {\n          *(undefined4 *)((long)this + 0x28) = 0;\n        }\n        else {\n          lVar10 = 0;\n          if (0 < (long)image->columns) {\n            do {\n              dVar11 = GetPixelIntensity(image,pixel);\n              sVar9 = image->number_channels;\n              if (0 < (long)sVar9) {\n                lVar2 = *(long *)((long)this + 0x18);\n                lVar7 = 0;\n                do {\n                  PVar1 = image->channel_map[lVar7].channel;\n                  if ((image->channel_map[PVar1].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                  {\n                    if (image->channel_mask != AllChannels) {\n                      dVar11 = (double)pixel[lVar7];\n                    }\n                    switch(PVar1) {\n                    case CyanPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x28);\n                      break;\n                    case CbPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x30);\n                      break;\n                    case BluePixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x38);\n                      break;\n                    case BlackPixelChannel:\n                      dVar12 = 0.0;\n                      if (*(int *)(lVar2 + 4) == 2) {\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }\n                      break;\n                    case AlphaPixelChannel:\n                      dVar12 = DAT_003f95f8;\n                      if (*(int *)(lVar2 + 8) != 0) {\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }\n                      break;\n                    case IndexPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x50);\n                      break;\n                    default:\n                      dVar12 = 0.0;\n                    }\n                    if (dVar11 < dVar12) {\n                      pixel[lVar7] = 0.0;\n                    }\n                  }\n                  lVar7 = lVar7 + 1;\n                  sVar9 = image->number_channels;\n                } while (lVar7 < (long)sVar9);\n              }\n              pixel = pixel + sVar9;\n              lVar10 = lVar10 + 1;\n            } while (lVar10 < (long)image->columns);\n          }\n          MVar5 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar5 == MagickFalse) {\n            *(undefined4 *)((long)this + 0x28) = 0;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            LOCK();\n            **(long **)((long)this + 0x20) = **(long **)((long)this + 0x20) + 1;\n            UNLOCK();\n            MVar5 = SetImageProgress(image,"Threshold/Image",\n                                     **(MagickOffsetType **)((long)this + 0x20),image->rows);\n            if (MVar5 == MagickFalse) {\n              *(undefined4 *)((long)this + 0x28) = 0;\n            }\n          }\n        }\n      }\n      lVar8 = lVar8 + 1;\n    }" { (if_statement "if (*(int *)((long)this + 0x28) != 0) {\n        pixel = GetCacheViewAuthenticPixels(cache_view,0,lVar8,image->columns,1,exception);\n        if (pixel == (Quantum *)0x0) {\n          *(undefined4 *)((long)this + 0x28) = 0;\n        }\n        else {\n          lVar10 = 0;\n          if (0 < (long)image->columns) {\n            do {\n              dVar11 = GetPixelIntensity(image,pixel);\n              sVar9 = image->number_channels;\n              if (0 < (long)sVar9) {\n                lVar2 = *(long *)((long)this + 0x18);\n                lVar7 = 0;\n                do {\n                  PVar1 = image->channel_map[lVar7].channel;\n                  if ((image->channel_map[PVar1].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                  {\n                    if (image->channel_mask != AllChannels) {\n                      dVar11 = (double)pixel[lVar7];\n                    }\n                    switch(PVar1) {\n                    case CyanPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x28);\n                      break;\n                    case CbPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x30);\n                      break;\n                    case BluePixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x38);\n                      break;\n                    case BlackPixelChannel:\n                      dVar12 = 0.0;\n                      if (*(int *)(lVar2 + 4) == 2) {\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }\n                      break;\n                    case AlphaPixelChannel:\n                      dVar12 = DAT_003f95f8;\n                      if (*(int *)(lVar2 + 8) != 0) {\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }\n                      break;\n                    case IndexPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x50);\n                      break;\n                    default:\n                      dVar12 = 0.0;\n                    }\n                    if (dVar11 < dVar12) {\n                      pixel[lVar7] = 0.0;\n                    }\n                  }\n                  lVar7 = lVar7 + 1;\n                  sVar9 = image->number_channels;\n                } while (lVar7 < (long)sVar9);\n              }\n              pixel = pixel + sVar9;\n              lVar10 = lVar10 + 1;\n            } while (lVar10 < (long)image->columns);\n          }\n          MVar5 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar5 == MagickFalse) {\n            *(undefined4 *)((long)this + 0x28) = 0;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            LOCK();\n            **(long **)((long)this + 0x20) = **(long **)((long)this + 0x20) + 1;\n            UNLOCK();\n            MVar5 = SetImageProgress(image,"Threshold/Image",\n                                     **(MagickOffsetType **)((long)this + 0x20),image->rows);\n            if (MVar5 == MagickFalse) {\n              *(undefined4 *)((long)this + 0x28) = 0;\n            }\n          }\n        }\n      }" if (parenthesized_expression "(*(int *)((long)this + 0x28) != 0)" ( (binary_expression "*(int *)((long)this + 0x28) != 0" (pointer_expression "*(int *)((long)this + 0x28)" * (cast_expression "(int *)((long)this + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)this + 0x28)" ( (binary_expression "(long)this + 0x28" (cast_expression "(long)this" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n        pixel = GetCacheViewAuthenticPixels(cache_view,0,lVar8,image->columns,1,exception);\n        if (pixel == (Quantum *)0x0) {\n          *(undefined4 *)((long)this + 0x28) = 0;\n        }\n        else {\n          lVar10 = 0;\n          if (0 < (long)image->columns) {\n            do {\n              dVar11 = GetPixelIntensity(image,pixel);\n              sVar9 = image->number_channels;\n              if (0 < (long)sVar9) {\n                lVar2 = *(long *)((long)this + 0x18);\n                lVar7 = 0;\n                do {\n                  PVar1 = image->channel_map[lVar7].channel;\n                  if ((image->channel_map[PVar1].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                  {\n                    if (image->channel_mask != AllChannels) {\n                      dVar11 = (double)pixel[lVar7];\n                    }\n                    switch(PVar1) {\n                    case CyanPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x28);\n                      break;\n                    case CbPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x30);\n                      break;\n                    case BluePixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x38);\n                      break;\n                    case BlackPixelChannel:\n                      dVar12 = 0.0;\n                      if (*(int *)(lVar2 + 4) == 2) {\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }\n                      break;\n                    case AlphaPixelChannel:\n                      dVar12 = DAT_003f95f8;\n                      if (*(int *)(lVar2 + 8) != 0) {\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }\n                      break;\n                    case IndexPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x50);\n                      break;\n                    default:\n                      dVar12 = 0.0;\n                    }\n                    if (dVar11 < dVar12) {\n                      pixel[lVar7] = 0.0;\n                    }\n                  }\n                  lVar7 = lVar7 + 1;\n                  sVar9 = image->number_channels;\n                } while (lVar7 < (long)sVar9);\n              }\n              pixel = pixel + sVar9;\n              lVar10 = lVar10 + 1;\n            } while (lVar10 < (long)image->columns);\n          }\n          MVar5 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar5 == MagickFalse) {\n            *(undefined4 *)((long)this + 0x28) = 0;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            LOCK();\n            **(long **)((long)this + 0x20) = **(long **)((long)this + 0x20) + 1;\n            UNLOCK();\n            MVar5 = SetImageProgress(image,"Threshold/Image",\n                                     **(MagickOffsetType **)((long)this + 0x20),image->rows);\n            if (MVar5 == MagickFalse) {\n              *(undefined4 *)((long)this + 0x28) = 0;\n            }\n          }\n        }\n      }" { (expression_statement "pixel = GetCacheViewAuthenticPixels(cache_view,0,lVar8,image->columns,1,exception);" (assignment_expression "pixel = GetCacheViewAuthenticPixels(cache_view,0,lVar8,image->columns,1,exception)" identifier = (call_expression "GetCacheViewAuthenticPixels(cache_view,0,lVar8,image->columns,1,exception)" identifier (argument_list "(cache_view,0,lVar8,image->columns,1,exception)" ( identifier , number_literal , identifier , (field_expression "image->columns" identifier -> field_identifier) , number_literal , identifier )))) ;) (if_statement "if (pixel == (Quantum *)0x0) {\n          *(undefined4 *)((long)this + 0x28) = 0;\n        }\n        else {\n          lVar10 = 0;\n          if (0 < (long)image->columns) {\n            do {\n              dVar11 = GetPixelIntensity(image,pixel);\n              sVar9 = image->number_channels;\n              if (0 < (long)sVar9) {\n                lVar2 = *(long *)((long)this + 0x18);\n                lVar7 = 0;\n                do {\n                  PVar1 = image->channel_map[lVar7].channel;\n                  if ((image->channel_map[PVar1].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                  {\n                    if (image->channel_mask != AllChannels) {\n                      dVar11 = (double)pixel[lVar7];\n                    }\n                    switch(PVar1) {\n                    case CyanPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x28);\n                      break;\n                    case CbPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x30);\n                      break;\n                    case BluePixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x38);\n                      break;\n                    case BlackPixelChannel:\n                      dVar12 = 0.0;\n                      if (*(int *)(lVar2 + 4) == 2) {\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }\n                      break;\n                    case AlphaPixelChannel:\n                      dVar12 = DAT_003f95f8;\n                      if (*(int *)(lVar2 + 8) != 0) {\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }\n                      break;\n                    case IndexPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x50);\n                      break;\n                    default:\n                      dVar12 = 0.0;\n                    }\n                    if (dVar11 < dVar12) {\n                      pixel[lVar7] = 0.0;\n                    }\n                  }\n                  lVar7 = lVar7 + 1;\n                  sVar9 = image->number_channels;\n                } while (lVar7 < (long)sVar9);\n              }\n              pixel = pixel + sVar9;\n              lVar10 = lVar10 + 1;\n            } while (lVar10 < (long)image->columns);\n          }\n          MVar5 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar5 == MagickFalse) {\n            *(undefined4 *)((long)this + 0x28) = 0;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            LOCK();\n            **(long **)((long)this + 0x20) = **(long **)((long)this + 0x20) + 1;\n            UNLOCK();\n            MVar5 = SetImageProgress(image,"Threshold/Image",\n                                     **(MagickOffsetType **)((long)this + 0x20),image->rows);\n            if (MVar5 == MagickFalse) {\n              *(undefined4 *)((long)this + 0x28) = 0;\n            }\n          }\n        }" if (parenthesized_expression "(pixel == (Quantum *)0x0)" ( (binary_expression "pixel == (Quantum *)0x0" identifier == (cast_expression "(Quantum *)0x0" ( (type_descriptor "Quantum *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          *(undefined4 *)((long)this + 0x28) = 0;\n        }" { (expression_statement "*(undefined4 *)((long)this + 0x28) = 0;" (assignment_expression "*(undefined4 *)((long)this + 0x28) = 0" (pointer_expression "*(undefined4 *)((long)this + 0x28)" * (cast_expression "(undefined4 *)((long)this + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)this + 0x28)" ( (binary_expression "(long)this + 0x28" (cast_expression "(long)this" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n          lVar10 = 0;\n          if (0 < (long)image->columns) {\n            do {\n              dVar11 = GetPixelIntensity(image,pixel);\n              sVar9 = image->number_channels;\n              if (0 < (long)sVar9) {\n                lVar2 = *(long *)((long)this + 0x18);\n                lVar7 = 0;\n                do {\n                  PVar1 = image->channel_map[lVar7].channel;\n                  if ((image->channel_map[PVar1].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                  {\n                    if (image->channel_mask != AllChannels) {\n                      dVar11 = (double)pixel[lVar7];\n                    }\n                    switch(PVar1) {\n                    case CyanPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x28);\n                      break;\n                    case CbPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x30);\n                      break;\n                    case BluePixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x38);\n                      break;\n                    case BlackPixelChannel:\n                      dVar12 = 0.0;\n                      if (*(int *)(lVar2 + 4) == 2) {\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }\n                      break;\n                    case AlphaPixelChannel:\n                      dVar12 = DAT_003f95f8;\n                      if (*(int *)(lVar2 + 8) != 0) {\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }\n                      break;\n                    case IndexPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x50);\n                      break;\n                    default:\n                      dVar12 = 0.0;\n                    }\n                    if (dVar11 < dVar12) {\n                      pixel[lVar7] = 0.0;\n                    }\n                  }\n                  lVar7 = lVar7 + 1;\n                  sVar9 = image->number_channels;\n                } while (lVar7 < (long)sVar9);\n              }\n              pixel = pixel + sVar9;\n              lVar10 = lVar10 + 1;\n            } while (lVar10 < (long)image->columns);\n          }\n          MVar5 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar5 == MagickFalse) {\n            *(undefined4 *)((long)this + 0x28) = 0;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            LOCK();\n            **(long **)((long)this + 0x20) = **(long **)((long)this + 0x20) + 1;\n            UNLOCK();\n            MVar5 = SetImageProgress(image,"Threshold/Image",\n                                     **(MagickOffsetType **)((long)this + 0x20),image->rows);\n            if (MVar5 == MagickFalse) {\n              *(undefined4 *)((long)this + 0x28) = 0;\n            }\n          }\n        }" else (compound_statement "{\n          lVar10 = 0;\n          if (0 < (long)image->columns) {\n            do {\n              dVar11 = GetPixelIntensity(image,pixel);\n              sVar9 = image->number_channels;\n              if (0 < (long)sVar9) {\n                lVar2 = *(long *)((long)this + 0x18);\n                lVar7 = 0;\n                do {\n                  PVar1 = image->channel_map[lVar7].channel;\n                  if ((image->channel_map[PVar1].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                  {\n                    if (image->channel_mask != AllChannels) {\n                      dVar11 = (double)pixel[lVar7];\n                    }\n                    switch(PVar1) {\n                    case CyanPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x28);\n                      break;\n                    case CbPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x30);\n                      break;\n                    case BluePixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x38);\n                      break;\n                    case BlackPixelChannel:\n                      dVar12 = 0.0;\n                      if (*(int *)(lVar2 + 4) == 2) {\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }\n                      break;\n                    case AlphaPixelChannel:\n                      dVar12 = DAT_003f95f8;\n                      if (*(int *)(lVar2 + 8) != 0) {\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }\n                      break;\n                    case IndexPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x50);\n                      break;\n                    default:\n                      dVar12 = 0.0;\n                    }\n                    if (dVar11 < dVar12) {\n                      pixel[lVar7] = 0.0;\n                    }\n                  }\n                  lVar7 = lVar7 + 1;\n                  sVar9 = image->number_channels;\n                } while (lVar7 < (long)sVar9);\n              }\n              pixel = pixel + sVar9;\n              lVar10 = lVar10 + 1;\n            } while (lVar10 < (long)image->columns);\n          }\n          MVar5 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar5 == MagickFalse) {\n            *(undefined4 *)((long)this + 0x28) = 0;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            LOCK();\n            **(long **)((long)this + 0x20) = **(long **)((long)this + 0x20) + 1;\n            UNLOCK();\n            MVar5 = SetImageProgress(image,"Threshold/Image",\n                                     **(MagickOffsetType **)((long)this + 0x20),image->rows);\n            if (MVar5 == MagickFalse) {\n              *(undefined4 *)((long)this + 0x28) = 0;\n            }\n          }\n        }" { (expression_statement "lVar10 = 0;" (assignment_expression "lVar10 = 0" identifier = number_literal) ;) (if_statement "if (0 < (long)image->columns) {\n            do {\n              dVar11 = GetPixelIntensity(image,pixel);\n              sVar9 = image->number_channels;\n              if (0 < (long)sVar9) {\n                lVar2 = *(long *)((long)this + 0x18);\n                lVar7 = 0;\n                do {\n                  PVar1 = image->channel_map[lVar7].channel;\n                  if ((image->channel_map[PVar1].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                  {\n                    if (image->channel_mask != AllChannels) {\n                      dVar11 = (double)pixel[lVar7];\n                    }\n                    switch(PVar1) {\n                    case CyanPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x28);\n                      break;\n                    case CbPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x30);\n                      break;\n                    case BluePixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x38);\n                      break;\n                    case BlackPixelChannel:\n                      dVar12 = 0.0;\n                      if (*(int *)(lVar2 + 4) == 2) {\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }\n                      break;\n                    case AlphaPixelChannel:\n                      dVar12 = DAT_003f95f8;\n                      if (*(int *)(lVar2 + 8) != 0) {\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }\n                      break;\n                    case IndexPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x50);\n                      break;\n                    default:\n                      dVar12 = 0.0;\n                    }\n                    if (dVar11 < dVar12) {\n                      pixel[lVar7] = 0.0;\n                    }\n                  }\n                  lVar7 = lVar7 + 1;\n                  sVar9 = image->number_channels;\n                } while (lVar7 < (long)sVar9);\n              }\n              pixel = pixel + sVar9;\n              lVar10 = lVar10 + 1;\n            } while (lVar10 < (long)image->columns);\n          }" if (parenthesized_expression "(0 < (long)image->columns)" ( (binary_expression "0 < (long)image->columns" number_literal < (cast_expression "(long)image->columns" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "image->columns" identifier -> field_identifier))) )) (compound_statement "{\n            do {\n              dVar11 = GetPixelIntensity(image,pixel);\n              sVar9 = image->number_channels;\n              if (0 < (long)sVar9) {\n                lVar2 = *(long *)((long)this + 0x18);\n                lVar7 = 0;\n                do {\n                  PVar1 = image->channel_map[lVar7].channel;\n                  if ((image->channel_map[PVar1].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                  {\n                    if (image->channel_mask != AllChannels) {\n                      dVar11 = (double)pixel[lVar7];\n                    }\n                    switch(PVar1) {\n                    case CyanPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x28);\n                      break;\n                    case CbPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x30);\n                      break;\n                    case BluePixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x38);\n                      break;\n                    case BlackPixelChannel:\n                      dVar12 = 0.0;\n                      if (*(int *)(lVar2 + 4) == 2) {\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }\n                      break;\n                    case AlphaPixelChannel:\n                      dVar12 = DAT_003f95f8;\n                      if (*(int *)(lVar2 + 8) != 0) {\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }\n                      break;\n                    case IndexPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x50);\n                      break;\n                    default:\n                      dVar12 = 0.0;\n                    }\n                    if (dVar11 < dVar12) {\n                      pixel[lVar7] = 0.0;\n                    }\n                  }\n                  lVar7 = lVar7 + 1;\n                  sVar9 = image->number_channels;\n                } while (lVar7 < (long)sVar9);\n              }\n              pixel = pixel + sVar9;\n              lVar10 = lVar10 + 1;\n            } while (lVar10 < (long)image->columns);\n          }" { (do_statement "do {\n              dVar11 = GetPixelIntensity(image,pixel);\n              sVar9 = image->number_channels;\n              if (0 < (long)sVar9) {\n                lVar2 = *(long *)((long)this + 0x18);\n                lVar7 = 0;\n                do {\n                  PVar1 = image->channel_map[lVar7].channel;\n                  if ((image->channel_map[PVar1].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                  {\n                    if (image->channel_mask != AllChannels) {\n                      dVar11 = (double)pixel[lVar7];\n                    }\n                    switch(PVar1) {\n                    case CyanPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x28);\n                      break;\n                    case CbPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x30);\n                      break;\n                    case BluePixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x38);\n                      break;\n                    case BlackPixelChannel:\n                      dVar12 = 0.0;\n                      if (*(int *)(lVar2 + 4) == 2) {\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }\n                      break;\n                    case AlphaPixelChannel:\n                      dVar12 = DAT_003f95f8;\n                      if (*(int *)(lVar2 + 8) != 0) {\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }\n                      break;\n                    case IndexPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x50);\n                      break;\n                    default:\n                      dVar12 = 0.0;\n                    }\n                    if (dVar11 < dVar12) {\n                      pixel[lVar7] = 0.0;\n                    }\n                  }\n                  lVar7 = lVar7 + 1;\n                  sVar9 = image->number_channels;\n                } while (lVar7 < (long)sVar9);\n              }\n              pixel = pixel + sVar9;\n              lVar10 = lVar10 + 1;\n            } while (lVar10 < (long)image->columns);" do (compound_statement "{\n              dVar11 = GetPixelIntensity(image,pixel);\n              sVar9 = image->number_channels;\n              if (0 < (long)sVar9) {\n                lVar2 = *(long *)((long)this + 0x18);\n                lVar7 = 0;\n                do {\n                  PVar1 = image->channel_map[lVar7].channel;\n                  if ((image->channel_map[PVar1].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                  {\n                    if (image->channel_mask != AllChannels) {\n                      dVar11 = (double)pixel[lVar7];\n                    }\n                    switch(PVar1) {\n                    case CyanPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x28);\n                      break;\n                    case CbPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x30);\n                      break;\n                    case BluePixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x38);\n                      break;\n                    case BlackPixelChannel:\n                      dVar12 = 0.0;\n                      if (*(int *)(lVar2 + 4) == 2) {\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }\n                      break;\n                    case AlphaPixelChannel:\n                      dVar12 = DAT_003f95f8;\n                      if (*(int *)(lVar2 + 8) != 0) {\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }\n                      break;\n                    case IndexPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x50);\n                      break;\n                    default:\n                      dVar12 = 0.0;\n                    }\n                    if (dVar11 < dVar12) {\n                      pixel[lVar7] = 0.0;\n                    }\n                  }\n                  lVar7 = lVar7 + 1;\n                  sVar9 = image->number_channels;\n                } while (lVar7 < (long)sVar9);\n              }\n              pixel = pixel + sVar9;\n              lVar10 = lVar10 + 1;\n            }" { (expression_statement "dVar11 = GetPixelIntensity(image,pixel);" (assignment_expression "dVar11 = GetPixelIntensity(image,pixel)" identifier = (call_expression "GetPixelIntensity(image,pixel)" identifier (argument_list "(image,pixel)" ( identifier , identifier )))) ;) (expression_statement "sVar9 = image->number_channels;" (assignment_expression "sVar9 = image->number_channels" identifier = (field_expression "image->number_channels" identifier -> field_identifier)) ;) (if_statement "if (0 < (long)sVar9) {\n                lVar2 = *(long *)((long)this + 0x18);\n                lVar7 = 0;\n                do {\n                  PVar1 = image->channel_map[lVar7].channel;\n                  if ((image->channel_map[PVar1].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                  {\n                    if (image->channel_mask != AllChannels) {\n                      dVar11 = (double)pixel[lVar7];\n                    }\n                    switch(PVar1) {\n                    case CyanPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x28);\n                      break;\n                    case CbPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x30);\n                      break;\n                    case BluePixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x38);\n                      break;\n                    case BlackPixelChannel:\n                      dVar12 = 0.0;\n                      if (*(int *)(lVar2 + 4) == 2) {\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }\n                      break;\n                    case AlphaPixelChannel:\n                      dVar12 = DAT_003f95f8;\n                      if (*(int *)(lVar2 + 8) != 0) {\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }\n                      break;\n                    case IndexPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x50);\n                      break;\n                    default:\n                      dVar12 = 0.0;\n                    }\n                    if (dVar11 < dVar12) {\n                      pixel[lVar7] = 0.0;\n                    }\n                  }\n                  lVar7 = lVar7 + 1;\n                  sVar9 = image->number_channels;\n                } while (lVar7 < (long)sVar9);\n              }" if (parenthesized_expression "(0 < (long)sVar9)" ( (binary_expression "0 < (long)sVar9" number_literal < (cast_expression "(long)sVar9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )) (compound_statement "{\n                lVar2 = *(long *)((long)this + 0x18);\n                lVar7 = 0;\n                do {\n                  PVar1 = image->channel_map[lVar7].channel;\n                  if ((image->channel_map[PVar1].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                  {\n                    if (image->channel_mask != AllChannels) {\n                      dVar11 = (double)pixel[lVar7];\n                    }\n                    switch(PVar1) {\n                    case CyanPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x28);\n                      break;\n                    case CbPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x30);\n                      break;\n                    case BluePixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x38);\n                      break;\n                    case BlackPixelChannel:\n                      dVar12 = 0.0;\n                      if (*(int *)(lVar2 + 4) == 2) {\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }\n                      break;\n                    case AlphaPixelChannel:\n                      dVar12 = DAT_003f95f8;\n                      if (*(int *)(lVar2 + 8) != 0) {\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }\n                      break;\n                    case IndexPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x50);\n                      break;\n                    default:\n                      dVar12 = 0.0;\n                    }\n                    if (dVar11 < dVar12) {\n                      pixel[lVar7] = 0.0;\n                    }\n                  }\n                  lVar7 = lVar7 + 1;\n                  sVar9 = image->number_channels;\n                } while (lVar7 < (long)sVar9);\n              }" { (expression_statement "lVar2 = *(long *)((long)this + 0x18);" (assignment_expression "lVar2 = *(long *)((long)this + 0x18)" identifier = (pointer_expression "*(long *)((long)this + 0x18)" * (cast_expression "(long *)((long)this + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)this + 0x18)" ( (binary_expression "(long)this + 0x18" (cast_expression "(long)this" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "lVar7 = 0;" (assignment_expression "lVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n                  PVar1 = image->channel_map[lVar7].channel;\n                  if ((image->channel_map[PVar1].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                  {\n                    if (image->channel_mask != AllChannels) {\n                      dVar11 = (double)pixel[lVar7];\n                    }\n                    switch(PVar1) {\n                    case CyanPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x28);\n                      break;\n                    case CbPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x30);\n                      break;\n                    case BluePixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x38);\n                      break;\n                    case BlackPixelChannel:\n                      dVar12 = 0.0;\n                      if (*(int *)(lVar2 + 4) == 2) {\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }\n                      break;\n                    case AlphaPixelChannel:\n                      dVar12 = DAT_003f95f8;\n                      if (*(int *)(lVar2 + 8) != 0) {\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }\n                      break;\n                    case IndexPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x50);\n                      break;\n                    default:\n                      dVar12 = 0.0;\n                    }\n                    if (dVar11 < dVar12) {\n                      pixel[lVar7] = 0.0;\n                    }\n                  }\n                  lVar7 = lVar7 + 1;\n                  sVar9 = image->number_channels;\n                } while (lVar7 < (long)sVar9);" do (compound_statement "{\n                  PVar1 = image->channel_map[lVar7].channel;\n                  if ((image->channel_map[PVar1].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                  {\n                    if (image->channel_mask != AllChannels) {\n                      dVar11 = (double)pixel[lVar7];\n                    }\n                    switch(PVar1) {\n                    case CyanPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x28);\n                      break;\n                    case CbPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x30);\n                      break;\n                    case BluePixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x38);\n                      break;\n                    case BlackPixelChannel:\n                      dVar12 = 0.0;\n                      if (*(int *)(lVar2 + 4) == 2) {\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }\n                      break;\n                    case AlphaPixelChannel:\n                      dVar12 = DAT_003f95f8;\n                      if (*(int *)(lVar2 + 8) != 0) {\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }\n                      break;\n                    case IndexPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x50);\n                      break;\n                    default:\n                      dVar12 = 0.0;\n                    }\n                    if (dVar11 < dVar12) {\n                      pixel[lVar7] = 0.0;\n                    }\n                  }\n                  lVar7 = lVar7 + 1;\n                  sVar9 = image->number_channels;\n                }" { (expression_statement "PVar1 = image->channel_map[lVar7].channel;" (assignment_expression "PVar1 = image->channel_map[lVar7].channel" identifier = (field_expression "image->channel_map[lVar7].channel" (subscript_expression "image->channel_map[lVar7]" (field_expression "image->channel_map" identifier -> field_identifier) [ identifier ]) . field_identifier)) ;) (if_statement "if ((image->channel_map[PVar1].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                  {\n                    if (image->channel_mask != AllChannels) {\n                      dVar11 = (double)pixel[lVar7];\n                    }\n                    switch(PVar1) {\n                    case CyanPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x28);\n                      break;\n                    case CbPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x30);\n                      break;\n                    case BluePixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x38);\n                      break;\n                    case BlackPixelChannel:\n                      dVar12 = 0.0;\n                      if (*(int *)(lVar2 + 4) == 2) {\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }\n                      break;\n                    case AlphaPixelChannel:\n                      dVar12 = DAT_003f95f8;\n                      if (*(int *)(lVar2 + 8) != 0) {\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }\n                      break;\n                    case IndexPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x50);\n                      break;\n                    default:\n                      dVar12 = 0.0;\n                    }\n                    if (dVar11 < dVar12) {\n                      pixel[lVar7] = 0.0;\n                    }\n                  }" if (parenthesized_expression "((image->channel_map[PVar1].traits & UpdatePixelTrait) != UndefinedPixelTrait)" ( (binary_expression "(image->channel_map[PVar1].traits & UpdatePixelTrait) != UndefinedPixelTrait" (parenthesized_expression "(image->channel_map[PVar1].traits & UpdatePixelTrait)" ( (binary_expression "image->channel_map[PVar1].traits & UpdatePixelTrait" (field_expression "image->channel_map[PVar1].traits" (subscript_expression "image->channel_map[PVar1]" (field_expression "image->channel_map" identifier -> field_identifier) [ identifier ]) . field_identifier) & identifier) )) != identifier) )) (compound_statement "{\n                    if (image->channel_mask != AllChannels) {\n                      dVar11 = (double)pixel[lVar7];\n                    }\n                    switch(PVar1) {\n                    case CyanPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x28);\n                      break;\n                    case CbPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x30);\n                      break;\n                    case BluePixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x38);\n                      break;\n                    case BlackPixelChannel:\n                      dVar12 = 0.0;\n                      if (*(int *)(lVar2 + 4) == 2) {\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }\n                      break;\n                    case AlphaPixelChannel:\n                      dVar12 = DAT_003f95f8;\n                      if (*(int *)(lVar2 + 8) != 0) {\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }\n                      break;\n                    case IndexPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x50);\n                      break;\n                    default:\n                      dVar12 = 0.0;\n                    }\n                    if (dVar11 < dVar12) {\n                      pixel[lVar7] = 0.0;\n                    }\n                  }" { (if_statement "if (image->channel_mask != AllChannels) {\n                      dVar11 = (double)pixel[lVar7];\n                    }" if (parenthesized_expression "(image->channel_mask != AllChannels)" ( (binary_expression "image->channel_mask != AllChannels" (field_expression "image->channel_mask" identifier -> field_identifier) != identifier) )) (compound_statement "{\n                      dVar11 = (double)pixel[lVar7];\n                    }" { (expression_statement "dVar11 = (double)pixel[lVar7];" (assignment_expression "dVar11 = (double)pixel[lVar7]" identifier = (cast_expression "(double)pixel[lVar7]" ( (type_descriptor "double" primitive_type) ) (subscript_expression "pixel[lVar7]" identifier [ identifier ]))) ;) })) (switch_statement "switch(PVar1) {\n                    case CyanPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x28);\n                      break;\n                    case CbPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x30);\n                      break;\n                    case BluePixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x38);\n                      break;\n                    case BlackPixelChannel:\n                      dVar12 = 0.0;\n                      if (*(int *)(lVar2 + 4) == 2) {\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }\n                      break;\n                    case AlphaPixelChannel:\n                      dVar12 = DAT_003f95f8;\n                      if (*(int *)(lVar2 + 8) != 0) {\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }\n                      break;\n                    case IndexPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x50);\n                      break;\n                    default:\n                      dVar12 = 0.0;\n                    }" switch (parenthesized_expression "(PVar1)" ( identifier )) (compound_statement "{\n                    case CyanPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x28);\n                      break;\n                    case CbPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x30);\n                      break;\n                    case BluePixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x38);\n                      break;\n                    case BlackPixelChannel:\n                      dVar12 = 0.0;\n                      if (*(int *)(lVar2 + 4) == 2) {\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }\n                      break;\n                    case AlphaPixelChannel:\n                      dVar12 = DAT_003f95f8;\n                      if (*(int *)(lVar2 + 8) != 0) {\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }\n                      break;\n                    case IndexPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x50);\n                      break;\n                    default:\n                      dVar12 = 0.0;\n                    }" { (case_statement "case CyanPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x28);\n                      break;" case identifier : (expression_statement "dVar12 = *(double *)(lVar2 + 0x28);" (assignment_expression "dVar12 = *(double *)(lVar2 + 0x28)" identifier = (pointer_expression "*(double *)(lVar2 + 0x28)" * (cast_expression "(double *)(lVar2 + 0x28)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x28)" ( (binary_expression "lVar2 + 0x28" identifier + number_literal) ))))) ;) (break_statement "break;" break ;)) (case_statement "case CbPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x30);\n                      break;" case identifier : (expression_statement "dVar12 = *(double *)(lVar2 + 0x30);" (assignment_expression "dVar12 = *(double *)(lVar2 + 0x30)" identifier = (pointer_expression "*(double *)(lVar2 + 0x30)" * (cast_expression "(double *)(lVar2 + 0x30)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x30)" ( (binary_expression "lVar2 + 0x30" identifier + number_literal) ))))) ;) (break_statement "break;" break ;)) (case_statement "case BluePixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x38);\n                      break;" case identifier : (expression_statement "dVar12 = *(double *)(lVar2 + 0x38);" (assignment_expression "dVar12 = *(double *)(lVar2 + 0x38)" identifier = (pointer_expression "*(double *)(lVar2 + 0x38)" * (cast_expression "(double *)(lVar2 + 0x38)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x38)" ( (binary_expression "lVar2 + 0x38" identifier + number_literal) ))))) ;) (break_statement "break;" break ;)) (case_statement "case BlackPixelChannel:\n                      dVar12 = 0.0;\n                      if (*(int *)(lVar2 + 4) == 2) {\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }\n                      break;" case identifier : (expression_statement "dVar12 = 0.0;" (assignment_expression "dVar12 = 0.0" identifier = number_literal) ;) (if_statement "if (*(int *)(lVar2 + 4) == 2) {\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }" if (parenthesized_expression "(*(int *)(lVar2 + 4) == 2)" ( (binary_expression "*(int *)(lVar2 + 4) == 2" (pointer_expression "*(int *)(lVar2 + 4)" * (cast_expression "(int *)(lVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 4)" ( (binary_expression "lVar2 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                        dVar12 = *(double *)(lVar2 + 0x40);\n                      }" { (expression_statement "dVar12 = *(double *)(lVar2 + 0x40);" (assignment_expression "dVar12 = *(double *)(lVar2 + 0x40)" identifier = (pointer_expression "*(double *)(lVar2 + 0x40)" * (cast_expression "(double *)(lVar2 + 0x40)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x40)" ( (binary_expression "lVar2 + 0x40" identifier + number_literal) ))))) ;) })) (break_statement "break;" break ;)) (case_statement "case AlphaPixelChannel:\n                      dVar12 = DAT_003f95f8;\n                      if (*(int *)(lVar2 + 8) != 0) {\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }\n                      break;" case identifier : (expression_statement "dVar12 = DAT_003f95f8;" (assignment_expression "dVar12 = DAT_003f95f8" identifier = identifier) ;) (if_statement "if (*(int *)(lVar2 + 8) != 0) {\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }" if (parenthesized_expression "(*(int *)(lVar2 + 8) != 0)" ( (binary_expression "*(int *)(lVar2 + 8) != 0" (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                        dVar12 = *(double *)(lVar2 + 0x48);\n                      }" { (expression_statement "dVar12 = *(double *)(lVar2 + 0x48);" (assignment_expression "dVar12 = *(double *)(lVar2 + 0x48)" identifier = (pointer_expression "*(double *)(lVar2 + 0x48)" * (cast_expression "(double *)(lVar2 + 0x48)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x48)" ( (binary_expression "lVar2 + 0x48" identifier + number_literal) ))))) ;) })) (break_statement "break;" break ;)) (case_statement "case IndexPixelChannel:\n                      dVar12 = *(double *)(lVar2 + 0x50);\n                      break;" case identifier : (expression_statement "dVar12 = *(double *)(lVar2 + 0x50);" (assignment_expression "dVar12 = *(double *)(lVar2 + 0x50)" identifier = (pointer_expression "*(double *)(lVar2 + 0x50)" * (cast_expression "(double *)(lVar2 + 0x50)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x50)" ( (binary_expression "lVar2 + 0x50" identifier + number_literal) ))))) ;) (break_statement "break;" break ;)) (case_statement "default:\n                      dVar12 = 0.0;" default : (expression_statement "dVar12 = 0.0;" (assignment_expression "dVar12 = 0.0" identifier = number_literal) ;)) })) (if_statement "if (dVar11 < dVar12) {\n                      pixel[lVar7] = 0.0;\n                    }" if (parenthesized_expression "(dVar11 < dVar12)" ( (binary_expression "dVar11 < dVar12" identifier < identifier) )) (compound_statement "{\n                      pixel[lVar7] = 0.0;\n                    }" { (expression_statement "pixel[lVar7] = 0.0;" (assignment_expression "pixel[lVar7] = 0.0" (subscript_expression "pixel[lVar7]" identifier [ identifier ]) = number_literal) ;) })) })) (expression_statement "lVar7 = lVar7 + 1;" (assignment_expression "lVar7 = lVar7 + 1" identifier = (binary_expression "lVar7 + 1" identifier + number_literal)) ;) (expression_statement "sVar9 = image->number_channels;" (assignment_expression "sVar9 = image->number_channels" identifier = (field_expression "image->number_channels" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(lVar7 < (long)sVar9)" ( (binary_expression "lVar7 < (long)sVar9" identifier < (cast_expression "(long)sVar9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )) ;) })) (expression_statement "pixel = pixel + sVar9;" (assignment_expression "pixel = pixel + sVar9" identifier = (binary_expression "pixel + sVar9" identifier + identifier)) ;) (expression_statement "lVar10 = lVar10 + 1;" (assignment_expression "lVar10 = lVar10 + 1" identifier = (binary_expression "lVar10 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(lVar10 < (long)image->columns)" ( (binary_expression "lVar10 < (long)image->columns" identifier < (cast_expression "(long)image->columns" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "image->columns" identifier -> field_identifier))) )) ;) })) (expression_statement "MVar5 = SyncCacheViewAuthenticPixels(cache_view,exception);" (assignment_expression "MVar5 = SyncCacheViewAuthenticPixels(cache_view,exception)" identifier = (call_expression "SyncCacheViewAuthenticPixels(cache_view,exception)" identifier (argument_list "(cache_view,exception)" ( identifier , identifier )))) ;) (if_statement "if (MVar5 == MagickFalse) {\n            *(undefined4 *)((long)this + 0x28) = 0;\n          }" if (parenthesized_expression "(MVar5 == MagickFalse)" ( (binary_expression "MVar5 == MagickFalse" identifier == identifier) )) (compound_statement "{\n            *(undefined4 *)((long)this + 0x28) = 0;\n          }" { (expression_statement "*(undefined4 *)((long)this + 0x28) = 0;" (assignment_expression "*(undefined4 *)((long)this + 0x28) = 0" (pointer_expression "*(undefined4 *)((long)this + 0x28)" * (cast_expression "(undefined4 *)((long)this + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)this + 0x28)" ( (binary_expression "(long)this + 0x28" (cast_expression "(long)this" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) })) (if_statement "if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            LOCK();\n            **(long **)((long)this + 0x20) = **(long **)((long)this + 0x20) + 1;\n            UNLOCK();\n            MVar5 = SetImageProgress(image,"Threshold/Image",\n                                     **(MagickOffsetType **)((long)this + 0x20),image->rows);\n            if (MVar5 == MagickFalse) {\n              *(undefined4 *)((long)this + 0x28) = 0;\n            }\n          }" if (parenthesized_expression "(image->progress_monitor != (MagickProgressMonitor)0x0)" ( (binary_expression "image->progress_monitor != (MagickProgressMonitor)0x0" (field_expression "image->progress_monitor" identifier -> field_identifier) != (cast_expression "(MagickProgressMonitor)0x0" ( (type_descriptor "MagickProgressMonitor" type_identifier) ) number_literal)) )) (compound_statement "{\n            LOCK();\n            **(long **)((long)this + 0x20) = **(long **)((long)this + 0x20) + 1;\n            UNLOCK();\n            MVar5 = SetImageProgress(image,"Threshold/Image",\n                                     **(MagickOffsetType **)((long)this + 0x20),image->rows);\n            if (MVar5 == MagickFalse) {\n              *(undefined4 *)((long)this + 0x28) = 0;\n            }\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "**(long **)((long)this + 0x20) = **(long **)((long)this + 0x20) + 1;" (assignment_expression "**(long **)((long)this + 0x20) = **(long **)((long)this + 0x20) + 1" (pointer_expression "**(long **)((long)this + 0x20)" * (pointer_expression "*(long **)((long)this + 0x20)" * (cast_expression "(long **)((long)this + 0x20)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)this + 0x20)" ( (binary_expression "(long)this + 0x20" (cast_expression "(long)this" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) = (binary_expression "**(long **)((long)this + 0x20) + 1" (pointer_expression "**(long **)((long)this + 0x20)" * (pointer_expression "*(long **)((long)this + 0x20)" * (cast_expression "(long **)((long)this + 0x20)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)this + 0x20)" ( (binary_expression "(long)this + 0x20" (cast_expression "(long)this" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "MVar5 = SetImageProgress(image,"Threshold/Image",\n                                     **(MagickOffsetType **)((long)this + 0x20),image->rows);" (assignment_expression "MVar5 = SetImageProgress(image,"Threshold/Image",\n                                     **(MagickOffsetType **)((long)this + 0x20),image->rows)" identifier = (call_expression "SetImageProgress(image,"Threshold/Image",\n                                     **(MagickOffsetType **)((long)this + 0x20),image->rows)" identifier (argument_list "(image,"Threshold/Image",\n                                     **(MagickOffsetType **)((long)this + 0x20),image->rows)" ( identifier , (string_literal ""Threshold/Image"" " string_content ") , (pointer_expression "**(MagickOffsetType **)((long)this + 0x20)" * (pointer_expression "*(MagickOffsetType **)((long)this + 0x20)" * (cast_expression "(MagickOffsetType **)((long)this + 0x20)" ( (type_descriptor "MagickOffsetType **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)this + 0x20)" ( (binary_expression "(long)this + 0x20" (cast_expression "(long)this" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) , (field_expression "image->rows" identifier -> field_identifier) )))) ;) (if_statement "if (MVar5 == MagickFalse) {\n              *(undefined4 *)((long)this + 0x28) = 0;\n            }" if (parenthesized_expression "(MVar5 == MagickFalse)" ( (binary_expression "MVar5 == MagickFalse" identifier == identifier) )) (compound_statement "{\n              *(undefined4 *)((long)this + 0x28) = 0;\n            }" { (expression_statement "*(undefined4 *)((long)this + 0x28) = 0;" (assignment_expression "*(undefined4 *)((long)this + 0x28) = 0" (pointer_expression "*(undefined4 *)((long)this + 0x28)" * (cast_expression "(undefined4 *)((long)this + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)this + 0x28)" ( (binary_expression "(long)this + 0x28" (cast_expression "(long)this" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) })) })) }))) })) (expression_statement "lVar8 = lVar8 + 1;" (assignment_expression "lVar8 = lVar8 + 1" identifier = (binary_expression "lVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(lVar6 != lVar8)" ( (binary_expression "lVar6 != lVar8" identifier != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002df1a5(long *param_1)\n\n{\n  uint uVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  long lVar5;\n  int iVar6;\n  int iVar7;\n  long lVar8;\n  long lVar9;\n  long lVar10;\n  long lVar11;\n  long lVar12;\n  long lVar13;\n  double dVar14;\n  double dVar15;\n  \n  lVar2 = *param_1;\n  lVar11 = *(long *)(lVar2 + 0x28);\n  iVar6 = omp_get_num_threads();\n  iVar7 = omp_get_thread_num();\n  lVar8 = lVar11 / (long)iVar6;\n  lVar11 = lVar11 % (long)iVar6;\n  if (iVar7 < lVar11) {\n    lVar8 = lVar8 + 1;\n    lVar11 = 0;\n  }\n  lVar11 = iVar7 * lVar8 + lVar11;\n  lVar8 = lVar8 + lVar11;\n  if (lVar11 < lVar8) {\n    lVar3 = param_1[2];\n    lVar4 = param_1[1];\n    do {\n      if ((int)param_1[5] != 0) {\n        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);\n        if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }\n      }\n      lVar11 = lVar11 + 1;\n    } while (lVar8 != lVar11);\n  }\n  return;\n}\n\n" (function_definition "void FUN_002df1a5(long *param_1)\n\n{\n  uint uVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  long lVar5;\n  int iVar6;\n  int iVar7;\n  long lVar8;\n  long lVar9;\n  long lVar10;\n  long lVar11;\n  long lVar12;\n  long lVar13;\n  double dVar14;\n  double dVar15;\n  \n  lVar2 = *param_1;\n  lVar11 = *(long *)(lVar2 + 0x28);\n  iVar6 = omp_get_num_threads();\n  iVar7 = omp_get_thread_num();\n  lVar8 = lVar11 / (long)iVar6;\n  lVar11 = lVar11 % (long)iVar6;\n  if (iVar7 < lVar11) {\n    lVar8 = lVar8 + 1;\n    lVar11 = 0;\n  }\n  lVar11 = iVar7 * lVar8 + lVar11;\n  lVar8 = lVar8 + lVar11;\n  if (lVar11 < lVar8) {\n    lVar3 = param_1[2];\n    lVar4 = param_1[1];\n    do {\n      if ((int)param_1[5] != 0) {\n        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);\n        if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }\n      }\n      lVar11 = lVar11 + 1;\n    } while (lVar8 != lVar11);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_002df1a5(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  long lVar5;\n  int iVar6;\n  int iVar7;\n  long lVar8;\n  long lVar9;\n  long lVar10;\n  long lVar11;\n  long lVar12;\n  long lVar13;\n  double dVar14;\n  double dVar15;\n  \n  lVar2 = *param_1;\n  lVar11 = *(long *)(lVar2 + 0x28);\n  iVar6 = omp_get_num_threads();\n  iVar7 = omp_get_thread_num();\n  lVar8 = lVar11 / (long)iVar6;\n  lVar11 = lVar11 % (long)iVar6;\n  if (iVar7 < lVar11) {\n    lVar8 = lVar8 + 1;\n    lVar11 = 0;\n  }\n  lVar11 = iVar7 * lVar8 + lVar11;\n  lVar8 = lVar8 + lVar11;\n  if (lVar11 < lVar8) {\n    lVar3 = param_1[2];\n    lVar4 = param_1[1];\n    do {\n      if ((int)param_1[5] != 0) {\n        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);\n        if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }\n      }\n      lVar11 = lVar11 + 1;\n    } while (lVar8 != lVar11);\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "long lVar8;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar9;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar10;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar11;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar12;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar13;" (sized_type_specifier "long" long) identifier ;) (declaration "double dVar14;" primitive_type identifier ;) (declaration "double dVar15;" primitive_type identifier ;) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "lVar11 = *(long *)(lVar2 + 0x28);" (assignment_expression "lVar11 = *(long *)(lVar2 + 0x28)" identifier = (pointer_expression "*(long *)(lVar2 + 0x28)" * (cast_expression "(long *)(lVar2 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x28)" ( (binary_expression "lVar2 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = omp_get_num_threads();" (assignment_expression "iVar6 = omp_get_num_threads()" identifier = (call_expression "omp_get_num_threads()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar7 = omp_get_thread_num();" (assignment_expression "iVar7 = omp_get_thread_num()" identifier = (call_expression "omp_get_thread_num()" identifier (argument_list "()" ( )))) ;) (expression_statement "lVar8 = lVar11 / (long)iVar6;" (assignment_expression "lVar8 = lVar11 / (long)iVar6" identifier = (binary_expression "lVar11 / (long)iVar6" identifier / (cast_expression "(long)iVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "lVar11 = lVar11 % (long)iVar6;" (assignment_expression "lVar11 = lVar11 % (long)iVar6" identifier = (binary_expression "lVar11 % (long)iVar6" identifier % (cast_expression "(long)iVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (if_statement "if (iVar7 < lVar11) {\n    lVar8 = lVar8 + 1;\n    lVar11 = 0;\n  }" if (parenthesized_expression "(iVar7 < lVar11)" ( (binary_expression "iVar7 < lVar11" identifier < identifier) )) (compound_statement "{\n    lVar8 = lVar8 + 1;\n    lVar11 = 0;\n  }" { (expression_statement "lVar8 = lVar8 + 1;" (assignment_expression "lVar8 = lVar8 + 1" identifier = (binary_expression "lVar8 + 1" identifier + number_literal)) ;) (expression_statement "lVar11 = 0;" (assignment_expression "lVar11 = 0" identifier = number_literal) ;) })) (expression_statement "lVar11 = iVar7 * lVar8 + lVar11;" (assignment_expression "lVar11 = iVar7 * lVar8 + lVar11" identifier = (binary_expression "iVar7 * lVar8 + lVar11" (binary_expression "iVar7 * lVar8" identifier * identifier) + identifier)) ;) (expression_statement "lVar8 = lVar8 + lVar11;" (assignment_expression "lVar8 = lVar8 + lVar11" identifier = (binary_expression "lVar8 + lVar11" identifier + identifier)) ;) (if_statement "if (lVar11 < lVar8) {\n    lVar3 = param_1[2];\n    lVar4 = param_1[1];\n    do {\n      if ((int)param_1[5] != 0) {\n        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);\n        if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }\n      }\n      lVar11 = lVar11 + 1;\n    } while (lVar8 != lVar11);\n  }" if (parenthesized_expression "(lVar11 < lVar8)" ( (binary_expression "lVar11 < lVar8" identifier < identifier) )) (compound_statement "{\n    lVar3 = param_1[2];\n    lVar4 = param_1[1];\n    do {\n      if ((int)param_1[5] != 0) {\n        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);\n        if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }\n      }\n      lVar11 = lVar11 + 1;\n    } while (lVar8 != lVar11);\n  }" { (expression_statement "lVar3 = param_1[2];" (assignment_expression "lVar3 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "lVar4 = param_1[1];" (assignment_expression "lVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (do_statement "do {\n      if ((int)param_1[5] != 0) {\n        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);\n        if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }\n      }\n      lVar11 = lVar11 + 1;\n    } while (lVar8 != lVar11);" do (compound_statement "{\n      if ((int)param_1[5] != 0) {\n        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);\n        if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }\n      }\n      lVar11 = lVar11 + 1;\n    }" { (if_statement "if ((int)param_1[5] != 0) {\n        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);\n        if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }\n      }" if (parenthesized_expression "((int)param_1[5] != 0)" ( (binary_expression "(int)param_1[5] != 0" (cast_expression "(int)param_1[5]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[5]" identifier [ number_literal ])) != number_literal) )) (compound_statement "{\n        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);\n        if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }\n      }" { (expression_statement "lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);" (assignment_expression "lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4)" identifier = (call_expression "GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4)" identifier (argument_list "(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4)" ( identifier , number_literal , identifier , (pointer_expression "*(undefined8 *)(lVar2 + 0x20)" * (cast_expression "(undefined8 *)(lVar2 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x20)" ( (binary_expression "lVar2 + 0x20" identifier + number_literal) )))) , number_literal , identifier )))) ;) (if_statement "if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }" if (parenthesized_expression "(lVar10 == 0)" ( (binary_expression "lVar10 == 0" identifier == number_literal) )) (compound_statement "{\n          *(undefined4 *)(param_1 + 5) = 0;\n        }" { (expression_statement "*(undefined4 *)(param_1 + 5) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 5) = 0" (pointer_expression "*(undefined4 *)(param_1 + 5)" * (cast_expression "(undefined4 *)(param_1 + 5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }" else (compound_statement "{\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }" { (expression_statement "lVar13 = 0;" (assignment_expression "lVar13 = 0" identifier = number_literal) ;) (if_statement "if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }" if (parenthesized_expression "(0 < *(long *)(lVar2 + 0x20))" ( (binary_expression "0 < *(long *)(lVar2 + 0x20)" number_literal < (pointer_expression "*(long *)(lVar2 + 0x20)" * (cast_expression "(long *)(lVar2 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x20)" ( (binary_expression "lVar2 + 0x20" identifier + number_literal) ))))) )) (compound_statement "{\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }" { (do_statement "do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));" do (compound_statement "{\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            }" { (expression_statement "dVar14 = (double)GetPixelIntensity(lVar2,lVar10);" (assignment_expression "dVar14 = (double)GetPixelIntensity(lVar2,lVar10)" identifier = (cast_expression "(double)GetPixelIntensity(lVar2,lVar10)" ( (type_descriptor "double" primitive_type) ) (call_expression "GetPixelIntensity(lVar2,lVar10)" identifier (argument_list "(lVar2,lVar10)" ( identifier , identifier ))))) ;) (expression_statement "lVar12 = *(long *)(lVar2 + 0x340);" (assignment_expression "lVar12 = *(long *)(lVar2 + 0x340)" identifier = (pointer_expression "*(long *)(lVar2 + 0x340)" * (cast_expression "(long *)(lVar2 + 0x340)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x340)" ( (binary_expression "lVar2 + 0x340" identifier + number_literal) ))))) ;) (if_statement "if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }" if (parenthesized_expression "(0 < lVar12)" ( (binary_expression "0 < lVar12" number_literal < identifier) )) (compound_statement "{\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }" { (expression_statement "lVar5 = param_1[3];" (assignment_expression "lVar5 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "lVar9 = 0;" (assignment_expression "lVar9 = 0" identifier = number_literal) ;) (do_statement "do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);" do (compound_statement "{\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                }" { (expression_statement "uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);" (assignment_expression "uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10)" identifier = (pointer_expression "*(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10)" * (cast_expression "(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar2 + 0x360) + lVar9 * 0x10)" ( (binary_expression "*(long *)(lVar2 + 0x360) + lVar9 * 0x10" (pointer_expression "*(long *)(lVar2 + 0x360)" * (cast_expression "(long *)(lVar2 + 0x360)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x360)" ( (binary_expression "lVar2 + 0x360" identifier + number_literal) )))) + (binary_expression "lVar9 * 0x10" identifier * number_literal)) ))))) ;) (if_statement "if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }" if (parenthesized_expression "((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0)" ( (binary_expression "(*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0" (parenthesized_expression "(*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2)" ( (binary_expression "*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2" (pointer_expression "*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10)" * (cast_expression "(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10)" ( (binary_expression "*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10" (binary_expression "*(long *)(lVar2 + 0x360) + 4" (pointer_expression "*(long *)(lVar2 + 0x360)" * (cast_expression "(long *)(lVar2 + 0x360)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x360)" ( (binary_expression "lVar2 + 0x360" identifier + number_literal) )))) + number_literal) + (binary_expression "(ulong)uVar1 * 0x10" (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }" { (if_statement "if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }" if (parenthesized_expression "(*(int *)(lVar2 + 0x358) != 0x7ffffff)" ( (binary_expression "*(int *)(lVar2 + 0x358) != 0x7ffffff" (pointer_expression "*(int *)(lVar2 + 0x358)" * (cast_expression "(int *)(lVar2 + 0x358)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x358)" ( (binary_expression "lVar2 + 0x358" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }" { (expression_statement "dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);" (assignment_expression "dVar14 = (double)*(float *)(lVar10 + lVar9 * 4)" identifier = (cast_expression "(double)*(float *)(lVar10 + lVar9 * 4)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(float *)(lVar10 + lVar9 * 4)" * (cast_expression "(float *)(lVar10 + lVar9 * 4)" ( (type_descriptor "float *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar10 + lVar9 * 4)" ( (binary_expression "lVar10 + lVar9 * 4" identifier + (binary_expression "lVar9 * 4" identifier * number_literal)) )))))) ;) })) (switch_statement "switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }" switch (parenthesized_expression "(uVar1)" ( identifier )) (compound_statement "{\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }" { (case_statement "case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;" case number_literal : (expression_statement "dVar15 = *(double *)(lVar5 + 0x28);" (assignment_expression "dVar15 = *(double *)(lVar5 + 0x28)" identifier = (pointer_expression "*(double *)(lVar5 + 0x28)" * (cast_expression "(double *)(lVar5 + 0x28)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x28)" ( (binary_expression "lVar5 + 0x28" identifier + number_literal) ))))) ;) (break_statement "break;" break ;)) (case_statement "case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;" case number_literal : (expression_statement "dVar15 = *(double *)(lVar5 + 0x30);" (assignment_expression "dVar15 = *(double *)(lVar5 + 0x30)" identifier = (pointer_expression "*(double *)(lVar5 + 0x30)" * (cast_expression "(double *)(lVar5 + 0x30)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x30)" ( (binary_expression "lVar5 + 0x30" identifier + number_literal) ))))) ;) (break_statement "break;" break ;)) (case_statement "case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;" case number_literal : (expression_statement "dVar15 = *(double *)(lVar5 + 0x38);" (assignment_expression "dVar15 = *(double *)(lVar5 + 0x38)" identifier = (pointer_expression "*(double *)(lVar5 + 0x38)" * (cast_expression "(double *)(lVar5 + 0x38)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x38)" ( (binary_expression "lVar5 + 0x38" identifier + number_literal) ))))) ;) (break_statement "break;" break ;)) (case_statement "case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;" case number_literal : (expression_statement "dVar15 = 0.0;" (assignment_expression "dVar15 = 0.0" identifier = number_literal) ;) (if_statement "if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }" if (parenthesized_expression "(*(int *)(lVar5 + 4) == 2)" ( (binary_expression "*(int *)(lVar5 + 4) == 2" (pointer_expression "*(int *)(lVar5 + 4)" * (cast_expression "(int *)(lVar5 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 4)" ( (binary_expression "lVar5 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }" { (expression_statement "dVar15 = *(double *)(lVar5 + 0x40);" (assignment_expression "dVar15 = *(double *)(lVar5 + 0x40)" identifier = (pointer_expression "*(double *)(lVar5 + 0x40)" * (cast_expression "(double *)(lVar5 + 0x40)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x40)" ( (binary_expression "lVar5 + 0x40" identifier + number_literal) ))))) ;) })) (break_statement "break;" break ;)) (case_statement "case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;" case number_literal : (expression_statement "dVar15 = DAT_003f95f8;" (assignment_expression "dVar15 = DAT_003f95f8" identifier = identifier) ;) (if_statement "if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }" if (parenthesized_expression "(*(int *)(lVar5 + 8) != 0)" ( (binary_expression "*(int *)(lVar5 + 8) != 0" (pointer_expression "*(int *)(lVar5 + 8)" * (cast_expression "(int *)(lVar5 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 8)" ( (binary_expression "lVar5 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }" { (expression_statement "dVar15 = *(double *)(lVar5 + 0x48);" (assignment_expression "dVar15 = *(double *)(lVar5 + 0x48)" identifier = (pointer_expression "*(double *)(lVar5 + 0x48)" * (cast_expression "(double *)(lVar5 + 0x48)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x48)" ( (binary_expression "lVar5 + 0x48" identifier + number_literal) ))))) ;) })) (break_statement "break;" break ;)) (case_statement "case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;" case number_literal : (expression_statement "dVar15 = *(double *)(lVar5 + 0x50);" (assignment_expression "dVar15 = *(double *)(lVar5 + 0x50)" identifier = (pointer_expression "*(double *)(lVar5 + 0x50)" * (cast_expression "(double *)(lVar5 + 0x50)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x50)" ( (binary_expression "lVar5 + 0x50" identifier + number_literal) ))))) ;) (break_statement "break;" break ;)) (case_statement "default:\n                      dVar15 = 0.0;" default : (expression_statement "dVar15 = 0.0;" (assignment_expression "dVar15 = 0.0" identifier = number_literal) ;)) })) (if_statement "if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }" if (parenthesized_expression "(dVar14 < dVar15)" ( (binary_expression "dVar14 < dVar15" identifier < identifier) )) (compound_statement "{\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }" { (expression_statement "*(undefined4 *)(lVar10 + lVar9 * 4) = 0;" (assignment_expression "*(undefined4 *)(lVar10 + lVar9 * 4) = 0" (pointer_expression "*(undefined4 *)(lVar10 + lVar9 * 4)" * (cast_expression "(undefined4 *)(lVar10 + lVar9 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar10 + lVar9 * 4)" ( (binary_expression "lVar10 + lVar9 * 4" identifier + (binary_expression "lVar9 * 4" identifier * number_literal)) )))) = number_literal) ;) })) })) (expression_statement "lVar9 = lVar9 + 1;" (assignment_expression "lVar9 = lVar9 + 1" identifier = (binary_expression "lVar9 + 1" identifier + number_literal)) ;) (expression_statement "lVar12 = *(long *)(lVar2 + 0x340);" (assignment_expression "lVar12 = *(long *)(lVar2 + 0x340)" identifier = (pointer_expression "*(long *)(lVar2 + 0x340)" * (cast_expression "(long *)(lVar2 + 0x340)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x340)" ( (binary_expression "lVar2 + 0x340" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(lVar9 < lVar12)" ( (binary_expression "lVar9 < lVar12" identifier < identifier) )) ;) })) (expression_statement "lVar10 = lVar10 + lVar12 * 4;" (assignment_expression "lVar10 = lVar10 + lVar12 * 4" identifier = (binary_expression "lVar10 + lVar12 * 4" identifier + (binary_expression "lVar12 * 4" identifier * number_literal))) ;) (expression_statement "lVar13 = lVar13 + 1;" (assignment_expression "lVar13 = lVar13 + 1" identifier = (binary_expression "lVar13 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(lVar13 < *(long *)(lVar2 + 0x20))" ( (binary_expression "lVar13 < *(long *)(lVar2 + 0x20)" identifier < (pointer_expression "*(long *)(lVar2 + 0x20)" * (cast_expression "(long *)(lVar2 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x20)" ( (binary_expression "lVar2 + 0x20" identifier + number_literal) ))))) )) ;) })) (expression_statement "iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);" (assignment_expression "iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4)" identifier = (call_expression "SyncCacheViewAuthenticPixels(lVar3,lVar4)" identifier (argument_list "(lVar3,lVar4)" ( identifier , identifier )))) ;) (if_statement "if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n            *(undefined4 *)(param_1 + 5) = 0;\n          }" { (expression_statement "*(undefined4 *)(param_1 + 5) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 5) = 0" (pointer_expression "*(undefined4 *)(param_1 + 5)" * (cast_expression "(undefined4 *)(param_1 + 5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }" if (parenthesized_expression "(*(long *)(lVar2 + 0x3c8) != 0)" ( (binary_expression "*(long *)(lVar2 + 0x3c8) != 0" (pointer_expression "*(long *)(lVar2 + 0x3c8)" * (cast_expression "(long *)(lVar2 + 0x3c8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x3c8)" ( (binary_expression "lVar2 + 0x3c8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(long *)param_1[4] = *(long *)param_1[4] + 1;" (assignment_expression "*(long *)param_1[4] = *(long *)param_1[4] + 1" (pointer_expression "*(long *)param_1[4]" * (cast_expression "(long *)param_1[4]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[4]" identifier [ number_literal ]))) = (binary_expression "*(long *)param_1[4] + 1" (pointer_expression "*(long *)param_1[4]" * (cast_expression "(long *)param_1[4]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[4]" identifier [ number_literal ]))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));" (assignment_expression "iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28))" identifier = (call_expression "SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28))" identifier (argument_list "(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28))" ( identifier , (string_literal ""Threshold/Image"" " string_content ") , (pointer_expression "*(undefined8 *)param_1[4]" * (cast_expression "(undefined8 *)param_1[4]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[4]" identifier [ number_literal ]))) , (pointer_expression "*(undefined8 *)(lVar2 + 0x28)" * (cast_expression "(undefined8 *)(lVar2 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x28)" ( (binary_expression "lVar2 + 0x28" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n              *(undefined4 *)(param_1 + 5) = 0;\n            }" { (expression_statement "*(undefined4 *)(param_1 + 5) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 5) = 0" (pointer_expression "*(undefined4 *)(param_1 + 5)" * (cast_expression "(undefined4 *)(param_1 + 5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) = number_literal) ;) })) })) }))) })) (expression_statement "lVar11 = lVar11 + 1;" (assignment_expression "lVar11 = lVar11 + 1" identifier = (binary_expression "lVar11 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(lVar8 != lVar11)" ( (binary_expression "lVar8 != lVar11" identifier != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT / (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT % (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * IDENT) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) )))) & LIT) )) != LIT) )) (compound_statement { (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 (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))))) ;) })) (switch_statement switch (parenthesized_expression ( IDENT )) (compound_statement { (case_statement case LIT : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = LIT) ;) (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 (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = IDENT) ;) (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 (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (break_statement break ;)) (case_statement default : (expression_statement (assignment_expression IDENT = LIT) ;)) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = LIT) ;) })) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) })) }))) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (return_statement return ;) })))
(function_definition "void FUN_002df1a5(long *param_1)\n\n{\n  uint uVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  long lVar5;\n  int iVar6;\n  int iVar7;\n  long lVar8;\n  long lVar9;\n  long lVar10;\n  long lVar11;\n  long lVar12;\n  long lVar13;\n  double dVar14;\n  double dVar15;\n  \n  lVar2 = *param_1;\n  lVar11 = *(long *)(lVar2 + 0x28);\n  iVar6 = omp_get_num_threads();\n  iVar7 = omp_get_thread_num();\n  lVar8 = lVar11 / (long)iVar6;\n  lVar11 = lVar11 % (long)iVar6;\n  if (iVar7 < lVar11) {\n    lVar8 = lVar8 + 1;\n    lVar11 = 0;\n  }\n  lVar11 = iVar7 * lVar8 + lVar11;\n  lVar8 = lVar8 + lVar11;\n  if (lVar11 < lVar8) {\n    lVar3 = param_1[2];\n    lVar4 = param_1[1];\n    do {\n      if ((int)param_1[5] != 0) {\n        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);\n        if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }\n      }\n      lVar11 = lVar11 + 1;\n    } while (lVar8 != lVar11);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002df1a5(long *param_1)" (identifier "FUN_002df1a5") (parameter_list "(long *param_1)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  long lVar5;\n  int iVar6;\n  int iVar7;\n  long lVar8;\n  long lVar9;\n  long lVar10;\n  long lVar11;\n  long lVar12;\n  long lVar13;\n  double dVar14;\n  double dVar15;\n  \n  lVar2 = *param_1;\n  lVar11 = *(long *)(lVar2 + 0x28);\n  iVar6 = omp_get_num_threads();\n  iVar7 = omp_get_thread_num();\n  lVar8 = lVar11 / (long)iVar6;\n  lVar11 = lVar11 % (long)iVar6;\n  if (iVar7 < lVar11) {\n    lVar8 = lVar8 + 1;\n    lVar11 = 0;\n  }\n  lVar11 = iVar7 * lVar8 + lVar11;\n  lVar8 = lVar8 + lVar11;\n  if (lVar11 < lVar8) {\n    lVar3 = param_1[2];\n    lVar4 = param_1[1];\n    do {\n      if ((int)param_1[5] != 0) {\n        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);\n        if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }\n      }\n      lVar11 = lVar11 + 1;\n    } while (lVar8 != lVar11);\n  }\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "long lVar8;" (sized_type_specifier "long" (long "long")) (identifier "lVar8") (; ";")) (declaration "long lVar9;" (sized_type_specifier "long" (long "long")) (identifier "lVar9") (; ";")) (declaration "long lVar10;" (sized_type_specifier "long" (long "long")) (identifier "lVar10") (; ";")) (declaration "long lVar11;" (sized_type_specifier "long" (long "long")) (identifier "lVar11") (; ";")) (declaration "long lVar12;" (sized_type_specifier "long" (long "long")) (identifier "lVar12") (; ";")) (declaration "long lVar13;" (sized_type_specifier "long" (long "long")) (identifier "lVar13") (; ";")) (declaration "double dVar14;" (primitive_type "double") (identifier "dVar14") (; ";")) (declaration "double dVar15;" (primitive_type "double") (identifier "dVar15") (; ";")) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" (identifier "lVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "lVar11 = *(long *)(lVar2 + 0x28);" (assignment_expression "lVar11 = *(long *)(lVar2 + 0x28)" (identifier "lVar11") (= "=") (pointer_expression "*(long *)(lVar2 + 0x28)" (* "*") (cast_expression "(long *)(lVar2 + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x28)" (( "(") (binary_expression "lVar2 + 0x28" (identifier "lVar2") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "iVar6 = omp_get_num_threads();" (assignment_expression "iVar6 = omp_get_num_threads()" (identifier "iVar6") (= "=") (call_expression "omp_get_num_threads()" (identifier "omp_get_num_threads") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar7 = omp_get_thread_num();" (assignment_expression "iVar7 = omp_get_thread_num()" (identifier "iVar7") (= "=") (call_expression "omp_get_thread_num()" (identifier "omp_get_thread_num") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "lVar8 = lVar11 / (long)iVar6;" (assignment_expression "lVar8 = lVar11 / (long)iVar6" (identifier "lVar8") (= "=") (binary_expression "lVar11 / (long)iVar6" (identifier "lVar11") (/ "/") (cast_expression "(long)iVar6" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar6")))) (; ";")) (expression_statement "lVar11 = lVar11 % (long)iVar6;" (assignment_expression "lVar11 = lVar11 % (long)iVar6" (identifier "lVar11") (= "=") (binary_expression "lVar11 % (long)iVar6" (identifier "lVar11") (% "%") (cast_expression "(long)iVar6" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar6")))) (; ";")) (if_statement "if (iVar7 < lVar11) {\n    lVar8 = lVar8 + 1;\n    lVar11 = 0;\n  }" (if "if") (parenthesized_expression "(iVar7 < lVar11)" (( "(") (binary_expression "iVar7 < lVar11" (identifier "iVar7") (< "<") (identifier "lVar11")) () ")")) (compound_statement "{\n    lVar8 = lVar8 + 1;\n    lVar11 = 0;\n  }" ({ "{") (expression_statement "lVar8 = lVar8 + 1;" (assignment_expression "lVar8 = lVar8 + 1" (identifier "lVar8") (= "=") (binary_expression "lVar8 + 1" (identifier "lVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "lVar11 = 0;" (assignment_expression "lVar11 = 0" (identifier "lVar11") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "lVar11 = iVar7 * lVar8 + lVar11;" (assignment_expression "lVar11 = iVar7 * lVar8 + lVar11" (identifier "lVar11") (= "=") (binary_expression "iVar7 * lVar8 + lVar11" (binary_expression "iVar7 * lVar8" (identifier "iVar7") (* "*") (identifier "lVar8")) (+ "+") (identifier "lVar11"))) (; ";")) (expression_statement "lVar8 = lVar8 + lVar11;" (assignment_expression "lVar8 = lVar8 + lVar11" (identifier "lVar8") (= "=") (binary_expression "lVar8 + lVar11" (identifier "lVar8") (+ "+") (identifier "lVar11"))) (; ";")) (if_statement "if (lVar11 < lVar8) {\n    lVar3 = param_1[2];\n    lVar4 = param_1[1];\n    do {\n      if ((int)param_1[5] != 0) {\n        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);\n        if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }\n      }\n      lVar11 = lVar11 + 1;\n    } while (lVar8 != lVar11);\n  }" (if "if") (parenthesized_expression "(lVar11 < lVar8)" (( "(") (binary_expression "lVar11 < lVar8" (identifier "lVar11") (< "<") (identifier "lVar8")) () ")")) (compound_statement "{\n    lVar3 = param_1[2];\n    lVar4 = param_1[1];\n    do {\n      if ((int)param_1[5] != 0) {\n        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);\n        if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }\n      }\n      lVar11 = lVar11 + 1;\n    } while (lVar8 != lVar11);\n  }" ({ "{") (expression_statement "lVar3 = param_1[2];" (assignment_expression "lVar3 = param_1[2]" (identifier "lVar3") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "lVar4 = param_1[1];" (assignment_expression "lVar4 = param_1[1]" (identifier "lVar4") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (do_statement "do {\n      if ((int)param_1[5] != 0) {\n        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);\n        if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }\n      }\n      lVar11 = lVar11 + 1;\n    } while (lVar8 != lVar11);" (do "do") (compound_statement "{\n      if ((int)param_1[5] != 0) {\n        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);\n        if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }\n      }\n      lVar11 = lVar11 + 1;\n    }" ({ "{") (if_statement "if ((int)param_1[5] != 0) {\n        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);\n        if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }\n      }" (if "if") (parenthesized_expression "((int)param_1[5] != 0)" (( "(") (binary_expression "(int)param_1[5] != 0" (cast_expression "(int)param_1[5]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]"))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);\n        if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }\n      }" ({ "{") (expression_statement "lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);" (assignment_expression "lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4)" (identifier "lVar10") (= "=") (call_expression "GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4)" (identifier "GetCacheViewAuthenticPixels") (argument_list "(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4)" (( "(") (identifier "lVar3") (, ",") (number_literal "0") (, ",") (identifier "lVar11") (, ",") (pointer_expression "*(undefined8 *)(lVar2 + 0x20)" (* "*") (cast_expression "(undefined8 *)(lVar2 + 0x20)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x20)" (( "(") (binary_expression "lVar2 + 0x20" (identifier "lVar2") (+ "+") (number_literal "0x20")) () ")")))) (, ",") (number_literal "1") (, ",") (identifier "lVar4") () ")")))) (; ";")) (if_statement "if (lVar10 == 0) {\n          *(undefined4 *)(param_1 + 5) = 0;\n        }\n        else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }" (if "if") (parenthesized_expression "(lVar10 == 0)" (( "(") (binary_expression "lVar10 == 0" (identifier "lVar10") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          *(undefined4 *)(param_1 + 5) = 0;\n        }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 5) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 5) = 0" (pointer_expression "*(undefined4 *)(param_1 + 5)" (* "*") (cast_expression "(undefined4 *)(param_1 + 5)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 5)" (( "(") (binary_expression "param_1 + 5" (identifier "param_1") (+ "+") (number_literal "5")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }" (else "else") (compound_statement "{\n          lVar13 = 0;\n          if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }\n          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);\n          if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }\n          if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }\n        }" ({ "{") (expression_statement "lVar13 = 0;" (assignment_expression "lVar13 = 0" (identifier "lVar13") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < *(long *)(lVar2 + 0x20)) {\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }" (if "if") (parenthesized_expression "(0 < *(long *)(lVar2 + 0x20))" (( "(") (binary_expression "0 < *(long *)(lVar2 + 0x20)" (number_literal "0") (< "<") (pointer_expression "*(long *)(lVar2 + 0x20)" (* "*") (cast_expression "(long *)(lVar2 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x20)" (( "(") (binary_expression "lVar2 + 0x20" (identifier "lVar2") (+ "+") (number_literal "0x20")) () ")"))))) () ")")) (compound_statement "{\n            do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));\n          }" ({ "{") (do_statement "do {\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            } while (lVar13 < *(long *)(lVar2 + 0x20));" (do "do") (compound_statement "{\n              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);\n              lVar12 = *(long *)(lVar2 + 0x340);\n              if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }\n              lVar10 = lVar10 + lVar12 * 4;\n              lVar13 = lVar13 + 1;\n            }" ({ "{") (expression_statement "dVar14 = (double)GetPixelIntensity(lVar2,lVar10);" (assignment_expression "dVar14 = (double)GetPixelIntensity(lVar2,lVar10)" (identifier "dVar14") (= "=") (cast_expression "(double)GetPixelIntensity(lVar2,lVar10)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (call_expression "GetPixelIntensity(lVar2,lVar10)" (identifier "GetPixelIntensity") (argument_list "(lVar2,lVar10)" (( "(") (identifier "lVar2") (, ",") (identifier "lVar10") () ")"))))) (; ";")) (expression_statement "lVar12 = *(long *)(lVar2 + 0x340);" (assignment_expression "lVar12 = *(long *)(lVar2 + 0x340)" (identifier "lVar12") (= "=") (pointer_expression "*(long *)(lVar2 + 0x340)" (* "*") (cast_expression "(long *)(lVar2 + 0x340)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x340)" (( "(") (binary_expression "lVar2 + 0x340" (identifier "lVar2") (+ "+") (number_literal "0x340")) () ")"))))) (; ";")) (if_statement "if (0 < lVar12) {\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }" (if "if") (parenthesized_expression "(0 < lVar12)" (( "(") (binary_expression "0 < lVar12" (number_literal "0") (< "<") (identifier "lVar12")) () ")")) (compound_statement "{\n                lVar5 = param_1[3];\n                lVar9 = 0;\n                do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);\n              }" ({ "{") (expression_statement "lVar5 = param_1[3];" (assignment_expression "lVar5 = param_1[3]" (identifier "lVar5") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "lVar9 = 0;" (assignment_expression "lVar9 = 0" (identifier "lVar9") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                } while (lVar9 < lVar12);" (do "do") (compound_statement "{\n                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);\n                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }\n                  lVar9 = lVar9 + 1;\n                  lVar12 = *(long *)(lVar2 + 0x340);\n                }" ({ "{") (expression_statement "uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);" (assignment_expression "uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10)" (* "*") (cast_expression "(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(lVar2 + 0x360) + lVar9 * 0x10)" (( "(") (binary_expression "*(long *)(lVar2 + 0x360) + lVar9 * 0x10" (pointer_expression "*(long *)(lVar2 + 0x360)" (* "*") (cast_expression "(long *)(lVar2 + 0x360)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x360)" (( "(") (binary_expression "lVar2 + 0x360" (identifier "lVar2") (+ "+") (number_literal "0x360")) () ")")))) (+ "+") (binary_expression "lVar9 * 0x10" (identifier "lVar9") (* "*") (number_literal "0x10"))) () ")"))))) (; ";")) (if_statement "if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }" (if "if") (parenthesized_expression "((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0)" (( "(") (binary_expression "(*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0" (parenthesized_expression "(*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2)" (( "(") (binary_expression "*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2" (pointer_expression "*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10)" (* "*") (cast_expression "(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10)" (( "(") (binary_expression "*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10" (binary_expression "*(long *)(lVar2 + 0x360) + 4" (pointer_expression "*(long *)(lVar2 + 0x360)" (* "*") (cast_expression "(long *)(lVar2 + 0x360)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x360)" (( "(") (binary_expression "lVar2 + 0x360" (identifier "lVar2") (+ "+") (number_literal "0x360")) () ")")))) (+ "+") (number_literal "4")) (+ "+") (binary_expression "(ulong)uVar1 * 0x10" (cast_expression "(ulong)uVar1" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar1")) (* "*") (number_literal "0x10"))) () ")")))) (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }\n                    switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }\n                    if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }\n                  }" ({ "{") (if_statement "if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }" (if "if") (parenthesized_expression "(*(int *)(lVar2 + 0x358) != 0x7ffffff)" (( "(") (binary_expression "*(int *)(lVar2 + 0x358) != 0x7ffffff" (pointer_expression "*(int *)(lVar2 + 0x358)" (* "*") (cast_expression "(int *)(lVar2 + 0x358)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x358)" (( "(") (binary_expression "lVar2 + 0x358" (identifier "lVar2") (+ "+") (number_literal "0x358")) () ")")))) (!= "!=") (number_literal "0x7ffffff")) () ")")) (compound_statement "{\n                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);\n                    }" ({ "{") (expression_statement "dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);" (assignment_expression "dVar14 = (double)*(float *)(lVar10 + lVar9 * 4)" (identifier "dVar14") (= "=") (cast_expression "(double)*(float *)(lVar10 + lVar9 * 4)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(float *)(lVar10 + lVar9 * 4)" (* "*") (cast_expression "(float *)(lVar10 + lVar9 * 4)" (( "(") (type_descriptor "float *" (primitive_type "float") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar10 + lVar9 * 4)" (( "(") (binary_expression "lVar10 + lVar9 * 4" (identifier "lVar10") (+ "+") (binary_expression "lVar9 * 4" (identifier "lVar9") (* "*") (number_literal "4"))) () ")")))))) (; ";")) (} "}"))) (switch_statement "switch(uVar1) {\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }" (switch "switch") (parenthesized_expression "(uVar1)" (( "(") (identifier "uVar1") () ")")) (compound_statement "{\n                    case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;\n                    case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;\n                    case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;\n                    case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;\n                    case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;\n                    case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;\n                    default:\n                      dVar15 = 0.0;\n                    }" ({ "{") (case_statement "case 0:\n                      dVar15 = *(double *)(lVar5 + 0x28);\n                      break;" (case "case") (number_literal "0") (: ":") (expression_statement "dVar15 = *(double *)(lVar5 + 0x28);" (assignment_expression "dVar15 = *(double *)(lVar5 + 0x28)" (identifier "dVar15") (= "=") (pointer_expression "*(double *)(lVar5 + 0x28)" (* "*") (cast_expression "(double *)(lVar5 + 0x28)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + 0x28)" (( "(") (binary_expression "lVar5 + 0x28" (identifier "lVar5") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 1:\n                      dVar15 = *(double *)(lVar5 + 0x30);\n                      break;" (case "case") (number_literal "1") (: ":") (expression_statement "dVar15 = *(double *)(lVar5 + 0x30);" (assignment_expression "dVar15 = *(double *)(lVar5 + 0x30)" (identifier "dVar15") (= "=") (pointer_expression "*(double *)(lVar5 + 0x30)" (* "*") (cast_expression "(double *)(lVar5 + 0x30)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + 0x30)" (( "(") (binary_expression "lVar5 + 0x30" (identifier "lVar5") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 2:\n                      dVar15 = *(double *)(lVar5 + 0x38);\n                      break;" (case "case") (number_literal "2") (: ":") (expression_statement "dVar15 = *(double *)(lVar5 + 0x38);" (assignment_expression "dVar15 = *(double *)(lVar5 + 0x38)" (identifier "dVar15") (= "=") (pointer_expression "*(double *)(lVar5 + 0x38)" (* "*") (cast_expression "(double *)(lVar5 + 0x38)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + 0x38)" (( "(") (binary_expression "lVar5 + 0x38" (identifier "lVar5") (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 3:\n                      dVar15 = 0.0;\n                      if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }\n                      break;" (case "case") (number_literal "3") (: ":") (expression_statement "dVar15 = 0.0;" (assignment_expression "dVar15 = 0.0" (identifier "dVar15") (= "=") (number_literal "0.0")) (; ";")) (if_statement "if (*(int *)(lVar5 + 4) == 2) {\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }" (if "if") (parenthesized_expression "(*(int *)(lVar5 + 4) == 2)" (( "(") (binary_expression "*(int *)(lVar5 + 4) == 2" (pointer_expression "*(int *)(lVar5 + 4)" (* "*") (cast_expression "(int *)(lVar5 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + 4)" (( "(") (binary_expression "lVar5 + 4" (identifier "lVar5") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n                        dVar15 = *(double *)(lVar5 + 0x40);\n                      }" ({ "{") (expression_statement "dVar15 = *(double *)(lVar5 + 0x40);" (assignment_expression "dVar15 = *(double *)(lVar5 + 0x40)" (identifier "dVar15") (= "=") (pointer_expression "*(double *)(lVar5 + 0x40)" (* "*") (cast_expression "(double *)(lVar5 + 0x40)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + 0x40)" (( "(") (binary_expression "lVar5 + 0x40" (identifier "lVar5") (+ "+") (number_literal "0x40")) () ")"))))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 4:\n                      dVar15 = DAT_003f95f8;\n                      if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }\n                      break;" (case "case") (number_literal "4") (: ":") (expression_statement "dVar15 = DAT_003f95f8;" (assignment_expression "dVar15 = DAT_003f95f8" (identifier "dVar15") (= "=") (identifier "DAT_003f95f8")) (; ";")) (if_statement "if (*(int *)(lVar5 + 8) != 0) {\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }" (if "if") (parenthesized_expression "(*(int *)(lVar5 + 8) != 0)" (( "(") (binary_expression "*(int *)(lVar5 + 8) != 0" (pointer_expression "*(int *)(lVar5 + 8)" (* "*") (cast_expression "(int *)(lVar5 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + 8)" (( "(") (binary_expression "lVar5 + 8" (identifier "lVar5") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                        dVar15 = *(double *)(lVar5 + 0x48);\n                      }" ({ "{") (expression_statement "dVar15 = *(double *)(lVar5 + 0x48);" (assignment_expression "dVar15 = *(double *)(lVar5 + 0x48)" (identifier "dVar15") (= "=") (pointer_expression "*(double *)(lVar5 + 0x48)" (* "*") (cast_expression "(double *)(lVar5 + 0x48)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + 0x48)" (( "(") (binary_expression "lVar5 + 0x48" (identifier "lVar5") (+ "+") (number_literal "0x48")) () ")"))))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 5:\n                      dVar15 = *(double *)(lVar5 + 0x50);\n                      break;" (case "case") (number_literal "5") (: ":") (expression_statement "dVar15 = *(double *)(lVar5 + 0x50);" (assignment_expression "dVar15 = *(double *)(lVar5 + 0x50)" (identifier "dVar15") (= "=") (pointer_expression "*(double *)(lVar5 + 0x50)" (* "*") (cast_expression "(double *)(lVar5 + 0x50)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + 0x50)" (( "(") (binary_expression "lVar5 + 0x50" (identifier "lVar5") (+ "+") (number_literal "0x50")) () ")"))))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "default:\n                      dVar15 = 0.0;" (default "default") (: ":") (expression_statement "dVar15 = 0.0;" (assignment_expression "dVar15 = 0.0" (identifier "dVar15") (= "=") (number_literal "0.0")) (; ";"))) (} "}"))) (if_statement "if (dVar14 < dVar15) {\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }" (if "if") (parenthesized_expression "(dVar14 < dVar15)" (( "(") (binary_expression "dVar14 < dVar15" (identifier "dVar14") (< "<") (identifier "dVar15")) () ")")) (compound_statement "{\n                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;\n                    }" ({ "{") (expression_statement "*(undefined4 *)(lVar10 + lVar9 * 4) = 0;" (assignment_expression "*(undefined4 *)(lVar10 + lVar9 * 4) = 0" (pointer_expression "*(undefined4 *)(lVar10 + lVar9 * 4)" (* "*") (cast_expression "(undefined4 *)(lVar10 + lVar9 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar10 + lVar9 * 4)" (( "(") (binary_expression "lVar10 + lVar9 * 4" (identifier "lVar10") (+ "+") (binary_expression "lVar9 * 4" (identifier "lVar9") (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}"))) (expression_statement "lVar9 = lVar9 + 1;" (assignment_expression "lVar9 = lVar9 + 1" (identifier "lVar9") (= "=") (binary_expression "lVar9 + 1" (identifier "lVar9") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "lVar12 = *(long *)(lVar2 + 0x340);" (assignment_expression "lVar12 = *(long *)(lVar2 + 0x340)" (identifier "lVar12") (= "=") (pointer_expression "*(long *)(lVar2 + 0x340)" (* "*") (cast_expression "(long *)(lVar2 + 0x340)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x340)" (( "(") (binary_expression "lVar2 + 0x340" (identifier "lVar2") (+ "+") (number_literal "0x340")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(lVar9 < lVar12)" (( "(") (binary_expression "lVar9 < lVar12" (identifier "lVar9") (< "<") (identifier "lVar12")) () ")")) (; ";")) (} "}"))) (expression_statement "lVar10 = lVar10 + lVar12 * 4;" (assignment_expression "lVar10 = lVar10 + lVar12 * 4" (identifier "lVar10") (= "=") (binary_expression "lVar10 + lVar12 * 4" (identifier "lVar10") (+ "+") (binary_expression "lVar12 * 4" (identifier "lVar12") (* "*") (number_literal "4")))) (; ";")) (expression_statement "lVar13 = lVar13 + 1;" (assignment_expression "lVar13 = lVar13 + 1" (identifier "lVar13") (= "=") (binary_expression "lVar13 + 1" (identifier "lVar13") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(lVar13 < *(long *)(lVar2 + 0x20))" (( "(") (binary_expression "lVar13 < *(long *)(lVar2 + 0x20)" (identifier "lVar13") (< "<") (pointer_expression "*(long *)(lVar2 + 0x20)" (* "*") (cast_expression "(long *)(lVar2 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x20)" (( "(") (binary_expression "lVar2 + 0x20" (identifier "lVar2") (+ "+") (number_literal "0x20")) () ")"))))) () ")")) (; ";")) (} "}"))) (expression_statement "iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);" (assignment_expression "iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4)" (identifier "iVar6") (= "=") (call_expression "SyncCacheViewAuthenticPixels(lVar3,lVar4)" (identifier "SyncCacheViewAuthenticPixels") (argument_list "(lVar3,lVar4)" (( "(") (identifier "lVar3") (, ",") (identifier "lVar4") () ")")))) (; ";")) (if_statement "if (iVar6 == 0) {\n            *(undefined4 *)(param_1 + 5) = 0;\n          }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            *(undefined4 *)(param_1 + 5) = 0;\n          }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 5) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 5) = 0" (pointer_expression "*(undefined4 *)(param_1 + 5)" (* "*") (cast_expression "(undefined4 *)(param_1 + 5)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 5)" (( "(") (binary_expression "param_1 + 5" (identifier "param_1") (+ "+") (number_literal "5")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if (*(long *)(lVar2 + 0x3c8) != 0) {\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }" (if "if") (parenthesized_expression "(*(long *)(lVar2 + 0x3c8) != 0)" (( "(") (binary_expression "*(long *)(lVar2 + 0x3c8) != 0" (pointer_expression "*(long *)(lVar2 + 0x3c8)" (* "*") (cast_expression "(long *)(lVar2 + 0x3c8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x3c8)" (( "(") (binary_expression "lVar2 + 0x3c8" (identifier "lVar2") (+ "+") (number_literal "0x3c8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            LOCK();\n            *(long *)param_1[4] = *(long *)param_1[4] + 1;\n            UNLOCK();\n            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));\n            if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }\n          }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(long *)param_1[4] = *(long *)param_1[4] + 1;" (assignment_expression "*(long *)param_1[4] = *(long *)param_1[4] + 1" (pointer_expression "*(long *)param_1[4]" (* "*") (cast_expression "(long *)param_1[4]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")))) (= "=") (binary_expression "*(long *)param_1[4] + 1" (pointer_expression "*(long *)param_1[4]" (* "*") (cast_expression "(long *)param_1[4]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28));" (assignment_expression "iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28))" (identifier "iVar6") (= "=") (call_expression "SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28))" (identifier "SetImageProgress") (argument_list "(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],\n                                     *(undefined8 *)(lVar2 + 0x28))" (( "(") (identifier "lVar2") (, ",") (string_literal ""Threshold/Image"" (" """) (string_content "Threshold/Image") (" """)) (, ",") (pointer_expression "*(undefined8 *)param_1[4]" (* "*") (cast_expression "(undefined8 *)param_1[4]" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")))) (, ",") (pointer_expression "*(undefined8 *)(lVar2 + 0x28)" (* "*") (cast_expression "(undefined8 *)(lVar2 + 0x28)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x28)" (( "(") (binary_expression "lVar2 + 0x28" (identifier "lVar2") (+ "+") (number_literal "0x28")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar6 == 0) {\n              *(undefined4 *)(param_1 + 5) = 0;\n            }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              *(undefined4 *)(param_1 + 5) = 0;\n            }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 5) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 5) = 0" (pointer_expression "*(undefined4 *)(param_1 + 5)" (* "*") (cast_expression "(undefined4 *)(param_1 + 5)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 5)" (( "(") (binary_expression "param_1 + 5" (identifier "param_1") (+ "+") (number_literal "5")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}"))) (} "}")))) (} "}"))) (expression_statement "lVar11 = lVar11 + 1;" (assignment_expression "lVar11 = lVar11 + 1" (identifier "lVar11") (= "=") (binary_expression "lVar11 + 1" (identifier "lVar11") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(lVar8 != lVar11)" (( "(") (binary_expression "lVar8 != lVar11" (identifier "lVar8") (!= "!=") (identifier "lVar11")) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* 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 */
/* DWARF original prototype: void BlackThresholdImage._omp_fn.2(anon_struct_48_6_68167dc4 * param_0)
    */

void __thiscall function_1(void *this)

{
  type_1 PVar1;
  type_2 *image;
  type_3 *cache_view;
  type_4 *exception;
  long var_12;
  int iVar3;
  int var_3;
  type_5 var_19;
  long var_5;
  long var_15;
  type_6 *var_7;
  long var_4;
  size_t var_16;
  long var_17;
  double var_13;
  double var_14;
  
                    /* WARNING: Load size is inaccurate */
  image = *this;
  var_16 = image->rows;
  iVar3 = var_1();
  var_3 = var_2();
  var_5 = (long)var_16 / (long)iVar3;
  var_4 = (long)var_16 % (long)iVar3;
  if (var_3 < var_4) {
    var_5 = var_5 + 1;
    var_4 = 0;
  }
  var_4 = var_3 * var_5 + var_4;
  var_5 = var_5 + var_4;
  if (var_4 < var_5) {
    cache_view = *(type_3 **)((long)this + 0x10);
    exception = *(type_4 **)((long)this + 8);
    do {
      if (*(int *)((long)this + 0x28) != 0) {
        var_7 = var_6(cache_view,0,var_4,image->columns,1,exception);
        if (var_7 == (type_6 *)0x0) {
          *(type_7 *)((long)this + 0x28) = 0;
        }
        else {
          var_17 = 0;
          if (0 < (long)image->columns) {
            do {
              var_13 = var_8(image,var_7);
              var_16 = image->number_channels;
              if (0 < (long)var_16) {
                var_12 = *(long *)((long)this + 0x18);
                var_15 = 0;
                do {
                  PVar1 = image->channel_map[var_15].channel;
                  if ((image->channel_map[PVar1].traits & var_9) != var_10)
                  {
                    if (image->channel_mask != var_11) {
                      var_13 = (double)var_7[var_15];
                    }
                    switch(PVar1) {
                    case CyanPixelChannel:
                      var_14 = *(double *)(var_12 + 0x28);
                      break;
                    case CbPixelChannel:
                      var_14 = *(double *)(var_12 + 0x30);
                      break;
                    case BluePixelChannel:
                      var_14 = *(double *)(var_12 + 0x38);
                      break;
                    case BlackPixelChannel:
                      var_14 = 0.0;
                      if (*(int *)(var_12 + 4) == 2) {
                        var_14 = *(double *)(var_12 + 0x40);
                      }
                      break;
                    case AlphaPixelChannel:
                      var_14 = DAT_003f95f8;
                      if (*(int *)(var_12 + 8) != 0) {
                        var_14 = *(double *)(var_12 + 0x48);
                      }
                      break;
                    case IndexPixelChannel:
                      var_14 = *(double *)(var_12 + 0x50);
                      break;
                    default:
                      var_14 = 0.0;
                    }
                    if (var_13 < var_14) {
                      var_7[var_15] = 0.0;
                    }
                  }
                  var_15 = var_15 + 1;
                  var_16 = image->number_channels;
                } while (var_15 < (long)var_16);
              }
              var_7 = var_7 + var_16;
              var_17 = var_17 + 1;
            } while (var_17 < (long)image->columns);
          }
          var_19 = var_18(cache_view,exception);
          if (var_19 == var_20) {
            *(type_7 *)((long)this + 0x28) = 0;
          }
          if (image->progress_monitor != (type_8)0x0) {
            var_21();
            **(long **)((long)this + 0x20) = **(long **)((long)this + 0x20) + 1;
            var_22();
            var_19 = var_23(image,"Threshold/Image",
                                     **(type_9 **)((long)this + 0x20),image->rows);
            if (var_19 == var_20) {
              *(type_7 *)((long)this + 0x28) = 0;
            }
          }
        }
      }
      var_4 = var_4 + 1;
    } while (var_5 != var_4);
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (number_literal) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (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: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (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 (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))))))) (switch_statement condition: (parenthesized_expression (identifier)) body: (compound_statement (case_statement value: (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))))))) (break_statement)) (case_statement value: (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))))))) (break_statement)) (case_statement value: (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))))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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 (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))))))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (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))))))))) (break_statement)) (case_statement value: (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))))))) (break_statement)) (case_statement (expression_statement (assignment_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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) 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))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (return_statement))))

void MASKED(long *param_1)

{
  uint uVar1;
  long lVar2;
  long lVar3;
  long lVar4;
  long lVar5;
  int iVar6;
  int iVar7;
  long lVar8;
  long lVar9;
  long lVar10;
  long lVar11;
  long lVar12;
  long lVar13;
  double dVar14;
  double dVar15;
  
  lVar2 = *param_1;
  lVar11 = *(long *)(lVar2 + 0x28);
  iVar6 = omp_get_num_threads();
  iVar7 = omp_get_thread_num();
  lVar8 = lVar11 / (long)iVar6;
  lVar11 = lVar11 % (long)iVar6;
  if (iVar7 < lVar11) {
    lVar8 = lVar8 + 1;
    lVar11 = 0;
  }
  lVar11 = iVar7 * lVar8 + lVar11;
  lVar8 = lVar8 + lVar11;
  if (lVar11 < lVar8) {
    lVar3 = param_1[2];
    lVar4 = param_1[1];
    do {
      if ((int)param_1[5] != 0) {
        lVar10 = GetCacheViewAuthenticPixels(lVar3,0,lVar11,*(undefined8 *)(lVar2 + 0x20),1,lVar4);
        if (lVar10 == 0) {
          *(undefined4 *)(param_1 + 5) = 0;
        }
        else {
          lVar13 = 0;
          if (0 < *(long *)(lVar2 + 0x20)) {
            do {
              dVar14 = (double)GetPixelIntensity(lVar2,lVar10);
              lVar12 = *(long *)(lVar2 + 0x340);
              if (0 < lVar12) {
                lVar5 = param_1[3];
                lVar9 = 0;
                do {
                  uVar1 = *(uint *)(*(long *)(lVar2 + 0x360) + lVar9 * 0x10);
                  if ((*(byte *)(*(long *)(lVar2 + 0x360) + 4 + (ulong)uVar1 * 0x10) & 2) != 0) {
                    if (*(int *)(lVar2 + 0x358) != 0x7ffffff) {
                      dVar14 = (double)*(float *)(lVar10 + lVar9 * 4);
                    }
                    switch(uVar1) {
                    case 0:
                      dVar15 = *(double *)(lVar5 + 0x28);
                      break;
                    case 1:
                      dVar15 = *(double *)(lVar5 + 0x30);
                      break;
                    case 2:
                      dVar15 = *(double *)(lVar5 + 0x38);
                      break;
                    case 3:
                      dVar15 = 0.0;
                      if (*(int *)(lVar5 + 4) == 2) {
                        dVar15 = *(double *)(lVar5 + 0x40);
                      }
                      break;
                    case 4:
                      dVar15 = DAT_003f95f8;
                      if (*(int *)(lVar5 + 8) != 0) {
                        dVar15 = *(double *)(lVar5 + 0x48);
                      }
                      break;
                    case 5:
                      dVar15 = *(double *)(lVar5 + 0x50);
                      break;
                    default:
                      dVar15 = 0.0;
                    }
                    if (dVar14 < dVar15) {
                      *(undefined4 *)(lVar10 + lVar9 * 4) = 0;
                    }
                  }
                  lVar9 = lVar9 + 1;
                  lVar12 = *(long *)(lVar2 + 0x340);
                } while (lVar9 < lVar12);
              }
              lVar10 = lVar10 + lVar12 * 4;
              lVar13 = lVar13 + 1;
            } while (lVar13 < *(long *)(lVar2 + 0x20));
          }
          iVar6 = SyncCacheViewAuthenticPixels(lVar3,lVar4);
          if (iVar6 == 0) {
            *(undefined4 *)(param_1 + 5) = 0;
          }
          if (*(long *)(lVar2 + 0x3c8) != 0) {
            LOCK();
            *(long *)param_1[4] = *(long *)param_1[4] + 1;
            UNLOCK();
            iVar6 = SetImageProgress(lVar2,"Threshold/Image",*(undefined8 *)param_1[4],
                                     *(undefined8 *)(lVar2 + 0x28));
            if (iVar6 == 0) {
              *(undefined4 *)(param_1 + 5) = 0;
            }
          }
        }
      }
      lVar11 = lVar11 + 1;
    } while (lVar8 != lVar11);
  }
  return;
}

