
/* 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 LevelImage._omp_fn.9(anon_struct_48_8_0a4f978e * param_0) */

void __thiscall LevelImage__omp_fn_9(anon_struct_48_8_0a4f978e *this)

{
  longlong lVar1;
  double dVar2;
  double dVar3;
  double dVar4;
  Image *image;
  CacheView *cache_view;
  ExceptionInfo *exception;
  uint *puVar5;
  double dVar6;
  double dVar7;
  double dVar8;
  int iVar9;
  int iVar10;
  Quantum *pQVar11;
  MagickBooleanType MVar12;
  uint uVar13;
  size_t sVar14;
  uint uVar15;
  size_t sVar16;
  int unaff_EDI;
  bool bVar17;
  double dVar18;
  int local_74;
  int local_48;
  
  __x86_get_pc_thunk_di();
  image = this->image;
  local_48 = omp_get_num_threads();
  iVar9 = omp_get_thread_num();
  iVar10 = (int)image->rows / local_48;
  local_48 = (int)image->rows % local_48;
  if (iVar9 < local_48) {
    iVar10 = iVar10 + 1;
    local_48 = 0;
  }
  local_48 = iVar9 * iVar10 + local_48;
  iVar10 = iVar10 + local_48;
  if (local_48 < iVar10) {
    cache_view = this->image_view;
    exception = this->exception;
    dVar2 = this->gamma;
    dVar3 = this->white_point;
    dVar4 = this->black_point;
    dVar6 = 1.0;
    if (dVar2 < 0.0) {
      dVar6 = -1.0;
    }
    do {
      if (this->status != MagickFalse) {
        pQVar11 = GetCacheViewAuthenticPixels(cache_view,0,local_48,image->columns,1,exception);
        if (pQVar11 == (Quantum *)0x0) {
LAB_000c23df:
          this->status = MagickFalse;
        }
        else {
          sVar14 = image->columns;
          if (0 < (int)sVar14) {
            sVar16 = image->number_channels;
            local_74 = 0;
            do {
              iVar9 = 0;
              if (0 < (int)sVar16) {
                do {
                  if ((image->channel_map[image->channel_map[iVar9].channel].traits &
                      UpdatePixelTrait) != UndefinedPixelTrait) {
                    dVar7 = dVar3 - dVar4;
                    if (dVar7 < 0.0) {
                      dVar8 = -dVar7;
                      dVar18 = *(double *)(unaff_EDI + 0x21d7b9);
                    }
                    else {
                      dVar18 = *(double *)(unaff_EDI + 0x21d7b1);
                      dVar8 = dVar7;
                    }
                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar8) {
                      dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7;
                    }
                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar6) {
                      dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;
                    }
                    else {
                      dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);
                    }
                    dVar18 = (pQVar11[iVar9] - dVar4) * dVar18;
                    if (0.0 <= dVar18) {
                      dVar18 = pow(dVar18,dVar7);
                      sVar16 = image->number_channels;
                    }
                    pQVar11[iVar9] = dVar18 * (double)*(float *)(unaff_EDI + 0x21d781);
                  }
                  iVar9 = iVar9 + 1;
                } while (iVar9 < (int)sVar16);
                sVar14 = image->columns;
              }
              local_74 = local_74 + 1;
              pQVar11 = pQVar11 + sVar16;
            } while (local_74 < (int)sVar14);
          }
          MVar12 = SyncCacheViewAuthenticPixels(cache_view,exception);
          if (MVar12 == MagickFalse) {
            this->status = MagickFalse;
          }
          if (image->progress_monitor != (MagickProgressMonitor)0x0) {
            puVar5 = (uint *)this->progress;
            uVar13 = *puVar5;
            uVar15 = puVar5[1];
            do {
              LOCK();
              lVar1 = *(longlong *)puVar5;
              bVar17 = CONCAT44(uVar15,uVar13) == lVar1;
              if (bVar17) {
                *(longlong *)puVar5 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);
              }
              else {
                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);
                uVar13 = (uint)lVar1;
              }
              UNLOCK();
            } while (!bVar17);
            MVar12 = SetImageProgress(image,(char *)(unaff_EDI + 0x230b0f),*this->progress,
                                      (ulonglong)image->rows);
            if (MVar12 == MagickFalse) goto LAB_000c23df;
          }
        }
      }
      local_48 = local_48 + 1;
    } while (iVar10 != local_48);
  }
  return;
}



void FUN_000c2120(double *param_1)

{
  longlong lVar1;
  double dVar2;
  double dVar3;
  double dVar4;
  int iVar5;
  undefined4 uVar6;
  undefined4 uVar7;
  uint *puVar8;
  double dVar9;
  double dVar10;
  double dVar11;
  int iVar12;
  int iVar13;
  uint uVar14;
  int iVar15;
  uint uVar16;
  int iVar17;
  int iVar18;
  int unaff_EDI;
  bool bVar19;
  double dVar20;
  int local_74;
  int local_48;
  
  FUN_0004f293();
  iVar5 = *(int *)(param_1 + 3);
  local_48 = omp_get_num_threads();
  iVar12 = omp_get_thread_num();
  iVar13 = *(int *)(iVar5 + 0x1c) / local_48;
  local_48 = *(int *)(iVar5 + 0x1c) % local_48;
  if (iVar12 < local_48) {
    iVar13 = iVar13 + 1;
    local_48 = 0;
  }
  local_48 = iVar12 * iVar13 + local_48;
  iVar13 = iVar13 + local_48;
  if (local_48 < iVar13) {
    uVar6 = *(undefined4 *)(param_1 + 4);
    uVar7 = *(undefined4 *)((int)param_1 + 0x1c);
    dVar2 = param_1[2];
    dVar3 = param_1[1];
    dVar4 = *param_1;
    dVar9 = 1.0;
    if (dVar2 < 0.0) {
      dVar9 = -1.0;
    }
    do {
      if (*(int *)((int)param_1 + 0x24) != 0) {
        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)
        ;
        if (iVar12 == 0) {
LAB_000c23df:
          *(undefined4 *)((int)param_1 + 0x24) = 0;
        }
        else {
          iVar15 = *(int *)(iVar5 + 0x18);
          if (0 < iVar15) {
            iVar17 = *(int *)(iVar5 + 0x298);
            local_74 = 0;
            do {
              iVar18 = 0;
              if (0 < iVar17) {
                do {
                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +
                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {
                    dVar10 = dVar3 - dVar4;
                    if (dVar10 < 0.0) {
                      dVar11 = -dVar10;
                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);
                    }
                    else {
                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);
                      dVar11 = dVar10;
                    }
                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {
                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;
                    }
                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {
                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;
                    }
                    else {
                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);
                    }
                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;
                    if (0.0 <= dVar20) {
                      dVar20 = pow(dVar20,dVar10);
                      iVar17 = *(int *)(iVar5 + 0x298);
                    }
                    *(double *)(iVar12 + iVar18 * 8) =
                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);
                  }
                  iVar18 = iVar18 + 1;
                } while (iVar18 < iVar17);
                iVar15 = *(int *)(iVar5 + 0x18);
              }
              local_74 = local_74 + 1;
              iVar12 = iVar12 + iVar17 * 8;
            } while (local_74 < iVar15);
          }
          iVar12 = SyncCacheViewAuthenticPixels();
          if (iVar12 == 0) {
            *(undefined4 *)((int)param_1 + 0x24) = 0;
          }
          if (*(int *)(iVar5 + 0x300) != 0) {
            puVar8 = *(uint **)(param_1 + 5);
            uVar14 = *puVar8;
            uVar16 = puVar8[1];
            do {
              LOCK();
              lVar1 = *(longlong *)puVar8;
              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;
              if (bVar19) {
                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);
              }
              else {
                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);
                uVar14 = (uint)lVar1;
              }
              UNLOCK();
            } while (!bVar19);
            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),
                                      (*(undefined4 **)(param_1 + 5))[1]);
            if (iVar12 == 0) goto LAB_000c23df;
          }
        }
      }
      local_48 = local_48 + 1;
    } while (iVar13 != local_48);
  }
  return;
}


PUSH EBP
PUSH EDI
CALL 0x0004f293
ADD EDI,0x35bed9
PUSH ESI
PUSH EBX
SUB ESP,0x6c
MOV EAX,dword ptr [ESP + 0x80]
MOV EBX,EDI
MOV EBP,dword ptr [EAX + 0x18]
CALL 0x00030850
MOV ESI,EAX
CALL 0x000317c0
MOV ECX,EAX
MOV EAX,dword ptr [EBP + 0x1c]
CDQ
IDIV ESI
CMP ECX,EDX
JGE 0x000c215b
ADD EAX,0x1
XOR EDX,EDX
IMUL ECX,EAX
LEA EBX,[ECX + EDX*0x1]
MOV EDX,EAX
ADD EDX,EBX
MOV dword ptr [ESP + 0x34],EBX
CMP EBX,EDX
MOV dword ptr [ESP + 0x38],EDX
JGE 0x000c2400
MOV EAX,dword ptr [ESP + 0x80]
MOV EAX,dword ptr [EAX + 0x20]
MOV dword ptr [ESP + 0x3c],EAX
MOV EAX,dword ptr [ESP + 0x80]
MOV EAX,dword ptr [EAX + 0x1c]
MOV dword ptr [ESP + 0x58],EAX
MOV EAX,dword ptr [ESP + 0x80]
FLD qword ptr [EAX + 0x10]
FLD qword ptr [EAX + 0x8]
FSTP qword ptr [ESP + 0x10]
FLD qword ptr [EAX]
FLD1
FLDZ
FUCOMIP ST0,ST3
JA 0x000c2408
FXCH ST2
FSTP qword ptr [ESP + 0x40]
LEA EAX,[EDI + 0xffed4c36]
FSTP qword ptr [ESP + 0x48]
MOV dword ptr [ESP + 0x5c],EAX
FSTP qword ptr [ESP + 0x50]
NOP
LEA ESI,[ESI]
MOV EAX,dword ptr [ESP + 0x80]
MOV EDX,dword ptr [EAX + 0x24]
TEST EDX,EDX
JZ 0x000c23ed
SUB ESP,0x8
MOV EBX,EDI
PUSH dword ptr [ESP + 0x60]
PUSH 0x1
PUSH dword ptr [EBP + 0x18]
PUSH dword ptr [ESP + 0x48]
PUSH 0x0
PUSH dword ptr [ESP + 0x58]
CALL 0x000312c0
ADD ESP,0x20
TEST EAX,EAX
JZ 0x000c23df
MOV EDX,dword ptr [EBP + 0x18]
TEST EDX,EDX
JLE 0x000c2355
MOV EBX,dword ptr [EBP + 0x298]
MOV dword ptr [ESP + 0x8],0x0
FLD qword ptr [ESP + 0x40]
FLD qword ptr [ESP + 0x48]
FLD qword ptr [ESP + 0x50]
NOP
XOR ESI,ESI
TEST EBX,EBX
JG 0x000c22ba
JMP 0x000c233b
FSTP ST0
FLD ST4
FDIVR dword ptr [EDI + 0xffec18b4]
FXCH ST2
FSUB ST0,ST4
FMULP
FLDZ
FUCOMIP ST0,ST1
JA 0x000c22a0
FXCH ST2
FSTP qword ptr [ESP + 0x28]
FXCH ST2
SUB ESP,0x10
MOV EBX,EDI
FSTP qword ptr [ESP + 0x30]
FXCH ST2
MOV dword ptr [ESP + 0x40],EAX
FSTP qword ptr [ESP + 0x28]
FSTP qword ptr [ESP + 0x8]
FSTP qword ptr [ESP]
CALL 0x00030f90
ADD ESP,0x10
MOV EBX,dword ptr [EBP + 0x298]
MOV EAX,dword ptr [ESP + 0x30]
FLD qword ptr [ESP + 0x28]
FLD qword ptr [ESP + 0x20]
FLD qword ptr [ESP + 0x18]
FXCH ST3
JMP 0x000c22a8
FSTP ST1
FXCH
FXCH ST2
FXCH
FMUL dword ptr [EDI + 0xffec18a8]
FSTP qword ptr [EAX + ESI*0x8]
FXCH
ADD ESI,0x1
CMP EBX,ESI
JLE 0x000c2338
MOV EDX,dword ptr [EBP + 0x2a8]
LEA ECX,[ESI + ESI*0x2]
MOV ECX,dword ptr [EDX + ECX*0x4]
LEA ECX,[ECX + ECX*0x2]
TEST byte ptr [EDX + ECX*0x4 + 0x4],0x2
JZ 0x000c22b3
FLD qword ptr [EAX + ESI*0x8]
FLD qword ptr [ESP + 0x10]
FSUB ST0,ST3
FLDZ
FLD ST1
FXCH
FUCOMIP ST0,ST2
JA 0x000c2328
FLD qword ptr [EDI + 0xffec18d8]
FLD qword ptr [EDI + 0xffec12d0]
FXCH ST2
FUCOMIP ST0,ST2
FSTP ST1
JC 0x000c2308
FSTP ST0
FDIVR dword ptr [EDI + 0xffec18b4]
JMP 0x000c230a
FSTP ST1
FLD qword ptr [EDI + 0xffec12d0]
FLD ST5
FMUL ST4
FUCOMIP ST0,ST1
JNC 0x000c2240
FDIVR ST0,ST3
FXCH ST2
JMP 0x000c224c
FCHS
FLD qword ptr [EDI + 0xffec18e0]
JMP 0x000c22e9
MOV EDX,dword ptr [EBP + 0x18]
ADD dword ptr [ESP + 0x8],0x1
LEA EAX,[EAX + EBX*0x8]
MOV ESI,dword ptr [ESP + 0x8]
CMP EDX,ESI
JG 0x000c2230
FSTP ST0
FSTP ST0
FSTP ST0
SUB ESP,0x8
MOV EBX,EDI
PUSH dword ptr [ESP + 0x60]
PUSH dword ptr [ESP + 0x48]
CALL 0x00031800
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000c237c
MOV EAX,dword ptr [ESP + 0x80]
MOV dword ptr [EAX + 0x24],0x0
MOV EAX,dword ptr [EBP + 0x300]
TEST EAX,EAX
JZ 0x000c23ed
MOV EAX,dword ptr [ESP + 0x80]
MOV ESI,dword ptr [EAX + 0x28]
MOV EAX,dword ptr [ESI]
MOV EDX,dword ptr [ESI + 0x4]
MOV ECX,EAX
MOV EBX,EDX
ADD ECX,0x1
ADC EBX,0x0
MOV dword ptr [ESP + 0x8],ECX
MOV dword ptr [ESP + 0xc],EBX
MOV EBX,ECX
MOV ECX,dword ptr [ESP + 0xc]
CMPXCHG8B.LOCK qword ptr [ESI]
JNZ 0x000c2395
MOV EAX,dword ptr [EBP + 0x1c]
SUB ESP,0x8
XOR EDX,EDX
MOV EBX,EDI
PUSH EDX
PUSH EAX
MOV EAX,dword ptr [ESP + 0x90]
MOV EAX,dword ptr [EAX + 0x28]
PUSH dword ptr [EAX + 0x4]
PUSH dword ptr [EAX]
PUSH dword ptr [ESP + 0x74]
PUSH EBP
CALL 0x00033840
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x000c23ed
MOV EAX,dword ptr [ESP + 0x80]
MOV dword ptr [EAX + 0x24],0x0
ADD dword ptr [ESP + 0x34],0x1
MOV EAX,dword ptr [ESP + 0x34]
CMP dword ptr [ESP + 0x38],EAX
JNZ 0x000c21d0
ADD ESP,0x6c
POP EBX
POP ESI
POP EDI
POP EBP
RET
FCHS
FXCH ST2
JMP 0x000c21b2
(translation_unit "void FUN_000c2120(double *param_1)\n\n{\n  longlong lVar1;\n  double dVar2;\n  double dVar3;\n  double dVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  uint *puVar8;\n  double dVar9;\n  double dVar10;\n  double dVar11;\n  int iVar12;\n  int iVar13;\n  uint uVar14;\n  int iVar15;\n  uint uVar16;\n  int iVar17;\n  int iVar18;\n  int unaff_EDI;\n  bool bVar19;\n  double dVar20;\n  int local_74;\n  int local_48;\n  \n  FUN_0004f293();\n  iVar5 = *(int *)(param_1 + 3);\n  local_48 = omp_get_num_threads();\n  iVar12 = omp_get_thread_num();\n  iVar13 = *(int *)(iVar5 + 0x1c) / local_48;\n  local_48 = *(int *)(iVar5 + 0x1c) % local_48;\n  if (iVar12 < local_48) {\n    iVar13 = iVar13 + 1;\n    local_48 = 0;\n  }\n  local_48 = iVar12 * iVar13 + local_48;\n  iVar13 = iVar13 + local_48;\n  if (local_48 < iVar13) {\n    uVar6 = *(undefined4 *)(param_1 + 4);\n    uVar7 = *(undefined4 *)((int)param_1 + 0x1c);\n    dVar2 = param_1[2];\n    dVar3 = param_1[1];\n    dVar4 = *param_1;\n    dVar9 = 1.0;\n    if (dVar2 < 0.0) {\n      dVar9 = -1.0;\n    }\n    do {\n      if (*(int *)((int)param_1 + 0x24) != 0) {\n        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;\n        if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    } while (iVar13 != local_48);\n  }\n  return;\n}\n\n" (function_definition "void FUN_000c2120(double *param_1)\n\n{\n  longlong lVar1;\n  double dVar2;\n  double dVar3;\n  double dVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  uint *puVar8;\n  double dVar9;\n  double dVar10;\n  double dVar11;\n  int iVar12;\n  int iVar13;\n  uint uVar14;\n  int iVar15;\n  uint uVar16;\n  int iVar17;\n  int iVar18;\n  int unaff_EDI;\n  bool bVar19;\n  double dVar20;\n  int local_74;\n  int local_48;\n  \n  FUN_0004f293();\n  iVar5 = *(int *)(param_1 + 3);\n  local_48 = omp_get_num_threads();\n  iVar12 = omp_get_thread_num();\n  iVar13 = *(int *)(iVar5 + 0x1c) / local_48;\n  local_48 = *(int *)(iVar5 + 0x1c) % local_48;\n  if (iVar12 < local_48) {\n    iVar13 = iVar13 + 1;\n    local_48 = 0;\n  }\n  local_48 = iVar12 * iVar13 + local_48;\n  iVar13 = iVar13 + local_48;\n  if (local_48 < iVar13) {\n    uVar6 = *(undefined4 *)(param_1 + 4);\n    uVar7 = *(undefined4 *)((int)param_1 + 0x1c);\n    dVar2 = param_1[2];\n    dVar3 = param_1[1];\n    dVar4 = *param_1;\n    dVar9 = 1.0;\n    if (dVar2 < 0.0) {\n      dVar9 = -1.0;\n    }\n    do {\n      if (*(int *)((int)param_1 + 0x24) != 0) {\n        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;\n        if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    } while (iVar13 != local_48);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000c2120(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  double dVar3;\n  double dVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  uint *puVar8;\n  double dVar9;\n  double dVar10;\n  double dVar11;\n  int iVar12;\n  int iVar13;\n  uint uVar14;\n  int iVar15;\n  uint uVar16;\n  int iVar17;\n  int iVar18;\n  int unaff_EDI;\n  bool bVar19;\n  double dVar20;\n  int local_74;\n  int local_48;\n  \n  FUN_0004f293();\n  iVar5 = *(int *)(param_1 + 3);\n  local_48 = omp_get_num_threads();\n  iVar12 = omp_get_thread_num();\n  iVar13 = *(int *)(iVar5 + 0x1c) / local_48;\n  local_48 = *(int *)(iVar5 + 0x1c) % local_48;\n  if (iVar12 < local_48) {\n    iVar13 = iVar13 + 1;\n    local_48 = 0;\n  }\n  local_48 = iVar12 * iVar13 + local_48;\n  iVar13 = iVar13 + local_48;\n  if (local_48 < iVar13) {\n    uVar6 = *(undefined4 *)(param_1 + 4);\n    uVar7 = *(undefined4 *)((int)param_1 + 0x1c);\n    dVar2 = param_1[2];\n    dVar3 = param_1[1];\n    dVar4 = *param_1;\n    dVar9 = 1.0;\n    if (dVar2 < 0.0) {\n      dVar9 = -1.0;\n    }\n    do {\n      if (*(int *)((int)param_1 + 0x24) != 0) {\n        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;\n        if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    } while (iVar13 != local_48);\n  }\n  return;\n}" { (declaration "longlong lVar1;" type_identifier identifier ;) (declaration "double dVar2;" primitive_type identifier ;) (declaration "double dVar3;" primitive_type identifier ;) (declaration "double dVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "uint *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "double dVar9;" primitive_type identifier ;) (declaration "double dVar10;" primitive_type identifier ;) (declaration "double dVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "uint uVar14;" type_identifier identifier ;) (declaration "int iVar15;" primitive_type identifier ;) (declaration "uint uVar16;" type_identifier identifier ;) (declaration "int iVar17;" primitive_type identifier ;) (declaration "int iVar18;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "bool bVar19;" primitive_type identifier ;) (declaration "double dVar20;" primitive_type identifier ;) (declaration "int local_74;" primitive_type identifier ;) (declaration "int local_48;" primitive_type identifier ;) (expression_statement "FUN_0004f293();" (call_expression "FUN_0004f293()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar5 = *(int *)(param_1 + 3);" (assignment_expression "iVar5 = *(int *)(param_1 + 3)" identifier = (pointer_expression "*(int *)(param_1 + 3)" * (cast_expression "(int *)(param_1 + 3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))))) ;) (expression_statement "local_48 = omp_get_num_threads();" (assignment_expression "local_48 = omp_get_num_threads()" identifier = (call_expression "omp_get_num_threads()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar12 = omp_get_thread_num();" (assignment_expression "iVar12 = omp_get_thread_num()" identifier = (call_expression "omp_get_thread_num()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar13 = *(int *)(iVar5 + 0x1c) / local_48;" (assignment_expression "iVar13 = *(int *)(iVar5 + 0x1c) / local_48" identifier = (binary_expression "*(int *)(iVar5 + 0x1c) / local_48" (pointer_expression "*(int *)(iVar5 + 0x1c)" * (cast_expression "(int *)(iVar5 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x1c)" ( (binary_expression "iVar5 + 0x1c" identifier + number_literal) )))) / identifier)) ;) (expression_statement "local_48 = *(int *)(iVar5 + 0x1c) % local_48;" (assignment_expression "local_48 = *(int *)(iVar5 + 0x1c) % local_48" identifier = (binary_expression "*(int *)(iVar5 + 0x1c) % local_48" (pointer_expression "*(int *)(iVar5 + 0x1c)" * (cast_expression "(int *)(iVar5 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x1c)" ( (binary_expression "iVar5 + 0x1c" identifier + number_literal) )))) % identifier)) ;) (if_statement "if (iVar12 < local_48) {\n    iVar13 = iVar13 + 1;\n    local_48 = 0;\n  }" if (parenthesized_expression "(iVar12 < local_48)" ( (binary_expression "iVar12 < local_48" identifier < identifier) )) (compound_statement "{\n    iVar13 = iVar13 + 1;\n    local_48 = 0;\n  }" { (expression_statement "iVar13 = iVar13 + 1;" (assignment_expression "iVar13 = iVar13 + 1" identifier = (binary_expression "iVar13 + 1" identifier + number_literal)) ;) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) })) (expression_statement "local_48 = iVar12 * iVar13 + local_48;" (assignment_expression "local_48 = iVar12 * iVar13 + local_48" identifier = (binary_expression "iVar12 * iVar13 + local_48" (binary_expression "iVar12 * iVar13" identifier * identifier) + identifier)) ;) (expression_statement "iVar13 = iVar13 + local_48;" (assignment_expression "iVar13 = iVar13 + local_48" identifier = (binary_expression "iVar13 + local_48" identifier + identifier)) ;) (if_statement "if (local_48 < iVar13) {\n    uVar6 = *(undefined4 *)(param_1 + 4);\n    uVar7 = *(undefined4 *)((int)param_1 + 0x1c);\n    dVar2 = param_1[2];\n    dVar3 = param_1[1];\n    dVar4 = *param_1;\n    dVar9 = 1.0;\n    if (dVar2 < 0.0) {\n      dVar9 = -1.0;\n    }\n    do {\n      if (*(int *)((int)param_1 + 0x24) != 0) {\n        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;\n        if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    } while (iVar13 != local_48);\n  }" if (parenthesized_expression "(local_48 < iVar13)" ( (binary_expression "local_48 < iVar13" identifier < identifier) )) (compound_statement "{\n    uVar6 = *(undefined4 *)(param_1 + 4);\n    uVar7 = *(undefined4 *)((int)param_1 + 0x1c);\n    dVar2 = param_1[2];\n    dVar3 = param_1[1];\n    dVar4 = *param_1;\n    dVar9 = 1.0;\n    if (dVar2 < 0.0) {\n      dVar9 = -1.0;\n    }\n    do {\n      if (*(int *)((int)param_1 + 0x24) != 0) {\n        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;\n        if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    } while (iVar13 != local_48);\n  }" { (expression_statement "uVar6 = *(undefined4 *)(param_1 + 4);" (assignment_expression "uVar6 = *(undefined4 *)(param_1 + 4)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = *(undefined4 *)((int)param_1 + 0x1c);" (assignment_expression "uVar7 = *(undefined4 *)((int)param_1 + 0x1c)" identifier = (pointer_expression "*(undefined4 *)((int)param_1 + 0x1c)" * (cast_expression "(undefined4 *)((int)param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x1c)" ( (binary_expression "(int)param_1 + 0x1c" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "dVar2 = param_1[2];" (assignment_expression "dVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "dVar3 = param_1[1];" (assignment_expression "dVar3 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "dVar4 = *param_1;" (assignment_expression "dVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "dVar9 = 1.0;" (assignment_expression "dVar9 = 1.0" identifier = number_literal) ;) (if_statement "if (dVar2 < 0.0) {\n      dVar9 = -1.0;\n    }" if (parenthesized_expression "(dVar2 < 0.0)" ( (binary_expression "dVar2 < 0.0" identifier < number_literal) )) (compound_statement "{\n      dVar9 = -1.0;\n    }" { (expression_statement "dVar9 = -1.0;" (assignment_expression "dVar9 = -1.0" identifier = number_literal) ;) })) (do_statement "do {\n      if (*(int *)((int)param_1 + 0x24) != 0) {\n        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;\n        if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    } while (iVar13 != local_48);" do (compound_statement "{\n      if (*(int *)((int)param_1 + 0x24) != 0) {\n        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;\n        if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    }" { (if_statement "if (*(int *)((int)param_1 + 0x24) != 0) {\n        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;\n        if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }\n      }" if (parenthesized_expression "(*(int *)((int)param_1 + 0x24) != 0)" ( (binary_expression "*(int *)((int)param_1 + 0x24) != 0" (pointer_expression "*(int *)((int)param_1 + 0x24)" * (cast_expression "(int *)((int)param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x24)" ( (binary_expression "(int)param_1 + 0x24" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;\n        if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }\n      }" { (expression_statement "iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;" (assignment_expression "iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)" identifier = (call_expression "GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)" identifier (argument_list "(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)" ( identifier , number_literal , identifier , (pointer_expression "*(undefined4 *)(iVar5 + 0x18)" * (cast_expression "(undefined4 *)(iVar5 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) )))) , number_literal , identifier )))) ;) (if_statement "if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }" { (labeled_statement "LAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;" statement_identifier : (expression_statement "*(undefined4 *)((int)param_1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + 0x24) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + 0x24)" * (cast_expression "(undefined4 *)((int)param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x24)" ( (binary_expression "(int)param_1 + 0x24" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;)) }) (else_clause "else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }" else (compound_statement "{\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }" { (expression_statement "iVar15 = *(int *)(iVar5 + 0x18);" (assignment_expression "iVar15 = *(int *)(iVar5 + 0x18)" identifier = (pointer_expression "*(int *)(iVar5 + 0x18)" * (cast_expression "(int *)(iVar5 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }" if (parenthesized_expression "(0 < iVar15)" ( (binary_expression "0 < iVar15" number_literal < identifier) )) (compound_statement "{\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }" { (expression_statement "iVar17 = *(int *)(iVar5 + 0x298);" (assignment_expression "iVar17 = *(int *)(iVar5 + 0x298)" identifier = (pointer_expression "*(int *)(iVar5 + 0x298)" * (cast_expression "(int *)(iVar5 + 0x298)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x298)" ( (binary_expression "iVar5 + 0x298" identifier + number_literal) ))))) ;) (expression_statement "local_74 = 0;" (assignment_expression "local_74 = 0" identifier = number_literal) ;) (do_statement "do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);" do (compound_statement "{\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            }" { (expression_statement "iVar18 = 0;" (assignment_expression "iVar18 = 0" identifier = number_literal) ;) (if_statement "if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }" if (parenthesized_expression "(0 < iVar17)" ( (binary_expression "0 < iVar17" number_literal < identifier) )) (compound_statement "{\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }" { (do_statement "do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);" do (compound_statement "{\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                }" { (if_statement "if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }" if (parenthesized_expression "((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0)" ( (binary_expression "(*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0" (parenthesized_expression "(*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2)" ( (binary_expression "*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2" (pointer_expression "*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc)" * (cast_expression "(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc)" ( (binary_expression "*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc" (binary_expression "*(int *)(iVar5 + 0x2a8) + 4" (pointer_expression "*(int *)(iVar5 + 0x2a8)" * (cast_expression "(int *)(iVar5 + 0x2a8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x2a8)" ( (binary_expression "iVar5 + 0x2a8" identifier + number_literal) )))) + number_literal) + (binary_expression "*(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc" (pointer_expression "*(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc)" * (cast_expression "(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc)" ( (binary_expression "*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc" (pointer_expression "*(int *)(iVar5 + 0x2a8)" * (cast_expression "(int *)(iVar5 + 0x2a8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x2a8)" ( (binary_expression "iVar5 + 0x2a8" identifier + number_literal) )))) + (binary_expression "iVar18 * 0xc" identifier * number_literal)) )))) * number_literal)) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }" { (expression_statement "dVar10 = dVar3 - dVar4;" (assignment_expression "dVar10 = dVar3 - dVar4" identifier = (binary_expression "dVar3 - dVar4" identifier - identifier)) ;) (if_statement "if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }" if (parenthesized_expression "(dVar10 < 0.0)" ( (binary_expression "dVar10 < 0.0" identifier < number_literal) )) (compound_statement "{\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }" { (expression_statement "dVar11 = -dVar10;" (assignment_expression "dVar11 = -dVar10" identifier = (unary_expression "-dVar10" - identifier)) ;) (expression_statement "dVar20 = *(double *)(unaff_EDI + 0x21d7b9);" (assignment_expression "dVar20 = *(double *)(unaff_EDI + 0x21d7b9)" identifier = (pointer_expression "*(double *)(unaff_EDI + 0x21d7b9)" * (cast_expression "(double *)(unaff_EDI + 0x21d7b9)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x21d7b9)" ( (binary_expression "unaff_EDI + 0x21d7b9" identifier + number_literal) ))))) ;) }) (else_clause "else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }" else (compound_statement "{\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }" { (expression_statement "dVar20 = *(double *)(unaff_EDI + 0x21d7b1);" (assignment_expression "dVar20 = *(double *)(unaff_EDI + 0x21d7b1)" identifier = (pointer_expression "*(double *)(unaff_EDI + 0x21d7b1)" * (cast_expression "(double *)(unaff_EDI + 0x21d7b1)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x21d7b1)" ( (binary_expression "unaff_EDI + 0x21d7b1" identifier + number_literal) ))))) ;) (expression_statement "dVar11 = dVar10;" (assignment_expression "dVar11 = dVar10" identifier = identifier) ;) }))) (if_statement "if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }" if (parenthesized_expression "(*(double *)(unaff_EDI + 0x21d1a9) <= dVar11)" ( (binary_expression "*(double *)(unaff_EDI + 0x21d1a9) <= dVar11" (pointer_expression "*(double *)(unaff_EDI + 0x21d1a9)" * (cast_expression "(double *)(unaff_EDI + 0x21d1a9)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x21d1a9)" ( (binary_expression "unaff_EDI + 0x21d1a9" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }" { (expression_statement "dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;" (assignment_expression "dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10" identifier = (binary_expression "(double)*(float *)(unaff_EDI + 0x21d78d) / dVar10" (cast_expression "(double)*(float *)(unaff_EDI + 0x21d78d)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(float *)(unaff_EDI + 0x21d78d)" * (cast_expression "(float *)(unaff_EDI + 0x21d78d)" ( (type_descriptor "float *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x21d78d)" ( (binary_expression "unaff_EDI + 0x21d78d" identifier + number_literal) ))))) / identifier)) ;) })) (if_statement "if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }" if (parenthesized_expression "(*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9)" ( (binary_expression "*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9" (pointer_expression "*(double *)(unaff_EDI + 0x21d1a9)" * (cast_expression "(double *)(unaff_EDI + 0x21d1a9)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x21d1a9)" ( (binary_expression "unaff_EDI + 0x21d1a9" identifier + number_literal) )))) <= (binary_expression "dVar2 * dVar9" identifier * identifier)) )) (compound_statement "{\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }" { (expression_statement "dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;" (assignment_expression "dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2" identifier = (binary_expression "(double)*(float *)(unaff_EDI + 0x21d78d) / dVar2" (cast_expression "(double)*(float *)(unaff_EDI + 0x21d78d)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(float *)(unaff_EDI + 0x21d78d)" * (cast_expression "(float *)(unaff_EDI + 0x21d78d)" ( (type_descriptor "float *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x21d78d)" ( (binary_expression "unaff_EDI + 0x21d78d" identifier + number_literal) ))))) / identifier)) ;) }) (else_clause "else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }" else (compound_statement "{\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }" { (expression_statement "dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);" (assignment_expression "dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9)" identifier = (binary_expression "dVar9 / *(double *)(unaff_EDI + 0x21d1a9)" identifier / (pointer_expression "*(double *)(unaff_EDI + 0x21d1a9)" * (cast_expression "(double *)(unaff_EDI + 0x21d1a9)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x21d1a9)" ( (binary_expression "unaff_EDI + 0x21d1a9" identifier + number_literal) )))))) ;) }))) (expression_statement "dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;" (assignment_expression "dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20" identifier = (binary_expression "(*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20" (parenthesized_expression "(*(double *)(iVar12 + iVar18 * 8) - dVar4)" ( (binary_expression "*(double *)(iVar12 + iVar18 * 8) - dVar4" (pointer_expression "*(double *)(iVar12 + iVar18 * 8)" * (cast_expression "(double *)(iVar12 + iVar18 * 8)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + iVar18 * 8)" ( (binary_expression "iVar12 + iVar18 * 8" identifier + (binary_expression "iVar18 * 8" identifier * number_literal)) )))) - identifier) )) * identifier)) ;) (if_statement "if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }" if (parenthesized_expression "(0.0 <= dVar20)" ( (binary_expression "0.0 <= dVar20" number_literal <= identifier) )) (compound_statement "{\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }" { (expression_statement "dVar20 = pow(dVar20,dVar10);" (assignment_expression "dVar20 = pow(dVar20,dVar10)" identifier = (call_expression "pow(dVar20,dVar10)" identifier (argument_list "(dVar20,dVar10)" ( identifier , identifier )))) ;) (expression_statement "iVar17 = *(int *)(iVar5 + 0x298);" (assignment_expression "iVar17 = *(int *)(iVar5 + 0x298)" identifier = (pointer_expression "*(int *)(iVar5 + 0x298)" * (cast_expression "(int *)(iVar5 + 0x298)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x298)" ( (binary_expression "iVar5 + 0x298" identifier + number_literal) ))))) ;) })) (expression_statement "*(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);" (assignment_expression "*(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781)" (pointer_expression "*(double *)(iVar12 + iVar18 * 8)" * (cast_expression "(double *)(iVar12 + iVar18 * 8)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + iVar18 * 8)" ( (binary_expression "iVar12 + iVar18 * 8" identifier + (binary_expression "iVar18 * 8" identifier * number_literal)) )))) = (binary_expression "dVar20 * (double)*(float *)(unaff_EDI + 0x21d781)" identifier * (cast_expression "(double)*(float *)(unaff_EDI + 0x21d781)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(float *)(unaff_EDI + 0x21d781)" * (cast_expression "(float *)(unaff_EDI + 0x21d781)" ( (type_descriptor "float *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x21d781)" ( (binary_expression "unaff_EDI + 0x21d781" identifier + number_literal) ))))))) ;) })) (expression_statement "iVar18 = iVar18 + 1;" (assignment_expression "iVar18 = iVar18 + 1" identifier = (binary_expression "iVar18 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar18 < iVar17)" ( (binary_expression "iVar18 < iVar17" identifier < identifier) )) ;) (expression_statement "iVar15 = *(int *)(iVar5 + 0x18);" (assignment_expression "iVar15 = *(int *)(iVar5 + 0x18)" identifier = (pointer_expression "*(int *)(iVar5 + 0x18)" * (cast_expression "(int *)(iVar5 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) ))))) ;) })) (expression_statement "local_74 = local_74 + 1;" (assignment_expression "local_74 = local_74 + 1" identifier = (binary_expression "local_74 + 1" identifier + number_literal)) ;) (expression_statement "iVar12 = iVar12 + iVar17 * 8;" (assignment_expression "iVar12 = iVar12 + iVar17 * 8" identifier = (binary_expression "iVar12 + iVar17 * 8" identifier + (binary_expression "iVar17 * 8" identifier * number_literal))) ;) }) while (parenthesized_expression "(local_74 < iVar15)" ( (binary_expression "local_74 < iVar15" identifier < identifier) )) ;) })) (expression_statement "iVar12 = SyncCacheViewAuthenticPixels();" (assignment_expression "iVar12 = SyncCacheViewAuthenticPixels()" identifier = (call_expression "SyncCacheViewAuthenticPixels()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (compound_statement "{\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }" { (expression_statement "*(undefined4 *)((int)param_1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + 0x24) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + 0x24)" * (cast_expression "(undefined4 *)((int)param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x24)" ( (binary_expression "(int)param_1 + 0x24" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) (if_statement "if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }" if (parenthesized_expression "(*(int *)(iVar5 + 0x300) != 0)" ( (binary_expression "*(int *)(iVar5 + 0x300) != 0" (pointer_expression "*(int *)(iVar5 + 0x300)" * (cast_expression "(int *)(iVar5 + 0x300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x300)" ( (binary_expression "iVar5 + 0x300" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }" { (expression_statement "puVar8 = *(uint **)(param_1 + 5);" (assignment_expression "puVar8 = *(uint **)(param_1 + 5)" identifier = (pointer_expression "*(uint **)(param_1 + 5)" * (cast_expression "(uint **)(param_1 + 5)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) ))))) ;) (expression_statement "uVar14 = *puVar8;" (assignment_expression "uVar14 = *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              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);" do (compound_statement "{\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (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 "bVar19 = CONCAT44(uVar16,uVar14) == lVar1;" (assignment_expression "bVar19 = CONCAT44(uVar16,uVar14) == lVar1" identifier = (binary_expression "CONCAT44(uVar16,uVar14) == lVar1" (call_expression "CONCAT44(uVar16,uVar14)" identifier (argument_list "(uVar16,uVar14)" ( identifier , identifier ))) == identifier)) ;) (if_statement "if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }" if (parenthesized_expression "(bVar19)" ( identifier )) (compound_statement "{\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }" { (expression_statement "*(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);" (assignment_expression "*(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1)" (pointer_expression "*(longlong *)puVar8" * (cast_expression "(longlong *)puVar8" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (call_expression "CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1)" identifier (argument_list "(uVar16 + (0xfffffffe < uVar14),uVar14 + 1)" ( (binary_expression "uVar16 + (0xfffffffe < uVar14)" identifier + (parenthesized_expression "(0xfffffffe < uVar14)" ( (binary_expression "0xfffffffe < uVar14" number_literal < identifier) ))) , (binary_expression "uVar14 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }" else (compound_statement "{\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (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 "uVar14 = (uint)lVar1;" (assignment_expression "uVar14 = (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 "(!bVar19)" ( (unary_expression "!bVar19" ! identifier) )) ;) (expression_statement "iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);" (assignment_expression "iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1])" identifier = (call_expression "SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1])" identifier (argument_list "(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1])" ( identifier , (binary_expression "unaff_EDI + 0x230b0f" identifier + number_literal) , (pointer_expression "**(undefined4 **)(param_1 + 5)" * (pointer_expression "*(undefined4 **)(param_1 + 5)" * (cast_expression "(undefined4 **)(param_1 + 5)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) ))))) , (subscript_expression "(*(undefined4 **)(param_1 + 5))[1]" (parenthesized_expression "(*(undefined4 **)(param_1 + 5))" ( (pointer_expression "*(undefined4 **)(param_1 + 5)" * (cast_expression "(undefined4 **)(param_1 + 5)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) )) [ number_literal ]) )))) ;) (if_statement "if (iVar12 == 0) goto LAB_000c23df;" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000c23df;" goto statement_identifier ;)) })) }))) })) (expression_statement "local_48 = local_48 + 1;" (assignment_expression "local_48 = local_48 + 1" identifier = (binary_expression "local_48 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar13 != local_48)" ( (binary_expression "iVar13 != local_48" identifier != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* WARNING: Enum "DisposeType": Some values do not have unique names */\n/* WARNING: Enum "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "PixelChannel": Some values do not have unique names */\n/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n/* DWARF original prototype: void LevelImage._omp_fn.9(anon_struct_48_8_0a4f978e * param_0) */\n\nvoid __thiscall LevelImage__omp_fn_9(anon_struct_48_8_0a4f978e *this)\n\n{\n  longlong lVar1;\n  double dVar2;\n  double dVar3;\n  double dVar4;\n  Image *image;\n  CacheView *cache_view;\n  ExceptionInfo *exception;\n  uint *puVar5;\n  double dVar6;\n  double dVar7;\n  double dVar8;\n  int iVar9;\n  int iVar10;\n  Quantum *pQVar11;\n  MagickBooleanType MVar12;\n  uint uVar13;\n  size_t sVar14;\n  uint uVar15;\n  size_t sVar16;\n  int unaff_EDI;\n  bool bVar17;\n  double dVar18;\n  int local_74;\n  int local_48;\n  \n  __x86_get_pc_thunk_di();\n  image = this->image;\n  local_48 = omp_get_num_threads();\n  iVar9 = omp_get_thread_num();\n  iVar10 = (int)image->rows / local_48;\n  local_48 = (int)image->rows % local_48;\n  if (iVar9 < local_48) {\n    iVar10 = iVar10 + 1;\n    local_48 = 0;\n  }\n  local_48 = iVar9 * iVar10 + local_48;\n  iVar10 = iVar10 + local_48;\n  if (local_48 < iVar10) {\n    cache_view = this->image_view;\n    exception = this->exception;\n    dVar2 = this->gamma;\n    dVar3 = this->white_point;\n    dVar4 = this->black_point;\n    dVar6 = 1.0;\n    if (dVar2 < 0.0) {\n      dVar6 = -1.0;\n    }\n    do {\n      if (this->status != MagickFalse) {\n        pQVar11 = GetCacheViewAuthenticPixels(cache_view,0,local_48,image->columns,1,exception);\n        if (pQVar11 == (Quantum *)0x0) {\nLAB_000c23df:\n          this->status = MagickFalse;\n        }\n        else {\n          sVar14 = image->columns;\n          if (0 < (int)sVar14) {\n            sVar16 = image->number_channels;\n            local_74 = 0;\n            do {\n              iVar9 = 0;\n              if (0 < (int)sVar16) {\n                do {\n                  if ((image->channel_map[image->channel_map[iVar9].channel].traits &\n                      UpdatePixelTrait) != UndefinedPixelTrait) {\n                    dVar7 = dVar3 - dVar4;\n                    if (dVar7 < 0.0) {\n                      dVar8 = -dVar7;\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar8 = dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar8) {\n                      dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar6) {\n                      dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar18 = (pQVar11[iVar9] - dVar4) * dVar18;\n                    if (0.0 <= dVar18) {\n                      dVar18 = pow(dVar18,dVar7);\n                      sVar16 = image->number_channels;\n                    }\n                    pQVar11[iVar9] = dVar18 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar9 = iVar9 + 1;\n                } while (iVar9 < (int)sVar16);\n                sVar14 = image->columns;\n              }\n              local_74 = local_74 + 1;\n              pQVar11 = pQVar11 + sVar16;\n            } while (local_74 < (int)sVar14);\n          }\n          MVar12 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar12 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            puVar5 = (uint *)this->progress;\n            uVar13 = *puVar5;\n            uVar15 = puVar5[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar5;\n              bVar17 = CONCAT44(uVar15,uVar13) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar5 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar12 = SetImageProgress(image,(char *)(unaff_EDI + 0x230b0f),*this->progress,\n                                      (ulonglong)image->rows);\n            if (MVar12 == MagickFalse) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    } while (iVar10 != local_48);\n  }\n  return;\n}\n\n" comment comment comment comment comment comment (function_definition "void __thiscall LevelImage__omp_fn_9(anon_struct_48_8_0a4f978e *this)\n\n{\n  longlong lVar1;\n  double dVar2;\n  double dVar3;\n  double dVar4;\n  Image *image;\n  CacheView *cache_view;\n  ExceptionInfo *exception;\n  uint *puVar5;\n  double dVar6;\n  double dVar7;\n  double dVar8;\n  int iVar9;\n  int iVar10;\n  Quantum *pQVar11;\n  MagickBooleanType MVar12;\n  uint uVar13;\n  size_t sVar14;\n  uint uVar15;\n  size_t sVar16;\n  int unaff_EDI;\n  bool bVar17;\n  double dVar18;\n  int local_74;\n  int local_48;\n  \n  __x86_get_pc_thunk_di();\n  image = this->image;\n  local_48 = omp_get_num_threads();\n  iVar9 = omp_get_thread_num();\n  iVar10 = (int)image->rows / local_48;\n  local_48 = (int)image->rows % local_48;\n  if (iVar9 < local_48) {\n    iVar10 = iVar10 + 1;\n    local_48 = 0;\n  }\n  local_48 = iVar9 * iVar10 + local_48;\n  iVar10 = iVar10 + local_48;\n  if (local_48 < iVar10) {\n    cache_view = this->image_view;\n    exception = this->exception;\n    dVar2 = this->gamma;\n    dVar3 = this->white_point;\n    dVar4 = this->black_point;\n    dVar6 = 1.0;\n    if (dVar2 < 0.0) {\n      dVar6 = -1.0;\n    }\n    do {\n      if (this->status != MagickFalse) {\n        pQVar11 = GetCacheViewAuthenticPixels(cache_view,0,local_48,image->columns,1,exception);\n        if (pQVar11 == (Quantum *)0x0) {\nLAB_000c23df:\n          this->status = MagickFalse;\n        }\n        else {\n          sVar14 = image->columns;\n          if (0 < (int)sVar14) {\n            sVar16 = image->number_channels;\n            local_74 = 0;\n            do {\n              iVar9 = 0;\n              if (0 < (int)sVar16) {\n                do {\n                  if ((image->channel_map[image->channel_map[iVar9].channel].traits &\n                      UpdatePixelTrait) != UndefinedPixelTrait) {\n                    dVar7 = dVar3 - dVar4;\n                    if (dVar7 < 0.0) {\n                      dVar8 = -dVar7;\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar8 = dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar8) {\n                      dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar6) {\n                      dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar18 = (pQVar11[iVar9] - dVar4) * dVar18;\n                    if (0.0 <= dVar18) {\n                      dVar18 = pow(dVar18,dVar7);\n                      sVar16 = image->number_channels;\n                    }\n                    pQVar11[iVar9] = dVar18 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar9 = iVar9 + 1;\n                } while (iVar9 < (int)sVar16);\n                sVar14 = image->columns;\n              }\n              local_74 = local_74 + 1;\n              pQVar11 = pQVar11 + sVar16;\n            } while (local_74 < (int)sVar14);\n          }\n          MVar12 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar12 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            puVar5 = (uint *)this->progress;\n            uVar13 = *puVar5;\n            uVar15 = puVar5[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar5;\n              bVar17 = CONCAT44(uVar15,uVar13) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar5 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar12 = SetImageProgress(image,(char *)(unaff_EDI + 0x230b0f),*this->progress,\n                                      (ulonglong)image->rows);\n            if (MVar12 == MagickFalse) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    } while (iVar10 != local_48);\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (function_declarator "LevelImage__omp_fn_9(anon_struct_48_8_0a4f978e *this)" identifier (parameter_list "(anon_struct_48_8_0a4f978e *this)" ( (parameter_declaration "anon_struct_48_8_0a4f978e *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  longlong lVar1;\n  double dVar2;\n  double dVar3;\n  double dVar4;\n  Image *image;\n  CacheView *cache_view;\n  ExceptionInfo *exception;\n  uint *puVar5;\n  double dVar6;\n  double dVar7;\n  double dVar8;\n  int iVar9;\n  int iVar10;\n  Quantum *pQVar11;\n  MagickBooleanType MVar12;\n  uint uVar13;\n  size_t sVar14;\n  uint uVar15;\n  size_t sVar16;\n  int unaff_EDI;\n  bool bVar17;\n  double dVar18;\n  int local_74;\n  int local_48;\n  \n  __x86_get_pc_thunk_di();\n  image = this->image;\n  local_48 = omp_get_num_threads();\n  iVar9 = omp_get_thread_num();\n  iVar10 = (int)image->rows / local_48;\n  local_48 = (int)image->rows % local_48;\n  if (iVar9 < local_48) {\n    iVar10 = iVar10 + 1;\n    local_48 = 0;\n  }\n  local_48 = iVar9 * iVar10 + local_48;\n  iVar10 = iVar10 + local_48;\n  if (local_48 < iVar10) {\n    cache_view = this->image_view;\n    exception = this->exception;\n    dVar2 = this->gamma;\n    dVar3 = this->white_point;\n    dVar4 = this->black_point;\n    dVar6 = 1.0;\n    if (dVar2 < 0.0) {\n      dVar6 = -1.0;\n    }\n    do {\n      if (this->status != MagickFalse) {\n        pQVar11 = GetCacheViewAuthenticPixels(cache_view,0,local_48,image->columns,1,exception);\n        if (pQVar11 == (Quantum *)0x0) {\nLAB_000c23df:\n          this->status = MagickFalse;\n        }\n        else {\n          sVar14 = image->columns;\n          if (0 < (int)sVar14) {\n            sVar16 = image->number_channels;\n            local_74 = 0;\n            do {\n              iVar9 = 0;\n              if (0 < (int)sVar16) {\n                do {\n                  if ((image->channel_map[image->channel_map[iVar9].channel].traits &\n                      UpdatePixelTrait) != UndefinedPixelTrait) {\n                    dVar7 = dVar3 - dVar4;\n                    if (dVar7 < 0.0) {\n                      dVar8 = -dVar7;\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar8 = dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar8) {\n                      dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar6) {\n                      dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar18 = (pQVar11[iVar9] - dVar4) * dVar18;\n                    if (0.0 <= dVar18) {\n                      dVar18 = pow(dVar18,dVar7);\n                      sVar16 = image->number_channels;\n                    }\n                    pQVar11[iVar9] = dVar18 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar9 = iVar9 + 1;\n                } while (iVar9 < (int)sVar16);\n                sVar14 = image->columns;\n              }\n              local_74 = local_74 + 1;\n              pQVar11 = pQVar11 + sVar16;\n            } while (local_74 < (int)sVar14);\n          }\n          MVar12 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar12 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            puVar5 = (uint *)this->progress;\n            uVar13 = *puVar5;\n            uVar15 = puVar5[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar5;\n              bVar17 = CONCAT44(uVar15,uVar13) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar5 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar12 = SetImageProgress(image,(char *)(unaff_EDI + 0x230b0f),*this->progress,\n                                      (ulonglong)image->rows);\n            if (MVar12 == MagickFalse) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    } while (iVar10 != local_48);\n  }\n  return;\n}" { (declaration "longlong lVar1;" type_identifier identifier ;) (declaration "double dVar2;" primitive_type identifier ;) (declaration "double dVar3;" primitive_type identifier ;) (declaration "double dVar4;" 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 "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "double dVar6;" primitive_type identifier ;) (declaration "double dVar7;" primitive_type identifier ;) (declaration "double dVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "Quantum *pQVar11;" type_identifier (pointer_declarator "*pQVar11" * identifier) ;) (declaration "MagickBooleanType MVar12;" type_identifier identifier ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "size_t sVar14;" primitive_type identifier ;) (declaration "uint uVar15;" type_identifier identifier ;) (declaration "size_t sVar16;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "bool bVar17;" primitive_type identifier ;) (declaration "double dVar18;" primitive_type identifier ;) (declaration "int local_74;" primitive_type identifier ;) (declaration "int local_48;" primitive_type identifier ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (expression_statement "image = this->image;" (assignment_expression "image = this->image" identifier = (field_expression "this->image" identifier -> field_identifier)) ;) (expression_statement "local_48 = omp_get_num_threads();" (assignment_expression "local_48 = omp_get_num_threads()" identifier = (call_expression "omp_get_num_threads()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar9 = omp_get_thread_num();" (assignment_expression "iVar9 = omp_get_thread_num()" identifier = (call_expression "omp_get_thread_num()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar10 = (int)image->rows / local_48;" (assignment_expression "iVar10 = (int)image->rows / local_48" identifier = (binary_expression "(int)image->rows / local_48" (cast_expression "(int)image->rows" ( (type_descriptor "int" primitive_type) ) (field_expression "image->rows" identifier -> field_identifier)) / identifier)) ;) (expression_statement "local_48 = (int)image->rows % local_48;" (assignment_expression "local_48 = (int)image->rows % local_48" identifier = (binary_expression "(int)image->rows % local_48" (cast_expression "(int)image->rows" ( (type_descriptor "int" primitive_type) ) (field_expression "image->rows" identifier -> field_identifier)) % identifier)) ;) (if_statement "if (iVar9 < local_48) {\n    iVar10 = iVar10 + 1;\n    local_48 = 0;\n  }" if (parenthesized_expression "(iVar9 < local_48)" ( (binary_expression "iVar9 < local_48" identifier < identifier) )) (compound_statement "{\n    iVar10 = iVar10 + 1;\n    local_48 = 0;\n  }" { (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) })) (expression_statement "local_48 = iVar9 * iVar10 + local_48;" (assignment_expression "local_48 = iVar9 * iVar10 + local_48" identifier = (binary_expression "iVar9 * iVar10 + local_48" (binary_expression "iVar9 * iVar10" identifier * identifier) + identifier)) ;) (expression_statement "iVar10 = iVar10 + local_48;" (assignment_expression "iVar10 = iVar10 + local_48" identifier = (binary_expression "iVar10 + local_48" identifier + identifier)) ;) (if_statement "if (local_48 < iVar10) {\n    cache_view = this->image_view;\n    exception = this->exception;\n    dVar2 = this->gamma;\n    dVar3 = this->white_point;\n    dVar4 = this->black_point;\n    dVar6 = 1.0;\n    if (dVar2 < 0.0) {\n      dVar6 = -1.0;\n    }\n    do {\n      if (this->status != MagickFalse) {\n        pQVar11 = GetCacheViewAuthenticPixels(cache_view,0,local_48,image->columns,1,exception);\n        if (pQVar11 == (Quantum *)0x0) {\nLAB_000c23df:\n          this->status = MagickFalse;\n        }\n        else {\n          sVar14 = image->columns;\n          if (0 < (int)sVar14) {\n            sVar16 = image->number_channels;\n            local_74 = 0;\n            do {\n              iVar9 = 0;\n              if (0 < (int)sVar16) {\n                do {\n                  if ((image->channel_map[image->channel_map[iVar9].channel].traits &\n                      UpdatePixelTrait) != UndefinedPixelTrait) {\n                    dVar7 = dVar3 - dVar4;\n                    if (dVar7 < 0.0) {\n                      dVar8 = -dVar7;\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar8 = dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar8) {\n                      dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar6) {\n                      dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar18 = (pQVar11[iVar9] - dVar4) * dVar18;\n                    if (0.0 <= dVar18) {\n                      dVar18 = pow(dVar18,dVar7);\n                      sVar16 = image->number_channels;\n                    }\n                    pQVar11[iVar9] = dVar18 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar9 = iVar9 + 1;\n                } while (iVar9 < (int)sVar16);\n                sVar14 = image->columns;\n              }\n              local_74 = local_74 + 1;\n              pQVar11 = pQVar11 + sVar16;\n            } while (local_74 < (int)sVar14);\n          }\n          MVar12 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar12 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            puVar5 = (uint *)this->progress;\n            uVar13 = *puVar5;\n            uVar15 = puVar5[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar5;\n              bVar17 = CONCAT44(uVar15,uVar13) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar5 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar12 = SetImageProgress(image,(char *)(unaff_EDI + 0x230b0f),*this->progress,\n                                      (ulonglong)image->rows);\n            if (MVar12 == MagickFalse) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    } while (iVar10 != local_48);\n  }" if (parenthesized_expression "(local_48 < iVar10)" ( (binary_expression "local_48 < iVar10" identifier < identifier) )) (compound_statement "{\n    cache_view = this->image_view;\n    exception = this->exception;\n    dVar2 = this->gamma;\n    dVar3 = this->white_point;\n    dVar4 = this->black_point;\n    dVar6 = 1.0;\n    if (dVar2 < 0.0) {\n      dVar6 = -1.0;\n    }\n    do {\n      if (this->status != MagickFalse) {\n        pQVar11 = GetCacheViewAuthenticPixels(cache_view,0,local_48,image->columns,1,exception);\n        if (pQVar11 == (Quantum *)0x0) {\nLAB_000c23df:\n          this->status = MagickFalse;\n        }\n        else {\n          sVar14 = image->columns;\n          if (0 < (int)sVar14) {\n            sVar16 = image->number_channels;\n            local_74 = 0;\n            do {\n              iVar9 = 0;\n              if (0 < (int)sVar16) {\n                do {\n                  if ((image->channel_map[image->channel_map[iVar9].channel].traits &\n                      UpdatePixelTrait) != UndefinedPixelTrait) {\n                    dVar7 = dVar3 - dVar4;\n                    if (dVar7 < 0.0) {\n                      dVar8 = -dVar7;\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar8 = dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar8) {\n                      dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar6) {\n                      dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar18 = (pQVar11[iVar9] - dVar4) * dVar18;\n                    if (0.0 <= dVar18) {\n                      dVar18 = pow(dVar18,dVar7);\n                      sVar16 = image->number_channels;\n                    }\n                    pQVar11[iVar9] = dVar18 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar9 = iVar9 + 1;\n                } while (iVar9 < (int)sVar16);\n                sVar14 = image->columns;\n              }\n              local_74 = local_74 + 1;\n              pQVar11 = pQVar11 + sVar16;\n            } while (local_74 < (int)sVar14);\n          }\n          MVar12 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar12 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            puVar5 = (uint *)this->progress;\n            uVar13 = *puVar5;\n            uVar15 = puVar5[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar5;\n              bVar17 = CONCAT44(uVar15,uVar13) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar5 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar12 = SetImageProgress(image,(char *)(unaff_EDI + 0x230b0f),*this->progress,\n                                      (ulonglong)image->rows);\n            if (MVar12 == MagickFalse) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    } while (iVar10 != local_48);\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->gamma;" (assignment_expression "dVar2 = this->gamma" identifier = (field_expression "this->gamma" identifier -> field_identifier)) ;) (expression_statement "dVar3 = this->white_point;" (assignment_expression "dVar3 = this->white_point" identifier = (field_expression "this->white_point" identifier -> field_identifier)) ;) (expression_statement "dVar4 = this->black_point;" (assignment_expression "dVar4 = this->black_point" identifier = (field_expression "this->black_point" identifier -> field_identifier)) ;) (expression_statement "dVar6 = 1.0;" (assignment_expression "dVar6 = 1.0" identifier = number_literal) ;) (if_statement "if (dVar2 < 0.0) {\n      dVar6 = -1.0;\n    }" if (parenthesized_expression "(dVar2 < 0.0)" ( (binary_expression "dVar2 < 0.0" identifier < number_literal) )) (compound_statement "{\n      dVar6 = -1.0;\n    }" { (expression_statement "dVar6 = -1.0;" (assignment_expression "dVar6 = -1.0" identifier = number_literal) ;) })) (do_statement "do {\n      if (this->status != MagickFalse) {\n        pQVar11 = GetCacheViewAuthenticPixels(cache_view,0,local_48,image->columns,1,exception);\n        if (pQVar11 == (Quantum *)0x0) {\nLAB_000c23df:\n          this->status = MagickFalse;\n        }\n        else {\n          sVar14 = image->columns;\n          if (0 < (int)sVar14) {\n            sVar16 = image->number_channels;\n            local_74 = 0;\n            do {\n              iVar9 = 0;\n              if (0 < (int)sVar16) {\n                do {\n                  if ((image->channel_map[image->channel_map[iVar9].channel].traits &\n                      UpdatePixelTrait) != UndefinedPixelTrait) {\n                    dVar7 = dVar3 - dVar4;\n                    if (dVar7 < 0.0) {\n                      dVar8 = -dVar7;\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar8 = dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar8) {\n                      dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar6) {\n                      dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar18 = (pQVar11[iVar9] - dVar4) * dVar18;\n                    if (0.0 <= dVar18) {\n                      dVar18 = pow(dVar18,dVar7);\n                      sVar16 = image->number_channels;\n                    }\n                    pQVar11[iVar9] = dVar18 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar9 = iVar9 + 1;\n                } while (iVar9 < (int)sVar16);\n                sVar14 = image->columns;\n              }\n              local_74 = local_74 + 1;\n              pQVar11 = pQVar11 + sVar16;\n            } while (local_74 < (int)sVar14);\n          }\n          MVar12 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar12 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            puVar5 = (uint *)this->progress;\n            uVar13 = *puVar5;\n            uVar15 = puVar5[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar5;\n              bVar17 = CONCAT44(uVar15,uVar13) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar5 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar12 = SetImageProgress(image,(char *)(unaff_EDI + 0x230b0f),*this->progress,\n                                      (ulonglong)image->rows);\n            if (MVar12 == MagickFalse) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    } while (iVar10 != local_48);" do (compound_statement "{\n      if (this->status != MagickFalse) {\n        pQVar11 = GetCacheViewAuthenticPixels(cache_view,0,local_48,image->columns,1,exception);\n        if (pQVar11 == (Quantum *)0x0) {\nLAB_000c23df:\n          this->status = MagickFalse;\n        }\n        else {\n          sVar14 = image->columns;\n          if (0 < (int)sVar14) {\n            sVar16 = image->number_channels;\n            local_74 = 0;\n            do {\n              iVar9 = 0;\n              if (0 < (int)sVar16) {\n                do {\n                  if ((image->channel_map[image->channel_map[iVar9].channel].traits &\n                      UpdatePixelTrait) != UndefinedPixelTrait) {\n                    dVar7 = dVar3 - dVar4;\n                    if (dVar7 < 0.0) {\n                      dVar8 = -dVar7;\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar8 = dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar8) {\n                      dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar6) {\n                      dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar18 = (pQVar11[iVar9] - dVar4) * dVar18;\n                    if (0.0 <= dVar18) {\n                      dVar18 = pow(dVar18,dVar7);\n                      sVar16 = image->number_channels;\n                    }\n                    pQVar11[iVar9] = dVar18 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar9 = iVar9 + 1;\n                } while (iVar9 < (int)sVar16);\n                sVar14 = image->columns;\n              }\n              local_74 = local_74 + 1;\n              pQVar11 = pQVar11 + sVar16;\n            } while (local_74 < (int)sVar14);\n          }\n          MVar12 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar12 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            puVar5 = (uint *)this->progress;\n            uVar13 = *puVar5;\n            uVar15 = puVar5[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar5;\n              bVar17 = CONCAT44(uVar15,uVar13) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar5 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar12 = SetImageProgress(image,(char *)(unaff_EDI + 0x230b0f),*this->progress,\n                                      (ulonglong)image->rows);\n            if (MVar12 == MagickFalse) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    }" { (if_statement "if (this->status != MagickFalse) {\n        pQVar11 = GetCacheViewAuthenticPixels(cache_view,0,local_48,image->columns,1,exception);\n        if (pQVar11 == (Quantum *)0x0) {\nLAB_000c23df:\n          this->status = MagickFalse;\n        }\n        else {\n          sVar14 = image->columns;\n          if (0 < (int)sVar14) {\n            sVar16 = image->number_channels;\n            local_74 = 0;\n            do {\n              iVar9 = 0;\n              if (0 < (int)sVar16) {\n                do {\n                  if ((image->channel_map[image->channel_map[iVar9].channel].traits &\n                      UpdatePixelTrait) != UndefinedPixelTrait) {\n                    dVar7 = dVar3 - dVar4;\n                    if (dVar7 < 0.0) {\n                      dVar8 = -dVar7;\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar8 = dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar8) {\n                      dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar6) {\n                      dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar18 = (pQVar11[iVar9] - dVar4) * dVar18;\n                    if (0.0 <= dVar18) {\n                      dVar18 = pow(dVar18,dVar7);\n                      sVar16 = image->number_channels;\n                    }\n                    pQVar11[iVar9] = dVar18 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar9 = iVar9 + 1;\n                } while (iVar9 < (int)sVar16);\n                sVar14 = image->columns;\n              }\n              local_74 = local_74 + 1;\n              pQVar11 = pQVar11 + sVar16;\n            } while (local_74 < (int)sVar14);\n          }\n          MVar12 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar12 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            puVar5 = (uint *)this->progress;\n            uVar13 = *puVar5;\n            uVar15 = puVar5[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar5;\n              bVar17 = CONCAT44(uVar15,uVar13) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar5 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar12 = SetImageProgress(image,(char *)(unaff_EDI + 0x230b0f),*this->progress,\n                                      (ulonglong)image->rows);\n            if (MVar12 == MagickFalse) goto LAB_000c23df;\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        pQVar11 = GetCacheViewAuthenticPixels(cache_view,0,local_48,image->columns,1,exception);\n        if (pQVar11 == (Quantum *)0x0) {\nLAB_000c23df:\n          this->status = MagickFalse;\n        }\n        else {\n          sVar14 = image->columns;\n          if (0 < (int)sVar14) {\n            sVar16 = image->number_channels;\n            local_74 = 0;\n            do {\n              iVar9 = 0;\n              if (0 < (int)sVar16) {\n                do {\n                  if ((image->channel_map[image->channel_map[iVar9].channel].traits &\n                      UpdatePixelTrait) != UndefinedPixelTrait) {\n                    dVar7 = dVar3 - dVar4;\n                    if (dVar7 < 0.0) {\n                      dVar8 = -dVar7;\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar8 = dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar8) {\n                      dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar6) {\n                      dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar18 = (pQVar11[iVar9] - dVar4) * dVar18;\n                    if (0.0 <= dVar18) {\n                      dVar18 = pow(dVar18,dVar7);\n                      sVar16 = image->number_channels;\n                    }\n                    pQVar11[iVar9] = dVar18 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar9 = iVar9 + 1;\n                } while (iVar9 < (int)sVar16);\n                sVar14 = image->columns;\n              }\n              local_74 = local_74 + 1;\n              pQVar11 = pQVar11 + sVar16;\n            } while (local_74 < (int)sVar14);\n          }\n          MVar12 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar12 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            puVar5 = (uint *)this->progress;\n            uVar13 = *puVar5;\n            uVar15 = puVar5[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar5;\n              bVar17 = CONCAT44(uVar15,uVar13) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar5 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar12 = SetImageProgress(image,(char *)(unaff_EDI + 0x230b0f),*this->progress,\n                                      (ulonglong)image->rows);\n            if (MVar12 == MagickFalse) goto LAB_000c23df;\n          }\n        }\n      }" { (expression_statement "pQVar11 = GetCacheViewAuthenticPixels(cache_view,0,local_48,image->columns,1,exception);" (assignment_expression "pQVar11 = GetCacheViewAuthenticPixels(cache_view,0,local_48,image->columns,1,exception)" identifier = (call_expression "GetCacheViewAuthenticPixels(cache_view,0,local_48,image->columns,1,exception)" identifier (argument_list "(cache_view,0,local_48,image->columns,1,exception)" ( identifier , number_literal , identifier , (field_expression "image->columns" identifier -> field_identifier) , number_literal , identifier )))) ;) (if_statement "if (pQVar11 == (Quantum *)0x0) {\nLAB_000c23df:\n          this->status = MagickFalse;\n        }\n        else {\n          sVar14 = image->columns;\n          if (0 < (int)sVar14) {\n            sVar16 = image->number_channels;\n            local_74 = 0;\n            do {\n              iVar9 = 0;\n              if (0 < (int)sVar16) {\n                do {\n                  if ((image->channel_map[image->channel_map[iVar9].channel].traits &\n                      UpdatePixelTrait) != UndefinedPixelTrait) {\n                    dVar7 = dVar3 - dVar4;\n                    if (dVar7 < 0.0) {\n                      dVar8 = -dVar7;\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar8 = dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar8) {\n                      dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar6) {\n                      dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar18 = (pQVar11[iVar9] - dVar4) * dVar18;\n                    if (0.0 <= dVar18) {\n                      dVar18 = pow(dVar18,dVar7);\n                      sVar16 = image->number_channels;\n                    }\n                    pQVar11[iVar9] = dVar18 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar9 = iVar9 + 1;\n                } while (iVar9 < (int)sVar16);\n                sVar14 = image->columns;\n              }\n              local_74 = local_74 + 1;\n              pQVar11 = pQVar11 + sVar16;\n            } while (local_74 < (int)sVar14);\n          }\n          MVar12 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar12 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            puVar5 = (uint *)this->progress;\n            uVar13 = *puVar5;\n            uVar15 = puVar5[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar5;\n              bVar17 = CONCAT44(uVar15,uVar13) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar5 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar12 = SetImageProgress(image,(char *)(unaff_EDI + 0x230b0f),*this->progress,\n                                      (ulonglong)image->rows);\n            if (MVar12 == MagickFalse) goto LAB_000c23df;\n          }\n        }" if (parenthesized_expression "(pQVar11 == (Quantum *)0x0)" ( (binary_expression "pQVar11 == (Quantum *)0x0" identifier == (cast_expression "(Quantum *)0x0" ( (type_descriptor "Quantum *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_000c23df:\n          this->status = MagickFalse;\n        }" { (labeled_statement "LAB_000c23df:\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          sVar14 = image->columns;\n          if (0 < (int)sVar14) {\n            sVar16 = image->number_channels;\n            local_74 = 0;\n            do {\n              iVar9 = 0;\n              if (0 < (int)sVar16) {\n                do {\n                  if ((image->channel_map[image->channel_map[iVar9].channel].traits &\n                      UpdatePixelTrait) != UndefinedPixelTrait) {\n                    dVar7 = dVar3 - dVar4;\n                    if (dVar7 < 0.0) {\n                      dVar8 = -dVar7;\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar8 = dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar8) {\n                      dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar6) {\n                      dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar18 = (pQVar11[iVar9] - dVar4) * dVar18;\n                    if (0.0 <= dVar18) {\n                      dVar18 = pow(dVar18,dVar7);\n                      sVar16 = image->number_channels;\n                    }\n                    pQVar11[iVar9] = dVar18 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar9 = iVar9 + 1;\n                } while (iVar9 < (int)sVar16);\n                sVar14 = image->columns;\n              }\n              local_74 = local_74 + 1;\n              pQVar11 = pQVar11 + sVar16;\n            } while (local_74 < (int)sVar14);\n          }\n          MVar12 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar12 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            puVar5 = (uint *)this->progress;\n            uVar13 = *puVar5;\n            uVar15 = puVar5[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar5;\n              bVar17 = CONCAT44(uVar15,uVar13) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar5 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar12 = SetImageProgress(image,(char *)(unaff_EDI + 0x230b0f),*this->progress,\n                                      (ulonglong)image->rows);\n            if (MVar12 == MagickFalse) goto LAB_000c23df;\n          }\n        }" else (compound_statement "{\n          sVar14 = image->columns;\n          if (0 < (int)sVar14) {\n            sVar16 = image->number_channels;\n            local_74 = 0;\n            do {\n              iVar9 = 0;\n              if (0 < (int)sVar16) {\n                do {\n                  if ((image->channel_map[image->channel_map[iVar9].channel].traits &\n                      UpdatePixelTrait) != UndefinedPixelTrait) {\n                    dVar7 = dVar3 - dVar4;\n                    if (dVar7 < 0.0) {\n                      dVar8 = -dVar7;\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar8 = dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar8) {\n                      dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar6) {\n                      dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar18 = (pQVar11[iVar9] - dVar4) * dVar18;\n                    if (0.0 <= dVar18) {\n                      dVar18 = pow(dVar18,dVar7);\n                      sVar16 = image->number_channels;\n                    }\n                    pQVar11[iVar9] = dVar18 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar9 = iVar9 + 1;\n                } while (iVar9 < (int)sVar16);\n                sVar14 = image->columns;\n              }\n              local_74 = local_74 + 1;\n              pQVar11 = pQVar11 + sVar16;\n            } while (local_74 < (int)sVar14);\n          }\n          MVar12 = SyncCacheViewAuthenticPixels(cache_view,exception);\n          if (MVar12 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n          if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n            puVar5 = (uint *)this->progress;\n            uVar13 = *puVar5;\n            uVar15 = puVar5[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar5;\n              bVar17 = CONCAT44(uVar15,uVar13) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar5 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar12 = SetImageProgress(image,(char *)(unaff_EDI + 0x230b0f),*this->progress,\n                                      (ulonglong)image->rows);\n            if (MVar12 == MagickFalse) goto LAB_000c23df;\n          }\n        }" { (expression_statement "sVar14 = image->columns;" (assignment_expression "sVar14 = image->columns" identifier = (field_expression "image->columns" identifier -> field_identifier)) ;) (if_statement "if (0 < (int)sVar14) {\n            sVar16 = image->number_channels;\n            local_74 = 0;\n            do {\n              iVar9 = 0;\n              if (0 < (int)sVar16) {\n                do {\n                  if ((image->channel_map[image->channel_map[iVar9].channel].traits &\n                      UpdatePixelTrait) != UndefinedPixelTrait) {\n                    dVar7 = dVar3 - dVar4;\n                    if (dVar7 < 0.0) {\n                      dVar8 = -dVar7;\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar8 = dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar8) {\n                      dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar6) {\n                      dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar18 = (pQVar11[iVar9] - dVar4) * dVar18;\n                    if (0.0 <= dVar18) {\n                      dVar18 = pow(dVar18,dVar7);\n                      sVar16 = image->number_channels;\n                    }\n                    pQVar11[iVar9] = dVar18 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar9 = iVar9 + 1;\n                } while (iVar9 < (int)sVar16);\n                sVar14 = image->columns;\n              }\n              local_74 = local_74 + 1;\n              pQVar11 = pQVar11 + sVar16;\n            } while (local_74 < (int)sVar14);\n          }" if (parenthesized_expression "(0 < (int)sVar14)" ( (binary_expression "0 < (int)sVar14" number_literal < (cast_expression "(int)sVar14" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n            sVar16 = image->number_channels;\n            local_74 = 0;\n            do {\n              iVar9 = 0;\n              if (0 < (int)sVar16) {\n                do {\n                  if ((image->channel_map[image->channel_map[iVar9].channel].traits &\n                      UpdatePixelTrait) != UndefinedPixelTrait) {\n                    dVar7 = dVar3 - dVar4;\n                    if (dVar7 < 0.0) {\n                      dVar8 = -dVar7;\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar8 = dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar8) {\n                      dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar6) {\n                      dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar18 = (pQVar11[iVar9] - dVar4) * dVar18;\n                    if (0.0 <= dVar18) {\n                      dVar18 = pow(dVar18,dVar7);\n                      sVar16 = image->number_channels;\n                    }\n                    pQVar11[iVar9] = dVar18 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar9 = iVar9 + 1;\n                } while (iVar9 < (int)sVar16);\n                sVar14 = image->columns;\n              }\n              local_74 = local_74 + 1;\n              pQVar11 = pQVar11 + sVar16;\n            } while (local_74 < (int)sVar14);\n          }" { (expression_statement "sVar16 = image->number_channels;" (assignment_expression "sVar16 = image->number_channels" identifier = (field_expression "image->number_channels" identifier -> field_identifier)) ;) (expression_statement "local_74 = 0;" (assignment_expression "local_74 = 0" identifier = number_literal) ;) (do_statement "do {\n              iVar9 = 0;\n              if (0 < (int)sVar16) {\n                do {\n                  if ((image->channel_map[image->channel_map[iVar9].channel].traits &\n                      UpdatePixelTrait) != UndefinedPixelTrait) {\n                    dVar7 = dVar3 - dVar4;\n                    if (dVar7 < 0.0) {\n                      dVar8 = -dVar7;\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar8 = dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar8) {\n                      dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar6) {\n                      dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar18 = (pQVar11[iVar9] - dVar4) * dVar18;\n                    if (0.0 <= dVar18) {\n                      dVar18 = pow(dVar18,dVar7);\n                      sVar16 = image->number_channels;\n                    }\n                    pQVar11[iVar9] = dVar18 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar9 = iVar9 + 1;\n                } while (iVar9 < (int)sVar16);\n                sVar14 = image->columns;\n              }\n              local_74 = local_74 + 1;\n              pQVar11 = pQVar11 + sVar16;\n            } while (local_74 < (int)sVar14);" do (compound_statement "{\n              iVar9 = 0;\n              if (0 < (int)sVar16) {\n                do {\n                  if ((image->channel_map[image->channel_map[iVar9].channel].traits &\n                      UpdatePixelTrait) != UndefinedPixelTrait) {\n                    dVar7 = dVar3 - dVar4;\n                    if (dVar7 < 0.0) {\n                      dVar8 = -dVar7;\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar8 = dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar8) {\n                      dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar6) {\n                      dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar18 = (pQVar11[iVar9] - dVar4) * dVar18;\n                    if (0.0 <= dVar18) {\n                      dVar18 = pow(dVar18,dVar7);\n                      sVar16 = image->number_channels;\n                    }\n                    pQVar11[iVar9] = dVar18 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar9 = iVar9 + 1;\n                } while (iVar9 < (int)sVar16);\n                sVar14 = image->columns;\n              }\n              local_74 = local_74 + 1;\n              pQVar11 = pQVar11 + sVar16;\n            }" { (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (if_statement "if (0 < (int)sVar16) {\n                do {\n                  if ((image->channel_map[image->channel_map[iVar9].channel].traits &\n                      UpdatePixelTrait) != UndefinedPixelTrait) {\n                    dVar7 = dVar3 - dVar4;\n                    if (dVar7 < 0.0) {\n                      dVar8 = -dVar7;\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar8 = dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar8) {\n                      dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar6) {\n                      dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar18 = (pQVar11[iVar9] - dVar4) * dVar18;\n                    if (0.0 <= dVar18) {\n                      dVar18 = pow(dVar18,dVar7);\n                      sVar16 = image->number_channels;\n                    }\n                    pQVar11[iVar9] = dVar18 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar9 = iVar9 + 1;\n                } while (iVar9 < (int)sVar16);\n                sVar14 = image->columns;\n              }" if (parenthesized_expression "(0 < (int)sVar16)" ( (binary_expression "0 < (int)sVar16" number_literal < (cast_expression "(int)sVar16" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n                do {\n                  if ((image->channel_map[image->channel_map[iVar9].channel].traits &\n                      UpdatePixelTrait) != UndefinedPixelTrait) {\n                    dVar7 = dVar3 - dVar4;\n                    if (dVar7 < 0.0) {\n                      dVar8 = -dVar7;\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar8 = dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar8) {\n                      dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar6) {\n                      dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar18 = (pQVar11[iVar9] - dVar4) * dVar18;\n                    if (0.0 <= dVar18) {\n                      dVar18 = pow(dVar18,dVar7);\n                      sVar16 = image->number_channels;\n                    }\n                    pQVar11[iVar9] = dVar18 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar9 = iVar9 + 1;\n                } while (iVar9 < (int)sVar16);\n                sVar14 = image->columns;\n              }" { (do_statement "do {\n                  if ((image->channel_map[image->channel_map[iVar9].channel].traits &\n                      UpdatePixelTrait) != UndefinedPixelTrait) {\n                    dVar7 = dVar3 - dVar4;\n                    if (dVar7 < 0.0) {\n                      dVar8 = -dVar7;\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar8 = dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar8) {\n                      dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar6) {\n                      dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar18 = (pQVar11[iVar9] - dVar4) * dVar18;\n                    if (0.0 <= dVar18) {\n                      dVar18 = pow(dVar18,dVar7);\n                      sVar16 = image->number_channels;\n                    }\n                    pQVar11[iVar9] = dVar18 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar9 = iVar9 + 1;\n                } while (iVar9 < (int)sVar16);" do (compound_statement "{\n                  if ((image->channel_map[image->channel_map[iVar9].channel].traits &\n                      UpdatePixelTrait) != UndefinedPixelTrait) {\n                    dVar7 = dVar3 - dVar4;\n                    if (dVar7 < 0.0) {\n                      dVar8 = -dVar7;\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar8 = dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar8) {\n                      dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar6) {\n                      dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar18 = (pQVar11[iVar9] - dVar4) * dVar18;\n                    if (0.0 <= dVar18) {\n                      dVar18 = pow(dVar18,dVar7);\n                      sVar16 = image->number_channels;\n                    }\n                    pQVar11[iVar9] = dVar18 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar9 = iVar9 + 1;\n                }" { (if_statement "if ((image->channel_map[image->channel_map[iVar9].channel].traits &\n                      UpdatePixelTrait) != UndefinedPixelTrait) {\n                    dVar7 = dVar3 - dVar4;\n                    if (dVar7 < 0.0) {\n                      dVar8 = -dVar7;\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar8 = dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar8) {\n                      dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar6) {\n                      dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar18 = (pQVar11[iVar9] - dVar4) * dVar18;\n                    if (0.0 <= dVar18) {\n                      dVar18 = pow(dVar18,dVar7);\n                      sVar16 = image->number_channels;\n                    }\n                    pQVar11[iVar9] = dVar18 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }" if (parenthesized_expression "((image->channel_map[image->channel_map[iVar9].channel].traits &\n                      UpdatePixelTrait) != UndefinedPixelTrait)" ( (binary_expression "(image->channel_map[image->channel_map[iVar9].channel].traits &\n                      UpdatePixelTrait) != UndefinedPixelTrait" (parenthesized_expression "(image->channel_map[image->channel_map[iVar9].channel].traits &\n                      UpdatePixelTrait)" ( (binary_expression "image->channel_map[image->channel_map[iVar9].channel].traits &\n                      UpdatePixelTrait" (field_expression "image->channel_map[image->channel_map[iVar9].channel].traits" (subscript_expression "image->channel_map[image->channel_map[iVar9].channel]" (field_expression "image->channel_map" identifier -> field_identifier) [ (field_expression "image->channel_map[iVar9].channel" (subscript_expression "image->channel_map[iVar9]" (field_expression "image->channel_map" identifier -> field_identifier) [ identifier ]) . field_identifier) ]) . field_identifier) & identifier) )) != identifier) )) (compound_statement "{\n                    dVar7 = dVar3 - dVar4;\n                    if (dVar7 < 0.0) {\n                      dVar8 = -dVar7;\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar8 = dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar8) {\n                      dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar6) {\n                      dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar18 = (pQVar11[iVar9] - dVar4) * dVar18;\n                    if (0.0 <= dVar18) {\n                      dVar18 = pow(dVar18,dVar7);\n                      sVar16 = image->number_channels;\n                    }\n                    pQVar11[iVar9] = dVar18 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }" { (expression_statement "dVar7 = dVar3 - dVar4;" (assignment_expression "dVar7 = dVar3 - dVar4" identifier = (binary_expression "dVar3 - dVar4" identifier - identifier)) ;) (if_statement "if (dVar7 < 0.0) {\n                      dVar8 = -dVar7;\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar8 = dVar7;\n                    }" if (parenthesized_expression "(dVar7 < 0.0)" ( (binary_expression "dVar7 < 0.0" identifier < number_literal) )) (compound_statement "{\n                      dVar8 = -dVar7;\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }" { (expression_statement "dVar8 = -dVar7;" (assignment_expression "dVar8 = -dVar7" identifier = (unary_expression "-dVar7" - identifier)) ;) (expression_statement "dVar18 = *(double *)(unaff_EDI + 0x21d7b9);" (assignment_expression "dVar18 = *(double *)(unaff_EDI + 0x21d7b9)" identifier = (pointer_expression "*(double *)(unaff_EDI + 0x21d7b9)" * (cast_expression "(double *)(unaff_EDI + 0x21d7b9)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x21d7b9)" ( (binary_expression "unaff_EDI + 0x21d7b9" identifier + number_literal) ))))) ;) }) (else_clause "else {\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar8 = dVar7;\n                    }" else (compound_statement "{\n                      dVar18 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar8 = dVar7;\n                    }" { (expression_statement "dVar18 = *(double *)(unaff_EDI + 0x21d7b1);" (assignment_expression "dVar18 = *(double *)(unaff_EDI + 0x21d7b1)" identifier = (pointer_expression "*(double *)(unaff_EDI + 0x21d7b1)" * (cast_expression "(double *)(unaff_EDI + 0x21d7b1)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x21d7b1)" ( (binary_expression "unaff_EDI + 0x21d7b1" identifier + number_literal) ))))) ;) (expression_statement "dVar8 = dVar7;" (assignment_expression "dVar8 = dVar7" identifier = identifier) ;) }))) (if_statement "if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar8) {\n                      dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7;\n                    }" if (parenthesized_expression "(*(double *)(unaff_EDI + 0x21d1a9) <= dVar8)" ( (binary_expression "*(double *)(unaff_EDI + 0x21d1a9) <= dVar8" (pointer_expression "*(double *)(unaff_EDI + 0x21d1a9)" * (cast_expression "(double *)(unaff_EDI + 0x21d1a9)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x21d1a9)" ( (binary_expression "unaff_EDI + 0x21d1a9" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n                      dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7;\n                    }" { (expression_statement "dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7;" (assignment_expression "dVar18 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar7" identifier = (binary_expression "(double)*(float *)(unaff_EDI + 0x21d78d) / dVar7" (cast_expression "(double)*(float *)(unaff_EDI + 0x21d78d)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(float *)(unaff_EDI + 0x21d78d)" * (cast_expression "(float *)(unaff_EDI + 0x21d78d)" ( (type_descriptor "float *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x21d78d)" ( (binary_expression "unaff_EDI + 0x21d78d" identifier + number_literal) ))))) / identifier)) ;) })) (if_statement "if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar6) {\n                      dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }" if (parenthesized_expression "(*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar6)" ( (binary_expression "*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar6" (pointer_expression "*(double *)(unaff_EDI + 0x21d1a9)" * (cast_expression "(double *)(unaff_EDI + 0x21d1a9)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x21d1a9)" ( (binary_expression "unaff_EDI + 0x21d1a9" identifier + number_literal) )))) <= (binary_expression "dVar2 * dVar6" identifier * identifier)) )) (compound_statement "{\n                      dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }" { (expression_statement "dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;" (assignment_expression "dVar7 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2" identifier = (binary_expression "(double)*(float *)(unaff_EDI + 0x21d78d) / dVar2" (cast_expression "(double)*(float *)(unaff_EDI + 0x21d78d)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(float *)(unaff_EDI + 0x21d78d)" * (cast_expression "(float *)(unaff_EDI + 0x21d78d)" ( (type_descriptor "float *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x21d78d)" ( (binary_expression "unaff_EDI + 0x21d78d" identifier + number_literal) ))))) / identifier)) ;) }) (else_clause "else {\n                      dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }" else (compound_statement "{\n                      dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }" { (expression_statement "dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9);" (assignment_expression "dVar7 = dVar6 / *(double *)(unaff_EDI + 0x21d1a9)" identifier = (binary_expression "dVar6 / *(double *)(unaff_EDI + 0x21d1a9)" identifier / (pointer_expression "*(double *)(unaff_EDI + 0x21d1a9)" * (cast_expression "(double *)(unaff_EDI + 0x21d1a9)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x21d1a9)" ( (binary_expression "unaff_EDI + 0x21d1a9" identifier + number_literal) )))))) ;) }))) (expression_statement "dVar18 = (pQVar11[iVar9] - dVar4) * dVar18;" (assignment_expression "dVar18 = (pQVar11[iVar9] - dVar4) * dVar18" identifier = (binary_expression "(pQVar11[iVar9] - dVar4) * dVar18" (parenthesized_expression "(pQVar11[iVar9] - dVar4)" ( (binary_expression "pQVar11[iVar9] - dVar4" (subscript_expression "pQVar11[iVar9]" identifier [ identifier ]) - identifier) )) * identifier)) ;) (if_statement "if (0.0 <= dVar18) {\n                      dVar18 = pow(dVar18,dVar7);\n                      sVar16 = image->number_channels;\n                    }" if (parenthesized_expression "(0.0 <= dVar18)" ( (binary_expression "0.0 <= dVar18" number_literal <= identifier) )) (compound_statement "{\n                      dVar18 = pow(dVar18,dVar7);\n                      sVar16 = image->number_channels;\n                    }" { (expression_statement "dVar18 = pow(dVar18,dVar7);" (assignment_expression "dVar18 = pow(dVar18,dVar7)" identifier = (call_expression "pow(dVar18,dVar7)" identifier (argument_list "(dVar18,dVar7)" ( identifier , identifier )))) ;) (expression_statement "sVar16 = image->number_channels;" (assignment_expression "sVar16 = image->number_channels" identifier = (field_expression "image->number_channels" identifier -> field_identifier)) ;) })) (expression_statement "pQVar11[iVar9] = dVar18 * (double)*(float *)(unaff_EDI + 0x21d781);" (assignment_expression "pQVar11[iVar9] = dVar18 * (double)*(float *)(unaff_EDI + 0x21d781)" (subscript_expression "pQVar11[iVar9]" identifier [ identifier ]) = (binary_expression "dVar18 * (double)*(float *)(unaff_EDI + 0x21d781)" identifier * (cast_expression "(double)*(float *)(unaff_EDI + 0x21d781)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(float *)(unaff_EDI + 0x21d781)" * (cast_expression "(float *)(unaff_EDI + 0x21d781)" ( (type_descriptor "float *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x21d781)" ( (binary_expression "unaff_EDI + 0x21d781" identifier + number_literal) ))))))) ;) })) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar9 < (int)sVar16)" ( (binary_expression "iVar9 < (int)sVar16" identifier < (cast_expression "(int)sVar16" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) (expression_statement "sVar14 = image->columns;" (assignment_expression "sVar14 = image->columns" identifier = (field_expression "image->columns" identifier -> field_identifier)) ;) })) (expression_statement "local_74 = local_74 + 1;" (assignment_expression "local_74 = local_74 + 1" identifier = (binary_expression "local_74 + 1" identifier + number_literal)) ;) (expression_statement "pQVar11 = pQVar11 + sVar16;" (assignment_expression "pQVar11 = pQVar11 + sVar16" identifier = (binary_expression "pQVar11 + sVar16" identifier + identifier)) ;) }) while (parenthesized_expression "(local_74 < (int)sVar14)" ( (binary_expression "local_74 < (int)sVar14" identifier < (cast_expression "(int)sVar14" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (expression_statement "MVar12 = SyncCacheViewAuthenticPixels(cache_view,exception);" (assignment_expression "MVar12 = SyncCacheViewAuthenticPixels(cache_view,exception)" identifier = (call_expression "SyncCacheViewAuthenticPixels(cache_view,exception)" identifier (argument_list "(cache_view,exception)" ( identifier , identifier )))) ;) (if_statement "if (MVar12 == MagickFalse) {\n            this->status = MagickFalse;\n          }" if (parenthesized_expression "(MVar12 == MagickFalse)" ( (binary_expression "MVar12 == 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            puVar5 = (uint *)this->progress;\n            uVar13 = *puVar5;\n            uVar15 = puVar5[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar5;\n              bVar17 = CONCAT44(uVar15,uVar13) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar5 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar12 = SetImageProgress(image,(char *)(unaff_EDI + 0x230b0f),*this->progress,\n                                      (ulonglong)image->rows);\n            if (MVar12 == MagickFalse) goto LAB_000c23df;\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            puVar5 = (uint *)this->progress;\n            uVar13 = *puVar5;\n            uVar15 = puVar5[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar5;\n              bVar17 = CONCAT44(uVar15,uVar13) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar5 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);\n            MVar12 = SetImageProgress(image,(char *)(unaff_EDI + 0x230b0f),*this->progress,\n                                      (ulonglong)image->rows);\n            if (MVar12 == MagickFalse) goto LAB_000c23df;\n          }" { (expression_statement "puVar5 = (uint *)this->progress;" (assignment_expression "puVar5 = (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 "uVar13 = *puVar5;" (assignment_expression "uVar13 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "uVar15 = puVar5[1];" (assignment_expression "uVar15 = puVar5[1]" identifier = (subscript_expression "puVar5[1]" identifier [ number_literal ])) ;) (do_statement "do {\n              LOCK();\n              lVar1 = *(longlong *)puVar5;\n              bVar17 = CONCAT44(uVar15,uVar13) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar5 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar17);" do (compound_statement "{\n              LOCK();\n              lVar1 = *(longlong *)puVar5;\n              bVar17 = CONCAT44(uVar15,uVar13) == lVar1;\n              if (bVar17) {\n                *(longlong *)puVar5 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar15 = (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 *)puVar5;" (assignment_expression "lVar1 = *(longlong *)puVar5" identifier = (pointer_expression "*(longlong *)puVar5" * (cast_expression "(longlong *)puVar5" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "bVar17 = CONCAT44(uVar15,uVar13) == lVar1;" (assignment_expression "bVar17 = CONCAT44(uVar15,uVar13) == lVar1" identifier = (binary_expression "CONCAT44(uVar15,uVar13) == lVar1" (call_expression "CONCAT44(uVar15,uVar13)" identifier (argument_list "(uVar15,uVar13)" ( identifier , identifier ))) == identifier)) ;) (if_statement "if (bVar17) {\n                *(longlong *)puVar5 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n              }\n              else {\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }" if (parenthesized_expression "(bVar17)" ( identifier )) (compound_statement "{\n                *(longlong *)puVar5 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n              }" { (expression_statement "*(longlong *)puVar5 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);" (assignment_expression "*(longlong *)puVar5 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1)" (pointer_expression "*(longlong *)puVar5" * (cast_expression "(longlong *)puVar5" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (call_expression "CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1)" identifier (argument_list "(uVar15 + (0xfffffffe < uVar13),uVar13 + 1)" ( (binary_expression "uVar15 + (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                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (uint)lVar1;\n              }" else (compound_statement "{\n                uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar13 = (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 "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 "(!bVar17)" ( (unary_expression "!bVar17" ! identifier) )) ;) (expression_statement "MVar12 = SetImageProgress(image,(char *)(unaff_EDI + 0x230b0f),*this->progress,\n                                      (ulonglong)image->rows);" (assignment_expression "MVar12 = SetImageProgress(image,(char *)(unaff_EDI + 0x230b0f),*this->progress,\n                                      (ulonglong)image->rows)" identifier = (call_expression "SetImageProgress(image,(char *)(unaff_EDI + 0x230b0f),*this->progress,\n                                      (ulonglong)image->rows)" identifier (argument_list "(image,(char *)(unaff_EDI + 0x230b0f),*this->progress,\n                                      (ulonglong)image->rows)" ( identifier , (cast_expression "(char *)(unaff_EDI + 0x230b0f)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x230b0f)" ( (binary_expression "unaff_EDI + 0x230b0f" identifier + number_literal) ))) , (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 (MVar12 == MagickFalse) goto LAB_000c23df;" if (parenthesized_expression "(MVar12 == MagickFalse)" ( (binary_expression "MVar12 == MagickFalse" identifier == identifier) )) (goto_statement "goto LAB_000c23df;" goto statement_identifier ;)) })) }))) })) (expression_statement "local_48 = local_48 + 1;" (assignment_expression "local_48 = local_48 + 1" identifier = (binary_expression "local_48 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar10 != local_48)" ( (binary_expression "iVar10 != local_48" identifier != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000c2120(double *param_1)\n\n{\n  longlong lVar1;\n  double dVar2;\n  double dVar3;\n  double dVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  uint *puVar8;\n  double dVar9;\n  double dVar10;\n  double dVar11;\n  int iVar12;\n  int iVar13;\n  uint uVar14;\n  int iVar15;\n  uint uVar16;\n  int iVar17;\n  int iVar18;\n  int unaff_EDI;\n  bool bVar19;\n  double dVar20;\n  int local_74;\n  int local_48;\n  \n  FUN_0004f293();\n  iVar5 = *(int *)(param_1 + 3);\n  local_48 = omp_get_num_threads();\n  iVar12 = omp_get_thread_num();\n  iVar13 = *(int *)(iVar5 + 0x1c) / local_48;\n  local_48 = *(int *)(iVar5 + 0x1c) % local_48;\n  if (iVar12 < local_48) {\n    iVar13 = iVar13 + 1;\n    local_48 = 0;\n  }\n  local_48 = iVar12 * iVar13 + local_48;\n  iVar13 = iVar13 + local_48;\n  if (local_48 < iVar13) {\n    uVar6 = *(undefined4 *)(param_1 + 4);\n    uVar7 = *(undefined4 *)((int)param_1 + 0x1c);\n    dVar2 = param_1[2];\n    dVar3 = param_1[1];\n    dVar4 = *param_1;\n    dVar9 = 1.0;\n    if (dVar2 < 0.0) {\n      dVar9 = -1.0;\n    }\n    do {\n      if (*(int *)((int)param_1 + 0x24) != 0) {\n        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;\n        if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    } while (iVar13 != local_48);\n  }\n  return;\n}\n\n" (function_definition "void FUN_000c2120(double *param_1)\n\n{\n  longlong lVar1;\n  double dVar2;\n  double dVar3;\n  double dVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  uint *puVar8;\n  double dVar9;\n  double dVar10;\n  double dVar11;\n  int iVar12;\n  int iVar13;\n  uint uVar14;\n  int iVar15;\n  uint uVar16;\n  int iVar17;\n  int iVar18;\n  int unaff_EDI;\n  bool bVar19;\n  double dVar20;\n  int local_74;\n  int local_48;\n  \n  FUN_0004f293();\n  iVar5 = *(int *)(param_1 + 3);\n  local_48 = omp_get_num_threads();\n  iVar12 = omp_get_thread_num();\n  iVar13 = *(int *)(iVar5 + 0x1c) / local_48;\n  local_48 = *(int *)(iVar5 + 0x1c) % local_48;\n  if (iVar12 < local_48) {\n    iVar13 = iVar13 + 1;\n    local_48 = 0;\n  }\n  local_48 = iVar12 * iVar13 + local_48;\n  iVar13 = iVar13 + local_48;\n  if (local_48 < iVar13) {\n    uVar6 = *(undefined4 *)(param_1 + 4);\n    uVar7 = *(undefined4 *)((int)param_1 + 0x1c);\n    dVar2 = param_1[2];\n    dVar3 = param_1[1];\n    dVar4 = *param_1;\n    dVar9 = 1.0;\n    if (dVar2 < 0.0) {\n      dVar9 = -1.0;\n    }\n    do {\n      if (*(int *)((int)param_1 + 0x24) != 0) {\n        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;\n        if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    } while (iVar13 != local_48);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000c2120(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  double dVar3;\n  double dVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  uint *puVar8;\n  double dVar9;\n  double dVar10;\n  double dVar11;\n  int iVar12;\n  int iVar13;\n  uint uVar14;\n  int iVar15;\n  uint uVar16;\n  int iVar17;\n  int iVar18;\n  int unaff_EDI;\n  bool bVar19;\n  double dVar20;\n  int local_74;\n  int local_48;\n  \n  FUN_0004f293();\n  iVar5 = *(int *)(param_1 + 3);\n  local_48 = omp_get_num_threads();\n  iVar12 = omp_get_thread_num();\n  iVar13 = *(int *)(iVar5 + 0x1c) / local_48;\n  local_48 = *(int *)(iVar5 + 0x1c) % local_48;\n  if (iVar12 < local_48) {\n    iVar13 = iVar13 + 1;\n    local_48 = 0;\n  }\n  local_48 = iVar12 * iVar13 + local_48;\n  iVar13 = iVar13 + local_48;\n  if (local_48 < iVar13) {\n    uVar6 = *(undefined4 *)(param_1 + 4);\n    uVar7 = *(undefined4 *)((int)param_1 + 0x1c);\n    dVar2 = param_1[2];\n    dVar3 = param_1[1];\n    dVar4 = *param_1;\n    dVar9 = 1.0;\n    if (dVar2 < 0.0) {\n      dVar9 = -1.0;\n    }\n    do {\n      if (*(int *)((int)param_1 + 0x24) != 0) {\n        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;\n        if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    } while (iVar13 != local_48);\n  }\n  return;\n}" { (declaration "longlong lVar1;" type_identifier identifier ;) (declaration "double dVar2;" primitive_type identifier ;) (declaration "double dVar3;" primitive_type identifier ;) (declaration "double dVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "uint *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "double dVar9;" primitive_type identifier ;) (declaration "double dVar10;" primitive_type identifier ;) (declaration "double dVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "uint uVar14;" type_identifier identifier ;) (declaration "int iVar15;" primitive_type identifier ;) (declaration "uint uVar16;" type_identifier identifier ;) (declaration "int iVar17;" primitive_type identifier ;) (declaration "int iVar18;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "bool bVar19;" primitive_type identifier ;) (declaration "double dVar20;" primitive_type identifier ;) (declaration "int local_74;" primitive_type identifier ;) (declaration "int local_48;" primitive_type identifier ;) (expression_statement "FUN_0004f293();" (call_expression "FUN_0004f293()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar5 = *(int *)(param_1 + 3);" (assignment_expression "iVar5 = *(int *)(param_1 + 3)" identifier = (pointer_expression "*(int *)(param_1 + 3)" * (cast_expression "(int *)(param_1 + 3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))))) ;) (expression_statement "local_48 = omp_get_num_threads();" (assignment_expression "local_48 = omp_get_num_threads()" identifier = (call_expression "omp_get_num_threads()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar12 = omp_get_thread_num();" (assignment_expression "iVar12 = omp_get_thread_num()" identifier = (call_expression "omp_get_thread_num()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar13 = *(int *)(iVar5 + 0x1c) / local_48;" (assignment_expression "iVar13 = *(int *)(iVar5 + 0x1c) / local_48" identifier = (binary_expression "*(int *)(iVar5 + 0x1c) / local_48" (pointer_expression "*(int *)(iVar5 + 0x1c)" * (cast_expression "(int *)(iVar5 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x1c)" ( (binary_expression "iVar5 + 0x1c" identifier + number_literal) )))) / identifier)) ;) (expression_statement "local_48 = *(int *)(iVar5 + 0x1c) % local_48;" (assignment_expression "local_48 = *(int *)(iVar5 + 0x1c) % local_48" identifier = (binary_expression "*(int *)(iVar5 + 0x1c) % local_48" (pointer_expression "*(int *)(iVar5 + 0x1c)" * (cast_expression "(int *)(iVar5 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x1c)" ( (binary_expression "iVar5 + 0x1c" identifier + number_literal) )))) % identifier)) ;) (if_statement "if (iVar12 < local_48) {\n    iVar13 = iVar13 + 1;\n    local_48 = 0;\n  }" if (parenthesized_expression "(iVar12 < local_48)" ( (binary_expression "iVar12 < local_48" identifier < identifier) )) (compound_statement "{\n    iVar13 = iVar13 + 1;\n    local_48 = 0;\n  }" { (expression_statement "iVar13 = iVar13 + 1;" (assignment_expression "iVar13 = iVar13 + 1" identifier = (binary_expression "iVar13 + 1" identifier + number_literal)) ;) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) })) (expression_statement "local_48 = iVar12 * iVar13 + local_48;" (assignment_expression "local_48 = iVar12 * iVar13 + local_48" identifier = (binary_expression "iVar12 * iVar13 + local_48" (binary_expression "iVar12 * iVar13" identifier * identifier) + identifier)) ;) (expression_statement "iVar13 = iVar13 + local_48;" (assignment_expression "iVar13 = iVar13 + local_48" identifier = (binary_expression "iVar13 + local_48" identifier + identifier)) ;) (if_statement "if (local_48 < iVar13) {\n    uVar6 = *(undefined4 *)(param_1 + 4);\n    uVar7 = *(undefined4 *)((int)param_1 + 0x1c);\n    dVar2 = param_1[2];\n    dVar3 = param_1[1];\n    dVar4 = *param_1;\n    dVar9 = 1.0;\n    if (dVar2 < 0.0) {\n      dVar9 = -1.0;\n    }\n    do {\n      if (*(int *)((int)param_1 + 0x24) != 0) {\n        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;\n        if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    } while (iVar13 != local_48);\n  }" if (parenthesized_expression "(local_48 < iVar13)" ( (binary_expression "local_48 < iVar13" identifier < identifier) )) (compound_statement "{\n    uVar6 = *(undefined4 *)(param_1 + 4);\n    uVar7 = *(undefined4 *)((int)param_1 + 0x1c);\n    dVar2 = param_1[2];\n    dVar3 = param_1[1];\n    dVar4 = *param_1;\n    dVar9 = 1.0;\n    if (dVar2 < 0.0) {\n      dVar9 = -1.0;\n    }\n    do {\n      if (*(int *)((int)param_1 + 0x24) != 0) {\n        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;\n        if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    } while (iVar13 != local_48);\n  }" { (expression_statement "uVar6 = *(undefined4 *)(param_1 + 4);" (assignment_expression "uVar6 = *(undefined4 *)(param_1 + 4)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = *(undefined4 *)((int)param_1 + 0x1c);" (assignment_expression "uVar7 = *(undefined4 *)((int)param_1 + 0x1c)" identifier = (pointer_expression "*(undefined4 *)((int)param_1 + 0x1c)" * (cast_expression "(undefined4 *)((int)param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x1c)" ( (binary_expression "(int)param_1 + 0x1c" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "dVar2 = param_1[2];" (assignment_expression "dVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "dVar3 = param_1[1];" (assignment_expression "dVar3 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "dVar4 = *param_1;" (assignment_expression "dVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "dVar9 = 1.0;" (assignment_expression "dVar9 = 1.0" identifier = number_literal) ;) (if_statement "if (dVar2 < 0.0) {\n      dVar9 = -1.0;\n    }" if (parenthesized_expression "(dVar2 < 0.0)" ( (binary_expression "dVar2 < 0.0" identifier < number_literal) )) (compound_statement "{\n      dVar9 = -1.0;\n    }" { (expression_statement "dVar9 = -1.0;" (assignment_expression "dVar9 = -1.0" identifier = number_literal) ;) })) (do_statement "do {\n      if (*(int *)((int)param_1 + 0x24) != 0) {\n        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;\n        if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    } while (iVar13 != local_48);" do (compound_statement "{\n      if (*(int *)((int)param_1 + 0x24) != 0) {\n        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;\n        if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    }" { (if_statement "if (*(int *)((int)param_1 + 0x24) != 0) {\n        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;\n        if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }\n      }" if (parenthesized_expression "(*(int *)((int)param_1 + 0x24) != 0)" ( (binary_expression "*(int *)((int)param_1 + 0x24) != 0" (pointer_expression "*(int *)((int)param_1 + 0x24)" * (cast_expression "(int *)((int)param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x24)" ( (binary_expression "(int)param_1 + 0x24" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;\n        if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }\n      }" { (expression_statement "iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;" (assignment_expression "iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)" identifier = (call_expression "GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)" identifier (argument_list "(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)" ( identifier , number_literal , identifier , (pointer_expression "*(undefined4 *)(iVar5 + 0x18)" * (cast_expression "(undefined4 *)(iVar5 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) )))) , number_literal , identifier )))) ;) (if_statement "if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }" { (labeled_statement "LAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;" statement_identifier : (expression_statement "*(undefined4 *)((int)param_1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + 0x24) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + 0x24)" * (cast_expression "(undefined4 *)((int)param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x24)" ( (binary_expression "(int)param_1 + 0x24" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;)) }) (else_clause "else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }" else (compound_statement "{\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }" { (expression_statement "iVar15 = *(int *)(iVar5 + 0x18);" (assignment_expression "iVar15 = *(int *)(iVar5 + 0x18)" identifier = (pointer_expression "*(int *)(iVar5 + 0x18)" * (cast_expression "(int *)(iVar5 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }" if (parenthesized_expression "(0 < iVar15)" ( (binary_expression "0 < iVar15" number_literal < identifier) )) (compound_statement "{\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }" { (expression_statement "iVar17 = *(int *)(iVar5 + 0x298);" (assignment_expression "iVar17 = *(int *)(iVar5 + 0x298)" identifier = (pointer_expression "*(int *)(iVar5 + 0x298)" * (cast_expression "(int *)(iVar5 + 0x298)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x298)" ( (binary_expression "iVar5 + 0x298" identifier + number_literal) ))))) ;) (expression_statement "local_74 = 0;" (assignment_expression "local_74 = 0" identifier = number_literal) ;) (do_statement "do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);" do (compound_statement "{\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            }" { (expression_statement "iVar18 = 0;" (assignment_expression "iVar18 = 0" identifier = number_literal) ;) (if_statement "if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }" if (parenthesized_expression "(0 < iVar17)" ( (binary_expression "0 < iVar17" number_literal < identifier) )) (compound_statement "{\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }" { (do_statement "do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);" do (compound_statement "{\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                }" { (if_statement "if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }" if (parenthesized_expression "((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0)" ( (binary_expression "(*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0" (parenthesized_expression "(*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2)" ( (binary_expression "*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2" (pointer_expression "*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc)" * (cast_expression "(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc)" ( (binary_expression "*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc" (binary_expression "*(int *)(iVar5 + 0x2a8) + 4" (pointer_expression "*(int *)(iVar5 + 0x2a8)" * (cast_expression "(int *)(iVar5 + 0x2a8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x2a8)" ( (binary_expression "iVar5 + 0x2a8" identifier + number_literal) )))) + number_literal) + (binary_expression "*(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc" (pointer_expression "*(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc)" * (cast_expression "(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc)" ( (binary_expression "*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc" (pointer_expression "*(int *)(iVar5 + 0x2a8)" * (cast_expression "(int *)(iVar5 + 0x2a8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x2a8)" ( (binary_expression "iVar5 + 0x2a8" identifier + number_literal) )))) + (binary_expression "iVar18 * 0xc" identifier * number_literal)) )))) * number_literal)) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }" { (expression_statement "dVar10 = dVar3 - dVar4;" (assignment_expression "dVar10 = dVar3 - dVar4" identifier = (binary_expression "dVar3 - dVar4" identifier - identifier)) ;) (if_statement "if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }" if (parenthesized_expression "(dVar10 < 0.0)" ( (binary_expression "dVar10 < 0.0" identifier < number_literal) )) (compound_statement "{\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }" { (expression_statement "dVar11 = -dVar10;" (assignment_expression "dVar11 = -dVar10" identifier = (unary_expression "-dVar10" - identifier)) ;) (expression_statement "dVar20 = *(double *)(unaff_EDI + 0x21d7b9);" (assignment_expression "dVar20 = *(double *)(unaff_EDI + 0x21d7b9)" identifier = (pointer_expression "*(double *)(unaff_EDI + 0x21d7b9)" * (cast_expression "(double *)(unaff_EDI + 0x21d7b9)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x21d7b9)" ( (binary_expression "unaff_EDI + 0x21d7b9" identifier + number_literal) ))))) ;) }) (else_clause "else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }" else (compound_statement "{\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }" { (expression_statement "dVar20 = *(double *)(unaff_EDI + 0x21d7b1);" (assignment_expression "dVar20 = *(double *)(unaff_EDI + 0x21d7b1)" identifier = (pointer_expression "*(double *)(unaff_EDI + 0x21d7b1)" * (cast_expression "(double *)(unaff_EDI + 0x21d7b1)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x21d7b1)" ( (binary_expression "unaff_EDI + 0x21d7b1" identifier + number_literal) ))))) ;) (expression_statement "dVar11 = dVar10;" (assignment_expression "dVar11 = dVar10" identifier = identifier) ;) }))) (if_statement "if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }" if (parenthesized_expression "(*(double *)(unaff_EDI + 0x21d1a9) <= dVar11)" ( (binary_expression "*(double *)(unaff_EDI + 0x21d1a9) <= dVar11" (pointer_expression "*(double *)(unaff_EDI + 0x21d1a9)" * (cast_expression "(double *)(unaff_EDI + 0x21d1a9)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x21d1a9)" ( (binary_expression "unaff_EDI + 0x21d1a9" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }" { (expression_statement "dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;" (assignment_expression "dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10" identifier = (binary_expression "(double)*(float *)(unaff_EDI + 0x21d78d) / dVar10" (cast_expression "(double)*(float *)(unaff_EDI + 0x21d78d)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(float *)(unaff_EDI + 0x21d78d)" * (cast_expression "(float *)(unaff_EDI + 0x21d78d)" ( (type_descriptor "float *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x21d78d)" ( (binary_expression "unaff_EDI + 0x21d78d" identifier + number_literal) ))))) / identifier)) ;) })) (if_statement "if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }" if (parenthesized_expression "(*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9)" ( (binary_expression "*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9" (pointer_expression "*(double *)(unaff_EDI + 0x21d1a9)" * (cast_expression "(double *)(unaff_EDI + 0x21d1a9)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x21d1a9)" ( (binary_expression "unaff_EDI + 0x21d1a9" identifier + number_literal) )))) <= (binary_expression "dVar2 * dVar9" identifier * identifier)) )) (compound_statement "{\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }" { (expression_statement "dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;" (assignment_expression "dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2" identifier = (binary_expression "(double)*(float *)(unaff_EDI + 0x21d78d) / dVar2" (cast_expression "(double)*(float *)(unaff_EDI + 0x21d78d)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(float *)(unaff_EDI + 0x21d78d)" * (cast_expression "(float *)(unaff_EDI + 0x21d78d)" ( (type_descriptor "float *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x21d78d)" ( (binary_expression "unaff_EDI + 0x21d78d" identifier + number_literal) ))))) / identifier)) ;) }) (else_clause "else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }" else (compound_statement "{\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }" { (expression_statement "dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);" (assignment_expression "dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9)" identifier = (binary_expression "dVar9 / *(double *)(unaff_EDI + 0x21d1a9)" identifier / (pointer_expression "*(double *)(unaff_EDI + 0x21d1a9)" * (cast_expression "(double *)(unaff_EDI + 0x21d1a9)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x21d1a9)" ( (binary_expression "unaff_EDI + 0x21d1a9" identifier + number_literal) )))))) ;) }))) (expression_statement "dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;" (assignment_expression "dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20" identifier = (binary_expression "(*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20" (parenthesized_expression "(*(double *)(iVar12 + iVar18 * 8) - dVar4)" ( (binary_expression "*(double *)(iVar12 + iVar18 * 8) - dVar4" (pointer_expression "*(double *)(iVar12 + iVar18 * 8)" * (cast_expression "(double *)(iVar12 + iVar18 * 8)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + iVar18 * 8)" ( (binary_expression "iVar12 + iVar18 * 8" identifier + (binary_expression "iVar18 * 8" identifier * number_literal)) )))) - identifier) )) * identifier)) ;) (if_statement "if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }" if (parenthesized_expression "(0.0 <= dVar20)" ( (binary_expression "0.0 <= dVar20" number_literal <= identifier) )) (compound_statement "{\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }" { (expression_statement "dVar20 = pow(dVar20,dVar10);" (assignment_expression "dVar20 = pow(dVar20,dVar10)" identifier = (call_expression "pow(dVar20,dVar10)" identifier (argument_list "(dVar20,dVar10)" ( identifier , identifier )))) ;) (expression_statement "iVar17 = *(int *)(iVar5 + 0x298);" (assignment_expression "iVar17 = *(int *)(iVar5 + 0x298)" identifier = (pointer_expression "*(int *)(iVar5 + 0x298)" * (cast_expression "(int *)(iVar5 + 0x298)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x298)" ( (binary_expression "iVar5 + 0x298" identifier + number_literal) ))))) ;) })) (expression_statement "*(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);" (assignment_expression "*(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781)" (pointer_expression "*(double *)(iVar12 + iVar18 * 8)" * (cast_expression "(double *)(iVar12 + iVar18 * 8)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + iVar18 * 8)" ( (binary_expression "iVar12 + iVar18 * 8" identifier + (binary_expression "iVar18 * 8" identifier * number_literal)) )))) = (binary_expression "dVar20 * (double)*(float *)(unaff_EDI + 0x21d781)" identifier * (cast_expression "(double)*(float *)(unaff_EDI + 0x21d781)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(float *)(unaff_EDI + 0x21d781)" * (cast_expression "(float *)(unaff_EDI + 0x21d781)" ( (type_descriptor "float *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x21d781)" ( (binary_expression "unaff_EDI + 0x21d781" identifier + number_literal) ))))))) ;) })) (expression_statement "iVar18 = iVar18 + 1;" (assignment_expression "iVar18 = iVar18 + 1" identifier = (binary_expression "iVar18 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar18 < iVar17)" ( (binary_expression "iVar18 < iVar17" identifier < identifier) )) ;) (expression_statement "iVar15 = *(int *)(iVar5 + 0x18);" (assignment_expression "iVar15 = *(int *)(iVar5 + 0x18)" identifier = (pointer_expression "*(int *)(iVar5 + 0x18)" * (cast_expression "(int *)(iVar5 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) ))))) ;) })) (expression_statement "local_74 = local_74 + 1;" (assignment_expression "local_74 = local_74 + 1" identifier = (binary_expression "local_74 + 1" identifier + number_literal)) ;) (expression_statement "iVar12 = iVar12 + iVar17 * 8;" (assignment_expression "iVar12 = iVar12 + iVar17 * 8" identifier = (binary_expression "iVar12 + iVar17 * 8" identifier + (binary_expression "iVar17 * 8" identifier * number_literal))) ;) }) while (parenthesized_expression "(local_74 < iVar15)" ( (binary_expression "local_74 < iVar15" identifier < identifier) )) ;) })) (expression_statement "iVar12 = SyncCacheViewAuthenticPixels();" (assignment_expression "iVar12 = SyncCacheViewAuthenticPixels()" identifier = (call_expression "SyncCacheViewAuthenticPixels()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (compound_statement "{\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }" { (expression_statement "*(undefined4 *)((int)param_1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + 0x24) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + 0x24)" * (cast_expression "(undefined4 *)((int)param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x24)" ( (binary_expression "(int)param_1 + 0x24" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) (if_statement "if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }" if (parenthesized_expression "(*(int *)(iVar5 + 0x300) != 0)" ( (binary_expression "*(int *)(iVar5 + 0x300) != 0" (pointer_expression "*(int *)(iVar5 + 0x300)" * (cast_expression "(int *)(iVar5 + 0x300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x300)" ( (binary_expression "iVar5 + 0x300" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }" { (expression_statement "puVar8 = *(uint **)(param_1 + 5);" (assignment_expression "puVar8 = *(uint **)(param_1 + 5)" identifier = (pointer_expression "*(uint **)(param_1 + 5)" * (cast_expression "(uint **)(param_1 + 5)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) ))))) ;) (expression_statement "uVar14 = *puVar8;" (assignment_expression "uVar14 = *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              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);" do (compound_statement "{\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (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 "bVar19 = CONCAT44(uVar16,uVar14) == lVar1;" (assignment_expression "bVar19 = CONCAT44(uVar16,uVar14) == lVar1" identifier = (binary_expression "CONCAT44(uVar16,uVar14) == lVar1" (call_expression "CONCAT44(uVar16,uVar14)" identifier (argument_list "(uVar16,uVar14)" ( identifier , identifier ))) == identifier)) ;) (if_statement "if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }" if (parenthesized_expression "(bVar19)" ( identifier )) (compound_statement "{\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }" { (expression_statement "*(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);" (assignment_expression "*(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1)" (pointer_expression "*(longlong *)puVar8" * (cast_expression "(longlong *)puVar8" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (call_expression "CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1)" identifier (argument_list "(uVar16 + (0xfffffffe < uVar14),uVar14 + 1)" ( (binary_expression "uVar16 + (0xfffffffe < uVar14)" identifier + (parenthesized_expression "(0xfffffffe < uVar14)" ( (binary_expression "0xfffffffe < uVar14" number_literal < identifier) ))) , (binary_expression "uVar14 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }" else (compound_statement "{\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (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 "uVar14 = (uint)lVar1;" (assignment_expression "uVar14 = (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 "(!bVar19)" ( (unary_expression "!bVar19" ! identifier) )) ;) (expression_statement "iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);" (assignment_expression "iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1])" identifier = (call_expression "SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1])" identifier (argument_list "(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1])" ( identifier , (binary_expression "unaff_EDI + 0x230b0f" identifier + number_literal) , (pointer_expression "**(undefined4 **)(param_1 + 5)" * (pointer_expression "*(undefined4 **)(param_1 + 5)" * (cast_expression "(undefined4 **)(param_1 + 5)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) ))))) , (subscript_expression "(*(undefined4 **)(param_1 + 5))[1]" (parenthesized_expression "(*(undefined4 **)(param_1 + 5))" ( (pointer_expression "*(undefined4 **)(param_1 + 5)" * (cast_expression "(undefined4 **)(param_1 + 5)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) )) [ number_literal ]) )))) ;) (if_statement "if (iVar12 == 0) goto LAB_000c23df;" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000c23df;" goto statement_identifier ;)) })) }))) })) (expression_statement "local_48 = local_48 + 1;" (assignment_expression "local_48 = local_48 + 1" identifier = (binary_expression "local_48 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar13 != local_48)" ( (binary_expression "iVar13 != local_48" 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 IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (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 = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (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 = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (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) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) )))) * LIT)) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (unary_expression - IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + 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) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) / IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= (binary_expression IDENT * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) / IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT / (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) - IDENT) )) * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = (binary_expression IDENT * (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < 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 = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (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 , (binary_expression IDENT + LIT) , (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 ]) )))) ;) (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_000c2120(double *param_1)\n\n{\n  longlong lVar1;\n  double dVar2;\n  double dVar3;\n  double dVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  uint *puVar8;\n  double dVar9;\n  double dVar10;\n  double dVar11;\n  int iVar12;\n  int iVar13;\n  uint uVar14;\n  int iVar15;\n  uint uVar16;\n  int iVar17;\n  int iVar18;\n  int unaff_EDI;\n  bool bVar19;\n  double dVar20;\n  int local_74;\n  int local_48;\n  \n  FUN_0004f293();\n  iVar5 = *(int *)(param_1 + 3);\n  local_48 = omp_get_num_threads();\n  iVar12 = omp_get_thread_num();\n  iVar13 = *(int *)(iVar5 + 0x1c) / local_48;\n  local_48 = *(int *)(iVar5 + 0x1c) % local_48;\n  if (iVar12 < local_48) {\n    iVar13 = iVar13 + 1;\n    local_48 = 0;\n  }\n  local_48 = iVar12 * iVar13 + local_48;\n  iVar13 = iVar13 + local_48;\n  if (local_48 < iVar13) {\n    uVar6 = *(undefined4 *)(param_1 + 4);\n    uVar7 = *(undefined4 *)((int)param_1 + 0x1c);\n    dVar2 = param_1[2];\n    dVar3 = param_1[1];\n    dVar4 = *param_1;\n    dVar9 = 1.0;\n    if (dVar2 < 0.0) {\n      dVar9 = -1.0;\n    }\n    do {\n      if (*(int *)((int)param_1 + 0x24) != 0) {\n        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;\n        if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    } while (iVar13 != local_48);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000c2120(double *param_1)" (identifier "FUN_000c2120") (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  double dVar3;\n  double dVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  uint *puVar8;\n  double dVar9;\n  double dVar10;\n  double dVar11;\n  int iVar12;\n  int iVar13;\n  uint uVar14;\n  int iVar15;\n  uint uVar16;\n  int iVar17;\n  int iVar18;\n  int unaff_EDI;\n  bool bVar19;\n  double dVar20;\n  int local_74;\n  int local_48;\n  \n  FUN_0004f293();\n  iVar5 = *(int *)(param_1 + 3);\n  local_48 = omp_get_num_threads();\n  iVar12 = omp_get_thread_num();\n  iVar13 = *(int *)(iVar5 + 0x1c) / local_48;\n  local_48 = *(int *)(iVar5 + 0x1c) % local_48;\n  if (iVar12 < local_48) {\n    iVar13 = iVar13 + 1;\n    local_48 = 0;\n  }\n  local_48 = iVar12 * iVar13 + local_48;\n  iVar13 = iVar13 + local_48;\n  if (local_48 < iVar13) {\n    uVar6 = *(undefined4 *)(param_1 + 4);\n    uVar7 = *(undefined4 *)((int)param_1 + 0x1c);\n    dVar2 = param_1[2];\n    dVar3 = param_1[1];\n    dVar4 = *param_1;\n    dVar9 = 1.0;\n    if (dVar2 < 0.0) {\n      dVar9 = -1.0;\n    }\n    do {\n      if (*(int *)((int)param_1 + 0x24) != 0) {\n        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;\n        if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    } while (iVar13 != local_48);\n  }\n  return;\n}" ({ "{") (declaration "longlong lVar1;" (type_identifier "longlong") (identifier "lVar1") (; ";")) (declaration "double dVar2;" (primitive_type "double") (identifier "dVar2") (; ";")) (declaration "double dVar3;" (primitive_type "double") (identifier "dVar3") (; ";")) (declaration "double dVar4;" (primitive_type "double") (identifier "dVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "uint *puVar8;" (type_identifier "uint") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "double dVar9;" (primitive_type "double") (identifier "dVar9") (; ";")) (declaration "double dVar10;" (primitive_type "double") (identifier "dVar10") (; ";")) (declaration "double dVar11;" (primitive_type "double") (identifier "dVar11") (; ";")) (declaration "int iVar12;" (primitive_type "int") (identifier "iVar12") (; ";")) (declaration "int iVar13;" (primitive_type "int") (identifier "iVar13") (; ";")) (declaration "uint uVar14;" (type_identifier "uint") (identifier "uVar14") (; ";")) (declaration "int iVar15;" (primitive_type "int") (identifier "iVar15") (; ";")) (declaration "uint uVar16;" (type_identifier "uint") (identifier "uVar16") (; ";")) (declaration "int iVar17;" (primitive_type "int") (identifier "iVar17") (; ";")) (declaration "int iVar18;" (primitive_type "int") (identifier "iVar18") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (declaration "bool bVar19;" (primitive_type "bool") (identifier "bVar19") (; ";")) (declaration "double dVar20;" (primitive_type "double") (identifier "dVar20") (; ";")) (declaration "int local_74;" (primitive_type "int") (identifier "local_74") (; ";")) (declaration "int local_48;" (primitive_type "int") (identifier "local_48") (; ";")) (expression_statement "FUN_0004f293();" (call_expression "FUN_0004f293()" (identifier "FUN_0004f293") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar5 = *(int *)(param_1 + 3);" (assignment_expression "iVar5 = *(int *)(param_1 + 3)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 3)" (* "*") (cast_expression "(int *)(param_1 + 3)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 3)" (( "(") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) () ")"))))) (; ";")) (expression_statement "local_48 = omp_get_num_threads();" (assignment_expression "local_48 = omp_get_num_threads()" (identifier "local_48") (= "=") (call_expression "omp_get_num_threads()" (identifier "omp_get_num_threads") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar12 = omp_get_thread_num();" (assignment_expression "iVar12 = omp_get_thread_num()" (identifier "iVar12") (= "=") (call_expression "omp_get_thread_num()" (identifier "omp_get_thread_num") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar13 = *(int *)(iVar5 + 0x1c) / local_48;" (assignment_expression "iVar13 = *(int *)(iVar5 + 0x1c) / local_48" (identifier "iVar13") (= "=") (binary_expression "*(int *)(iVar5 + 0x1c) / local_48" (pointer_expression "*(int *)(iVar5 + 0x1c)" (* "*") (cast_expression "(int *)(iVar5 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x1c)" (( "(") (binary_expression "iVar5 + 0x1c" (identifier "iVar5") (+ "+") (number_literal "0x1c")) () ")")))) (/ "/") (identifier "local_48"))) (; ";")) (expression_statement "local_48 = *(int *)(iVar5 + 0x1c) % local_48;" (assignment_expression "local_48 = *(int *)(iVar5 + 0x1c) % local_48" (identifier "local_48") (= "=") (binary_expression "*(int *)(iVar5 + 0x1c) % local_48" (pointer_expression "*(int *)(iVar5 + 0x1c)" (* "*") (cast_expression "(int *)(iVar5 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x1c)" (( "(") (binary_expression "iVar5 + 0x1c" (identifier "iVar5") (+ "+") (number_literal "0x1c")) () ")")))) (% "%") (identifier "local_48"))) (; ";")) (if_statement "if (iVar12 < local_48) {\n    iVar13 = iVar13 + 1;\n    local_48 = 0;\n  }" (if "if") (parenthesized_expression "(iVar12 < local_48)" (( "(") (binary_expression "iVar12 < local_48" (identifier "iVar12") (< "<") (identifier "local_48")) () ")")) (compound_statement "{\n    iVar13 = iVar13 + 1;\n    local_48 = 0;\n  }" ({ "{") (expression_statement "iVar13 = iVar13 + 1;" (assignment_expression "iVar13 = iVar13 + 1" (identifier "iVar13") (= "=") (binary_expression "iVar13 + 1" (identifier "iVar13") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" (identifier "local_48") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "local_48 = iVar12 * iVar13 + local_48;" (assignment_expression "local_48 = iVar12 * iVar13 + local_48" (identifier "local_48") (= "=") (binary_expression "iVar12 * iVar13 + local_48" (binary_expression "iVar12 * iVar13" (identifier "iVar12") (* "*") (identifier "iVar13")) (+ "+") (identifier "local_48"))) (; ";")) (expression_statement "iVar13 = iVar13 + local_48;" (assignment_expression "iVar13 = iVar13 + local_48" (identifier "iVar13") (= "=") (binary_expression "iVar13 + local_48" (identifier "iVar13") (+ "+") (identifier "local_48"))) (; ";")) (if_statement "if (local_48 < iVar13) {\n    uVar6 = *(undefined4 *)(param_1 + 4);\n    uVar7 = *(undefined4 *)((int)param_1 + 0x1c);\n    dVar2 = param_1[2];\n    dVar3 = param_1[1];\n    dVar4 = *param_1;\n    dVar9 = 1.0;\n    if (dVar2 < 0.0) {\n      dVar9 = -1.0;\n    }\n    do {\n      if (*(int *)((int)param_1 + 0x24) != 0) {\n        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;\n        if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    } while (iVar13 != local_48);\n  }" (if "if") (parenthesized_expression "(local_48 < iVar13)" (( "(") (binary_expression "local_48 < iVar13" (identifier "local_48") (< "<") (identifier "iVar13")) () ")")) (compound_statement "{\n    uVar6 = *(undefined4 *)(param_1 + 4);\n    uVar7 = *(undefined4 *)((int)param_1 + 0x1c);\n    dVar2 = param_1[2];\n    dVar3 = param_1[1];\n    dVar4 = *param_1;\n    dVar9 = 1.0;\n    if (dVar2 < 0.0) {\n      dVar9 = -1.0;\n    }\n    do {\n      if (*(int *)((int)param_1 + 0x24) != 0) {\n        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;\n        if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    } while (iVar13 != local_48);\n  }" ({ "{") (expression_statement "uVar6 = *(undefined4 *)(param_1 + 4);" (assignment_expression "uVar6 = *(undefined4 *)(param_1 + 4)" (identifier "uVar6") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "uVar7 = *(undefined4 *)((int)param_1 + 0x1c);" (assignment_expression "uVar7 = *(undefined4 *)((int)param_1 + 0x1c)" (identifier "uVar7") (= "=") (pointer_expression "*(undefined4 *)((int)param_1 + 0x1c)" (* "*") (cast_expression "(undefined4 *)((int)param_1 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x1c)" (( "(") (binary_expression "(int)param_1 + 0x1c" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "dVar2 = param_1[2];" (assignment_expression "dVar2 = param_1[2]" (identifier "dVar2") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "dVar3 = param_1[1];" (assignment_expression "dVar3 = param_1[1]" (identifier "dVar3") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "dVar4 = *param_1;" (assignment_expression "dVar4 = *param_1" (identifier "dVar4") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "dVar9 = 1.0;" (assignment_expression "dVar9 = 1.0" (identifier "dVar9") (= "=") (number_literal "1.0")) (; ";")) (if_statement "if (dVar2 < 0.0) {\n      dVar9 = -1.0;\n    }" (if "if") (parenthesized_expression "(dVar2 < 0.0)" (( "(") (binary_expression "dVar2 < 0.0" (identifier "dVar2") (< "<") (number_literal "0.0")) () ")")) (compound_statement "{\n      dVar9 = -1.0;\n    }" ({ "{") (expression_statement "dVar9 = -1.0;" (assignment_expression "dVar9 = -1.0" (identifier "dVar9") (= "=") (number_literal "-1.0")) (; ";")) (} "}"))) (do_statement "do {\n      if (*(int *)((int)param_1 + 0x24) != 0) {\n        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;\n        if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    } while (iVar13 != local_48);" (do "do") (compound_statement "{\n      if (*(int *)((int)param_1 + 0x24) != 0) {\n        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;\n        if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }\n      }\n      local_48 = local_48 + 1;\n    }" ({ "{") (if_statement "if (*(int *)((int)param_1 + 0x24) != 0) {\n        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;\n        if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }\n      }" (if "if") (parenthesized_expression "(*(int *)((int)param_1 + 0x24) != 0)" (( "(") (binary_expression "*(int *)((int)param_1 + 0x24) != 0" (pointer_expression "*(int *)((int)param_1 + 0x24)" (* "*") (cast_expression "(int *)((int)param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x24)" (( "(") (binary_expression "(int)param_1 + 0x24" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x24")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;\n        if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }\n      }" ({ "{") (expression_statement "iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)\n        ;" (assignment_expression "iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)" (identifier "iVar12") (= "=") (call_expression "GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)" (identifier "GetCacheViewAuthenticPixels") (argument_list "(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)" (( "(") (identifier "uVar6") (, ",") (number_literal "0") (, ",") (identifier "local_48") (, ",") (pointer_expression "*(undefined4 *)(iVar5 + 0x18)" (* "*") (cast_expression "(undefined4 *)(iVar5 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x18)" (( "(") (binary_expression "iVar5 + 0x18" (identifier "iVar5") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (number_literal "1") (, ",") (identifier "uVar7") () ")")))) (; ";")) (if_statement "if (iVar12 == 0) {\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }\n        else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }" (if "if") (parenthesized_expression "(iVar12 == 0)" (( "(") (binary_expression "iVar12 == 0" (identifier "iVar12") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;\n        }" ({ "{") (labeled_statement "LAB_000c23df:\n          *(undefined4 *)((int)param_1 + 0x24) = 0;" (statement_identifier "LAB_000c23df") (: ":") (expression_statement "*(undefined4 *)((int)param_1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + 0x24) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + 0x24)" (* "*") (cast_expression "(undefined4 *)((int)param_1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x24)" (( "(") (binary_expression "(int)param_1 + 0x24" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x24")) () ")")))) (= "=") (number_literal "0")) (; ";"))) (} "}")) (else_clause "else {\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }" (else "else") (compound_statement "{\n          iVar15 = *(int *)(iVar5 + 0x18);\n          if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }\n          iVar12 = SyncCacheViewAuthenticPixels();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }\n          if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }\n        }" ({ "{") (expression_statement "iVar15 = *(int *)(iVar5 + 0x18);" (assignment_expression "iVar15 = *(int *)(iVar5 + 0x18)" (identifier "iVar15") (= "=") (pointer_expression "*(int *)(iVar5 + 0x18)" (* "*") (cast_expression "(int *)(iVar5 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x18)" (( "(") (binary_expression "iVar5 + 0x18" (identifier "iVar5") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (if_statement "if (0 < iVar15) {\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }" (if "if") (parenthesized_expression "(0 < iVar15)" (( "(") (binary_expression "0 < iVar15" (number_literal "0") (< "<") (identifier "iVar15")) () ")")) (compound_statement "{\n            iVar17 = *(int *)(iVar5 + 0x298);\n            local_74 = 0;\n            do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);\n          }" ({ "{") (expression_statement "iVar17 = *(int *)(iVar5 + 0x298);" (assignment_expression "iVar17 = *(int *)(iVar5 + 0x298)" (identifier "iVar17") (= "=") (pointer_expression "*(int *)(iVar5 + 0x298)" (* "*") (cast_expression "(int *)(iVar5 + 0x298)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x298)" (( "(") (binary_expression "iVar5 + 0x298" (identifier "iVar5") (+ "+") (number_literal "0x298")) () ")"))))) (; ";")) (expression_statement "local_74 = 0;" (assignment_expression "local_74 = 0" (identifier "local_74") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            } while (local_74 < iVar15);" (do "do") (compound_statement "{\n              iVar18 = 0;\n              if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }\n              local_74 = local_74 + 1;\n              iVar12 = iVar12 + iVar17 * 8;\n            }" ({ "{") (expression_statement "iVar18 = 0;" (assignment_expression "iVar18 = 0" (identifier "iVar18") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < iVar17) {\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }" (if "if") (parenthesized_expression "(0 < iVar17)" (( "(") (binary_expression "0 < iVar17" (number_literal "0") (< "<") (identifier "iVar17")) () ")")) (compound_statement "{\n                do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);\n                iVar15 = *(int *)(iVar5 + 0x18);\n              }" ({ "{") (do_statement "do {\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                } while (iVar18 < iVar17);" (do "do") (compound_statement "{\n                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }\n                  iVar18 = iVar18 + 1;\n                }" ({ "{") (if_statement "if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }" (if "if") (parenthesized_expression "((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0)" (( "(") (binary_expression "(*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0" (parenthesized_expression "(*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2)" (( "(") (binary_expression "*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2" (pointer_expression "*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc)" (* "*") (cast_expression "(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc)" (( "(") (binary_expression "*(int *)(iVar5 + 0x2a8) + 4 +\n                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc" (binary_expression "*(int *)(iVar5 + 0x2a8) + 4" (pointer_expression "*(int *)(iVar5 + 0x2a8)" (* "*") (cast_expression "(int *)(iVar5 + 0x2a8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x2a8)" (( "(") (binary_expression "iVar5 + 0x2a8" (identifier "iVar5") (+ "+") (number_literal "0x2a8")) () ")")))) (+ "+") (number_literal "4")) (+ "+") (binary_expression "*(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc" (pointer_expression "*(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc)" (* "*") (cast_expression "(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc)" (( "(") (binary_expression "*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc" (pointer_expression "*(int *)(iVar5 + 0x2a8)" (* "*") (cast_expression "(int *)(iVar5 + 0x2a8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x2a8)" (( "(") (binary_expression "iVar5 + 0x2a8" (identifier "iVar5") (+ "+") (number_literal "0x2a8")) () ")")))) (+ "+") (binary_expression "iVar18 * 0xc" (identifier "iVar18") (* "*") (number_literal "0xc"))) () ")")))) (* "*") (number_literal "0xc"))) () ")")))) (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    dVar10 = dVar3 - dVar4;\n                    if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }\n                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }\n                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;\n                    if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }\n                    *(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);\n                  }" ({ "{") (expression_statement "dVar10 = dVar3 - dVar4;" (assignment_expression "dVar10 = dVar3 - dVar4" (identifier "dVar10") (= "=") (binary_expression "dVar3 - dVar4" (identifier "dVar3") (- "-") (identifier "dVar4"))) (; ";")) (if_statement "if (dVar10 < 0.0) {\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }\n                    else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }" (if "if") (parenthesized_expression "(dVar10 < 0.0)" (( "(") (binary_expression "dVar10 < 0.0" (identifier "dVar10") (< "<") (number_literal "0.0")) () ")")) (compound_statement "{\n                      dVar11 = -dVar10;\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);\n                    }" ({ "{") (expression_statement "dVar11 = -dVar10;" (assignment_expression "dVar11 = -dVar10" (identifier "dVar11") (= "=") (unary_expression "-dVar10" (- "-") (identifier "dVar10"))) (; ";")) (expression_statement "dVar20 = *(double *)(unaff_EDI + 0x21d7b9);" (assignment_expression "dVar20 = *(double *)(unaff_EDI + 0x21d7b9)" (identifier "dVar20") (= "=") (pointer_expression "*(double *)(unaff_EDI + 0x21d7b9)" (* "*") (cast_expression "(double *)(unaff_EDI + 0x21d7b9)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x21d7b9)" (( "(") (binary_expression "unaff_EDI + 0x21d7b9" (identifier "unaff_EDI") (+ "+") (number_literal "0x21d7b9")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }" (else "else") (compound_statement "{\n                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);\n                      dVar11 = dVar10;\n                    }" ({ "{") (expression_statement "dVar20 = *(double *)(unaff_EDI + 0x21d7b1);" (assignment_expression "dVar20 = *(double *)(unaff_EDI + 0x21d7b1)" (identifier "dVar20") (= "=") (pointer_expression "*(double *)(unaff_EDI + 0x21d7b1)" (* "*") (cast_expression "(double *)(unaff_EDI + 0x21d7b1)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x21d7b1)" (( "(") (binary_expression "unaff_EDI + 0x21d7b1" (identifier "unaff_EDI") (+ "+") (number_literal "0x21d7b1")) () ")"))))) (; ";")) (expression_statement "dVar11 = dVar10;" (assignment_expression "dVar11 = dVar10" (identifier "dVar11") (= "=") (identifier "dVar10")) (; ";")) (} "}")))) (if_statement "if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }" (if "if") (parenthesized_expression "(*(double *)(unaff_EDI + 0x21d1a9) <= dVar11)" (( "(") (binary_expression "*(double *)(unaff_EDI + 0x21d1a9) <= dVar11" (pointer_expression "*(double *)(unaff_EDI + 0x21d1a9)" (* "*") (cast_expression "(double *)(unaff_EDI + 0x21d1a9)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x21d1a9)" (( "(") (binary_expression "unaff_EDI + 0x21d1a9" (identifier "unaff_EDI") (+ "+") (number_literal "0x21d1a9")) () ")")))) (<= "<=") (identifier "dVar11")) () ")")) (compound_statement "{\n                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;\n                    }" ({ "{") (expression_statement "dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;" (assignment_expression "dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10" (identifier "dVar20") (= "=") (binary_expression "(double)*(float *)(unaff_EDI + 0x21d78d) / dVar10" (cast_expression "(double)*(float *)(unaff_EDI + 0x21d78d)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(float *)(unaff_EDI + 0x21d78d)" (* "*") (cast_expression "(float *)(unaff_EDI + 0x21d78d)" (( "(") (type_descriptor "float *" (primitive_type "float") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x21d78d)" (( "(") (binary_expression "unaff_EDI + 0x21d78d" (identifier "unaff_EDI") (+ "+") (number_literal "0x21d78d")) () ")"))))) (/ "/") (identifier "dVar10"))) (; ";")) (} "}"))) (if_statement "if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }\n                    else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }" (if "if") (parenthesized_expression "(*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9)" (( "(") (binary_expression "*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9" (pointer_expression "*(double *)(unaff_EDI + 0x21d1a9)" (* "*") (cast_expression "(double *)(unaff_EDI + 0x21d1a9)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x21d1a9)" (( "(") (binary_expression "unaff_EDI + 0x21d1a9" (identifier "unaff_EDI") (+ "+") (number_literal "0x21d1a9")) () ")")))) (<= "<=") (binary_expression "dVar2 * dVar9" (identifier "dVar2") (* "*") (identifier "dVar9"))) () ")")) (compound_statement "{\n                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;\n                    }" ({ "{") (expression_statement "dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;" (assignment_expression "dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2" (identifier "dVar10") (= "=") (binary_expression "(double)*(float *)(unaff_EDI + 0x21d78d) / dVar2" (cast_expression "(double)*(float *)(unaff_EDI + 0x21d78d)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(float *)(unaff_EDI + 0x21d78d)" (* "*") (cast_expression "(float *)(unaff_EDI + 0x21d78d)" (( "(") (type_descriptor "float *" (primitive_type "float") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x21d78d)" (( "(") (binary_expression "unaff_EDI + 0x21d78d" (identifier "unaff_EDI") (+ "+") (number_literal "0x21d78d")) () ")"))))) (/ "/") (identifier "dVar2"))) (; ";")) (} "}")) (else_clause "else {\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }" (else "else") (compound_statement "{\n                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);\n                    }" ({ "{") (expression_statement "dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);" (assignment_expression "dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9)" (identifier "dVar10") (= "=") (binary_expression "dVar9 / *(double *)(unaff_EDI + 0x21d1a9)" (identifier "dVar9") (/ "/") (pointer_expression "*(double *)(unaff_EDI + 0x21d1a9)" (* "*") (cast_expression "(double *)(unaff_EDI + 0x21d1a9)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x21d1a9)" (( "(") (binary_expression "unaff_EDI + 0x21d1a9" (identifier "unaff_EDI") (+ "+") (number_literal "0x21d1a9")) () ")")))))) (; ";")) (} "}")))) (expression_statement "dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;" (assignment_expression "dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20" (identifier "dVar20") (= "=") (binary_expression "(*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20" (parenthesized_expression "(*(double *)(iVar12 + iVar18 * 8) - dVar4)" (( "(") (binary_expression "*(double *)(iVar12 + iVar18 * 8) - dVar4" (pointer_expression "*(double *)(iVar12 + iVar18 * 8)" (* "*") (cast_expression "(double *)(iVar12 + iVar18 * 8)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + iVar18 * 8)" (( "(") (binary_expression "iVar12 + iVar18 * 8" (identifier "iVar12") (+ "+") (binary_expression "iVar18 * 8" (identifier "iVar18") (* "*") (number_literal "8"))) () ")")))) (- "-") (identifier "dVar4")) () ")")) (* "*") (identifier "dVar20"))) (; ";")) (if_statement "if (0.0 <= dVar20) {\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }" (if "if") (parenthesized_expression "(0.0 <= dVar20)" (( "(") (binary_expression "0.0 <= dVar20" (number_literal "0.0") (<= "<=") (identifier "dVar20")) () ")")) (compound_statement "{\n                      dVar20 = pow(dVar20,dVar10);\n                      iVar17 = *(int *)(iVar5 + 0x298);\n                    }" ({ "{") (expression_statement "dVar20 = pow(dVar20,dVar10);" (assignment_expression "dVar20 = pow(dVar20,dVar10)" (identifier "dVar20") (= "=") (call_expression "pow(dVar20,dVar10)" (identifier "pow") (argument_list "(dVar20,dVar10)" (( "(") (identifier "dVar20") (, ",") (identifier "dVar10") () ")")))) (; ";")) (expression_statement "iVar17 = *(int *)(iVar5 + 0x298);" (assignment_expression "iVar17 = *(int *)(iVar5 + 0x298)" (identifier "iVar17") (= "=") (pointer_expression "*(int *)(iVar5 + 0x298)" (* "*") (cast_expression "(int *)(iVar5 + 0x298)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x298)" (( "(") (binary_expression "iVar5 + 0x298" (identifier "iVar5") (+ "+") (number_literal "0x298")) () ")"))))) (; ";")) (} "}"))) (expression_statement "*(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);" (assignment_expression "*(double *)(iVar12 + iVar18 * 8) =\n                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781)" (pointer_expression "*(double *)(iVar12 + iVar18 * 8)" (* "*") (cast_expression "(double *)(iVar12 + iVar18 * 8)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + iVar18 * 8)" (( "(") (binary_expression "iVar12 + iVar18 * 8" (identifier "iVar12") (+ "+") (binary_expression "iVar18 * 8" (identifier "iVar18") (* "*") (number_literal "8"))) () ")")))) (= "=") (binary_expression "dVar20 * (double)*(float *)(unaff_EDI + 0x21d781)" (identifier "dVar20") (* "*") (cast_expression "(double)*(float *)(unaff_EDI + 0x21d781)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(float *)(unaff_EDI + 0x21d781)" (* "*") (cast_expression "(float *)(unaff_EDI + 0x21d781)" (( "(") (type_descriptor "float *" (primitive_type "float") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x21d781)" (( "(") (binary_expression "unaff_EDI + 0x21d781" (identifier "unaff_EDI") (+ "+") (number_literal "0x21d781")) () ")"))))))) (; ";")) (} "}"))) (expression_statement "iVar18 = iVar18 + 1;" (assignment_expression "iVar18 = iVar18 + 1" (identifier "iVar18") (= "=") (binary_expression "iVar18 + 1" (identifier "iVar18") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar18 < iVar17)" (( "(") (binary_expression "iVar18 < iVar17" (identifier "iVar18") (< "<") (identifier "iVar17")) () ")")) (; ";")) (expression_statement "iVar15 = *(int *)(iVar5 + 0x18);" (assignment_expression "iVar15 = *(int *)(iVar5 + 0x18)" (identifier "iVar15") (= "=") (pointer_expression "*(int *)(iVar5 + 0x18)" (* "*") (cast_expression "(int *)(iVar5 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x18)" (( "(") (binary_expression "iVar5 + 0x18" (identifier "iVar5") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (} "}"))) (expression_statement "local_74 = local_74 + 1;" (assignment_expression "local_74 = local_74 + 1" (identifier "local_74") (= "=") (binary_expression "local_74 + 1" (identifier "local_74") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar12 = iVar12 + iVar17 * 8;" (assignment_expression "iVar12 = iVar12 + iVar17 * 8" (identifier "iVar12") (= "=") (binary_expression "iVar12 + iVar17 * 8" (identifier "iVar12") (+ "+") (binary_expression "iVar17 * 8" (identifier "iVar17") (* "*") (number_literal "8")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(local_74 < iVar15)" (( "(") (binary_expression "local_74 < iVar15" (identifier "local_74") (< "<") (identifier "iVar15")) () ")")) (; ";")) (} "}"))) (expression_statement "iVar12 = SyncCacheViewAuthenticPixels();" (assignment_expression "iVar12 = SyncCacheViewAuthenticPixels()" (identifier "iVar12") (= "=") (call_expression "SyncCacheViewAuthenticPixels()" (identifier "SyncCacheViewAuthenticPixels") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }" (if "if") (parenthesized_expression "(iVar12 == 0)" (( "(") (binary_expression "iVar12 == 0" (identifier "iVar12") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            *(undefined4 *)((int)param_1 + 0x24) = 0;\n          }" ({ "{") (expression_statement "*(undefined4 *)((int)param_1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + 0x24) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + 0x24)" (* "*") (cast_expression "(undefined4 *)((int)param_1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x24)" (( "(") (binary_expression "(int)param_1 + 0x24" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x24")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar5 + 0x300) != 0) {\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }" (if "if") (parenthesized_expression "(*(int *)(iVar5 + 0x300) != 0)" (( "(") (binary_expression "*(int *)(iVar5 + 0x300) != 0" (pointer_expression "*(int *)(iVar5 + 0x300)" (* "*") (cast_expression "(int *)(iVar5 + 0x300)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x300)" (( "(") (binary_expression "iVar5 + 0x300" (identifier "iVar5") (+ "+") (number_literal "0x300")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            puVar8 = *(uint **)(param_1 + 5);\n            uVar14 = *puVar8;\n            uVar16 = puVar8[1];\n            do {\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);\n            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);\n            if (iVar12 == 0) goto LAB_000c23df;\n          }" ({ "{") (expression_statement "puVar8 = *(uint **)(param_1 + 5);" (assignment_expression "puVar8 = *(uint **)(param_1 + 5)" (identifier "puVar8") (= "=") (pointer_expression "*(uint **)(param_1 + 5)" (* "*") (cast_expression "(uint **)(param_1 + 5)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 5)" (( "(") (binary_expression "param_1 + 5" (identifier "param_1") (+ "+") (number_literal "5")) () ")"))))) (; ";")) (expression_statement "uVar14 = *puVar8;" (assignment_expression "uVar14 = *puVar8" (identifier "uVar14") (= "=") (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              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }\n              UNLOCK();\n            } while (!bVar19);" (do "do") (compound_statement "{\n              LOCK();\n              lVar1 = *(longlong *)puVar8;\n              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;\n              if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (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 "bVar19 = CONCAT44(uVar16,uVar14) == lVar1;" (assignment_expression "bVar19 = CONCAT44(uVar16,uVar14) == lVar1" (identifier "bVar19") (= "=") (binary_expression "CONCAT44(uVar16,uVar14) == lVar1" (call_expression "CONCAT44(uVar16,uVar14)" (identifier "CONCAT44") (argument_list "(uVar16,uVar14)" (( "(") (identifier "uVar16") (, ",") (identifier "uVar14") () ")"))) (== "==") (identifier "lVar1"))) (; ";")) (if_statement "if (bVar19) {\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }\n              else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }" (if "if") (parenthesized_expression "(bVar19)" (( "(") (identifier "bVar19") () ")")) (compound_statement "{\n                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);\n              }" ({ "{") (expression_statement "*(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);" (assignment_expression "*(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 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 < uVar14),uVar14 + 1)" (identifier "CONCAT44") (argument_list "(uVar16 + (0xfffffffe < uVar14),uVar14 + 1)" (( "(") (binary_expression "uVar16 + (0xfffffffe < uVar14)" (identifier "uVar16") (+ "+") (parenthesized_expression "(0xfffffffe < uVar14)" (( "(") (binary_expression "0xfffffffe < uVar14" (number_literal "0xfffffffe") (< "<") (identifier "uVar14")) () ")"))) (, ",") (binary_expression "uVar14 + 1" (identifier "uVar14") (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (uint)lVar1;\n              }" (else "else") (compound_statement "{\n                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);\n                uVar14 = (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 "uVar14 = (uint)lVar1;" (assignment_expression "uVar14 = (uint)lVar1" (identifier "uVar14") (= "=") (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 "(!bVar19)" (( "(") (unary_expression "!bVar19" (! "!") (identifier "bVar19")) () ")")) (; ";")) (expression_statement "iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1]);" (assignment_expression "iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1])" (identifier "iVar12") (= "=") (call_expression "SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1])" (identifier "SetImageProgress") (argument_list "(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),\n                                      (*(undefined4 **)(param_1 + 5))[1])" (( "(") (identifier "iVar5") (, ",") (binary_expression "unaff_EDI + 0x230b0f" (identifier "unaff_EDI") (+ "+") (number_literal "0x230b0f")) (, ",") (pointer_expression "**(undefined4 **)(param_1 + 5)" (* "*") (pointer_expression "*(undefined4 **)(param_1 + 5)" (* "*") (cast_expression "(undefined4 **)(param_1 + 5)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 5)" (( "(") (binary_expression "param_1 + 5" (identifier "param_1") (+ "+") (number_literal "5")) () ")"))))) (, ",") (subscript_expression "(*(undefined4 **)(param_1 + 5))[1]" (parenthesized_expression "(*(undefined4 **)(param_1 + 5))" (( "(") (pointer_expression "*(undefined4 **)(param_1 + 5)" (* "*") (cast_expression "(undefined4 **)(param_1 + 5)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 5)" (( "(") (binary_expression "param_1 + 5" (identifier "param_1") (+ "+") (number_literal "5")) () ")")))) () ")")) ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar12 == 0) goto LAB_000c23df;" (if "if") (parenthesized_expression "(iVar12 == 0)" (( "(") (binary_expression "iVar12 == 0" (identifier "iVar12") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000c23df;" (goto "goto") (statement_identifier "LAB_000c23df") (; ";"))) (} "}"))) (} "}")))) (} "}"))) (expression_statement "local_48 = local_48 + 1;" (assignment_expression "local_48 = local_48 + 1" (identifier "local_48") (= "=") (binary_expression "local_48 + 1" (identifier "local_48") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar13 != local_48)" (( "(") (binary_expression "iVar13 != local_48" (identifier "iVar13") (!= "!=") (identifier "local_48")) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "GravityType": Some values do not have unique names */
/* WARNING: Enum "DisposeType": Some values do not have unique names */
/* WARNING: Enum "ChannelType": Some values do not have unique names */
/* WARNING: Enum "PixelChannel": Some values do not have unique names */
/* WARNING: Enum "ExceptionType": Some values do not have unique names */
/* DWARF original prototype: void LevelImage._omp_fn.9(anon_struct_48_8_0a4f978e * param_0) */

void __thiscall function_1(type_1 *this)

{
  type_2 var_27;
  double var_7;
  double var_13;
  double var_14;
  type_3 *image;
  type_4 *cache_view;
  type_5 *exception;
  type_6 *puVar5;
  double var_18;
  double var_15;
  double var_17;
  int var_5;
  int var_6;
  type_7 *var_10;
  type_8 var_24;
  type_6 var_29;
  size_t sVar14;
  type_6 var_28;
  size_t var_22;
  int var_16;
  bool bVar17;
  double var_19;
  int var_21;
  int var_4;
  
  var_1();
  image = this->image;
  var_4 = var_2();
  var_5 = var_3();
  var_6 = (int)image->rows / var_4;
  var_4 = (int)image->rows % var_4;
  if (var_5 < var_4) {
    var_6 = var_6 + 1;
    var_4 = 0;
  }
  var_4 = var_5 * var_6 + var_4;
  var_6 = var_6 + var_4;
  if (var_4 < var_6) {
    cache_view = this->image_view;
    exception = this->exception;
    var_7 = this->gamma;
    var_13 = this->white_point;
    var_14 = this->black_point;
    var_18 = 1.0;
    if (var_7 < 0.0) {
      var_18 = -1.0;
    }
    do {
      if (this->status != var_8) {
        var_10 = var_9(cache_view,0,var_4,image->columns,1,exception);
        if (var_10 == (type_7 *)0x0) {
LAB_000c23df:
          this->status = var_8;
        }
        else {
          sVar14 = image->columns;
          if (0 < (int)sVar14) {
            var_22 = image->number_channels;
            var_21 = 0;
            do {
              var_5 = 0;
              if (0 < (int)var_22) {
                do {
                  if ((image->channel_map[image->channel_map[var_5].channel].traits &
                      var_11) != var_12) {
                    var_15 = var_13 - var_14;
                    if (var_15 < 0.0) {
                      var_17 = -var_15;
                      var_19 = *(double *)(var_16 + 0x21d7b9);
                    }
                    else {
                      var_19 = *(double *)(var_16 + 0x21d7b1);
                      var_17 = var_15;
                    }
                    if (*(double *)(var_16 + 0x21d1a9) <= var_17) {
                      var_19 = (double)*(float *)(var_16 + 0x21d78d) / var_15;
                    }
                    if (*(double *)(var_16 + 0x21d1a9) <= var_7 * var_18) {
                      var_15 = (double)*(float *)(var_16 + 0x21d78d) / var_7;
                    }
                    else {
                      var_15 = var_18 / *(double *)(var_16 + 0x21d1a9);
                    }
                    var_19 = (var_10[var_5] - var_14) * var_19;
                    if (0.0 <= var_19) {
                      var_19 = var_20(var_19,var_15);
                      var_22 = image->number_channels;
                    }
                    var_10[var_5] = var_19 * (double)*(float *)(var_16 + 0x21d781);
                  }
                  var_5 = var_5 + 1;
                } while (var_5 < (int)var_22);
                sVar14 = image->columns;
              }
              var_21 = var_21 + 1;
              var_10 = var_10 + var_22;
            } while (var_21 < (int)sVar14);
          }
          var_24 = var_23(cache_view,exception);
          if (var_24 == var_8) {
            this->status = var_8;
          }
          if (image->progress_monitor != (type_9)0x0) {
            puVar5 = (type_6 *)this->progress;
            var_29 = *puVar5;
            var_28 = puVar5[1];
            do {
              var_25();
              var_27 = *(type_2 *)puVar5;
              bVar17 = var_26(var_28,var_29) == var_27;
              if (bVar17) {
                *(type_2 *)puVar5 = var_26(var_28 + (0xfffffffe < var_29),var_29 + 1);
              }
              else {
                var_28 = (type_6)((type_10)var_27 >> 0x20);
                var_29 = (type_6)var_27;
              }
              var_30();
            } while (!bVar17);
            var_24 = var_31(image,(char *)(var_16 + 0x230b0f),*this->progress,
                                      (type_10)image->rows);
            if (var_24 == var_8) goto LAB_000c23df;
          }
        }
      }
      var_4 = var_4 + 1;
    } while (var_6 != var_4);
  }
  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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (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: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (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: (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: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (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: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (number_literal) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) 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: (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: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal)))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (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)))))))) 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))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (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: (binary_expression left: (identifier) right: (number_literal)))))) right: (identifier))) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_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: (binary_expression left: (identifier) right: (number_literal)))))) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_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)))) (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) (binary_expression left: (identifier) right: (number_literal)) (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)))))) (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))))

void MASKED(double *param_1)

{
  longlong lVar1;
  double dVar2;
  double dVar3;
  double dVar4;
  int iVar5;
  undefined4 uVar6;
  undefined4 uVar7;
  uint *puVar8;
  double dVar9;
  double dVar10;
  double dVar11;
  int iVar12;
  int iVar13;
  uint uVar14;
  int iVar15;
  uint uVar16;
  int iVar17;
  int iVar18;
  int unaff_EDI;
  bool bVar19;
  double dVar20;
  int local_74;
  int local_48;
  
  FUN_0004f293();
  iVar5 = *(int *)(param_1 + 3);
  local_48 = omp_get_num_threads();
  iVar12 = omp_get_thread_num();
  iVar13 = *(int *)(iVar5 + 0x1c) / local_48;
  local_48 = *(int *)(iVar5 + 0x1c) % local_48;
  if (iVar12 < local_48) {
    iVar13 = iVar13 + 1;
    local_48 = 0;
  }
  local_48 = iVar12 * iVar13 + local_48;
  iVar13 = iVar13 + local_48;
  if (local_48 < iVar13) {
    uVar6 = *(undefined4 *)(param_1 + 4);
    uVar7 = *(undefined4 *)((int)param_1 + 0x1c);
    dVar2 = param_1[2];
    dVar3 = param_1[1];
    dVar4 = *param_1;
    dVar9 = 1.0;
    if (dVar2 < 0.0) {
      dVar9 = -1.0;
    }
    do {
      if (*(int *)((int)param_1 + 0x24) != 0) {
        iVar12 = GetCacheViewAuthenticPixels(uVar6,0,local_48,*(undefined4 *)(iVar5 + 0x18),1,uVar7)
        ;
        if (iVar12 == 0) {
LAB_000c23df:
          *(undefined4 *)((int)param_1 + 0x24) = 0;
        }
        else {
          iVar15 = *(int *)(iVar5 + 0x18);
          if (0 < iVar15) {
            iVar17 = *(int *)(iVar5 + 0x298);
            local_74 = 0;
            do {
              iVar18 = 0;
              if (0 < iVar17) {
                do {
                  if ((*(byte *)(*(int *)(iVar5 + 0x2a8) + 4 +
                                *(int *)(*(int *)(iVar5 + 0x2a8) + iVar18 * 0xc) * 0xc) & 2) != 0) {
                    dVar10 = dVar3 - dVar4;
                    if (dVar10 < 0.0) {
                      dVar11 = -dVar10;
                      dVar20 = *(double *)(unaff_EDI + 0x21d7b9);
                    }
                    else {
                      dVar20 = *(double *)(unaff_EDI + 0x21d7b1);
                      dVar11 = dVar10;
                    }
                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar11) {
                      dVar20 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar10;
                    }
                    if (*(double *)(unaff_EDI + 0x21d1a9) <= dVar2 * dVar9) {
                      dVar10 = (double)*(float *)(unaff_EDI + 0x21d78d) / dVar2;
                    }
                    else {
                      dVar10 = dVar9 / *(double *)(unaff_EDI + 0x21d1a9);
                    }
                    dVar20 = (*(double *)(iVar12 + iVar18 * 8) - dVar4) * dVar20;
                    if (0.0 <= dVar20) {
                      dVar20 = pow(dVar20,dVar10);
                      iVar17 = *(int *)(iVar5 + 0x298);
                    }
                    *(double *)(iVar12 + iVar18 * 8) =
                         dVar20 * (double)*(float *)(unaff_EDI + 0x21d781);
                  }
                  iVar18 = iVar18 + 1;
                } while (iVar18 < iVar17);
                iVar15 = *(int *)(iVar5 + 0x18);
              }
              local_74 = local_74 + 1;
              iVar12 = iVar12 + iVar17 * 8;
            } while (local_74 < iVar15);
          }
          iVar12 = SyncCacheViewAuthenticPixels();
          if (iVar12 == 0) {
            *(undefined4 *)((int)param_1 + 0x24) = 0;
          }
          if (*(int *)(iVar5 + 0x300) != 0) {
            puVar8 = *(uint **)(param_1 + 5);
            uVar14 = *puVar8;
            uVar16 = puVar8[1];
            do {
              LOCK();
              lVar1 = *(longlong *)puVar8;
              bVar19 = CONCAT44(uVar16,uVar14) == lVar1;
              if (bVar19) {
                *(longlong *)puVar8 = CONCAT44(uVar16 + (0xfffffffe < uVar14),uVar14 + 1);
              }
              else {
                uVar16 = (uint)((ulonglong)lVar1 >> 0x20);
                uVar14 = (uint)lVar1;
              }
              UNLOCK();
            } while (!bVar19);
            iVar12 = SetImageProgress(iVar5,unaff_EDI + 0x230b0f,**(undefined4 **)(param_1 + 5),
                                      (*(undefined4 **)(param_1 + 5))[1]);
            if (iVar12 == 0) goto LAB_000c23df;
          }
        }
      }
      local_48 = local_48 + 1;
    } while (iVar13 != local_48);
  }
  return;
}

