
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* 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 SolarizeImage._omp_fn.8(anon_struct_32_6_4abfcc76 * param_0) */

void __thiscall SolarizeImage__omp_fn_8(anon_struct_32_6_4abfcc76 *this)

{
  longlong lVar1;
  double dVar2;
  Image *image;
  CacheView *cache_view;
  ExceptionInfo *exception;
  size_t sVar3;
  size_t sVar4;
  PixelChannelMap *pPVar5;
  uint *puVar6;
  double dVar7;
  int iVar8;
  int iVar9;
  double *pdVar10;
  MagickBooleanType MVar11;
  uint uVar12;
  double *pdVar13;
  PixelChannelMap *pPVar14;
  uint uVar15;
  size_t sVar16;
  bool bVar17;
  int local_50;
  
  image = this->image;
  local_50 = omp_get_num_threads();
  iVar8 = omp_get_thread_num();
  iVar9 = (int)image->rows / local_50;
  local_50 = (int)image->rows % local_50;
  if (iVar8 < local_50) {
    iVar9 = iVar9 + 1;
    local_50 = 0;
  }
  local_50 = iVar8 * iVar9 + local_50;
  iVar9 = iVar9 + local_50;
  if (local_50 < iVar9) {
    cache_view = this->image_view;
    exception = this->exception;
    dVar2 = this->threshold;
    do {
      if (this->status != MagickFalse) {
        pdVar10 = GetCacheViewAuthenticPixels(cache_view,0,local_50,image->columns,1,exception);
        if (pdVar10 == (Quantum *)0x0) {
LAB_001b7832:
          this->status = MagickFalse;
        }
        else {
          sVar3 = image->columns;
          if (0 < (int)sVar3) {
            sVar4 = image->number_channels;
            sVar16 = 0;
            dVar7 = (double)DAT_0029f710;
            do {
              if (0 < (int)sVar4) {
                pPVar5 = image->channel_map;
                pdVar13 = pdVar10;
                pPVar14 = pPVar5;
                do {
                  if (((pPVar5[pPVar14->channel].traits & UpdatePixelTrait) != UndefinedPixelTrait)
                     && (dVar2 < *pdVar13)) {
                    *pdVar13 = dVar7 - *pdVar13;
                  }
                  pPVar14 = pPVar14 + 1;
                  pdVar13 = pdVar13 + 1;
                } while (pPVar5 + sVar4 != pPVar14);
              }
              pdVar10 = pdVar10 + sVar4;
              sVar16 = sVar16 + 1;
            } while (sVar16 != sVar3);
          }
          MVar11 = SyncCacheViewAuthenticPixels(cache_view,exception);
          if (MVar11 == MagickFalse) {
            this->status = MagickFalse;
          }
          if (image->progress_monitor != (MagickProgressMonitor)0x0) {
            puVar6 = (uint *)this->progress;
            uVar12 = *puVar6;
            uVar15 = puVar6[1];
            do {
              LOCK();
              lVar1 = *(longlong *)puVar6;
              bVar17 = CONCAT44(uVar15,uVar12) == lVar1;
              if (bVar17) {
                *(longlong *)puVar6 = CONCAT44(uVar15 + (0xfffffffe < uVar12),uVar12 + 1);
              }
              else {
                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);
                uVar12 = (uint)lVar1;
              }
              UNLOCK();
            } while (!bVar17);
            MVar11 = SetImageProgress(image,"Solarize/Image",*this->progress,(ulonglong)image->rows)
            ;
            if (MVar11 == MagickFalse) goto LAB_001b7832;
          }
        }
      }
      local_50 = local_50 + 1;
    } while (iVar9 != local_50);
  }
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void FUN_001b7640(double *param_1)

{
  longlong lVar1;
  double dVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  int iVar6;
  int *piVar7;
  uint *puVar8;
  double dVar9;
  int iVar10;
  int iVar11;
  double *pdVar12;
  uint uVar13;
  double *pdVar14;
  int *piVar15;
  uint uVar16;
  int iVar17;
  bool bVar18;
  int local_50;
  
  iVar3 = *(int *)(param_1 + 1);
  local_50 = omp_get_num_threads();
  iVar10 = omp_get_thread_num();
  iVar11 = *(int *)(iVar3 + 0x1c) / local_50;
  local_50 = *(int *)(iVar3 + 0x1c) % local_50;
  if (iVar10 < local_50) {
    iVar11 = iVar11 + 1;
    local_50 = 0;
  }
  local_50 = iVar10 * iVar11 + local_50;
  iVar11 = iVar11 + local_50;
  if (local_50 < iVar11) {
    uVar4 = *(undefined4 *)(param_1 + 2);
    uVar5 = *(undefined4 *)((int)param_1 + 0xc);
    dVar2 = *param_1;
    do {
      if (*(int *)((int)param_1 + 0x14) != 0) {
        pdVar12 = (double *)
                  GetCacheViewAuthenticPixels
                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);
        if (pdVar12 == (double *)0x0) {
LAB_001b7832:
          *(undefined4 *)((int)param_1 + 0x14) = 0;
        }
        else {
          iVar10 = *(int *)(iVar3 + 0x18);
          if (0 < iVar10) {
            iVar6 = *(int *)(iVar3 + 0x298);
            iVar17 = 0;
            dVar9 = (double)DAT_0029f710;
            do {
              if (0 < iVar6) {
                piVar7 = *(int **)(iVar3 + 0x2a8);
                pdVar14 = pdVar12;
                piVar15 = piVar7;
                do {
                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {
                    *pdVar14 = dVar9 - *pdVar14;
                  }
                  piVar15 = piVar15 + 3;
                  pdVar14 = pdVar14 + 1;
                } while (piVar7 + iVar6 * 3 != piVar15);
              }
              pdVar12 = pdVar12 + iVar6;
              iVar17 = iVar17 + 1;
            } while (iVar17 != iVar10);
          }
          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);
          if (iVar10 == 0) {
            *(undefined4 *)((int)param_1 + 0x14) = 0;
          }
          if (*(int *)(iVar3 + 0x300) != 0) {
            puVar8 = *(uint **)(param_1 + 3);
            uVar13 = *puVar8;
            uVar16 = puVar8[1];
            do {
              LOCK();
              lVar1 = *(longlong *)puVar8;
              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;
              if (bVar18) {
                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);
              }
              else {
                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);
                uVar13 = (uint)lVar1;
              }
              UNLOCK();
            } while (!bVar18);
            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),
                                      (*(undefined4 **)(param_1 + 3))[1],
                                      *(undefined4 *)(iVar3 + 0x1c),0);
            if (iVar10 == 0) goto LAB_001b7832;
          }
        }
      }
      local_50 = local_50 + 1;
    } while (iVar11 != local_50);
  }
  return;
}


CALL 0x0003bf88
ADD EAX,0x2219bb
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x4c
MOV ESI,dword ptr [ESP + 0x60]
MOV EBX,EAX
MOV dword ptr [ESP + 0x24],EAX
MOV EBP,dword ptr [ESI + 0x8]
MOV dword ptr [ESP + 0x10],EBP
CALL 0x00030850
MOV ESI,EAX
CALL 0x000317c0
MOV ECX,EAX
MOV EAX,dword ptr [EBP + 0x1c]
CDQ
IDIV ESI
CMP ECX,EDX
JGE 0x001b767f
ADD EAX,0x1
XOR EDX,EDX
IMUL ECX,EAX
LEA ESI,[ECX + EDX*0x1]
MOV ECX,EAX
ADD ECX,ESI
MOV dword ptr [ESP + 0xc],ESI
CMP ESI,ECX
MOV dword ptr [ESP + 0x28],ECX
JGE 0x001b7850
MOV EAX,dword ptr [ESP + 0x60]
MOV EAX,dword ptr [EAX + 0x10]
MOV dword ptr [ESP + 0x2c],EAX
MOV EAX,dword ptr [ESP + 0x60]
MOV EAX,dword ptr [EAX + 0xc]
MOV dword ptr [ESP + 0x38],EAX
MOV EAX,dword ptr [ESP + 0x60]
FLD qword ptr [EAX]
MOV EAX,dword ptr [ESP + 0x24]
FSTP qword ptr [ESP + 0x30]
LEA EAX,[EAX + 0xffef1cfc]
MOV dword ptr [ESP + 0x3c],EAX
MOV ESI,ESI
LEA EDI,[EDI]
MOV EAX,dword ptr [ESP + 0x60]
MOV ECX,dword ptr [EAX + 0x14]
TEST ECX,ECX
JZ 0x001b783d
SUB ESP,0x8
PUSH dword ptr [ESP + 0x40]
PUSH 0x1
MOV ESI,dword ptr [ESP + 0x20]
PUSH dword ptr [ESI + 0x18]
PUSH dword ptr [ESP + 0x20]
PUSH 0x0
PUSH dword ptr [ESP + 0x48]
MOV EDI,dword ptr [ESP + 0x44]
MOV EBX,EDI
CALL 0x000312c0
ADD ESP,0x20
TEST EAX,EAX
JZ 0x001b7832
MOV ECX,dword ptr [ESI + 0x18]
TEST ECX,ECX
MOV dword ptr [ESP + 0x14],ECX
JLE 0x001b77ad
MOV ECX,dword ptr [ESI + 0x298]
XOR EBP,EBP
FLD dword ptr [EDI + 0xffec6710]
FLD qword ptr [ESP + 0x30]
LEA ESI,[ECX*0x8 + 0x0]
MOV dword ptr [ESP + 0x18],ECX
LEA EDX,[ECX + ECX*0x2]
MOV dword ptr [ESP + 0x1c],ESI
LEA ESI,[EDX*0x4 + 0x0]
MOV dword ptr [ESP + 0x20],ESI
LEA ESI,[ESI]
MOV EDX,dword ptr [ESP + 0x18]
TEST EDX,EDX
JLE 0x001b779c
MOV EDI,dword ptr [ESP + 0x10]
MOV ECX,EAX
MOV ESI,dword ptr [EDI + 0x2a8]
MOV EDI,dword ptr [ESP + 0x20]
MOV EDX,ESI
ADD EDI,ESI
LEA ESI,[ESI]
MOV EBX,dword ptr [EDX]
LEA EBX,[EBX + EBX*0x2]
TEST byte ptr [ESI + EBX*0x4 + 0x4],0x2
JZ 0x001b7792
FLD qword ptr [ECX]
FUCOMI ST0,ST1
JBE 0x001b7790
FSUBR ST0,ST2
FSTP qword ptr [ECX]
JMP 0x001b7792
FSTP ST0
ADD EDX,0xc
ADD ECX,0x8
CMP EDI,EDX
JNZ 0x001b7770
ADD EAX,dword ptr [ESP + 0x1c]
ADD EBP,0x1
CMP EBP,dword ptr [ESP + 0x14]
JNZ 0x001b7750
FSTP ST0
FSTP ST0
SUB ESP,0x8
PUSH dword ptr [ESP + 0x40]
PUSH dword ptr [ESP + 0x38]
MOV EBX,dword ptr [ESP + 0x34]
CALL 0x00031800
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x001b77d3
MOV EAX,dword ptr [ESP + 0x60]
MOV dword ptr [EAX + 0x14],0x0
MOV EAX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EAX + 0x300]
TEST EAX,EAX
JZ 0x001b783d
MOV EAX,dword ptr [ESP + 0x60]
MOV ESI,dword ptr [EAX + 0x18]
MOV EAX,dword ptr [ESI]
MOV EDX,dword ptr [ESI + 0x4]
MOV ECX,EAX
MOV EBX,EDX
ADD ECX,0x1
ADC EBX,0x0
MOV EBP,EBX
MOV EBX,ECX
MOV ECX,EBP
CMPXCHG8B.LOCK qword ptr [ESI]
JNZ 0x001b77ed
SUB ESP,0x8
XOR EDX,EDX
MOV EDI,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [EDI + 0x1c]
PUSH EDX
PUSH EAX
MOV EAX,dword ptr [ESP + 0x70]
MOV EAX,dword ptr [EAX + 0x18]
PUSH dword ptr [EAX + 0x4]
PUSH dword ptr [EAX]
PUSH dword ptr [ESP + 0x54]
PUSH EDI
MOV EBX,dword ptr [ESP + 0x44]
CALL 0x00033840
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x001b783d
MOV EAX,dword ptr [ESP + 0x60]
MOV dword ptr [EAX + 0x14],0x0
ADD dword ptr [ESP + 0xc],0x1
MOV EAX,dword ptr [ESP + 0xc]
CMP dword ptr [ESP + 0x28],EAX
JNZ 0x001b76d0
ADD ESP,0x4c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid FUN_001b7640(double *param_1)\n\n{\n  longlong lVar1;\n  double dVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int *piVar7;\n  uint *puVar8;\n  double dVar9;\n  int iVar10;\n  int iVar11;\n  double *pdVar12;\n  uint uVar13;\n  double *pdVar14;\n  int *piVar15;\n  uint uVar16;\n  int iVar17;\n  bool bVar18;\n  int local_50;\n  \n  iVar3 = *(int *)(param_1 + 1);\n  local_50 = omp_get_num_threads();\n  iVar10 = omp_get_thread_num();\n  iVar11 = *(int *)(iVar3 + 0x1c) / local_50;\n  local_50 = *(int *)(iVar3 + 0x1c) % local_50;\n  if (iVar10 < local_50) {\n    iVar11 = iVar11 + 1;\n    local_50 = 0;\n  }\n  local_50 = iVar10 * iVar11 + local_50;\n  iVar11 = iVar11 + local_50;\n  if (local_50 < iVar11) {\n    uVar4 = *(undefined4 *)(param_1 + 2);\n    uVar5 = *(undefined4 *)((int)param_1 + 0xc);\n    dVar2 = *param_1;\n    do {\n      if (*(int *)((int)param_1 + 0x14) != 0) {\n        pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);\n        if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    } while (iVar11 != local_50);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_001b7640(double *param_1)\n\n{\n  longlong lVar1;\n  double dVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int *piVar7;\n  uint *puVar8;\n  double dVar9;\n  int iVar10;\n  int iVar11;\n  double *pdVar12;\n  uint uVar13;\n  double *pdVar14;\n  int *piVar15;\n  uint uVar16;\n  int iVar17;\n  bool bVar18;\n  int local_50;\n  \n  iVar3 = *(int *)(param_1 + 1);\n  local_50 = omp_get_num_threads();\n  iVar10 = omp_get_thread_num();\n  iVar11 = *(int *)(iVar3 + 0x1c) / local_50;\n  local_50 = *(int *)(iVar3 + 0x1c) % local_50;\n  if (iVar10 < local_50) {\n    iVar11 = iVar11 + 1;\n    local_50 = 0;\n  }\n  local_50 = iVar10 * iVar11 + local_50;\n  iVar11 = iVar11 + local_50;\n  if (local_50 < iVar11) {\n    uVar4 = *(undefined4 *)(param_1 + 2);\n    uVar5 = *(undefined4 *)((int)param_1 + 0xc);\n    dVar2 = *param_1;\n    do {\n      if (*(int *)((int)param_1 + 0x14) != 0) {\n        pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);\n        if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    } while (iVar11 != local_50);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001b7640(double *param_1)" identifier (parameter_list "(double *param_1)" ( (parameter_declaration "double *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  longlong lVar1;\n  double dVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int *piVar7;\n  uint *puVar8;\n  double dVar9;\n  int iVar10;\n  int iVar11;\n  double *pdVar12;\n  uint uVar13;\n  double *pdVar14;\n  int *piVar15;\n  uint uVar16;\n  int iVar17;\n  bool bVar18;\n  int local_50;\n  \n  iVar3 = *(int *)(param_1 + 1);\n  local_50 = omp_get_num_threads();\n  iVar10 = omp_get_thread_num();\n  iVar11 = *(int *)(iVar3 + 0x1c) / local_50;\n  local_50 = *(int *)(iVar3 + 0x1c) % local_50;\n  if (iVar10 < local_50) {\n    iVar11 = iVar11 + 1;\n    local_50 = 0;\n  }\n  local_50 = iVar10 * iVar11 + local_50;\n  iVar11 = iVar11 + local_50;\n  if (local_50 < iVar11) {\n    uVar4 = *(undefined4 *)(param_1 + 2);\n    uVar5 = *(undefined4 *)((int)param_1 + 0xc);\n    dVar2 = *param_1;\n    do {\n      if (*(int *)((int)param_1 + 0x14) != 0) {\n        pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);\n        if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    } while (iVar11 != local_50);\n  }\n  return;\n}" { (declaration "longlong lVar1;" type_identifier identifier ;) (declaration "double dVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "uint *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "double dVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "double *pdVar12;" primitive_type (pointer_declarator "*pdVar12" * identifier) ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "double *pdVar14;" primitive_type (pointer_declarator "*pdVar14" * identifier) ;) (declaration "int *piVar15;" primitive_type (pointer_declarator "*piVar15" * identifier) ;) (declaration "uint uVar16;" type_identifier identifier ;) (declaration "int iVar17;" primitive_type identifier ;) (declaration "bool bVar18;" primitive_type identifier ;) (declaration "int local_50;" primitive_type identifier ;) (expression_statement "iVar3 = *(int *)(param_1 + 1);" (assignment_expression "iVar3 = *(int *)(param_1 + 1)" identifier = (pointer_expression "*(int *)(param_1 + 1)" * (cast_expression "(int *)(param_1 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))))) ;) (expression_statement "local_50 = omp_get_num_threads();" (assignment_expression "local_50 = omp_get_num_threads()" identifier = (call_expression "omp_get_num_threads()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar10 = omp_get_thread_num();" (assignment_expression "iVar10 = omp_get_thread_num()" identifier = (call_expression "omp_get_thread_num()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar11 = *(int *)(iVar3 + 0x1c) / local_50;" (assignment_expression "iVar11 = *(int *)(iVar3 + 0x1c) / local_50" identifier = (binary_expression "*(int *)(iVar3 + 0x1c) / local_50" (pointer_expression "*(int *)(iVar3 + 0x1c)" * (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) )))) / identifier)) ;) (expression_statement "local_50 = *(int *)(iVar3 + 0x1c) % local_50;" (assignment_expression "local_50 = *(int *)(iVar3 + 0x1c) % local_50" identifier = (binary_expression "*(int *)(iVar3 + 0x1c) % local_50" (pointer_expression "*(int *)(iVar3 + 0x1c)" * (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) )))) % identifier)) ;) (if_statement "if (iVar10 < local_50) {\n    iVar11 = iVar11 + 1;\n    local_50 = 0;\n  }" if (parenthesized_expression "(iVar10 < local_50)" ( (binary_expression "iVar10 < local_50" identifier < identifier) )) (compound_statement "{\n    iVar11 = iVar11 + 1;\n    local_50 = 0;\n  }" { (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" identifier = number_literal) ;) })) (expression_statement "local_50 = iVar10 * iVar11 + local_50;" (assignment_expression "local_50 = iVar10 * iVar11 + local_50" identifier = (binary_expression "iVar10 * iVar11 + local_50" (binary_expression "iVar10 * iVar11" identifier * identifier) + identifier)) ;) (expression_statement "iVar11 = iVar11 + local_50;" (assignment_expression "iVar11 = iVar11 + local_50" identifier = (binary_expression "iVar11 + local_50" identifier + identifier)) ;) (if_statement "if (local_50 < iVar11) {\n    uVar4 = *(undefined4 *)(param_1 + 2);\n    uVar5 = *(undefined4 *)((int)param_1 + 0xc);\n    dVar2 = *param_1;\n    do {\n      if (*(int *)((int)param_1 + 0x14) != 0) {\n        pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);\n        if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    } while (iVar11 != local_50);\n  }" if (parenthesized_expression "(local_50 < iVar11)" ( (binary_expression "local_50 < iVar11" identifier < identifier) )) (compound_statement "{\n    uVar4 = *(undefined4 *)(param_1 + 2);\n    uVar5 = *(undefined4 *)((int)param_1 + 0xc);\n    dVar2 = *param_1;\n    do {\n      if (*(int *)((int)param_1 + 0x14) != 0) {\n        pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);\n        if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    } while (iVar11 != local_50);\n  }" { (expression_statement "uVar4 = *(undefined4 *)(param_1 + 2);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 2)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 2)" * (cast_expression "(undefined4 *)(param_1 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(undefined4 *)((int)param_1 + 0xc);" (assignment_expression "uVar5 = *(undefined4 *)((int)param_1 + 0xc)" identifier = (pointer_expression "*(undefined4 *)((int)param_1 + 0xc)" * (cast_expression "(undefined4 *)((int)param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0xc)" ( (binary_expression "(int)param_1 + 0xc" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "dVar2 = *param_1;" (assignment_expression "dVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (do_statement "do {\n      if (*(int *)((int)param_1 + 0x14) != 0) {\n        pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);\n        if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    } while (iVar11 != local_50);" do (compound_statement "{\n      if (*(int *)((int)param_1 + 0x14) != 0) {\n        pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);\n        if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    }" { (if_statement "if (*(int *)((int)param_1 + 0x14) != 0) {\n        pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);\n        if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }\n      }" if (parenthesized_expression "(*(int *)((int)param_1 + 0x14) != 0)" ( (binary_expression "*(int *)((int)param_1 + 0x14) != 0" (pointer_expression "*(int *)((int)param_1 + 0x14)" * (cast_expression "(int *)((int)param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x14)" ( (binary_expression "(int)param_1 + 0x14" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n        pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);\n        if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }\n      }" { (expression_statement "pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);" (assignment_expression "pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5)" identifier = (cast_expression "(double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5)" identifier (argument_list "(uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5)" ( identifier , number_literal , identifier , (pointer_expression "*(undefined4 *)(iVar3 + 0x18)" * (cast_expression "(undefined4 *)(iVar3 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) )))) , number_literal , identifier ))))) ;) (if_statement "if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }" if (parenthesized_expression "(pdVar12 == (double *)0x0)" ( (binary_expression "pdVar12 == (double *)0x0" identifier == (cast_expression "(double *)0x0" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }" { (labeled_statement "LAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;" statement_identifier : (expression_statement "*(undefined4 *)((int)param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + 0x14)" * (cast_expression "(undefined4 *)((int)param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x14)" ( (binary_expression "(int)param_1 + 0x14" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;)) }) (else_clause "else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }" else (compound_statement "{\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }" { (expression_statement "iVar10 = *(int *)(iVar3 + 0x18);" (assignment_expression "iVar10 = *(int *)(iVar3 + 0x18)" identifier = (pointer_expression "*(int *)(iVar3 + 0x18)" * (cast_expression "(int *)(iVar3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }" if (parenthesized_expression "(0 < iVar10)" ( (binary_expression "0 < iVar10" number_literal < identifier) )) (compound_statement "{\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }" { (expression_statement "iVar6 = *(int *)(iVar3 + 0x298);" (assignment_expression "iVar6 = *(int *)(iVar3 + 0x298)" identifier = (pointer_expression "*(int *)(iVar3 + 0x298)" * (cast_expression "(int *)(iVar3 + 0x298)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x298)" ( (binary_expression "iVar3 + 0x298" identifier + number_literal) ))))) ;) (expression_statement "iVar17 = 0;" (assignment_expression "iVar17 = 0" identifier = number_literal) ;) (expression_statement "dVar9 = (double)DAT_0029f710;" (assignment_expression "dVar9 = (double)DAT_0029f710" identifier = (cast_expression "(double)DAT_0029f710" ( (type_descriptor "double" primitive_type) ) identifier)) ;) (do_statement "do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);" do (compound_statement "{\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            }" { (if_statement "if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }" if (parenthesized_expression "(0 < iVar6)" ( (binary_expression "0 < iVar6" number_literal < identifier) )) (compound_statement "{\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }" { (expression_statement "piVar7 = *(int **)(iVar3 + 0x2a8);" (assignment_expression "piVar7 = *(int **)(iVar3 + 0x2a8)" identifier = (pointer_expression "*(int **)(iVar3 + 0x2a8)" * (cast_expression "(int **)(iVar3 + 0x2a8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x2a8)" ( (binary_expression "iVar3 + 0x2a8" identifier + number_literal) ))))) ;) (expression_statement "pdVar14 = pdVar12;" (assignment_expression "pdVar14 = pdVar12" identifier = identifier) ;) (expression_statement "piVar15 = piVar7;" (assignment_expression "piVar15 = piVar7" identifier = identifier) ;) (do_statement "do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);" do (compound_statement "{\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                }" { (if_statement "if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }" if (parenthesized_expression "(((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14))" ( (binary_expression "((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)" (parenthesized_expression "((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0)" ( (binary_expression "(*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0" (parenthesized_expression "(*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2)" ( (binary_expression "*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2" (pointer_expression "*(byte *)(piVar7 + *piVar15 * 3 + 1)" * (cast_expression "(byte *)(piVar7 + *piVar15 * 3 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar7 + *piVar15 * 3 + 1)" ( (binary_expression "piVar7 + *piVar15 * 3 + 1" (binary_expression "piVar7 + *piVar15 * 3" identifier + (binary_expression "*piVar15 * 3" (pointer_expression "*piVar15" * identifier) * number_literal)) + number_literal) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "(dVar2 < *pdVar14)" ( (binary_expression "dVar2 < *pdVar14" identifier < (pointer_expression "*pdVar14" * identifier)) ))) )) (compound_statement "{\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }" { (expression_statement "*pdVar14 = dVar9 - *pdVar14;" (assignment_expression "*pdVar14 = dVar9 - *pdVar14" (pointer_expression "*pdVar14" * identifier) = (binary_expression "dVar9 - *pdVar14" identifier - (pointer_expression "*pdVar14" * identifier))) ;) })) (expression_statement "piVar15 = piVar15 + 3;" (assignment_expression "piVar15 = piVar15 + 3" identifier = (binary_expression "piVar15 + 3" identifier + number_literal)) ;) (expression_statement "pdVar14 = pdVar14 + 1;" (assignment_expression "pdVar14 = pdVar14 + 1" identifier = (binary_expression "pdVar14 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar7 + iVar6 * 3 != piVar15)" ( (binary_expression "piVar7 + iVar6 * 3 != piVar15" (binary_expression "piVar7 + iVar6 * 3" identifier + (binary_expression "iVar6 * 3" identifier * number_literal)) != identifier) )) ;) })) (expression_statement "pdVar12 = pdVar12 + iVar6;" (assignment_expression "pdVar12 = pdVar12 + iVar6" identifier = (binary_expression "pdVar12 + iVar6" identifier + identifier)) ;) (expression_statement "iVar17 = iVar17 + 1;" (assignment_expression "iVar17 = iVar17 + 1" identifier = (binary_expression "iVar17 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar17 != iVar10)" ( (binary_expression "iVar17 != iVar10" identifier != identifier) )) ;) })) (expression_statement "iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);" (assignment_expression "iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5)" identifier = (call_expression "SyncCacheViewAuthenticPixels(uVar4,uVar5)" identifier (argument_list "(uVar4,uVar5)" ( identifier , identifier )))) ;) (if_statement "if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }" { (expression_statement "*(undefined4 *)((int)param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + 0x14)" * (cast_expression "(undefined4 *)((int)param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x14)" ( (binary_expression "(int)param_1 + 0x14" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) (if_statement "if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }" if (parenthesized_expression "(*(int *)(iVar3 + 0x300) != 0)" ( (binary_expression "*(int *)(iVar3 + 0x300) != 0" (pointer_expression "*(int *)(iVar3 + 0x300)" * (cast_expression "(int *)(iVar3 + 0x300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x300)" ( (binary_expression "iVar3 + 0x300" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }" { (expression_statement "puVar8 = *(uint **)(param_1 + 3);" (assignment_expression "puVar8 = *(uint **)(param_1 + 3)" identifier = (pointer_expression "*(uint **)(param_1 + 3)" * (cast_expression "(uint **)(param_1 + 3)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))))) ;) (expression_statement "uVar13 = *puVar8;" (assignment_expression "uVar13 = *puVar8" identifier = (pointer_expression "*puVar8" * identifier)) ;) (expression_statement "uVar16 = puVar8[1];" (assignment_expression "uVar16 = puVar8[1]" identifier = (subscript_expression "puVar8[1]" identifier [ number_literal ])) ;) (do_statement "do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);" do (compound_statement "{\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "lVar1 = *(longlong *)puVar8;" (assignment_expression "lVar1 = *(longlong *)puVar8" identifier = (pointer_expression "*(longlong *)puVar8" * (cast_expression "(longlong *)puVar8" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "bVar18 = CONCAT44(uVar16,uVar13) == lVar1;" (assignment_expression "bVar18 = CONCAT44(uVar16,uVar13) == lVar1" identifier = (binary_expression "CONCAT44(uVar16,uVar13) == lVar1" (call_expression "CONCAT44(uVar16,uVar13)" identifier (argument_list "(uVar16,uVar13)" ( identifier , identifier ))) == identifier)) ;) (if_statement "if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }" if (parenthesized_expression "(bVar18)" ( identifier )) (compound_statement "{\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }" { (expression_statement "*(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);" (assignment_expression "*(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1)" (pointer_expression "*(longlong *)puVar8" * (cast_expression "(longlong *)puVar8" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (call_expression "CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1)" identifier (argument_list "(uVar16 + (0xfffffffe < uVar13),uVar13 + 1)" ( (binary_expression "uVar16 + (0xfffffffe < uVar13)" identifier + (parenthesized_expression "(0xfffffffe < uVar13)" ( (binary_expression "0xfffffffe < uVar13" number_literal < identifier) ))) , (binary_expression "uVar13 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }" else (compound_statement "{\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }" { (expression_statement "uVar16 = (uint)((ulonglong)lVar1 >> 0x20);" (assignment_expression "uVar16 = (uint)((ulonglong)lVar1 >> 0x20)" identifier = (call_expression "(uint)((ulonglong)lVar1 >> 0x20)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)lVar1 >> 0x20)" ( (binary_expression "(ulonglong)lVar1 >> 0x20" (cast_expression "(ulonglong)lVar1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar13 = (uint)lVar1;" (assignment_expression "uVar13 = (uint)lVar1" identifier = (cast_expression "(uint)lVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) }))) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }) while (parenthesized_expression "(!bVar18)" ( (unary_expression "!bVar18" ! identifier) )) ;) (expression_statement "iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);" (assignment_expression "iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0)" identifier = (call_expression "SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0)" identifier (argument_list "(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0)" ( identifier , (string_literal ""Solarize/Image"" " string_content ") , (pointer_expression "**(undefined4 **)(param_1 + 3)" * (pointer_expression "*(undefined4 **)(param_1 + 3)" * (cast_expression "(undefined4 **)(param_1 + 3)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))))) , (subscript_expression "(*(undefined4 **)(param_1 + 3))[1]" (parenthesized_expression "(*(undefined4 **)(param_1 + 3))" ( (pointer_expression "*(undefined4 **)(param_1 + 3)" * (cast_expression "(undefined4 **)(param_1 + 3)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) )))) )) [ number_literal ]) , (pointer_expression "*(undefined4 *)(iVar3 + 0x1c)" * (cast_expression "(undefined4 *)(iVar3 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) )))) , number_literal )))) ;) (if_statement "if (iVar10 == 0) goto LAB_001b7832;" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (goto_statement "goto LAB_001b7832;" goto statement_identifier ;)) })) }))) })) (expression_statement "local_50 = local_50 + 1;" (assignment_expression "local_50 = local_50 + 1" identifier = (binary_expression "local_50 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar11 != local_50)" ( (binary_expression "iVar11 != local_50" identifier != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* WARNING: Enum "DisposeType": Some values do not have unique names */\n/* WARNING: Enum "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "PixelChannel": Some values do not have unique names */\n/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n/* DWARF original prototype: void SolarizeImage._omp_fn.8(anon_struct_32_6_4abfcc76 * param_0) */\n\nvoid __thiscall SolarizeImage__omp_fn_8(anon_struct_32_6_4abfcc76 *this)\n\n{\n  longlong lVar1;\n  double dVar2;\n  Image *image;\n  CacheView *cache_view;\n  ExceptionInfo *exception;\n  size_t sVar3;\n  size_t sVar4;\n  PixelChannelMap *pPVar5;\n  uint *puVar6;\n  double dVar7;\n  int iVar8;\n  int iVar9;\n  double *pdVar10;\n  MagickBooleanType MVar11;\n  uint uVar12;\n  double *pdVar13;\n  PixelChannelMap *pPVar14;\n  uint uVar15;\n  size_t sVar16;\n  bool bVar17;\n  int local_50;\n  \n  image = this->image;\n  local_50 = omp_get_num_threads();\n  iVar8 = omp_get_thread_num();\n  iVar9 = (int)image->rows / local_50;\n  local_50 = (int)image->rows % local_50;\n  if (iVar8 < local_50) {\n    iVar9 = iVar9 + 1;\n    local_50 = 0;\n  }\n  local_50 = iVar8 * iVar9 + local_50;\n  iVar9 = iVar9 + local_50;\n  if (local_50 < iVar9) {\n    cache_view = this->image_view;\n    exception = this->exception;\n    dVar2 = this->threshold;\n    do {\n      if (this->status != MagickFalse) {\n        pdVar10 = GetCacheViewAuthenticPixels(cache_view,0,local_50,image->columns,1,exception);\n        if (pdVar10 == (Quantum *)0x0) {\nLAB_001b7832:\n          this->status = MagickFalse;\n        }\n        else {\n          sVar3 = image->columns;\n          if (0 < (int)sVar3) {\n            sVar4 = image->number_channels;\n            sVar16 = 0;\n            dVar7 = (double)DAT_0029f710;\n            do {\n              if (0 < (int)sVar4) {\n                pPVar5 = image->channel_map;\n                pdVar13 = pdVar10;\n                pPVar14 = pPVar5;\n                do {\n                  if (((pPVar5[pPVar14->channel].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                     && (dVar2 < *pdVar13)) {\n                    *pdVar13 = dVar7 - *pdVar13;\n                  }\n                  pPVar14 = pPVar14 + 1;\n                  pdVar13 = pdVar13 + 1;\n                } while (pPVar5 + sVar4 != pPVar14);\n              }\n              pdVar10 = pdVar10 + sVar4;\n              sVar16 = sVar16 + 1;\n            } while (sVar16 != sVar3);\n          }\n          MVar11 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar11 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            puVar6 = (uint *)this->progress;\n            uVar12 = *puVar6;\n            uVar15 = puVar6[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar6;\n              bVar17 = CONCAT44(uVar15,uVar12) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar6 = CONCAT44(uVar15 + (0xfffffffe < uVar12),uVar12 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar12 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar11 = SetImageProgress(image,"Solarize/Image",*this->progress,(ulonglong)image->rows)\n            ;\n            if (MVar11 == MagickFalse) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    } while (iVar9 != local_50);\n  }\n  return;\n}\n\n" comment comment comment comment comment comment comment (function_definition "void __thiscall SolarizeImage__omp_fn_8(anon_struct_32_6_4abfcc76 *this)\n\n{\n  longlong lVar1;\n  double dVar2;\n  Image *image;\n  CacheView *cache_view;\n  ExceptionInfo *exception;\n  size_t sVar3;\n  size_t sVar4;\n  PixelChannelMap *pPVar5;\n  uint *puVar6;\n  double dVar7;\n  int iVar8;\n  int iVar9;\n  double *pdVar10;\n  MagickBooleanType MVar11;\n  uint uVar12;\n  double *pdVar13;\n  PixelChannelMap *pPVar14;\n  uint uVar15;\n  size_t sVar16;\n  bool bVar17;\n  int local_50;\n  \n  image = this->image;\n  local_50 = omp_get_num_threads();\n  iVar8 = omp_get_thread_num();\n  iVar9 = (int)image->rows / local_50;\n  local_50 = (int)image->rows % local_50;\n  if (iVar8 < local_50) {\n    iVar9 = iVar9 + 1;\n    local_50 = 0;\n  }\n  local_50 = iVar8 * iVar9 + local_50;\n  iVar9 = iVar9 + local_50;\n  if (local_50 < iVar9) {\n    cache_view = this->image_view;\n    exception = this->exception;\n    dVar2 = this->threshold;\n    do {\n      if (this->status != MagickFalse) {\n        pdVar10 = GetCacheViewAuthenticPixels(cache_view,0,local_50,image->columns,1,exception);\n        if (pdVar10 == (Quantum *)0x0) {\nLAB_001b7832:\n          this->status = MagickFalse;\n        }\n        else {\n          sVar3 = image->columns;\n          if (0 < (int)sVar3) {\n            sVar4 = image->number_channels;\n            sVar16 = 0;\n            dVar7 = (double)DAT_0029f710;\n            do {\n              if (0 < (int)sVar4) {\n                pPVar5 = image->channel_map;\n                pdVar13 = pdVar10;\n                pPVar14 = pPVar5;\n                do {\n                  if (((pPVar5[pPVar14->channel].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                     && (dVar2 < *pdVar13)) {\n                    *pdVar13 = dVar7 - *pdVar13;\n                  }\n                  pPVar14 = pPVar14 + 1;\n                  pdVar13 = pdVar13 + 1;\n                } while (pPVar5 + sVar4 != pPVar14);\n              }\n              pdVar10 = pdVar10 + sVar4;\n              sVar16 = sVar16 + 1;\n            } while (sVar16 != sVar3);\n          }\n          MVar11 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar11 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            puVar6 = (uint *)this->progress;\n            uVar12 = *puVar6;\n            uVar15 = puVar6[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar6;\n              bVar17 = CONCAT44(uVar15,uVar12) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar6 = CONCAT44(uVar15 + (0xfffffffe < uVar12),uVar12 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar12 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar11 = SetImageProgress(image,"Solarize/Image",*this->progress,(ulonglong)image->rows)\n            ;\n            if (MVar11 == MagickFalse) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    } while (iVar9 != local_50);\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (function_declarator "SolarizeImage__omp_fn_8(anon_struct_32_6_4abfcc76 *this)" identifier (parameter_list "(anon_struct_32_6_4abfcc76 *this)" ( (parameter_declaration "anon_struct_32_6_4abfcc76 *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  longlong lVar1;\n  double dVar2;\n  Image *image;\n  CacheView *cache_view;\n  ExceptionInfo *exception;\n  size_t sVar3;\n  size_t sVar4;\n  PixelChannelMap *pPVar5;\n  uint *puVar6;\n  double dVar7;\n  int iVar8;\n  int iVar9;\n  double *pdVar10;\n  MagickBooleanType MVar11;\n  uint uVar12;\n  double *pdVar13;\n  PixelChannelMap *pPVar14;\n  uint uVar15;\n  size_t sVar16;\n  bool bVar17;\n  int local_50;\n  \n  image = this->image;\n  local_50 = omp_get_num_threads();\n  iVar8 = omp_get_thread_num();\n  iVar9 = (int)image->rows / local_50;\n  local_50 = (int)image->rows % local_50;\n  if (iVar8 < local_50) {\n    iVar9 = iVar9 + 1;\n    local_50 = 0;\n  }\n  local_50 = iVar8 * iVar9 + local_50;\n  iVar9 = iVar9 + local_50;\n  if (local_50 < iVar9) {\n    cache_view = this->image_view;\n    exception = this->exception;\n    dVar2 = this->threshold;\n    do {\n      if (this->status != MagickFalse) {\n        pdVar10 = GetCacheViewAuthenticPixels(cache_view,0,local_50,image->columns,1,exception);\n        if (pdVar10 == (Quantum *)0x0) {\nLAB_001b7832:\n          this->status = MagickFalse;\n        }\n        else {\n          sVar3 = image->columns;\n          if (0 < (int)sVar3) {\n            sVar4 = image->number_channels;\n            sVar16 = 0;\n            dVar7 = (double)DAT_0029f710;\n            do {\n              if (0 < (int)sVar4) {\n                pPVar5 = image->channel_map;\n                pdVar13 = pdVar10;\n                pPVar14 = pPVar5;\n                do {\n                  if (((pPVar5[pPVar14->channel].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                     && (dVar2 < *pdVar13)) {\n                    *pdVar13 = dVar7 - *pdVar13;\n                  }\n                  pPVar14 = pPVar14 + 1;\n                  pdVar13 = pdVar13 + 1;\n                } while (pPVar5 + sVar4 != pPVar14);\n              }\n              pdVar10 = pdVar10 + sVar4;\n              sVar16 = sVar16 + 1;\n            } while (sVar16 != sVar3);\n          }\n          MVar11 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar11 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            puVar6 = (uint *)this->progress;\n            uVar12 = *puVar6;\n            uVar15 = puVar6[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar6;\n              bVar17 = CONCAT44(uVar15,uVar12) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar6 = CONCAT44(uVar15 + (0xfffffffe < uVar12),uVar12 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar12 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar11 = SetImageProgress(image,"Solarize/Image",*this->progress,(ulonglong)image->rows)\n            ;\n            if (MVar11 == MagickFalse) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    } while (iVar9 != local_50);\n  }\n  return;\n}" { (declaration "longlong lVar1;" type_identifier identifier ;) (declaration "double dVar2;" primitive_type 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 "size_t sVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "PixelChannelMap *pPVar5;" type_identifier (pointer_declarator "*pPVar5" * identifier) ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "double dVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "double *pdVar10;" primitive_type (pointer_declarator "*pdVar10" * identifier) ;) (declaration "MagickBooleanType MVar11;" type_identifier identifier ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "double *pdVar13;" primitive_type (pointer_declarator "*pdVar13" * identifier) ;) (declaration "PixelChannelMap *pPVar14;" type_identifier (pointer_declarator "*pPVar14" * identifier) ;) (declaration "uint uVar15;" type_identifier identifier ;) (declaration "size_t sVar16;" primitive_type identifier ;) (declaration "bool bVar17;" primitive_type identifier ;) (declaration "int local_50;" primitive_type identifier ;) (expression_statement "image = this->image;" (assignment_expression "image = this->image" identifier = (field_expression "this->image" identifier -> field_identifier)) ;) (expression_statement "local_50 = omp_get_num_threads();" (assignment_expression "local_50 = omp_get_num_threads()" identifier = (call_expression "omp_get_num_threads()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar8 = omp_get_thread_num();" (assignment_expression "iVar8 = omp_get_thread_num()" identifier = (call_expression "omp_get_thread_num()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar9 = (int)image->rows / local_50;" (assignment_expression "iVar9 = (int)image->rows / local_50" identifier = (binary_expression "(int)image->rows / local_50" (cast_expression "(int)image->rows" ( (type_descriptor "int" primitive_type) ) (field_expression "image->rows" identifier -> field_identifier)) / identifier)) ;) (expression_statement "local_50 = (int)image->rows % local_50;" (assignment_expression "local_50 = (int)image->rows % local_50" identifier = (binary_expression "(int)image->rows % local_50" (cast_expression "(int)image->rows" ( (type_descriptor "int" primitive_type) ) (field_expression "image->rows" identifier -> field_identifier)) % identifier)) ;) (if_statement "if (iVar8 < local_50) {\n    iVar9 = iVar9 + 1;\n    local_50 = 0;\n  }" if (parenthesized_expression "(iVar8 < local_50)" ( (binary_expression "iVar8 < local_50" identifier < identifier) )) (compound_statement "{\n    iVar9 = iVar9 + 1;\n    local_50 = 0;\n  }" { (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" identifier = number_literal) ;) })) (expression_statement "local_50 = iVar8 * iVar9 + local_50;" (assignment_expression "local_50 = iVar8 * iVar9 + local_50" identifier = (binary_expression "iVar8 * iVar9 + local_50" (binary_expression "iVar8 * iVar9" identifier * identifier) + identifier)) ;) (expression_statement "iVar9 = iVar9 + local_50;" (assignment_expression "iVar9 = iVar9 + local_50" identifier = (binary_expression "iVar9 + local_50" identifier + identifier)) ;) (if_statement "if (local_50 < iVar9) {\n    cache_view = this->image_view;\n    exception = this->exception;\n    dVar2 = this->threshold;\n    do {\n      if (this->status != MagickFalse) {\n        pdVar10 = GetCacheViewAuthenticPixels(cache_view,0,local_50,image->columns,1,exception);\n        if (pdVar10 == (Quantum *)0x0) {\nLAB_001b7832:\n          this->status = MagickFalse;\n        }\n        else {\n          sVar3 = image->columns;\n          if (0 < (int)sVar3) {\n            sVar4 = image->number_channels;\n            sVar16 = 0;\n            dVar7 = (double)DAT_0029f710;\n            do {\n              if (0 < (int)sVar4) {\n                pPVar5 = image->channel_map;\n                pdVar13 = pdVar10;\n                pPVar14 = pPVar5;\n                do {\n                  if (((pPVar5[pPVar14->channel].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                     && (dVar2 < *pdVar13)) {\n                    *pdVar13 = dVar7 - *pdVar13;\n                  }\n                  pPVar14 = pPVar14 + 1;\n                  pdVar13 = pdVar13 + 1;\n                } while (pPVar5 + sVar4 != pPVar14);\n              }\n              pdVar10 = pdVar10 + sVar4;\n              sVar16 = sVar16 + 1;\n            } while (sVar16 != sVar3);\n          }\n          MVar11 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar11 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            puVar6 = (uint *)this->progress;\n            uVar12 = *puVar6;\n            uVar15 = puVar6[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar6;\n              bVar17 = CONCAT44(uVar15,uVar12) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar6 = CONCAT44(uVar15 + (0xfffffffe < uVar12),uVar12 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar12 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar11 = SetImageProgress(image,"Solarize/Image",*this->progress,(ulonglong)image->rows)\n            ;\n            if (MVar11 == MagickFalse) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    } while (iVar9 != local_50);\n  }" if (parenthesized_expression "(local_50 < iVar9)" ( (binary_expression "local_50 < iVar9" identifier < identifier) )) (compound_statement "{\n    cache_view = this->image_view;\n    exception = this->exception;\n    dVar2 = this->threshold;\n    do {\n      if (this->status != MagickFalse) {\n        pdVar10 = GetCacheViewAuthenticPixels(cache_view,0,local_50,image->columns,1,exception);\n        if (pdVar10 == (Quantum *)0x0) {\nLAB_001b7832:\n          this->status = MagickFalse;\n        }\n        else {\n          sVar3 = image->columns;\n          if (0 < (int)sVar3) {\n            sVar4 = image->number_channels;\n            sVar16 = 0;\n            dVar7 = (double)DAT_0029f710;\n            do {\n              if (0 < (int)sVar4) {\n                pPVar5 = image->channel_map;\n                pdVar13 = pdVar10;\n                pPVar14 = pPVar5;\n                do {\n                  if (((pPVar5[pPVar14->channel].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                     && (dVar2 < *pdVar13)) {\n                    *pdVar13 = dVar7 - *pdVar13;\n                  }\n                  pPVar14 = pPVar14 + 1;\n                  pdVar13 = pdVar13 + 1;\n                } while (pPVar5 + sVar4 != pPVar14);\n              }\n              pdVar10 = pdVar10 + sVar4;\n              sVar16 = sVar16 + 1;\n            } while (sVar16 != sVar3);\n          }\n          MVar11 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar11 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            puVar6 = (uint *)this->progress;\n            uVar12 = *puVar6;\n            uVar15 = puVar6[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar6;\n              bVar17 = CONCAT44(uVar15,uVar12) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar6 = CONCAT44(uVar15 + (0xfffffffe < uVar12),uVar12 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar12 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar11 = SetImageProgress(image,"Solarize/Image",*this->progress,(ulonglong)image->rows)\n            ;\n            if (MVar11 == MagickFalse) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    } while (iVar9 != local_50);\n  }" { (expression_statement "cache_view = this->image_view;" (assignment_expression "cache_view = this->image_view" identifier = (field_expression "this->image_view" identifier -> field_identifier)) ;) (expression_statement "exception = this->exception;" (assignment_expression "exception = this->exception" identifier = (field_expression "this->exception" identifier -> field_identifier)) ;) (expression_statement "dVar2 = this->threshold;" (assignment_expression "dVar2 = this->threshold" identifier = (field_expression "this->threshold" identifier -> field_identifier)) ;) (do_statement "do {\n      if (this->status != MagickFalse) {\n        pdVar10 = GetCacheViewAuthenticPixels(cache_view,0,local_50,image->columns,1,exception);\n        if (pdVar10 == (Quantum *)0x0) {\nLAB_001b7832:\n          this->status = MagickFalse;\n        }\n        else {\n          sVar3 = image->columns;\n          if (0 < (int)sVar3) {\n            sVar4 = image->number_channels;\n            sVar16 = 0;\n            dVar7 = (double)DAT_0029f710;\n            do {\n              if (0 < (int)sVar4) {\n                pPVar5 = image->channel_map;\n                pdVar13 = pdVar10;\n                pPVar14 = pPVar5;\n                do {\n                  if (((pPVar5[pPVar14->channel].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                     && (dVar2 < *pdVar13)) {\n                    *pdVar13 = dVar7 - *pdVar13;\n                  }\n                  pPVar14 = pPVar14 + 1;\n                  pdVar13 = pdVar13 + 1;\n                } while (pPVar5 + sVar4 != pPVar14);\n              }\n              pdVar10 = pdVar10 + sVar4;\n              sVar16 = sVar16 + 1;\n            } while (sVar16 != sVar3);\n          }\n          MVar11 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar11 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            puVar6 = (uint *)this->progress;\n            uVar12 = *puVar6;\n            uVar15 = puVar6[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar6;\n              bVar17 = CONCAT44(uVar15,uVar12) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar6 = CONCAT44(uVar15 + (0xfffffffe < uVar12),uVar12 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar12 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar11 = SetImageProgress(image,"Solarize/Image",*this->progress,(ulonglong)image->rows)\n            ;\n            if (MVar11 == MagickFalse) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    } while (iVar9 != local_50);" do (compound_statement "{\n      if (this->status != MagickFalse) {\n        pdVar10 = GetCacheViewAuthenticPixels(cache_view,0,local_50,image->columns,1,exception);\n        if (pdVar10 == (Quantum *)0x0) {\nLAB_001b7832:\n          this->status = MagickFalse;\n        }\n        else {\n          sVar3 = image->columns;\n          if (0 < (int)sVar3) {\n            sVar4 = image->number_channels;\n            sVar16 = 0;\n            dVar7 = (double)DAT_0029f710;\n            do {\n              if (0 < (int)sVar4) {\n                pPVar5 = image->channel_map;\n                pdVar13 = pdVar10;\n                pPVar14 = pPVar5;\n                do {\n                  if (((pPVar5[pPVar14->channel].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                     && (dVar2 < *pdVar13)) {\n                    *pdVar13 = dVar7 - *pdVar13;\n                  }\n                  pPVar14 = pPVar14 + 1;\n                  pdVar13 = pdVar13 + 1;\n                } while (pPVar5 + sVar4 != pPVar14);\n              }\n              pdVar10 = pdVar10 + sVar4;\n              sVar16 = sVar16 + 1;\n            } while (sVar16 != sVar3);\n          }\n          MVar11 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar11 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            puVar6 = (uint *)this->progress;\n            uVar12 = *puVar6;\n            uVar15 = puVar6[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar6;\n              bVar17 = CONCAT44(uVar15,uVar12) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar6 = CONCAT44(uVar15 + (0xfffffffe < uVar12),uVar12 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar12 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar11 = SetImageProgress(image,"Solarize/Image",*this->progress,(ulonglong)image->rows)\n            ;\n            if (MVar11 == MagickFalse) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    }" { (if_statement "if (this->status != MagickFalse) {\n        pdVar10 = GetCacheViewAuthenticPixels(cache_view,0,local_50,image->columns,1,exception);\n        if (pdVar10 == (Quantum *)0x0) {\nLAB_001b7832:\n          this->status = MagickFalse;\n        }\n        else {\n          sVar3 = image->columns;\n          if (0 < (int)sVar3) {\n            sVar4 = image->number_channels;\n            sVar16 = 0;\n            dVar7 = (double)DAT_0029f710;\n            do {\n              if (0 < (int)sVar4) {\n                pPVar5 = image->channel_map;\n                pdVar13 = pdVar10;\n                pPVar14 = pPVar5;\n                do {\n                  if (((pPVar5[pPVar14->channel].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                     && (dVar2 < *pdVar13)) {\n                    *pdVar13 = dVar7 - *pdVar13;\n                  }\n                  pPVar14 = pPVar14 + 1;\n                  pdVar13 = pdVar13 + 1;\n                } while (pPVar5 + sVar4 != pPVar14);\n              }\n              pdVar10 = pdVar10 + sVar4;\n              sVar16 = sVar16 + 1;\n            } while (sVar16 != sVar3);\n          }\n          MVar11 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar11 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            puVar6 = (uint *)this->progress;\n            uVar12 = *puVar6;\n            uVar15 = puVar6[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar6;\n              bVar17 = CONCAT44(uVar15,uVar12) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar6 = CONCAT44(uVar15 + (0xfffffffe < uVar12),uVar12 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar12 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar11 = SetImageProgress(image,"Solarize/Image",*this->progress,(ulonglong)image->rows)\n            ;\n            if (MVar11 == MagickFalse) goto LAB_001b7832;\n          }\n        }\n      }" if (parenthesized_expression "(this->status != MagickFalse)" ( (binary_expression "this->status != MagickFalse" (field_expression "this->status" identifier -> field_identifier) != identifier) )) (compound_statement "{\n        pdVar10 = GetCacheViewAuthenticPixels(cache_view,0,local_50,image->columns,1,exception);\n        if (pdVar10 == (Quantum *)0x0) {\nLAB_001b7832:\n          this->status = MagickFalse;\n        }\n        else {\n          sVar3 = image->columns;\n          if (0 < (int)sVar3) {\n            sVar4 = image->number_channels;\n            sVar16 = 0;\n            dVar7 = (double)DAT_0029f710;\n            do {\n              if (0 < (int)sVar4) {\n                pPVar5 = image->channel_map;\n                pdVar13 = pdVar10;\n                pPVar14 = pPVar5;\n                do {\n                  if (((pPVar5[pPVar14->channel].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                     && (dVar2 < *pdVar13)) {\n                    *pdVar13 = dVar7 - *pdVar13;\n                  }\n                  pPVar14 = pPVar14 + 1;\n                  pdVar13 = pdVar13 + 1;\n                } while (pPVar5 + sVar4 != pPVar14);\n              }\n              pdVar10 = pdVar10 + sVar4;\n              sVar16 = sVar16 + 1;\n            } while (sVar16 != sVar3);\n          }\n          MVar11 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar11 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            puVar6 = (uint *)this->progress;\n            uVar12 = *puVar6;\n            uVar15 = puVar6[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar6;\n              bVar17 = CONCAT44(uVar15,uVar12) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar6 = CONCAT44(uVar15 + (0xfffffffe < uVar12),uVar12 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar12 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar11 = SetImageProgress(image,"Solarize/Image",*this->progress,(ulonglong)image->rows)\n            ;\n            if (MVar11 == MagickFalse) goto LAB_001b7832;\n          }\n        }\n      }" { (expression_statement "pdVar10 = GetCacheViewAuthenticPixels(cache_view,0,local_50,image->columns,1,exception);" (assignment_expression "pdVar10 = GetCacheViewAuthenticPixels(cache_view,0,local_50,image->columns,1,exception)" identifier = (call_expression "GetCacheViewAuthenticPixels(cache_view,0,local_50,image->columns,1,exception)" identifier (argument_list "(cache_view,0,local_50,image->columns,1,exception)" ( identifier , number_literal , identifier , (field_expression "image->columns" identifier -> field_identifier) , number_literal , identifier )))) ;) (if_statement "if (pdVar10 == (Quantum *)0x0) {\nLAB_001b7832:\n          this->status = MagickFalse;\n        }\n        else {\n          sVar3 = image->columns;\n          if (0 < (int)sVar3) {\n            sVar4 = image->number_channels;\n            sVar16 = 0;\n            dVar7 = (double)DAT_0029f710;\n            do {\n              if (0 < (int)sVar4) {\n                pPVar5 = image->channel_map;\n                pdVar13 = pdVar10;\n                pPVar14 = pPVar5;\n                do {\n                  if (((pPVar5[pPVar14->channel].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                     && (dVar2 < *pdVar13)) {\n                    *pdVar13 = dVar7 - *pdVar13;\n                  }\n                  pPVar14 = pPVar14 + 1;\n                  pdVar13 = pdVar13 + 1;\n                } while (pPVar5 + sVar4 != pPVar14);\n              }\n              pdVar10 = pdVar10 + sVar4;\n              sVar16 = sVar16 + 1;\n            } while (sVar16 != sVar3);\n          }\n          MVar11 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar11 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            puVar6 = (uint *)this->progress;\n            uVar12 = *puVar6;\n            uVar15 = puVar6[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar6;\n              bVar17 = CONCAT44(uVar15,uVar12) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar6 = CONCAT44(uVar15 + (0xfffffffe < uVar12),uVar12 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar12 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar11 = SetImageProgress(image,"Solarize/Image",*this->progress,(ulonglong)image->rows)\n            ;\n            if (MVar11 == MagickFalse) goto LAB_001b7832;\n          }\n        }" if (parenthesized_expression "(pdVar10 == (Quantum *)0x0)" ( (binary_expression "pdVar10 == (Quantum *)0x0" identifier == (cast_expression "(Quantum *)0x0" ( (type_descriptor "Quantum *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_001b7832:\n          this->status = MagickFalse;\n        }" { (labeled_statement "LAB_001b7832:\n          this->status = MagickFalse;" statement_identifier : (expression_statement "this->status = MagickFalse;" (assignment_expression "this->status = MagickFalse" (field_expression "this->status" identifier -> field_identifier) = identifier) ;)) }) (else_clause "else {\n          sVar3 = image->columns;\n          if (0 < (int)sVar3) {\n            sVar4 = image->number_channels;\n            sVar16 = 0;\n            dVar7 = (double)DAT_0029f710;\n            do {\n              if (0 < (int)sVar4) {\n                pPVar5 = image->channel_map;\n                pdVar13 = pdVar10;\n                pPVar14 = pPVar5;\n                do {\n                  if (((pPVar5[pPVar14->channel].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                     && (dVar2 < *pdVar13)) {\n                    *pdVar13 = dVar7 - *pdVar13;\n                  }\n                  pPVar14 = pPVar14 + 1;\n                  pdVar13 = pdVar13 + 1;\n                } while (pPVar5 + sVar4 != pPVar14);\n              }\n              pdVar10 = pdVar10 + sVar4;\n              sVar16 = sVar16 + 1;\n            } while (sVar16 != sVar3);\n          }\n          MVar11 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar11 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            puVar6 = (uint *)this->progress;\n            uVar12 = *puVar6;\n            uVar15 = puVar6[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar6;\n              bVar17 = CONCAT44(uVar15,uVar12) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar6 = CONCAT44(uVar15 + (0xfffffffe < uVar12),uVar12 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar12 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar11 = SetImageProgress(image,"Solarize/Image",*this->progress,(ulonglong)image->rows)\n            ;\n            if (MVar11 == MagickFalse) goto LAB_001b7832;\n          }\n        }" else (compound_statement "{\n          sVar3 = image->columns;\n          if (0 < (int)sVar3) {\n            sVar4 = image->number_channels;\n            sVar16 = 0;\n            dVar7 = (double)DAT_0029f710;\n            do {\n              if (0 < (int)sVar4) {\n                pPVar5 = image->channel_map;\n                pdVar13 = pdVar10;\n                pPVar14 = pPVar5;\n                do {\n                  if (((pPVar5[pPVar14->channel].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                     && (dVar2 < *pdVar13)) {\n                    *pdVar13 = dVar7 - *pdVar13;\n                  }\n                  pPVar14 = pPVar14 + 1;\n                  pdVar13 = pdVar13 + 1;\n                } while (pPVar5 + sVar4 != pPVar14);\n              }\n              pdVar10 = pdVar10 + sVar4;\n              sVar16 = sVar16 + 1;\n            } while (sVar16 != sVar3);\n          }\n          MVar11 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar11 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            puVar6 = (uint *)this->progress;\n            uVar12 = *puVar6;\n            uVar15 = puVar6[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar6;\n              bVar17 = CONCAT44(uVar15,uVar12) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar6 = CONCAT44(uVar15 + (0xfffffffe < uVar12),uVar12 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar12 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar11 = SetImageProgress(image,"Solarize/Image",*this->progress,(ulonglong)image->rows)\n            ;\n            if (MVar11 == MagickFalse) goto LAB_001b7832;\n          }\n        }" { (expression_statement "sVar3 = image->columns;" (assignment_expression "sVar3 = image->columns" identifier = (field_expression "image->columns" identifier -> field_identifier)) ;) (if_statement "if (0 < (int)sVar3) {\n            sVar4 = image->number_channels;\n            sVar16 = 0;\n            dVar7 = (double)DAT_0029f710;\n            do {\n              if (0 < (int)sVar4) {\n                pPVar5 = image->channel_map;\n                pdVar13 = pdVar10;\n                pPVar14 = pPVar5;\n                do {\n                  if (((pPVar5[pPVar14->channel].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                     && (dVar2 < *pdVar13)) {\n                    *pdVar13 = dVar7 - *pdVar13;\n                  }\n                  pPVar14 = pPVar14 + 1;\n                  pdVar13 = pdVar13 + 1;\n                } while (pPVar5 + sVar4 != pPVar14);\n              }\n              pdVar10 = pdVar10 + sVar4;\n              sVar16 = sVar16 + 1;\n            } while (sVar16 != sVar3);\n          }" if (parenthesized_expression "(0 < (int)sVar3)" ( (binary_expression "0 < (int)sVar3" number_literal < (cast_expression "(int)sVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n            sVar4 = image->number_channels;\n            sVar16 = 0;\n            dVar7 = (double)DAT_0029f710;\n            do {\n              if (0 < (int)sVar4) {\n                pPVar5 = image->channel_map;\n                pdVar13 = pdVar10;\n                pPVar14 = pPVar5;\n                do {\n                  if (((pPVar5[pPVar14->channel].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                     && (dVar2 < *pdVar13)) {\n                    *pdVar13 = dVar7 - *pdVar13;\n                  }\n                  pPVar14 = pPVar14 + 1;\n                  pdVar13 = pdVar13 + 1;\n                } while (pPVar5 + sVar4 != pPVar14);\n              }\n              pdVar10 = pdVar10 + sVar4;\n              sVar16 = sVar16 + 1;\n            } while (sVar16 != sVar3);\n          }" { (expression_statement "sVar4 = image->number_channels;" (assignment_expression "sVar4 = image->number_channels" identifier = (field_expression "image->number_channels" identifier -> field_identifier)) ;) (expression_statement "sVar16 = 0;" (assignment_expression "sVar16 = 0" identifier = number_literal) ;) (expression_statement "dVar7 = (double)DAT_0029f710;" (assignment_expression "dVar7 = (double)DAT_0029f710" identifier = (cast_expression "(double)DAT_0029f710" ( (type_descriptor "double" primitive_type) ) identifier)) ;) (do_statement "do {\n              if (0 < (int)sVar4) {\n                pPVar5 = image->channel_map;\n                pdVar13 = pdVar10;\n                pPVar14 = pPVar5;\n                do {\n                  if (((pPVar5[pPVar14->channel].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                     && (dVar2 < *pdVar13)) {\n                    *pdVar13 = dVar7 - *pdVar13;\n                  }\n                  pPVar14 = pPVar14 + 1;\n                  pdVar13 = pdVar13 + 1;\n                } while (pPVar5 + sVar4 != pPVar14);\n              }\n              pdVar10 = pdVar10 + sVar4;\n              sVar16 = sVar16 + 1;\n            } while (sVar16 != sVar3);" do (compound_statement "{\n              if (0 < (int)sVar4) {\n                pPVar5 = image->channel_map;\n                pdVar13 = pdVar10;\n                pPVar14 = pPVar5;\n                do {\n                  if (((pPVar5[pPVar14->channel].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                     && (dVar2 < *pdVar13)) {\n                    *pdVar13 = dVar7 - *pdVar13;\n                  }\n                  pPVar14 = pPVar14 + 1;\n                  pdVar13 = pdVar13 + 1;\n                } while (pPVar5 + sVar4 != pPVar14);\n              }\n              pdVar10 = pdVar10 + sVar4;\n              sVar16 = sVar16 + 1;\n            }" { (if_statement "if (0 < (int)sVar4) {\n                pPVar5 = image->channel_map;\n                pdVar13 = pdVar10;\n                pPVar14 = pPVar5;\n                do {\n                  if (((pPVar5[pPVar14->channel].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                     && (dVar2 < *pdVar13)) {\n                    *pdVar13 = dVar7 - *pdVar13;\n                  }\n                  pPVar14 = pPVar14 + 1;\n                  pdVar13 = pdVar13 + 1;\n                } while (pPVar5 + sVar4 != pPVar14);\n              }" if (parenthesized_expression "(0 < (int)sVar4)" ( (binary_expression "0 < (int)sVar4" number_literal < (cast_expression "(int)sVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n                pPVar5 = image->channel_map;\n                pdVar13 = pdVar10;\n                pPVar14 = pPVar5;\n                do {\n                  if (((pPVar5[pPVar14->channel].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                     && (dVar2 < *pdVar13)) {\n                    *pdVar13 = dVar7 - *pdVar13;\n                  }\n                  pPVar14 = pPVar14 + 1;\n                  pdVar13 = pdVar13 + 1;\n                } while (pPVar5 + sVar4 != pPVar14);\n              }" { (expression_statement "pPVar5 = image->channel_map;" (assignment_expression "pPVar5 = image->channel_map" identifier = (field_expression "image->channel_map" identifier -> field_identifier)) ;) (expression_statement "pdVar13 = pdVar10;" (assignment_expression "pdVar13 = pdVar10" identifier = identifier) ;) (expression_statement "pPVar14 = pPVar5;" (assignment_expression "pPVar14 = pPVar5" identifier = identifier) ;) (do_statement "do {\n                  if (((pPVar5[pPVar14->channel].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                     && (dVar2 < *pdVar13)) {\n                    *pdVar13 = dVar7 - *pdVar13;\n                  }\n                  pPVar14 = pPVar14 + 1;\n                  pdVar13 = pdVar13 + 1;\n                } while (pPVar5 + sVar4 != pPVar14);" do (compound_statement "{\n                  if (((pPVar5[pPVar14->channel].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                     && (dVar2 < *pdVar13)) {\n                    *pdVar13 = dVar7 - *pdVar13;\n                  }\n                  pPVar14 = pPVar14 + 1;\n                  pdVar13 = pdVar13 + 1;\n                }" { (if_statement "if (((pPVar5[pPVar14->channel].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                     && (dVar2 < *pdVar13)) {\n                    *pdVar13 = dVar7 - *pdVar13;\n                  }" if (parenthesized_expression "(((pPVar5[pPVar14->channel].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                     && (dVar2 < *pdVar13))" ( (binary_expression "((pPVar5[pPVar14->channel].traits & UpdatePixelTrait) != UndefinedPixelTrait)\n                     && (dVar2 < *pdVar13)" (parenthesized_expression "((pPVar5[pPVar14->channel].traits & UpdatePixelTrait) != UndefinedPixelTrait)" ( (binary_expression "(pPVar5[pPVar14->channel].traits & UpdatePixelTrait) != UndefinedPixelTrait" (parenthesized_expression "(pPVar5[pPVar14->channel].traits & UpdatePixelTrait)" ( (binary_expression "pPVar5[pPVar14->channel].traits & UpdatePixelTrait" (field_expression "pPVar5[pPVar14->channel].traits" (subscript_expression "pPVar5[pPVar14->channel]" identifier [ (field_expression "pPVar14->channel" identifier -> field_identifier) ]) . field_identifier) & identifier) )) != identifier) )) && (parenthesized_expression "(dVar2 < *pdVar13)" ( (binary_expression "dVar2 < *pdVar13" identifier < (pointer_expression "*pdVar13" * identifier)) ))) )) (compound_statement "{\n                    *pdVar13 = dVar7 - *pdVar13;\n                  }" { (expression_statement "*pdVar13 = dVar7 - *pdVar13;" (assignment_expression "*pdVar13 = dVar7 - *pdVar13" (pointer_expression "*pdVar13" * identifier) = (binary_expression "dVar7 - *pdVar13" identifier - (pointer_expression "*pdVar13" * identifier))) ;) })) (expression_statement "pPVar14 = pPVar14 + 1;" (assignment_expression "pPVar14 = pPVar14 + 1" identifier = (binary_expression "pPVar14 + 1" identifier + number_literal)) ;) (expression_statement "pdVar13 = pdVar13 + 1;" (assignment_expression "pdVar13 = pdVar13 + 1" identifier = (binary_expression "pdVar13 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pPVar5 + sVar4 != pPVar14)" ( (binary_expression "pPVar5 + sVar4 != pPVar14" (binary_expression "pPVar5 + sVar4" identifier + identifier) != identifier) )) ;) })) (expression_statement "pdVar10 = pdVar10 + sVar4;" (assignment_expression "pdVar10 = pdVar10 + sVar4" identifier = (binary_expression "pdVar10 + sVar4" identifier + identifier)) ;) (expression_statement "sVar16 = sVar16 + 1;" (assignment_expression "sVar16 = sVar16 + 1" identifier = (binary_expression "sVar16 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(sVar16 != sVar3)" ( (binary_expression "sVar16 != sVar3" identifier != identifier) )) ;) })) (expression_statement "MVar11 = SyncCacheViewAuthenticPixels(cache_view,exception);" (assignment_expression "MVar11 = SyncCacheViewAuthenticPixels(cache_view,exception)" identifier = (call_expression "SyncCacheViewAuthenticPixels(cache_view,exception)" identifier (argument_list "(cache_view,exception)" ( identifier , identifier )))) ;) (if_statement "if (MVar11 == MagickFalse) {\n            this->status = MagickFalse;\n          }" if (parenthesized_expression "(MVar11 == MagickFalse)" ( (binary_expression "MVar11 == MagickFalse" identifier == identifier) )) (compound_statement "{\n            this->status = MagickFalse;\n          }" { (expression_statement "this->status = MagickFalse;" (assignment_expression "this->status = MagickFalse" (field_expression "this->status" identifier -> field_identifier) = identifier) ;) })) (if_statement "if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            puVar6 = (uint *)this->progress;\n            uVar12 = *puVar6;\n            uVar15 = puVar6[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar6;\n              bVar17 = CONCAT44(uVar15,uVar12) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar6 = CONCAT44(uVar15 + (0xfffffffe < uVar12),uVar12 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar12 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar11 = SetImageProgress(image,"Solarize/Image",*this->progress,(ulonglong)image->rows)\n            ;\n            if (MVar11 == MagickFalse) goto LAB_001b7832;\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            puVar6 = (uint *)this->progress;\n            uVar12 = *puVar6;\n            uVar15 = puVar6[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar6;\n              bVar17 = CONCAT44(uVar15,uVar12) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar6 = CONCAT44(uVar15 + (0xfffffffe < uVar12),uVar12 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar12 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar11 = SetImageProgress(image,"Solarize/Image",*this->progress,(ulonglong)image->rows)\n            ;\n            if (MVar11 == MagickFalse) goto LAB_001b7832;\n          }" { (expression_statement "puVar6 = (uint *)this->progress;" (assignment_expression "puVar6 = (uint *)this->progress" identifier = (cast_expression "(uint *)this->progress" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "this->progress" identifier -> field_identifier))) ;) (expression_statement "uVar12 = *puVar6;" (assignment_expression "uVar12 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "uVar15 = puVar6[1];" (assignment_expression "uVar15 = puVar6[1]" identifier = (subscript_expression "puVar6[1]" identifier [ number_literal ])) ;) (do_statement "do {\n              LOCK();\n              lVar1 = *(longlong *)puVar6;\n              bVar17 = CONCAT44(uVar15,uVar12) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar6 = CONCAT44(uVar15 + (0xfffffffe < uVar12),uVar12 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar12 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);" do (compound_statement "{\n              LOCK();\n              lVar1 = *(longlong *)puVar6;\n              bVar17 = CONCAT44(uVar15,uVar12) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar6 = CONCAT44(uVar15 + (0xfffffffe < uVar12),uVar12 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar12 = (uint)lVar1;\n              }\n              UNLOCK();\n            }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "lVar1 = *(longlong *)puVar6;" (assignment_expression "lVar1 = *(longlong *)puVar6" identifier = (pointer_expression "*(longlong *)puVar6" * (cast_expression "(longlong *)puVar6" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "bVar17 = CONCAT44(uVar15,uVar12) == lVar1;" (assignment_expression "bVar17 = CONCAT44(uVar15,uVar12) == lVar1" identifier = (binary_expression "CONCAT44(uVar15,uVar12) == lVar1" (call_expression "CONCAT44(uVar15,uVar12)" identifier (argument_list "(uVar15,uVar12)" ( identifier , identifier ))) == identifier)) ;) (if_statement "if (bVar17) {\n                *(longlong *)puVar6 = CONCAT44(uVar15 + (0xfffffffe < uVar12),uVar12 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar12 = (uint)lVar1;\n              }" if (parenthesized_expression "(bVar17)" ( identifier )) (compound_statement "{\n                *(longlong *)puVar6 = CONCAT44(uVar15 + (0xfffffffe < uVar12),uVar12 + 1);\n              }" { (expression_statement "*(longlong *)puVar6 = CONCAT44(uVar15 + (0xfffffffe < uVar12),uVar12 + 1);" (assignment_expression "*(longlong *)puVar6 = CONCAT44(uVar15 + (0xfffffffe < uVar12),uVar12 + 1)" (pointer_expression "*(longlong *)puVar6" * (cast_expression "(longlong *)puVar6" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (call_expression "CONCAT44(uVar15 + (0xfffffffe < uVar12),uVar12 + 1)" identifier (argument_list "(uVar15 + (0xfffffffe < uVar12),uVar12 + 1)" ( (binary_expression "uVar15 + (0xfffffffe < uVar12)" identifier + (parenthesized_expression "(0xfffffffe < uVar12)" ( (binary_expression "0xfffffffe < uVar12" number_literal < identifier) ))) , (binary_expression "uVar12 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar12 = (uint)lVar1;\n              }" else (compound_statement "{\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar12 = (uint)lVar1;\n              }" { (expression_statement "uVar15 = (uint)((ulonglong)lVar1 >> 0x20);" (assignment_expression "uVar15 = (uint)((ulonglong)lVar1 >> 0x20)" identifier = (call_expression "(uint)((ulonglong)lVar1 >> 0x20)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)lVar1 >> 0x20)" ( (binary_expression "(ulonglong)lVar1 >> 0x20" (cast_expression "(ulonglong)lVar1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar12 = (uint)lVar1;" (assignment_expression "uVar12 = (uint)lVar1" identifier = (cast_expression "(uint)lVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) }))) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }) while (parenthesized_expression "(!bVar17)" ( (unary_expression "!bVar17" ! identifier) )) ;) (expression_statement "MVar11 = SetImageProgress(image,"Solarize/Image",*this->progress,(ulonglong)image->rows)\n            ;" (assignment_expression "MVar11 = SetImageProgress(image,"Solarize/Image",*this->progress,(ulonglong)image->rows)" identifier = (call_expression "SetImageProgress(image,"Solarize/Image",*this->progress,(ulonglong)image->rows)" identifier (argument_list "(image,"Solarize/Image",*this->progress,(ulonglong)image->rows)" ( identifier , (string_literal ""Solarize/Image"" " string_content ") , (pointer_expression "*this->progress" * (field_expression "this->progress" identifier -> field_identifier)) , (cast_expression "(ulonglong)image->rows" ( (type_descriptor "ulonglong" type_identifier) ) (field_expression "image->rows" identifier -> field_identifier)) )))) ;) (if_statement "if (MVar11 == MagickFalse) goto LAB_001b7832;" if (parenthesized_expression "(MVar11 == MagickFalse)" ( (binary_expression "MVar11 == MagickFalse" identifier == identifier) )) (goto_statement "goto LAB_001b7832;" goto statement_identifier ;)) })) }))) })) (expression_statement "local_50 = local_50 + 1;" (assignment_expression "local_50 = local_50 + 1" identifier = (binary_expression "local_50 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar9 != local_50)" ( (binary_expression "iVar9 != local_50" identifier != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001b7640(double *param_1)\n\n{\n  longlong lVar1;\n  double dVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int *piVar7;\n  uint *puVar8;\n  double dVar9;\n  int iVar10;\n  int iVar11;\n  double *pdVar12;\n  uint uVar13;\n  double *pdVar14;\n  int *piVar15;\n  uint uVar16;\n  int iVar17;\n  bool bVar18;\n  int local_50;\n  \n  iVar3 = *(int *)(param_1 + 1);\n  local_50 = omp_get_num_threads();\n  iVar10 = omp_get_thread_num();\n  iVar11 = *(int *)(iVar3 + 0x1c) / local_50;\n  local_50 = *(int *)(iVar3 + 0x1c) % local_50;\n  if (iVar10 < local_50) {\n    iVar11 = iVar11 + 1;\n    local_50 = 0;\n  }\n  local_50 = iVar10 * iVar11 + local_50;\n  iVar11 = iVar11 + local_50;\n  if (local_50 < iVar11) {\n    uVar4 = *(undefined4 *)(param_1 + 2);\n    uVar5 = *(undefined4 *)((int)param_1 + 0xc);\n    dVar2 = *param_1;\n    do {\n      if (*(int *)((int)param_1 + 0x14) != 0) {\n        pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);\n        if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    } while (iVar11 != local_50);\n  }\n  return;\n}\n\n" (function_definition "void FUN_001b7640(double *param_1)\n\n{\n  longlong lVar1;\n  double dVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int *piVar7;\n  uint *puVar8;\n  double dVar9;\n  int iVar10;\n  int iVar11;\n  double *pdVar12;\n  uint uVar13;\n  double *pdVar14;\n  int *piVar15;\n  uint uVar16;\n  int iVar17;\n  bool bVar18;\n  int local_50;\n  \n  iVar3 = *(int *)(param_1 + 1);\n  local_50 = omp_get_num_threads();\n  iVar10 = omp_get_thread_num();\n  iVar11 = *(int *)(iVar3 + 0x1c) / local_50;\n  local_50 = *(int *)(iVar3 + 0x1c) % local_50;\n  if (iVar10 < local_50) {\n    iVar11 = iVar11 + 1;\n    local_50 = 0;\n  }\n  local_50 = iVar10 * iVar11 + local_50;\n  iVar11 = iVar11 + local_50;\n  if (local_50 < iVar11) {\n    uVar4 = *(undefined4 *)(param_1 + 2);\n    uVar5 = *(undefined4 *)((int)param_1 + 0xc);\n    dVar2 = *param_1;\n    do {\n      if (*(int *)((int)param_1 + 0x14) != 0) {\n        pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);\n        if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    } while (iVar11 != local_50);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001b7640(double *param_1)" identifier (parameter_list "(double *param_1)" ( (parameter_declaration "double *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  longlong lVar1;\n  double dVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int *piVar7;\n  uint *puVar8;\n  double dVar9;\n  int iVar10;\n  int iVar11;\n  double *pdVar12;\n  uint uVar13;\n  double *pdVar14;\n  int *piVar15;\n  uint uVar16;\n  int iVar17;\n  bool bVar18;\n  int local_50;\n  \n  iVar3 = *(int *)(param_1 + 1);\n  local_50 = omp_get_num_threads();\n  iVar10 = omp_get_thread_num();\n  iVar11 = *(int *)(iVar3 + 0x1c) / local_50;\n  local_50 = *(int *)(iVar3 + 0x1c) % local_50;\n  if (iVar10 < local_50) {\n    iVar11 = iVar11 + 1;\n    local_50 = 0;\n  }\n  local_50 = iVar10 * iVar11 + local_50;\n  iVar11 = iVar11 + local_50;\n  if (local_50 < iVar11) {\n    uVar4 = *(undefined4 *)(param_1 + 2);\n    uVar5 = *(undefined4 *)((int)param_1 + 0xc);\n    dVar2 = *param_1;\n    do {\n      if (*(int *)((int)param_1 + 0x14) != 0) {\n        pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);\n        if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    } while (iVar11 != local_50);\n  }\n  return;\n}" { (declaration "longlong lVar1;" type_identifier identifier ;) (declaration "double dVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "uint *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "double dVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "double *pdVar12;" primitive_type (pointer_declarator "*pdVar12" * identifier) ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "double *pdVar14;" primitive_type (pointer_declarator "*pdVar14" * identifier) ;) (declaration "int *piVar15;" primitive_type (pointer_declarator "*piVar15" * identifier) ;) (declaration "uint uVar16;" type_identifier identifier ;) (declaration "int iVar17;" primitive_type identifier ;) (declaration "bool bVar18;" primitive_type identifier ;) (declaration "int local_50;" primitive_type identifier ;) (expression_statement "iVar3 = *(int *)(param_1 + 1);" (assignment_expression "iVar3 = *(int *)(param_1 + 1)" identifier = (pointer_expression "*(int *)(param_1 + 1)" * (cast_expression "(int *)(param_1 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))))) ;) (expression_statement "local_50 = omp_get_num_threads();" (assignment_expression "local_50 = omp_get_num_threads()" identifier = (call_expression "omp_get_num_threads()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar10 = omp_get_thread_num();" (assignment_expression "iVar10 = omp_get_thread_num()" identifier = (call_expression "omp_get_thread_num()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar11 = *(int *)(iVar3 + 0x1c) / local_50;" (assignment_expression "iVar11 = *(int *)(iVar3 + 0x1c) / local_50" identifier = (binary_expression "*(int *)(iVar3 + 0x1c) / local_50" (pointer_expression "*(int *)(iVar3 + 0x1c)" * (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) )))) / identifier)) ;) (expression_statement "local_50 = *(int *)(iVar3 + 0x1c) % local_50;" (assignment_expression "local_50 = *(int *)(iVar3 + 0x1c) % local_50" identifier = (binary_expression "*(int *)(iVar3 + 0x1c) % local_50" (pointer_expression "*(int *)(iVar3 + 0x1c)" * (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) )))) % identifier)) ;) (if_statement "if (iVar10 < local_50) {\n    iVar11 = iVar11 + 1;\n    local_50 = 0;\n  }" if (parenthesized_expression "(iVar10 < local_50)" ( (binary_expression "iVar10 < local_50" identifier < identifier) )) (compound_statement "{\n    iVar11 = iVar11 + 1;\n    local_50 = 0;\n  }" { (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" identifier = number_literal) ;) })) (expression_statement "local_50 = iVar10 * iVar11 + local_50;" (assignment_expression "local_50 = iVar10 * iVar11 + local_50" identifier = (binary_expression "iVar10 * iVar11 + local_50" (binary_expression "iVar10 * iVar11" identifier * identifier) + identifier)) ;) (expression_statement "iVar11 = iVar11 + local_50;" (assignment_expression "iVar11 = iVar11 + local_50" identifier = (binary_expression "iVar11 + local_50" identifier + identifier)) ;) (if_statement "if (local_50 < iVar11) {\n    uVar4 = *(undefined4 *)(param_1 + 2);\n    uVar5 = *(undefined4 *)((int)param_1 + 0xc);\n    dVar2 = *param_1;\n    do {\n      if (*(int *)((int)param_1 + 0x14) != 0) {\n        pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);\n        if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    } while (iVar11 != local_50);\n  }" if (parenthesized_expression "(local_50 < iVar11)" ( (binary_expression "local_50 < iVar11" identifier < identifier) )) (compound_statement "{\n    uVar4 = *(undefined4 *)(param_1 + 2);\n    uVar5 = *(undefined4 *)((int)param_1 + 0xc);\n    dVar2 = *param_1;\n    do {\n      if (*(int *)((int)param_1 + 0x14) != 0) {\n        pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);\n        if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    } while (iVar11 != local_50);\n  }" { (expression_statement "uVar4 = *(undefined4 *)(param_1 + 2);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 2)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 2)" * (cast_expression "(undefined4 *)(param_1 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(undefined4 *)((int)param_1 + 0xc);" (assignment_expression "uVar5 = *(undefined4 *)((int)param_1 + 0xc)" identifier = (pointer_expression "*(undefined4 *)((int)param_1 + 0xc)" * (cast_expression "(undefined4 *)((int)param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0xc)" ( (binary_expression "(int)param_1 + 0xc" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "dVar2 = *param_1;" (assignment_expression "dVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (do_statement "do {\n      if (*(int *)((int)param_1 + 0x14) != 0) {\n        pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);\n        if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    } while (iVar11 != local_50);" do (compound_statement "{\n      if (*(int *)((int)param_1 + 0x14) != 0) {\n        pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);\n        if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    }" { (if_statement "if (*(int *)((int)param_1 + 0x14) != 0) {\n        pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);\n        if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }\n      }" if (parenthesized_expression "(*(int *)((int)param_1 + 0x14) != 0)" ( (binary_expression "*(int *)((int)param_1 + 0x14) != 0" (pointer_expression "*(int *)((int)param_1 + 0x14)" * (cast_expression "(int *)((int)param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x14)" ( (binary_expression "(int)param_1 + 0x14" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n        pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);\n        if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }\n      }" { (expression_statement "pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);" (assignment_expression "pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5)" identifier = (cast_expression "(double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5)" identifier (argument_list "(uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5)" ( identifier , number_literal , identifier , (pointer_expression "*(undefined4 *)(iVar3 + 0x18)" * (cast_expression "(undefined4 *)(iVar3 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) )))) , number_literal , identifier ))))) ;) (if_statement "if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }" if (parenthesized_expression "(pdVar12 == (double *)0x0)" ( (binary_expression "pdVar12 == (double *)0x0" identifier == (cast_expression "(double *)0x0" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }" { (labeled_statement "LAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;" statement_identifier : (expression_statement "*(undefined4 *)((int)param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + 0x14)" * (cast_expression "(undefined4 *)((int)param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x14)" ( (binary_expression "(int)param_1 + 0x14" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;)) }) (else_clause "else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }" else (compound_statement "{\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }" { (expression_statement "iVar10 = *(int *)(iVar3 + 0x18);" (assignment_expression "iVar10 = *(int *)(iVar3 + 0x18)" identifier = (pointer_expression "*(int *)(iVar3 + 0x18)" * (cast_expression "(int *)(iVar3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }" if (parenthesized_expression "(0 < iVar10)" ( (binary_expression "0 < iVar10" number_literal < identifier) )) (compound_statement "{\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }" { (expression_statement "iVar6 = *(int *)(iVar3 + 0x298);" (assignment_expression "iVar6 = *(int *)(iVar3 + 0x298)" identifier = (pointer_expression "*(int *)(iVar3 + 0x298)" * (cast_expression "(int *)(iVar3 + 0x298)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x298)" ( (binary_expression "iVar3 + 0x298" identifier + number_literal) ))))) ;) (expression_statement "iVar17 = 0;" (assignment_expression "iVar17 = 0" identifier = number_literal) ;) (expression_statement "dVar9 = (double)DAT_0029f710;" (assignment_expression "dVar9 = (double)DAT_0029f710" identifier = (cast_expression "(double)DAT_0029f710" ( (type_descriptor "double" primitive_type) ) identifier)) ;) (do_statement "do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);" do (compound_statement "{\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            }" { (if_statement "if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }" if (parenthesized_expression "(0 < iVar6)" ( (binary_expression "0 < iVar6" number_literal < identifier) )) (compound_statement "{\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }" { (expression_statement "piVar7 = *(int **)(iVar3 + 0x2a8);" (assignment_expression "piVar7 = *(int **)(iVar3 + 0x2a8)" identifier = (pointer_expression "*(int **)(iVar3 + 0x2a8)" * (cast_expression "(int **)(iVar3 + 0x2a8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x2a8)" ( (binary_expression "iVar3 + 0x2a8" identifier + number_literal) ))))) ;) (expression_statement "pdVar14 = pdVar12;" (assignment_expression "pdVar14 = pdVar12" identifier = identifier) ;) (expression_statement "piVar15 = piVar7;" (assignment_expression "piVar15 = piVar7" identifier = identifier) ;) (do_statement "do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);" do (compound_statement "{\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                }" { (if_statement "if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }" if (parenthesized_expression "(((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14))" ( (binary_expression "((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)" (parenthesized_expression "((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0)" ( (binary_expression "(*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0" (parenthesized_expression "(*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2)" ( (binary_expression "*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2" (pointer_expression "*(byte *)(piVar7 + *piVar15 * 3 + 1)" * (cast_expression "(byte *)(piVar7 + *piVar15 * 3 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar7 + *piVar15 * 3 + 1)" ( (binary_expression "piVar7 + *piVar15 * 3 + 1" (binary_expression "piVar7 + *piVar15 * 3" identifier + (binary_expression "*piVar15 * 3" (pointer_expression "*piVar15" * identifier) * number_literal)) + number_literal) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "(dVar2 < *pdVar14)" ( (binary_expression "dVar2 < *pdVar14" identifier < (pointer_expression "*pdVar14" * identifier)) ))) )) (compound_statement "{\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }" { (expression_statement "*pdVar14 = dVar9 - *pdVar14;" (assignment_expression "*pdVar14 = dVar9 - *pdVar14" (pointer_expression "*pdVar14" * identifier) = (binary_expression "dVar9 - *pdVar14" identifier - (pointer_expression "*pdVar14" * identifier))) ;) })) (expression_statement "piVar15 = piVar15 + 3;" (assignment_expression "piVar15 = piVar15 + 3" identifier = (binary_expression "piVar15 + 3" identifier + number_literal)) ;) (expression_statement "pdVar14 = pdVar14 + 1;" (assignment_expression "pdVar14 = pdVar14 + 1" identifier = (binary_expression "pdVar14 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar7 + iVar6 * 3 != piVar15)" ( (binary_expression "piVar7 + iVar6 * 3 != piVar15" (binary_expression "piVar7 + iVar6 * 3" identifier + (binary_expression "iVar6 * 3" identifier * number_literal)) != identifier) )) ;) })) (expression_statement "pdVar12 = pdVar12 + iVar6;" (assignment_expression "pdVar12 = pdVar12 + iVar6" identifier = (binary_expression "pdVar12 + iVar6" identifier + identifier)) ;) (expression_statement "iVar17 = iVar17 + 1;" (assignment_expression "iVar17 = iVar17 + 1" identifier = (binary_expression "iVar17 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar17 != iVar10)" ( (binary_expression "iVar17 != iVar10" identifier != identifier) )) ;) })) (expression_statement "iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);" (assignment_expression "iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5)" identifier = (call_expression "SyncCacheViewAuthenticPixels(uVar4,uVar5)" identifier (argument_list "(uVar4,uVar5)" ( identifier , identifier )))) ;) (if_statement "if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }" { (expression_statement "*(undefined4 *)((int)param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + 0x14)" * (cast_expression "(undefined4 *)((int)param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x14)" ( (binary_expression "(int)param_1 + 0x14" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) (if_statement "if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }" if (parenthesized_expression "(*(int *)(iVar3 + 0x300) != 0)" ( (binary_expression "*(int *)(iVar3 + 0x300) != 0" (pointer_expression "*(int *)(iVar3 + 0x300)" * (cast_expression "(int *)(iVar3 + 0x300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x300)" ( (binary_expression "iVar3 + 0x300" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }" { (expression_statement "puVar8 = *(uint **)(param_1 + 3);" (assignment_expression "puVar8 = *(uint **)(param_1 + 3)" identifier = (pointer_expression "*(uint **)(param_1 + 3)" * (cast_expression "(uint **)(param_1 + 3)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))))) ;) (expression_statement "uVar13 = *puVar8;" (assignment_expression "uVar13 = *puVar8" identifier = (pointer_expression "*puVar8" * identifier)) ;) (expression_statement "uVar16 = puVar8[1];" (assignment_expression "uVar16 = puVar8[1]" identifier = (subscript_expression "puVar8[1]" identifier [ number_literal ])) ;) (do_statement "do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);" do (compound_statement "{\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "lVar1 = *(longlong *)puVar8;" (assignment_expression "lVar1 = *(longlong *)puVar8" identifier = (pointer_expression "*(longlong *)puVar8" * (cast_expression "(longlong *)puVar8" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "bVar18 = CONCAT44(uVar16,uVar13) == lVar1;" (assignment_expression "bVar18 = CONCAT44(uVar16,uVar13) == lVar1" identifier = (binary_expression "CONCAT44(uVar16,uVar13) == lVar1" (call_expression "CONCAT44(uVar16,uVar13)" identifier (argument_list "(uVar16,uVar13)" ( identifier , identifier ))) == identifier)) ;) (if_statement "if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }" if (parenthesized_expression "(bVar18)" ( identifier )) (compound_statement "{\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }" { (expression_statement "*(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);" (assignment_expression "*(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1)" (pointer_expression "*(longlong *)puVar8" * (cast_expression "(longlong *)puVar8" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (call_expression "CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1)" identifier (argument_list "(uVar16 + (0xfffffffe < uVar13),uVar13 + 1)" ( (binary_expression "uVar16 + (0xfffffffe < uVar13)" identifier + (parenthesized_expression "(0xfffffffe < uVar13)" ( (binary_expression "0xfffffffe < uVar13" number_literal < identifier) ))) , (binary_expression "uVar13 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }" else (compound_statement "{\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }" { (expression_statement "uVar16 = (uint)((ulonglong)lVar1 >> 0x20);" (assignment_expression "uVar16 = (uint)((ulonglong)lVar1 >> 0x20)" identifier = (call_expression "(uint)((ulonglong)lVar1 >> 0x20)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)lVar1 >> 0x20)" ( (binary_expression "(ulonglong)lVar1 >> 0x20" (cast_expression "(ulonglong)lVar1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar13 = (uint)lVar1;" (assignment_expression "uVar13 = (uint)lVar1" identifier = (cast_expression "(uint)lVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) }))) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }) while (parenthesized_expression "(!bVar18)" ( (unary_expression "!bVar18" ! identifier) )) ;) (expression_statement "iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);" (assignment_expression "iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0)" identifier = (call_expression "SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0)" identifier (argument_list "(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0)" ( identifier , (string_literal ""Solarize/Image"" " string_content ") , (pointer_expression "**(undefined4 **)(param_1 + 3)" * (pointer_expression "*(undefined4 **)(param_1 + 3)" * (cast_expression "(undefined4 **)(param_1 + 3)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))))) , (subscript_expression "(*(undefined4 **)(param_1 + 3))[1]" (parenthesized_expression "(*(undefined4 **)(param_1 + 3))" ( (pointer_expression "*(undefined4 **)(param_1 + 3)" * (cast_expression "(undefined4 **)(param_1 + 3)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) )))) )) [ number_literal ]) , (pointer_expression "*(undefined4 *)(iVar3 + 0x1c)" * (cast_expression "(undefined4 *)(iVar3 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) )))) , number_literal )))) ;) (if_statement "if (iVar10 == 0) goto LAB_001b7832;" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (goto_statement "goto LAB_001b7832;" goto statement_identifier ;)) })) }))) })) (expression_statement "local_50 = local_50 + 1;" (assignment_expression "local_50 = local_50 + 1" identifier = (binary_expression "local_50 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar11 != local_50)" ( (binary_expression "iVar11 != local_50" identifier != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) / IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) % 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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (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 == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (pointer_expression * IDENT) * LIT)) + LIT) )))) & LIT) )) != LIT) )) && (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT - (pointer_expression * IDENT))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) != IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (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 (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = 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 * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (call_expression IDENT (argument_list ( IDENT , IDENT ))) == IDENT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (call_expression IDENT (argument_list ( (binary_expression IDENT + (parenthesized_expression ( (binary_expression LIT < IDENT) ))) , (binary_expression IDENT + LIT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }) while (parenthesized_expression ( (unary_expression ! IDENT) )) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (subscript_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) [ LIT ]) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) }))) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (return_statement return ;) })))
(function_definition "void FUN_001b7640(double *param_1)\n\n{\n  longlong lVar1;\n  double dVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int *piVar7;\n  uint *puVar8;\n  double dVar9;\n  int iVar10;\n  int iVar11;\n  double *pdVar12;\n  uint uVar13;\n  double *pdVar14;\n  int *piVar15;\n  uint uVar16;\n  int iVar17;\n  bool bVar18;\n  int local_50;\n  \n  iVar3 = *(int *)(param_1 + 1);\n  local_50 = omp_get_num_threads();\n  iVar10 = omp_get_thread_num();\n  iVar11 = *(int *)(iVar3 + 0x1c) / local_50;\n  local_50 = *(int *)(iVar3 + 0x1c) % local_50;\n  if (iVar10 < local_50) {\n    iVar11 = iVar11 + 1;\n    local_50 = 0;\n  }\n  local_50 = iVar10 * iVar11 + local_50;\n  iVar11 = iVar11 + local_50;\n  if (local_50 < iVar11) {\n    uVar4 = *(undefined4 *)(param_1 + 2);\n    uVar5 = *(undefined4 *)((int)param_1 + 0xc);\n    dVar2 = *param_1;\n    do {\n      if (*(int *)((int)param_1 + 0x14) != 0) {\n        pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);\n        if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    } while (iVar11 != local_50);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001b7640(double *param_1)" (identifier "FUN_001b7640") (parameter_list "(double *param_1)" (( "(") (parameter_declaration "double *param_1" (primitive_type "double") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  longlong lVar1;\n  double dVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int *piVar7;\n  uint *puVar8;\n  double dVar9;\n  int iVar10;\n  int iVar11;\n  double *pdVar12;\n  uint uVar13;\n  double *pdVar14;\n  int *piVar15;\n  uint uVar16;\n  int iVar17;\n  bool bVar18;\n  int local_50;\n  \n  iVar3 = *(int *)(param_1 + 1);\n  local_50 = omp_get_num_threads();\n  iVar10 = omp_get_thread_num();\n  iVar11 = *(int *)(iVar3 + 0x1c) / local_50;\n  local_50 = *(int *)(iVar3 + 0x1c) % local_50;\n  if (iVar10 < local_50) {\n    iVar11 = iVar11 + 1;\n    local_50 = 0;\n  }\n  local_50 = iVar10 * iVar11 + local_50;\n  iVar11 = iVar11 + local_50;\n  if (local_50 < iVar11) {\n    uVar4 = *(undefined4 *)(param_1 + 2);\n    uVar5 = *(undefined4 *)((int)param_1 + 0xc);\n    dVar2 = *param_1;\n    do {\n      if (*(int *)((int)param_1 + 0x14) != 0) {\n        pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);\n        if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    } while (iVar11 != local_50);\n  }\n  return;\n}" ({ "{") (declaration "longlong lVar1;" (type_identifier "longlong") (identifier "lVar1") (; ";")) (declaration "double dVar2;" (primitive_type "double") (identifier "dVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "uint *puVar8;" (type_identifier "uint") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "double dVar9;" (primitive_type "double") (identifier "dVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (declaration "double *pdVar12;" (primitive_type "double") (pointer_declarator "*pdVar12" (* "*") (identifier "pdVar12")) (; ";")) (declaration "uint uVar13;" (type_identifier "uint") (identifier "uVar13") (; ";")) (declaration "double *pdVar14;" (primitive_type "double") (pointer_declarator "*pdVar14" (* "*") (identifier "pdVar14")) (; ";")) (declaration "int *piVar15;" (primitive_type "int") (pointer_declarator "*piVar15" (* "*") (identifier "piVar15")) (; ";")) (declaration "uint uVar16;" (type_identifier "uint") (identifier "uVar16") (; ";")) (declaration "int iVar17;" (primitive_type "int") (identifier "iVar17") (; ";")) (declaration "bool bVar18;" (primitive_type "bool") (identifier "bVar18") (; ";")) (declaration "int local_50;" (primitive_type "int") (identifier "local_50") (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 1);" (assignment_expression "iVar3 = *(int *)(param_1 + 1)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 1)" (* "*") (cast_expression "(int *)(param_1 + 1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "local_50 = omp_get_num_threads();" (assignment_expression "local_50 = omp_get_num_threads()" (identifier "local_50") (= "=") (call_expression "omp_get_num_threads()" (identifier "omp_get_num_threads") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar10 = omp_get_thread_num();" (assignment_expression "iVar10 = omp_get_thread_num()" (identifier "iVar10") (= "=") (call_expression "omp_get_thread_num()" (identifier "omp_get_thread_num") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar11 = *(int *)(iVar3 + 0x1c) / local_50;" (assignment_expression "iVar11 = *(int *)(iVar3 + 0x1c) / local_50" (identifier "iVar11") (= "=") (binary_expression "*(int *)(iVar3 + 0x1c) / local_50" (pointer_expression "*(int *)(iVar3 + 0x1c)" (* "*") (cast_expression "(int *)(iVar3 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1c)" (( "(") (binary_expression "iVar3 + 0x1c" (identifier "iVar3") (+ "+") (number_literal "0x1c")) () ")")))) (/ "/") (identifier "local_50"))) (; ";")) (expression_statement "local_50 = *(int *)(iVar3 + 0x1c) % local_50;" (assignment_expression "local_50 = *(int *)(iVar3 + 0x1c) % local_50" (identifier "local_50") (= "=") (binary_expression "*(int *)(iVar3 + 0x1c) % local_50" (pointer_expression "*(int *)(iVar3 + 0x1c)" (* "*") (cast_expression "(int *)(iVar3 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1c)" (( "(") (binary_expression "iVar3 + 0x1c" (identifier "iVar3") (+ "+") (number_literal "0x1c")) () ")")))) (% "%") (identifier "local_50"))) (; ";")) (if_statement "if (iVar10 < local_50) {\n    iVar11 = iVar11 + 1;\n    local_50 = 0;\n  }" (if "if") (parenthesized_expression "(iVar10 < local_50)" (( "(") (binary_expression "iVar10 < local_50" (identifier "iVar10") (< "<") (identifier "local_50")) () ")")) (compound_statement "{\n    iVar11 = iVar11 + 1;\n    local_50 = 0;\n  }" ({ "{") (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" (identifier "iVar11") (= "=") (binary_expression "iVar11 + 1" (identifier "iVar11") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" (identifier "local_50") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "local_50 = iVar10 * iVar11 + local_50;" (assignment_expression "local_50 = iVar10 * iVar11 + local_50" (identifier "local_50") (= "=") (binary_expression "iVar10 * iVar11 + local_50" (binary_expression "iVar10 * iVar11" (identifier "iVar10") (* "*") (identifier "iVar11")) (+ "+") (identifier "local_50"))) (; ";")) (expression_statement "iVar11 = iVar11 + local_50;" (assignment_expression "iVar11 = iVar11 + local_50" (identifier "iVar11") (= "=") (binary_expression "iVar11 + local_50" (identifier "iVar11") (+ "+") (identifier "local_50"))) (; ";")) (if_statement "if (local_50 < iVar11) {\n    uVar4 = *(undefined4 *)(param_1 + 2);\n    uVar5 = *(undefined4 *)((int)param_1 + 0xc);\n    dVar2 = *param_1;\n    do {\n      if (*(int *)((int)param_1 + 0x14) != 0) {\n        pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);\n        if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    } while (iVar11 != local_50);\n  }" (if "if") (parenthesized_expression "(local_50 < iVar11)" (( "(") (binary_expression "local_50 < iVar11" (identifier "local_50") (< "<") (identifier "iVar11")) () ")")) (compound_statement "{\n    uVar4 = *(undefined4 *)(param_1 + 2);\n    uVar5 = *(undefined4 *)((int)param_1 + 0xc);\n    dVar2 = *param_1;\n    do {\n      if (*(int *)((int)param_1 + 0x14) != 0) {\n        pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);\n        if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    } while (iVar11 != local_50);\n  }" ({ "{") (expression_statement "uVar4 = *(undefined4 *)(param_1 + 2);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 2)" (identifier "uVar4") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 2)" (* "*") (cast_expression "(undefined4 *)(param_1 + 2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "uVar5 = *(undefined4 *)((int)param_1 + 0xc);" (assignment_expression "uVar5 = *(undefined4 *)((int)param_1 + 0xc)" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)((int)param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)((int)param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0xc)" (( "(") (binary_expression "(int)param_1 + 0xc" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "dVar2 = *param_1;" (assignment_expression "dVar2 = *param_1" (identifier "dVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (do_statement "do {\n      if (*(int *)((int)param_1 + 0x14) != 0) {\n        pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);\n        if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    } while (iVar11 != local_50);" (do "do") (compound_statement "{\n      if (*(int *)((int)param_1 + 0x14) != 0) {\n        pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);\n        if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }\n      }\n      local_50 = local_50 + 1;\n    }" ({ "{") (if_statement "if (*(int *)((int)param_1 + 0x14) != 0) {\n        pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);\n        if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }\n      }" (if "if") (parenthesized_expression "(*(int *)((int)param_1 + 0x14) != 0)" (( "(") (binary_expression "*(int *)((int)param_1 + 0x14) != 0" (pointer_expression "*(int *)((int)param_1 + 0x14)" (* "*") (cast_expression "(int *)((int)param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x14)" (( "(") (binary_expression "(int)param_1 + 0x14" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x14")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);\n        if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }\n      }" ({ "{") (expression_statement "pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);" (assignment_expression "pdVar12 = (double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5)" (identifier "pdVar12") (= "=") (cast_expression "(double *)\n                  GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "GetCacheViewAuthenticPixels\n                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5)" (identifier "GetCacheViewAuthenticPixels") (argument_list "(uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5)" (( "(") (identifier "uVar4") (, ",") (number_literal "0") (, ",") (identifier "local_50") (, ",") (pointer_expression "*(undefined4 *)(iVar3 + 0x18)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x18)" (( "(") (binary_expression "iVar3 + 0x18" (identifier "iVar3") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (number_literal "1") (, ",") (identifier "uVar5") () ")"))))) (; ";")) (if_statement "if (pdVar12 == (double *)0x0) {\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }\n        else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }" (if "if") (parenthesized_expression "(pdVar12 == (double *)0x0)" (( "(") (binary_expression "pdVar12 == (double *)0x0" (identifier "pdVar12") (== "==") (cast_expression "(double *)0x0" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nLAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;\n        }" ({ "{") (labeled_statement "LAB_001b7832:\n          *(undefined4 *)((int)param_1 + 0x14) = 0;" (statement_identifier "LAB_001b7832") (: ":") (expression_statement "*(undefined4 *)((int)param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)((int)param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x14)" (( "(") (binary_expression "(int)param_1 + 0x14" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";"))) (} "}")) (else_clause "else {\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }" (else "else") (compound_statement "{\n          iVar10 = *(int *)(iVar3 + 0x18);\n          if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }\n          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);\n          if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }\n          if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }\n        }" ({ "{") (expression_statement "iVar10 = *(int *)(iVar3 + 0x18);" (assignment_expression "iVar10 = *(int *)(iVar3 + 0x18)" (identifier "iVar10") (= "=") (pointer_expression "*(int *)(iVar3 + 0x18)" (* "*") (cast_expression "(int *)(iVar3 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x18)" (( "(") (binary_expression "iVar3 + 0x18" (identifier "iVar3") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (if_statement "if (0 < iVar10) {\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }" (if "if") (parenthesized_expression "(0 < iVar10)" (( "(") (binary_expression "0 < iVar10" (number_literal "0") (< "<") (identifier "iVar10")) () ")")) (compound_statement "{\n            iVar6 = *(int *)(iVar3 + 0x298);\n            iVar17 = 0;\n            dVar9 = (double)DAT_0029f710;\n            do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);\n          }" ({ "{") (expression_statement "iVar6 = *(int *)(iVar3 + 0x298);" (assignment_expression "iVar6 = *(int *)(iVar3 + 0x298)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(iVar3 + 0x298)" (* "*") (cast_expression "(int *)(iVar3 + 0x298)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x298)" (( "(") (binary_expression "iVar3 + 0x298" (identifier "iVar3") (+ "+") (number_literal "0x298")) () ")"))))) (; ";")) (expression_statement "iVar17 = 0;" (assignment_expression "iVar17 = 0" (identifier "iVar17") (= "=") (number_literal "0")) (; ";")) (expression_statement "dVar9 = (double)DAT_0029f710;" (assignment_expression "dVar9 = (double)DAT_0029f710" (identifier "dVar9") (= "=") (cast_expression "(double)DAT_0029f710" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "DAT_0029f710"))) (; ";")) (do_statement "do {\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            } while (iVar17 != iVar10);" (do "do") (compound_statement "{\n              if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }\n              pdVar12 = pdVar12 + iVar6;\n              iVar17 = iVar17 + 1;\n            }" ({ "{") (if_statement "if (0 < iVar6) {\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }" (if "if") (parenthesized_expression "(0 < iVar6)" (( "(") (binary_expression "0 < iVar6" (number_literal "0") (< "<") (identifier "iVar6")) () ")")) (compound_statement "{\n                piVar7 = *(int **)(iVar3 + 0x2a8);\n                pdVar14 = pdVar12;\n                piVar15 = piVar7;\n                do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);\n              }" ({ "{") (expression_statement "piVar7 = *(int **)(iVar3 + 0x2a8);" (assignment_expression "piVar7 = *(int **)(iVar3 + 0x2a8)" (identifier "piVar7") (= "=") (pointer_expression "*(int **)(iVar3 + 0x2a8)" (* "*") (cast_expression "(int **)(iVar3 + 0x2a8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 0x2a8)" (( "(") (binary_expression "iVar3 + 0x2a8" (identifier "iVar3") (+ "+") (number_literal "0x2a8")) () ")"))))) (; ";")) (expression_statement "pdVar14 = pdVar12;" (assignment_expression "pdVar14 = pdVar12" (identifier "pdVar14") (= "=") (identifier "pdVar12")) (; ";")) (expression_statement "piVar15 = piVar7;" (assignment_expression "piVar15 = piVar7" (identifier "piVar15") (= "=") (identifier "piVar7")) (; ";")) (do_statement "do {\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                } while (piVar7 + iVar6 * 3 != piVar15);" (do "do") (compound_statement "{\n                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }\n                  piVar15 = piVar15 + 3;\n                  pdVar14 = pdVar14 + 1;\n                }" ({ "{") (if_statement "if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }" (if "if") (parenthesized_expression "(((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14))" (( "(") (binary_expression "((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)" (parenthesized_expression "((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0)" (( "(") (binary_expression "(*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0" (parenthesized_expression "(*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2)" (( "(") (binary_expression "*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2" (pointer_expression "*(byte *)(piVar7 + *piVar15 * 3 + 1)" (* "*") (cast_expression "(byte *)(piVar7 + *piVar15 * 3 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar7 + *piVar15 * 3 + 1)" (( "(") (binary_expression "piVar7 + *piVar15 * 3 + 1" (binary_expression "piVar7 + *piVar15 * 3" (identifier "piVar7") (+ "+") (binary_expression "*piVar15 * 3" (pointer_expression "*piVar15" (* "*") (identifier "piVar15")) (* "*") (number_literal "3"))) (+ "+") (number_literal "1")) () ")")))) (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(dVar2 < *pdVar14)" (( "(") (binary_expression "dVar2 < *pdVar14" (identifier "dVar2") (< "<") (pointer_expression "*pdVar14" (* "*") (identifier "pdVar14"))) () ")"))) () ")")) (compound_statement "{\n                    *pdVar14 = dVar9 - *pdVar14;\n                  }" ({ "{") (expression_statement "*pdVar14 = dVar9 - *pdVar14;" (assignment_expression "*pdVar14 = dVar9 - *pdVar14" (pointer_expression "*pdVar14" (* "*") (identifier "pdVar14")) (= "=") (binary_expression "dVar9 - *pdVar14" (identifier "dVar9") (- "-") (pointer_expression "*pdVar14" (* "*") (identifier "pdVar14")))) (; ";")) (} "}"))) (expression_statement "piVar15 = piVar15 + 3;" (assignment_expression "piVar15 = piVar15 + 3" (identifier "piVar15") (= "=") (binary_expression "piVar15 + 3" (identifier "piVar15") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "pdVar14 = pdVar14 + 1;" (assignment_expression "pdVar14 = pdVar14 + 1" (identifier "pdVar14") (= "=") (binary_expression "pdVar14 + 1" (identifier "pdVar14") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar7 + iVar6 * 3 != piVar15)" (( "(") (binary_expression "piVar7 + iVar6 * 3 != piVar15" (binary_expression "piVar7 + iVar6 * 3" (identifier "piVar7") (+ "+") (binary_expression "iVar6 * 3" (identifier "iVar6") (* "*") (number_literal "3"))) (!= "!=") (identifier "piVar15")) () ")")) (; ";")) (} "}"))) (expression_statement "pdVar12 = pdVar12 + iVar6;" (assignment_expression "pdVar12 = pdVar12 + iVar6" (identifier "pdVar12") (= "=") (binary_expression "pdVar12 + iVar6" (identifier "pdVar12") (+ "+") (identifier "iVar6"))) (; ";")) (expression_statement "iVar17 = iVar17 + 1;" (assignment_expression "iVar17 = iVar17 + 1" (identifier "iVar17") (= "=") (binary_expression "iVar17 + 1" (identifier "iVar17") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar17 != iVar10)" (( "(") (binary_expression "iVar17 != iVar10" (identifier "iVar17") (!= "!=") (identifier "iVar10")) () ")")) (; ";")) (} "}"))) (expression_statement "iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);" (assignment_expression "iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5)" (identifier "iVar10") (= "=") (call_expression "SyncCacheViewAuthenticPixels(uVar4,uVar5)" (identifier "SyncCacheViewAuthenticPixels") (argument_list "(uVar4,uVar5)" (( "(") (identifier "uVar4") (, ",") (identifier "uVar5") () ")")))) (; ";")) (if_statement "if (iVar10 == 0) {\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }" (if "if") (parenthesized_expression "(iVar10 == 0)" (( "(") (binary_expression "iVar10 == 0" (identifier "iVar10") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            *(undefined4 *)((int)param_1 + 0x14) = 0;\n          }" ({ "{") (expression_statement "*(undefined4 *)((int)param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)((int)param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x14)" (( "(") (binary_expression "(int)param_1 + 0x14" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar3 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }" (if "if") (parenthesized_expression "(*(int *)(iVar3 + 0x300) != 0)" (( "(") (binary_expression "*(int *)(iVar3 + 0x300) != 0" (pointer_expression "*(int *)(iVar3 + 0x300)" (* "*") (cast_expression "(int *)(iVar3 + 0x300)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x300)" (( "(") (binary_expression "iVar3 + 0x300" (identifier "iVar3") (+ "+") (number_literal "0x300")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            puVar8 = *(uint **)(param_1 + 3);\n            uVar13 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);\n            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);\n            if (iVar10 == 0) goto LAB_001b7832;\n          }" ({ "{") (expression_statement "puVar8 = *(uint **)(param_1 + 3);" (assignment_expression "puVar8 = *(uint **)(param_1 + 3)" (identifier "puVar8") (= "=") (pointer_expression "*(uint **)(param_1 + 3)" (* "*") (cast_expression "(uint **)(param_1 + 3)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 3)" (( "(") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) () ")"))))) (; ";")) (expression_statement "uVar13 = *puVar8;" (assignment_expression "uVar13 = *puVar8" (identifier "uVar13") (= "=") (pointer_expression "*puVar8" (* "*") (identifier "puVar8"))) (; ";")) (expression_statement "uVar16 = puVar8[1];" (assignment_expression "uVar16 = puVar8[1]" (identifier "uVar16") (= "=") (subscript_expression "puVar8[1]" (identifier "puVar8") ([ "[") (number_literal "1") (] "]"))) (; ";")) (do_statement "do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar18);" (do "do") (compound_statement "{\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;\n              if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "lVar1 = *(longlong *)puVar8;" (assignment_expression "lVar1 = *(longlong *)puVar8" (identifier "lVar1") (= "=") (pointer_expression "*(longlong *)puVar8" (* "*") (cast_expression "(longlong *)puVar8" (( "(") (type_descriptor "longlong *" (type_identifier "longlong") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar8")))) (; ";")) (expression_statement "bVar18 = CONCAT44(uVar16,uVar13) == lVar1;" (assignment_expression "bVar18 = CONCAT44(uVar16,uVar13) == lVar1" (identifier "bVar18") (= "=") (binary_expression "CONCAT44(uVar16,uVar13) == lVar1" (call_expression "CONCAT44(uVar16,uVar13)" (identifier "CONCAT44") (argument_list "(uVar16,uVar13)" (( "(") (identifier "uVar16") (, ",") (identifier "uVar13") () ")"))) (== "==") (identifier "lVar1"))) (; ";")) (if_statement "if (bVar18) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }" (if "if") (parenthesized_expression "(bVar18)" (( "(") (identifier "bVar18") () ")")) (compound_statement "{\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);\n              }" ({ "{") (expression_statement "*(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);" (assignment_expression "*(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1)" (pointer_expression "*(longlong *)puVar8" (* "*") (cast_expression "(longlong *)puVar8" (( "(") (type_descriptor "longlong *" (type_identifier "longlong") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar8"))) (= "=") (call_expression "CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1)" (identifier "CONCAT44") (argument_list "(uVar16 + (0xfffffffe < uVar13),uVar13 + 1)" (( "(") (binary_expression "uVar16 + (0xfffffffe < uVar13)" (identifier "uVar16") (+ "+") (parenthesized_expression "(0xfffffffe < uVar13)" (( "(") (binary_expression "0xfffffffe < uVar13" (number_literal "0xfffffffe") (< "<") (identifier "uVar13")) () ")"))) (, ",") (binary_expression "uVar13 + 1" (identifier "uVar13") (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }" (else "else") (compound_statement "{\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }" ({ "{") (expression_statement "uVar16 = (uint)((ulonglong)lVar1 >> 0x20);" (assignment_expression "uVar16 = (uint)((ulonglong)lVar1 >> 0x20)" (identifier "uVar16") (= "=") (call_expression "(uint)((ulonglong)lVar1 >> 0x20)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((ulonglong)lVar1 >> 0x20)" (( "(") (binary_expression "(ulonglong)lVar1 >> 0x20" (cast_expression "(ulonglong)lVar1" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "lVar1")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "uVar13 = (uint)lVar1;" (assignment_expression "uVar13 = (uint)lVar1" (identifier "uVar13") (= "=") (cast_expression "(uint)lVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "lVar1"))) (; ";")) (} "}")))) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(!bVar18)" (( "(") (unary_expression "!bVar18" (! "!") (identifier "bVar18")) () ")")) (; ";")) (expression_statement "iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0);" (assignment_expression "iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0)" (identifier "iVar10") (= "=") (call_expression "SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0)" (identifier "SetImageProgress") (argument_list "(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),\n                                      (*(undefined4 **)(param_1 + 3))[1],\n                                      *(undefined4 *)(iVar3 + 0x1c),0)" (( "(") (identifier "iVar3") (, ",") (string_literal ""Solarize/Image"" (" """) (string_content "Solarize/Image") (" """)) (, ",") (pointer_expression "**(undefined4 **)(param_1 + 3)" (* "*") (pointer_expression "*(undefined4 **)(param_1 + 3)" (* "*") (cast_expression "(undefined4 **)(param_1 + 3)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 3)" (( "(") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) () ")"))))) (, ",") (subscript_expression "(*(undefined4 **)(param_1 + 3))[1]" (parenthesized_expression "(*(undefined4 **)(param_1 + 3))" (( "(") (pointer_expression "*(undefined4 **)(param_1 + 3)" (* "*") (cast_expression "(undefined4 **)(param_1 + 3)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 3)" (( "(") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) () ")")))) () ")")) ([ "[") (number_literal "1") (] "]")) (, ",") (pointer_expression "*(undefined4 *)(iVar3 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1c)" (( "(") (binary_expression "iVar3 + 0x1c" (identifier "iVar3") (+ "+") (number_literal "0x1c")) () ")")))) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar10 == 0) goto LAB_001b7832;" (if "if") (parenthesized_expression "(iVar10 == 0)" (( "(") (binary_expression "iVar10 == 0" (identifier "iVar10") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_001b7832;" (goto "goto") (statement_identifier "LAB_001b7832") (; ";"))) (} "}"))) (} "}")))) (} "}"))) (expression_statement "local_50 = local_50 + 1;" (assignment_expression "local_50 = local_50 + 1" (identifier "local_50") (= "=") (binary_expression "local_50 + 1" (identifier "local_50") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar11 != local_50)" (( "(") (binary_expression "iVar11 != local_50" (identifier "iVar11") (!= "!=") (identifier "local_50")) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* 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 SolarizeImage._omp_fn.8(anon_struct_32_6_4abfcc76 * param_0) */

void __thiscall function_1(type_1 *this)

{
  type_2 var_23;
  double var_11;
  type_3 *image;
  type_4 *cache_view;
  type_5 *exception;
  size_t var_18;
  size_t var_16;
  type_6 *var_15;
  type_7 *puVar6;
  double var_12;
  int var_4;
  int var_5;
  double *var_8;
  type_8 var_20;
  type_7 var_25;
  double *var_14;
  type_6 *var_13;
  type_7 var_24;
  size_t var_17;
  bool bVar17;
  int var_3;
  
  image = this->image;
  var_3 = var_1();
  var_4 = var_2();
  var_5 = (int)image->rows / var_3;
  var_3 = (int)image->rows % var_3;
  if (var_4 < var_3) {
    var_5 = var_5 + 1;
    var_3 = 0;
  }
  var_3 = var_4 * var_5 + var_3;
  var_5 = var_5 + var_3;
  if (var_3 < var_5) {
    cache_view = this->image_view;
    exception = this->exception;
    var_11 = this->threshold;
    do {
      if (this->status != var_6) {
        var_8 = var_7(cache_view,0,var_3,image->columns,1,exception);
        if (var_8 == (type_9 *)0x0) {
LAB_001b7832:
          this->status = var_6;
        }
        else {
          var_18 = image->columns;
          if (0 < (int)var_18) {
            var_16 = image->number_channels;
            var_17 = 0;
            var_12 = (double)DAT_0029f710;
            do {
              if (0 < (int)var_16) {
                var_15 = image->channel_map;
                var_14 = var_8;
                var_13 = var_15;
                do {
                  if (((var_15[var_13->channel].traits & var_9) != var_10)
                     && (var_11 < *var_14)) {
                    *var_14 = var_12 - *var_14;
                  }
                  var_13 = var_13 + 1;
                  var_14 = var_14 + 1;
                } while (var_15 + var_16 != var_13);
              }
              var_8 = var_8 + var_16;
              var_17 = var_17 + 1;
            } while (var_17 != var_18);
          }
          var_20 = var_19(cache_view,exception);
          if (var_20 == var_6) {
            this->status = var_6;
          }
          if (image->progress_monitor != (type_10)0x0) {
            puVar6 = (type_7 *)this->progress;
            var_25 = *puVar6;
            var_24 = puVar6[1];
            do {
              var_21();
              var_23 = *(type_2 *)puVar6;
              bVar17 = var_22(var_24,var_25) == var_23;
              if (bVar17) {
                *(type_2 *)puVar6 = var_22(var_24 + (0xfffffffe < var_25),var_25 + 1);
              }
              else {
                var_24 = (type_7)((type_11)var_23 >> 0x20);
                var_25 = (type_7)var_23;
              }
              var_26();
            } while (!bVar17);
            var_20 = var_27(image,"Solarize/Image",*this->progress,(type_11)image->rows)
            ;
            if (var_20 == var_6) goto LAB_001b7832;
          }
        }
      }
      var_3 = var_3 + 1;
    } while (var_5 != var_3);
  }
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void MASKED(double *param_1)

{
  longlong lVar1;
  double dVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  int iVar6;
  int *piVar7;
  uint *puVar8;
  double dVar9;
  int iVar10;
  int iVar11;
  double *pdVar12;
  uint uVar13;
  double *pdVar14;
  int *piVar15;
  uint uVar16;
  int iVar17;
  bool bVar18;
  int local_50;
  
  iVar3 = *(int *)(param_1 + 1);
  local_50 = omp_get_num_threads();
  iVar10 = omp_get_thread_num();
  iVar11 = *(int *)(iVar3 + 0x1c) / local_50;
  local_50 = *(int *)(iVar3 + 0x1c) % local_50;
  if (iVar10 < local_50) {
    iVar11 = iVar11 + 1;
    local_50 = 0;
  }
  local_50 = iVar10 * iVar11 + local_50;
  iVar11 = iVar11 + local_50;
  if (local_50 < iVar11) {
    uVar4 = *(undefined4 *)(param_1 + 2);
    uVar5 = *(undefined4 *)((int)param_1 + 0xc);
    dVar2 = *param_1;
    do {
      if (*(int *)((int)param_1 + 0x14) != 0) {
        pdVar12 = (double *)
                  GetCacheViewAuthenticPixels
                            (uVar4,0,local_50,*(undefined4 *)(iVar3 + 0x18),1,uVar5);
        if (pdVar12 == (double *)0x0) {
LAB_001b7832:
          *(undefined4 *)((int)param_1 + 0x14) = 0;
        }
        else {
          iVar10 = *(int *)(iVar3 + 0x18);
          if (0 < iVar10) {
            iVar6 = *(int *)(iVar3 + 0x298);
            iVar17 = 0;
            dVar9 = (double)DAT_0029f710;
            do {
              if (0 < iVar6) {
                piVar7 = *(int **)(iVar3 + 0x2a8);
                pdVar14 = pdVar12;
                piVar15 = piVar7;
                do {
                  if (((*(byte *)(piVar7 + *piVar15 * 3 + 1) & 2) != 0) && (dVar2 < *pdVar14)) {
                    *pdVar14 = dVar9 - *pdVar14;
                  }
                  piVar15 = piVar15 + 3;
                  pdVar14 = pdVar14 + 1;
                } while (piVar7 + iVar6 * 3 != piVar15);
              }
              pdVar12 = pdVar12 + iVar6;
              iVar17 = iVar17 + 1;
            } while (iVar17 != iVar10);
          }
          iVar10 = SyncCacheViewAuthenticPixels(uVar4,uVar5);
          if (iVar10 == 0) {
            *(undefined4 *)((int)param_1 + 0x14) = 0;
          }
          if (*(int *)(iVar3 + 0x300) != 0) {
            puVar8 = *(uint **)(param_1 + 3);
            uVar13 = *puVar8;
            uVar16 = puVar8[1];
            do {
              LOCK();
              lVar1 = *(longlong *)puVar8;
              bVar18 = CONCAT44(uVar16,uVar13) == lVar1;
              if (bVar18) {
                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar13),uVar13 + 1);
              }
              else {
                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);
                uVar13 = (uint)lVar1;
              }
              UNLOCK();
            } while (!bVar18);
            iVar10 = SetImageProgress(iVar3,"Solarize/Image",**(undefined4 **)(param_1 + 3),
                                      (*(undefined4 **)(param_1 + 3))[1],
                                      *(undefined4 *)(iVar3 + 0x1c),0);
            if (iVar10 == 0) goto LAB_001b7832;
          }
        }
      }
      local_50 = local_50 + 1;
    } while (iVar11 != local_50);
  }
  return;
}

