
/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* 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 "DistortMethod": Some values do not have unique names */
/* WARNING: Enum "ExceptionType": Some values do not have unique names */
/* DWARF original prototype: void DistortImage._omp_fn.0(anon_struct_72_16_e79c3edd * param_0) */

void __thiscall DistortImage__omp_fn_0(anon_struct_72_16_e79c3edd *this)

{
  ResampleFilter **ppRVar1;
  longlong lVar2;
  double dVar3;
  Image *pIVar4;
  ResampleFilter **ppRVar5;
  CacheView *cache_view;
  double *pdVar6;
  double *pdVar7;
  ExceptionInfo *exception;
  MagickBooleanType MVar8;
  Image *image;
  size_t sVar9;
  PixelTrait PVar10;
  uint *puVar11;
  double dVar12;
  double dVar13;
  int iVar14;
  int iVar15;
  Quantum *pQVar16;
  DistortMethod DVar17;
  MagickBooleanType MVar18;
  uint uVar19;
  int n;
  PixelChannelMap *pPVar20;
  int iVar21;
  uint uVar22;
  PixelInfo *pPVar23;
  PixelInfo *pPVar24;
  double *pdVar25;
  double *pdVar26;
  int in_GS_OFFSET;
  bool bVar27;
  byte bVar28;
  ushort in_FPUControlWord;
  double dVar29;
  double dVar30;
  double dVar31;
  double dVar32;
  double dVar33;
  int local_15c;
  double local_14c;
  int local_140;
  double local_13c;
  double local_12c;
  double local_11c;
  double local_114;
  double local_10c;
  double local_104;
  double local_fc;
  double local_f4;
  double local_8c;
  double local_84 [2];
  ushort local_72;
  PixelInfo local_70;
  int local_20;
  
  bVar28 = 0;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  pIVar4 = this->distort_image;
  local_140 = omp_get_num_threads();
  iVar14 = omp_get_thread_num();
  iVar15 = (int)pIVar4->rows / local_140;
  local_140 = (int)pIVar4->rows % local_140;
  if (iVar14 < local_140) {
    iVar15 = iVar15 + 1;
    local_140 = 0;
  }
  local_140 = local_140 + iVar14 * iVar15;
  iVar15 = iVar15 + local_140;
  if (local_140 < iVar15) {
    ppRVar5 = this->resample_filter;
    cache_view = this->distort_view;
    pdVar6 = this->arguments;
    dVar3 = this->output_scaling;
    pdVar7 = this->coeff;
    exception = this->exception;
    MVar8 = this->bestfit;
    image = this->image;
    sVar9 = this->number_arguments;
    do {
      iVar14 = omp_get_thread_num();
      pQVar16 = QueueCacheViewAuthenticPixels(cache_view,0,local_140,pIVar4->columns,1,exception);
      if (pQVar16 == (Quantum *)0x0) {
        this->status = MagickFalse;
      }
      else {
        pPVar23 = this->zero;
        pPVar24 = &local_70;
        for (iVar21 = 0x14; iVar21 != 0; iVar21 = iVar21 + -1) {
          pPVar24->storage_class = pPVar23->storage_class;
          pPVar23 = (PixelInfo *)((int)pPVar23 + (uint)bVar28 * -8 + 4);
          pPVar24 = (PixelInfo *)((int)pPVar24 + (uint)bVar28 * -8 + 4);
        }
        if ((*this->method == AffineDistortion) || (*this->method == RigidAffineDistortion)) {
          ScaleResampleFilter(ppRVar5[iVar14],dVar3 * *pdVar7,pdVar7[1] * dVar3,pdVar7[3] * dVar3,
                              pdVar7[4] * dVar3);
        }
        if (0 < (int)pIVar4->columns) {
          local_14c = 1.0;
          ppRVar1 = ppRVar5 + iVar14;
          local_15c = 0;
          do {
            dVar33 = ((double)(local_15c + this->geometry->x) + (double)DAT_0029f124) * dVar3;
            DVar17 = *this->method;
            dVar12 = dVar3 * ((double)(local_140 + this->geometry->y) + (double)DAT_0029f124);
            local_f4 = dVar12;
            local_10c = dVar33;
            switch(DVar17) {
            case AffineDistortion:
            case RigidAffineDistortion:
              local_f4 = dVar12 * pdVar7[4] + dVar33 * pdVar7[3] + pdVar7[5];
              local_10c = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];
              break;
            case PerspectiveDistortion:
              dVar31 = pdVar7[6];
              dVar32 = pdVar7[7];
              dVar30 = dVar12 * dVar32 + dVar33 * dVar31 + 1.0;
              dVar29 = pdVar7[8] * dVar30;
              local_14c = 0.0;
              if (0.0 <= dVar29) {
                local_14c = 1.0;
              }
              dVar13 = ABS(dVar30) + ABS(dVar30);
              if (ABS(dVar31) <= ABS(dVar32)) {
                if (dVar13 < ABS(dVar32) * dVar3) {
                  local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar32);
                }
              }
              else if (dVar13 < ABS(dVar31) * dVar3) {
                local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar31);
              }
              if (local_14c <= 0.0) goto LAB_00085796;
              dVar29 = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];
              dVar33 = pdVar7[3] * dVar33 + dVar12 * pdVar7[4] + pdVar7[5];
              dVar12 = (double)DAT_0029f718 / dVar30;
              local_10c = dVar29 * dVar12;
              local_f4 = dVar33 * dVar12;
              dVar12 = dVar12 * dVar12;
              ScaleResampleFilter(*ppRVar1,dVar3 * (dVar30 * *pdVar7 - dVar29 * dVar31) * dVar12,
                                  (pdVar7[1] * dVar30 - dVar32 * dVar29) * dVar12 * dVar3,
                                  (pdVar7[3] * dVar30 - dVar33 * dVar31) * dVar12 * dVar3,
                                  (pdVar7[4] * dVar30 - dVar33 * dVar32) * dVar12 * dVar3);
              break;
            case BilinearDistortion:
              dVar13 = dVar33 - pdVar7[3];
              local_12c = pdVar7[2];
              dVar29 = (pdVar7[6] * dVar13 - (dVar12 - pdVar7[7]) * local_12c) + pdVar7[8];
              dVar31 = *pdVar7;
              dVar30 = pdVar7[4] * dVar13 - (dVar12 - pdVar7[7]) * dVar31;
              dVar32 = pdVar7[9];
              if (ABS(dVar32) < DAT_0029f138) {
                dVar12 = -dVar30 / dVar29;
              }
              else {
                dVar30 = dVar29 * dVar29 - (dVar32 + dVar32) * dVar30;
                local_14c = 0.0;
                if (dVar30 < 0.0) goto LAB_00085796;
                if (dVar30 < 0.0) {
                  sqrt(dVar30);
                  dVar32 = pdVar7[9];
                  dVar31 = *pdVar7;
                  local_12c = pdVar7[2];
                }
                dVar12 = (SQRT(dVar30) - dVar29) / dVar32;
              }
              local_10c = (dVar13 - pdVar7[1] * dVar12) / (local_12c * dVar12 + dVar31);
              if (MVar8 != MagickFalse) {
                local_14c = 1.0;
                goto LAB_000852c3;
              }
              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,
                                 dVar12 - (double)DAT_0029f124,&local_70,exception);
              local_14c = 1.0;
              goto LAB_00085370;
            case BilinearReverseDistortion:
              dVar31 = pdVar7[2] * dVar33;
              local_10c = pdVar7[3] + dVar31 * dVar12 + dVar12 * pdVar7[1] + *pdVar7 * dVar33;
              dVar32 = dVar33 * pdVar7[6];
              local_f4 = dVar12 * dVar32 + dVar12 * pdVar7[5] + dVar33 * pdVar7[4] + pdVar7[7];
              ScaleResampleFilter(*ppRVar1,(dVar12 * pdVar7[2] + *pdVar7) * dVar3,
                                  (pdVar7[1] + dVar31) * dVar3,
                                  (pdVar7[6] * dVar12 + pdVar7[4]) * dVar3,
                                  (pdVar7[5] + dVar32) * dVar3);
              break;
            case PolynomialDistortion:
              iVar14 = (int)ROUND(pdVar7[1]);
              if (iVar14 < 1) {
                local_10c = 0.0;
                local_f4 = 0.0;
                local_11c = 0.0;
                local_104 = 0.0;
                local_114 = 0.0;
                local_fc = 0.0;
              }
              else {
                iVar21 = 0;
                local_10c = 0.0;
                local_f4 = 0.0;
                local_11c = 0.0;
                local_104 = 0.0;
                local_114 = 0.0;
                local_fc = 0.0;
                do {
                  n = iVar21;
                  dVar32 = poly_basis_fn(iVar21,dVar33,dVar12);
                  dVar31 = pdVar7[iVar21 + 2];
                  local_10c = dVar32 * dVar31 + local_10c;
                  dVar30 = poly_basis_dx(n,dVar33,dVar12);
                  local_114 = dVar31 * dVar30 + local_114;
                  switch(iVar21) {
                  case 0:
                  case 1:
                  case 4:
                    dVar31 = dVar31 * 0.0;
                    dVar29 = 0.0;
                    break;
                  case 2:
                    dVar29 = 1.0;
                    break;
                  case 3:
                    dVar31 = dVar31 * dVar33;
                    dVar29 = dVar33;
                    break;
                  case 5:
                    dVar31 = dVar31 * dVar12;
                    dVar29 = dVar12;
                    break;
                  default:
                    dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);
                    dVar31 = dVar31 * dVar29;
                  }
                  local_fc = dVar31 + local_fc;
                  dVar31 = pdVar7[iVar14 + iVar21 + 2];
                  iVar21 = iVar21 + 1;
                  local_f4 = dVar32 * dVar31 + local_f4;
                  local_11c = dVar30 * dVar31 + local_11c;
                  local_104 = dVar29 * dVar31 + local_104;
                } while (iVar14 != iVar21);
              }
              ScaleResampleFilter(*ppRVar1,local_114 * dVar3,local_fc * dVar3,local_11c * dVar3,
                                  local_104 * dVar3);
              break;
            case ArcDistortion:
              dVar31 = atan2(dVar12,dVar33);
              dVar31 = (dVar31 - *pdVar7) / DAT_002b0c28;
              if (dVar31 - ROUND(dVar31) < ROUND(dVar31) - dVar31) {
                local_72 = in_FPUControlWord & 0xf3ff | 0x400;
              }
              else {
                local_72 = in_FPUControlWord & 0xf3ff | 0x800;
              }
              dVar33 = hypot(dVar33,dVar12);
              if (dVar33 <= DAT_0029f138) {
                local_12c = (double)(ulonglong)(pIVar4->columns * 2);
                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,
                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,
                                    pdVar7[3] * dVar3);
              }
              else {
                ScaleResampleFilter(*ppRVar1,(pdVar7[1] / (dVar33 * DAT_002b0c28)) * dVar3,
                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,
                                    pdVar7[3] * dVar3);
              }
              local_10c = (double)(image->page).x + (dVar31 - ROUND(dVar31)) * pdVar7[1] + pdVar7[4]
                          + (double)DAT_0029f124;
              local_f4 = (double)(image->page).y + (pdVar7[2] - dVar33) * pdVar7[3];
              break;
            case PolarDistortion:
              dVar31 = pdVar7[2];
              dVar32 = pdVar7[3];
              dVar30 = atan2(dVar33 - dVar31,dVar12 - dVar32);
              dVar29 = DAT_002b0c28;
              dVar30 = (dVar30 - (pdVar7[4] + pdVar7[5]) * (double)DAT_0029f124) / DAT_002b0c28;
              if (dVar30 - ROUND(dVar30) < ROUND(dVar30) - dVar30) {
                local_72 = in_FPUControlWord & 0xf3ff | 0x400;
              }
              else {
                local_72 = in_FPUControlWord & 0xf3ff | 0x800;
              }
              dVar30 = DAT_002b0c28 * (dVar30 - ROUND(dVar30));
              dVar33 = hypot(dVar33 - dVar31,dVar12 - dVar32);
              if (dVar33 <= DAT_0029f138) {
                local_12c = (double)(ulonglong)(pIVar4->columns * 2);
                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,
                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,
                                    pdVar7[7] * dVar3);
              }
              else {
                ScaleResampleFilter(*ppRVar1,(pdVar7[6] / (dVar29 * dVar33)) * dVar3,
                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,
                                    pdVar7[7] * dVar3);
              }
              local_13c = (double)(ulonglong)image->columns;
              local_10c = (double)(image->page).x +
                          (double)(longlong)local_13c * (double)DAT_0029f124 + dVar30 * pdVar7[6];
              local_f4 = (double)(image->page).y + (dVar33 - pdVar7[1]) * pdVar7[7];
              break;
            case DePolarDistortion:
              dVar33 = (double)DAT_0029f124;
              sincos((double)(((float)local_15c + DAT_0029f124) * (float)dVar3 * (float)pdVar7[6] +
                             (float)pdVar7[4]),local_84,&local_8c);
              dVar12 = (dVar33 + (double)local_140) * dVar3 * pdVar7[7] + pdVar7[1];
              dVar33 = local_84[0] * dVar12 + pdVar7[2];
              dVar12 = dVar12 * local_8c + pdVar7[3];
LAB_00085796:
              local_10c = dVar33;
              if (MVar8 != MagickFalse) goto LAB_000852cf;
              goto joined_r0x000857af;
            case Cylinder2PlaneDistortion:
              dVar31 = pdVar7[5];
              dVar32 = pdVar7[1];
              dVar33 = (dVar33 - pdVar7[4]) / dVar32;
              dVar30 = atan(dVar33);
              dVar29 = cos(dVar30);
              local_f4 = (dVar12 - dVar31) * dVar29;
              ScaleResampleFilter(*ppRVar1,(1.0 / (dVar33 * dVar33 + 1.0)) * dVar3,
                                  dVar3 * (double)DAT_002a7fe8,
                                  ((-dVar33 * local_f4 * dVar29 * dVar29) / dVar32) * dVar3,
                                  (local_f4 / (dVar12 - dVar31)) * dVar3);
              local_10c = dVar30 * dVar32 + pdVar7[2];
              local_f4 = local_f4 + pdVar7[3];
              break;
            case Plane2CylinderDistortion:
              dVar31 = pdVar7[1];
              local_14c = (DAT_0029f740 * dVar31 - ABS(dVar33 - pdVar7[4])) / dVar3 +
                          (double)DAT_0029f124;
              if (0.0 < local_14c) {
                dVar33 = (dVar33 - pdVar7[4]) / dVar31;
                dVar32 = cos(dVar33);
                dVar32 = (double)DAT_0029f718 / dVar32;
                dVar33 = tan(dVar33);
                dVar33 = dVar33 * dVar31;
                dVar12 = (dVar12 - pdVar7[5]) * dVar32;
                ScaleResampleFilter(*ppRVar1,dVar32 * dVar32 * dVar3,dVar3 * 0.0,
                                    ((dVar32 * dVar12) / dVar31) * dVar3,dVar3 * dVar32);
              }
              local_10c = dVar33 + pdVar7[2];
              local_f4 = dVar12 + pdVar7[3];
              break;
            case BarrelDistortion:
            case BarrelInverseDistortion:
              dVar33 = dVar33 - pdVar7[8];
              dVar12 = dVar12 - pdVar7[9];
              dVar32 = dVar12 * dVar12 + dVar33 * dVar33;
              dVar31 = SQRT(dVar32);
              if (dVar32 < 0.0) {
                sqrt(dVar32);
                DVar17 = *this->method;
              }
              dVar32 = pdVar7[7];
              local_13c = pdVar7[3];
              if (DAT_0029f138 < dVar31) {
                dVar30 = pdVar7[1];
                local_13c = ((*pdVar7 * dVar31 + dVar30) * dVar31 + pdVar7[2]) * dVar31 + local_13c;
                dVar29 = pdVar7[5];
                dVar32 = ((pdVar7[4] * dVar31 + dVar29) * dVar31 + pdVar7[6]) * dVar31 + dVar32;
                dVar30 = ((dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31) * dVar31 +
                         pdVar7[2]) / dVar31;
                dVar31 = ((dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31) * dVar31 +
                         pdVar7[6]) / dVar31;
                if (DVar17 == BarrelInverseDistortion) {
                  local_13c = 1.0 / local_13c;
                  dVar32 = 1.0 / dVar32;
                  dVar30 = dVar30 * -local_13c * local_13c;
                  dVar31 = -dVar32 * dVar32 * dVar31;
                }
                local_10c = local_13c * dVar33 + pdVar7[8];
                local_f4 = dVar32 * dVar12 + pdVar7[9];
                ScaleResampleFilter(*ppRVar1,(dVar30 * dVar33 * dVar33 + local_13c) * dVar3,
                                    dVar12 * dVar30 * dVar33 * dVar3,
                                    dVar31 * dVar33 * dVar12 * dVar3,
                                    (dVar31 * dVar12 * dVar12 + dVar32) * dVar3);
              }
              else {
                if (DVar17 != BarrelDistortion) {
                  dVar32 = 1.0 / dVar32;
                  local_13c = 1.0 / local_13c;
                }
                ScaleResampleFilter(*ppRVar1,dVar3 * local_13c,dVar3 * (double)DAT_002a7fe8,
                                    dVar3 * (double)DAT_002a7fe8,dVar32 * dVar3);
              }
              break;
            case ShepardsDistortion:
              if (sVar9 == 0) {
                dVar31 = 0.0;
                dVar30 = 0.0;
                dVar32 = 0.0;
              }
              else {
                dVar31 = 0.0;
                dVar32 = 0.0;
                dVar30 = 0.0;
                pdVar25 = pdVar6;
                do {
                  dVar29 = pow((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +
                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7);
                  if (dVar29 < 1.0) {
                    dVar29 = 1.0;
                  }
                  else {
                    dVar29 = 1.0 / dVar29;
                  }
                  pdVar26 = pdVar25 + 4;
                  dVar30 = (*pdVar25 - pdVar25[2]) * dVar29 + dVar30;
                  dVar32 = (pdVar25[1] - pdVar25[3]) * dVar29 + dVar32;
                  dVar31 = dVar31 + dVar29;
                  pdVar25 = pdVar26;
                } while ((double *)((int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20) != pdVar26);
              }
              local_f4 = dVar12 + dVar32 / dVar31;
              local_10c = dVar30 / dVar31 + dVar33;
            }
            dVar12 = local_f4;
            if (MVar8 != MagickFalse) {
LAB_000852c3:
              dVar33 = local_10c;
              if (*this->method != ArcDistortion) {
LAB_000852cf:
                local_10c = dVar33 - (double)(image->page).x;
                dVar12 = dVar12 - (double)(image->page).y;
              }
            }
joined_r0x000857af:
            if (local_14c <= 0.0) {
              pPVar23 = this->invalid;
              pPVar20 = pIVar4->channel_map;
              pQVar16[pPVar20->offset] = pPVar23->red;
              pQVar16[pPVar20[1].offset] = pPVar23->green;
              pQVar16[pPVar20[2].offset] = pPVar23->blue;
              if (pPVar20[3].traits != UndefinedPixelTrait) {
                pQVar16[pPVar20[3].offset] = pPVar23->black;
              }
              if (pPVar20[4].traits != UndefinedPixelTrait) {
                if (pPVar23->alpha_trait == UndefinedPixelTrait) goto LAB_00085d68;
                dVar33 = pPVar23->alpha;
                goto LAB_000853cb;
              }
            }
            else {
              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,
                                 dVar12 - (double)DAT_0029f124,&local_70,exception);
              if (local_14c < 1.0) {
                pPVar23 = this->invalid;
                dVar12 = local_70.alpha * local_14c * _DAT_0029f148;
                dVar31 = pPVar23->alpha * (1.0 - local_14c) * _DAT_0029f148;
                dVar33 = dVar12 + dVar31;
                if (dVar33 < 0.0) {
                  dVar33 = 0.0;
                  local_70.alpha = 0.0;
                }
                else if (dVar33 <= 1.0) {
                  local_70.alpha = dVar33 * (double)DAT_0029f710;
                }
                else {
                  dVar33 = 1.0;
                  local_70.alpha = (MagickRealType)DAT_0029f710;
                }
                dVar32 = DAT_0029f738;
                if (DAT_0029f138 <= dVar33) {
                  dVar32 = (double)DAT_0029f718 / dVar33;
                }
                local_70.red = (pPVar23->red * dVar31 + local_70.red * dVar12) * dVar32;
                local_70.green = (pPVar23->green * dVar31 + local_70.green * dVar12) * dVar32;
                local_70.blue = (pPVar23->blue * dVar31 + local_70.blue * dVar12) * dVar32;
                if (pPVar23->colorspace == CMYKColorspace) {
                  local_70.black = dVar32 * (dVar31 * pPVar23->black + dVar12 * local_70.black);
                }
              }
LAB_00085370:
              pPVar20 = pIVar4->channel_map;
              PVar10 = pPVar20[3].traits;
              pQVar16[pPVar20->offset] = local_70.red;
              pQVar16[pPVar20[1].offset] = local_70.green;
              pQVar16[pPVar20[2].offset] = local_70.blue;
              if (PVar10 != UndefinedPixelTrait) {
                pQVar16[pPVar20[3].offset] = local_70.black;
              }
              if (pPVar20[4].traits != UndefinedPixelTrait) {
                dVar33 = local_70.alpha;
                if (local_70.alpha_trait == UndefinedPixelTrait) {
LAB_00085d68:
                  dVar33 = (double)DAT_0029f710;
                }
LAB_000853cb:
                pQVar16[pPVar20[4].offset] = dVar33;
              }
            }
            local_15c = local_15c + 1;
            pQVar16 = pQVar16 + pIVar4->number_channels;
          } while (local_15c < (int)pIVar4->columns);
        }
        MVar18 = SyncCacheViewAuthenticPixels(cache_view,exception);
        if (MVar18 == MagickFalse) {
          this->status = MagickFalse;
        }
        if (image->progress_monitor != (MagickProgressMonitor)0x0) {
          puVar11 = (uint *)this->progress;
          uVar19 = *puVar11;
          uVar22 = puVar11[1];
          do {
            LOCK();
            lVar2 = *(longlong *)puVar11;
            bVar27 = CONCAT44(uVar22,uVar19) == lVar2;
            if (bVar27) {
              *(longlong *)puVar11 = CONCAT44(uVar22 + (0xfffffffe < uVar19),uVar19 + 1);
            }
            else {
              uVar22 = (uint)((ulonglong)lVar2 >> 0x20);
              uVar19 = (uint)lVar2;
            }
            UNLOCK();
          } while (!bVar27);
          MVar18 = SetImageProgress(image,"Distort/Image",*this->progress,(ulonglong)image->rows);
          if (MVar18 == MagickFalse) {
            this->status = MagickFalse;
          }
        }
      }
      local_140 = local_140 + 1;
    } while (iVar15 != local_140);
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return;
}



/* WARNING: Removing unreachable block (ram,0x000857c0) */
/* WARNING: Removing unreachable block (ram,0x000857f9) */
/* WARNING: Removing unreachable block (ram,0x00085802) */
/* WARNING: Removing unreachable block (ram,0x0008580d) */
/* WARNING: Removing unreachable block (ram,0x00085818) */
/* WARNING: Removing unreachable block (ram,0x00085d78) */
/* WARNING: Removing unreachable block (ram,0x00085f28) */
/* WARNING: Removing unreachable block (ram,0x00085dad) */
/* WARNING: Removing unreachable block (ram,0x00086260) */
/* WARNING: Removing unreachable block (ram,0x00085db9) */
/* WARNING: Removing unreachable block (ram,0x00085dc5) */
/* WARNING: Removing unreachable block (ram,0x00085ec0) */
/* WARNING: Removing unreachable block (ram,0x00085dde) */
/* WARNING: Removing unreachable block (ram,0x00085de4) */
/* WARNING: Removing unreachable block (ram,0x00085360) */
/* WARNING: Removing unreachable block (ram,0x00085e39) */

void FUN_00084cb0(double *param_1)

{
  longlong lVar1;
  double dVar2;
  int iVar3;
  double *pdVar4;
  undefined4 uVar5;
  int iVar6;
  uint *puVar7;
  double dVar8;
  int iVar9;
  int iVar10;
  int iVar11;
  int iVar12;
  uint uVar13;
  int iVar14;
  uint uVar15;
  int unaff_EBP;
  undefined4 *puVar16;
  undefined4 *puVar17;
  int in_GS_OFFSET;
  bool bVar18;
  byte bVar19;
  undefined4 uVar20;
  int local_15c;
  int local_140;
  undefined4 local_70 [2];
  int local_68;
  undefined8 local_50;
  undefined8 local_48;
  undefined8 local_40;
  undefined8 local_38;
  double local_30;
  int local_20;
  
  bVar19 = 0;
  FUN_00042799();
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar3 = *(int *)((int)param_1 + 0x24);
  local_140 = omp_get_num_threads();
  iVar9 = omp_get_thread_num();
  iVar10 = *(int *)(iVar3 + 0x1c) / local_140;
  local_140 = *(int *)(iVar3 + 0x1c) % local_140;
  if (iVar9 < local_140) {
    iVar10 = iVar10 + 1;
    local_140 = 0;
  }
  local_140 = local_140 + iVar9 * iVar10;
  iVar10 = iVar10 + local_140;
  if (local_140 < iVar10) {
    iVar9 = *(int *)(param_1 + 7);
    dVar2 = *param_1;
    pdVar4 = *(double **)(param_1 + 4);
    uVar5 = *(undefined4 *)((int)param_1 + 0x1c);
    iVar6 = *(int *)(param_1 + 1);
    do {
      iVar11 = omp_get_thread_num();
      uVar20 = uVar5;
      iVar12 = QueueCacheViewAuthenticPixels();
      if (iVar12 == 0) {
        *(undefined4 *)((int)param_1 + 0x3c) = 0;
      }
      else {
        puVar16 = *(undefined4 **)((int)param_1 + 0x34);
        puVar17 = local_70;
        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {
          *puVar17 = *puVar16;
          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;
          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;
        }
        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {
          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,
                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);
        }
        if (0 < *(int *)(iVar3 + 0x18)) {
          local_15c = 0;
          do {
            if (**(uint **)((int)param_1 + 0xc) < 0x14) {
                    /* WARNING: Could not recover jumptable at 0x00084e9d. Too many branches */
                    /* WARNING: Treating indirect jump as call */
              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +
                        unaff_EBP + 0x35434a))();
              return;
            }
            ResamplePixelColor();
            iVar11 = *(int *)(iVar3 + 0x2a8);
            iVar14 = *(int *)(iVar11 + 0x28);
            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;
            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;
            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;
            if (iVar14 != 0) {
              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;
            }
            if (*(int *)(iVar11 + 0x34) != 0) {
              dVar8 = local_30;
              if (local_68 == 0) {
                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);
              }
              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;
            }
            local_15c = local_15c + 1;
            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;
          } while (local_15c < *(int *)(iVar3 + 0x18));
        }
        iVar12 = SyncCacheViewAuthenticPixels();
        if (iVar12 == 0) {
          *(undefined4 *)((int)param_1 + 0x3c) = 0;
        }
        if (*(int *)(iVar6 + 0x300) != 0) {
          puVar7 = *(uint **)(param_1 + 8);
          uVar13 = *puVar7;
          uVar15 = puVar7[1];
          do {
            LOCK();
            lVar1 = *(longlong *)puVar7;
            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;
            if (bVar18) {
              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);
            }
            else {
              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);
              uVar13 = (uint)lVar1;
            }
            UNLOCK();
          } while (!bVar18);
          iVar12 = SetImageProgress();
          if (iVar12 == 0) {
            *(undefined4 *)((int)param_1 + 0x3c) = 0;
          }
        }
      }
      local_140 = local_140 + 1;
    } while (iVar10 != local_140);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0029eab0();
}


PUSH EBP
CALL 0x00042799
ADD EBP,0x35434a
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x14c
MOV EDX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x13c],EDX
XOR EDX,EDX
MOV EAX,dword ptr [ESP + 0x160]
MOV EBX,EBP
MOV dword ptr [ESP + 0x18],EAX
MOV EAX,dword ptr [EAX + 0x24]
MOV EDI,EAX
MOV dword ptr [ESP + 0xc],EAX
CALL 0x00030850
MOV ESI,EAX
CALL 0x000317c0
MOV ECX,EAX
MOV EAX,dword ptr [EDI + 0x1c]
CDQ
IDIV ESI
CMP ECX,EDX
JGE 0x00084d08
ADD EAX,0x1
XOR EDX,EDX
IMUL ECX,EAX
MOV ESI,EAX
ADD EDX,ECX
ADD ESI,EDX
MOV dword ptr [ESP + 0x1c],EDX
CMP EDX,ESI
MOV dword ptr [ESP + 0x98],ESI
JGE 0x000854a6
MOV EAX,dword ptr [ESP + 0x18]
MOV EDX,dword ptr [EAX + 0x38]
MOV ESI,dword ptr [EAX + 0x30]
MOV EBX,dword ptr [EAX + 0x14]
FLD qword ptr [EAX]
MOV dword ptr [ESP + 0x9c],EDX
MOV EDX,dword ptr [EAX + 0x20]
MOV dword ptr [ESP + 0x94],ESI
MOV ESI,dword ptr [EAX + 0x1c]
FSTP qword ptr [ESP + 0x28]
MOV dword ptr [ESP + 0xbc],EBX
MOV dword ptr [ESP + 0xa0],EDX
MOV EDX,dword ptr [EAX + 0x18]
MOV dword ptr [ESP + 0x3c],ESI
MOV ESI,dword ptr [EAX + 0x8]
MOV dword ptr [ESP + 0x80],EDX
MOV EDX,dword ptr [EAX + 0x10]
MOV dword ptr [ESP + 0x88],ESI
LEA EAX,[EDX*0x8 + 0xfffffff8]
MOV dword ptr [ESP + 0xb4],EDX
AND EAX,0xffffffe0
LEA EAX,[EBX + EAX*0x1 + 0x20]
MOV dword ptr [ESP + 0x90],EAX
LEA EAX,[ESP + 0xd8]
MOV dword ptr [ESP + 0xb8],EAX
NOP
MOV EBX,EBP
CALL 0x000317c0
SUB ESP,0x8
MOV dword ptr [ESP + 0x8],EAX
PUSH dword ptr [ESP + 0x44]
PUSH 0x1
MOV EAX,dword ptr [ESP + 0x1c]
PUSH dword ptr [EAX + 0x18]
PUSH dword ptr [ESP + 0x30]
PUSH 0x0
PUSH dword ptr [ESP + 0xb0]
CALL 0x000339a0
ADD ESP,0x20
MOV EDX,EAX
TEST EAX,EAX
JZ 0x00085eb0
MOV EAX,dword ptr [ESP + 0x18]
LEA EDI,[ESP + 0xec]
MOV ECX,0x14
MOV dword ptr [ESP + 0x84],EDI
MOV ESI,dword ptr [EAX + 0x34]
MOVSD.REP ES:EDI,ESI
MOV EAX,dword ptr [EAX + 0xc]
MOV EAX,dword ptr [EAX]
CMP EAX,0x1
JZ 0x00085ed0
CMP EAX,0x13
JZ 0x00085ed0
MOV EAX,dword ptr [ESP + 0xc]
MOV EBX,dword ptr [EAX + 0x18]
TEST EBX,EBX
JLE 0x000853ee
MOV ESI,dword ptr [ESP]
FLD1
MOV EAX,dword ptr [ESP + 0x9c]
FSTP qword ptr [ESP + 0x10]
LEA EAX,[EAX + ESI*0x4]
XOR ESI,ESI
MOV dword ptr [ESP],ESI
MOV ESI,dword ptr [ESP + 0xa0]
MOV dword ptr [ESP + 0x38],EAX
LEA EAX,[ESP + 0xd0]
MOV dword ptr [ESP + 0xa4],EAX
LEA ESI,[ESI]
MOV EDI,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [ESP]
MOV ECX,dword ptr [EDI + 0x28]
ADD EAX,dword ptr [ECX + 0x8]
MOV dword ptr [ESP + 0x20],EAX
MOV EAX,dword ptr [ESP + 0x1c]
ADD EAX,dword ptr [ECX + 0xc]
FILD dword ptr [ESP + 0x20]
FLD dword ptr [EBP + 0xffec6124]
FADD ST1,ST0
FLD qword ptr [ESP + 0x28]
MOV dword ptr [ESP + 0x20],EAX
MOV EAX,dword ptr [EDI + 0xc]
FMUL ST2
FILD dword ptr [ESP + 0x20]
MOV EAX,dword ptr [EAX]
FADDP ST2,ST0
FMULP
CMP EAX,0x13
JA 0x000852b8
MOV ECX,dword ptr [EBP + EAX*0x4 + 0xffed69d4]
ADD ECX,EBP
JMP ECX
MOV EDI,dword ptr [ESP + 0x80]
TEST EDI,EDI
JZ 0x000852e6
MOV EAX,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [EAX + 0xc]
CMP dword ptr [EAX],0x9
JZ 0x000852e6
MOV EAX,dword ptr [ESP + 0x88]
FILD dword ptr [EAX + 0x208]
FSUBP ST2,ST0
FILD dword ptr [EAX + 0x20c]
FSUBP
FLD qword ptr [ESP + 0x10]
FLDZ
FUCOMI ST0,ST1
FSTP ST1
JNC 0x000857c0
FSTP qword ptr [ESP + 0x20]
FLD dword ptr [EBP + 0xffec6124]
SUB ESP,0x4
MOV EBX,EBP
MOV dword ptr [ESP + 0x34],EDX
FSUB ST1,ST0
FXCH
PUSH dword ptr [ESP + 0x40]
PUSH dword ptr [ESP + 0x8c]
SUB ESP,0x10
FSTP qword ptr [ESP + 0x8]
MOV EAX,dword ptr [ESP + 0x54]
FSUBP
FSTP qword ptr [ESP]
PUSH dword ptr [EAX]
CALL 0x000328d0
ADD ESP,0x20
MOV EDX,dword ptr [ESP + 0x30]
FLD qword ptr [ESP + 0x10]
FLD1
FUCOMI ST0,ST1
FSTP ST1
FLD qword ptr [ESP + 0x20]
JA 0x00085d78
FSTP ST0
FSTP ST0
FLD qword ptr [ESP + 0x10c]
JMP 0x00085370
FSTP ST2
FSTP ST0
FSTP ST1
LEA ESI,[ESI]
LEA EDI,[EDI]
MOV EAX,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [EAX + 0x2a8]
MOV ECX,dword ptr [EAX + 0x8]
MOV EBX,dword ptr [EAX + 0x28]
FSTP qword ptr [EDX + ECX*0x8]
MOV ECX,dword ptr [EAX + 0x14]
FLD qword ptr [ESP + 0x114]
FSTP qword ptr [EDX + ECX*0x8]
MOV ECX,dword ptr [EAX + 0x20]
FLD qword ptr [ESP + 0x11c]
FSTP qword ptr [EDX + ECX*0x8]
TEST EBX,EBX
JZ 0x000853ae
MOV ECX,dword ptr [EAX + 0x2c]
FLD qword ptr [ESP + 0x124]
FSTP qword ptr [EDX + ECX*0x8]
MOV ECX,dword ptr [EAX + 0x34]
TEST ECX,ECX
JZ 0x000853d1
MOV EDI,dword ptr [ESP + 0xf4]
TEST EDI,EDI
JZ 0x00085d68
FLD qword ptr [ESP + 0x12c]
MOV EAX,dword ptr [EAX + 0x38]
FSTP qword ptr [EDX + EAX*0x8]
MOV EDI,dword ptr [ESP + 0xc]
ADD dword ptr [ESP],0x1
MOV EAX,dword ptr [EDI + 0x298]
LEA EDX,[EDX + EAX*0x8]
MOV EAX,dword ptr [ESP]
CMP dword ptr [EDI + 0x18],EAX
JG 0x00084e50
SUB ESP,0x8
MOV EBX,EBP
PUSH dword ptr [ESP + 0x44]
PUSH dword ptr [ESP + 0xa0]
CALL 0x00031800
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00085415
MOV EAX,dword ptr [ESP + 0x18]
MOV dword ptr [EAX + 0x3c],0x0
MOV EAX,dword ptr [ESP + 0x88]
MOV EAX,dword ptr [EAX + 0x300]
TEST EAX,EAX
JZ 0x00085490
MOV EAX,dword ptr [ESP + 0x18]
MOV ESI,dword ptr [EAX + 0x40]
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],ECX
MOV dword ptr [ESP + 0x4],EBX
MOV EBX,ECX
MOV ECX,dword ptr [ESP + 0x4]
CMPXCHG8B.LOCK qword ptr [ESI]
JNZ 0x00085432
SUB ESP,0x8
XOR EDX,EDX
MOV EBX,EBP
MOV ESI,dword ptr [ESP + 0x90]
MOV EAX,dword ptr [ESI + 0x1c]
PUSH EDX
PUSH EAX
MOV EDI,dword ptr [ESP + 0x28]
MOV EAX,dword ptr [EDI + 0x40]
PUSH dword ptr [EAX + 0x4]
PUSH dword ptr [EAX]
LEA EAX,[EBP + 0xffed6db0]
PUSH EAX
PUSH ESI
CALL 0x00033840
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x00085490
MOV dword ptr [EDI + 0x3c],0x0
LEA ESI,[ESI]
ADD dword ptr [ESP + 0x1c],0x1
MOV EAX,dword ptr [ESP + 0x1c]
CMP dword ptr [ESP + 0x98],EAX
JNZ 0x00084da0
MOV EAX,dword ptr [ESP + 0x13c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x000863ae
ADD ESP,0x14c
POP EBX
POP ESI
POP EDI
POP EBP
RET
FSTP ST0
FSTP ST0
FSTP ST0
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,dword ptr [EAX + 0x2c]
MOV EAX,dword ptr [ESP + 0xc]
FLD qword ptr [ECX + 0x20]
MOV EAX,dword ptr [EAX + 0x2a8]
MOV EBX,dword ptr [EAX + 0x8]
FSTP qword ptr [EDX + EBX*0x8]
MOV EBX,dword ptr [EAX + 0x14]
FLD qword ptr [ECX + 0x28]
FSTP qword ptr [EDX + EBX*0x8]
MOV EBX,dword ptr [EAX + 0x20]
FLD qword ptr [ECX + 0x30]
FSTP qword ptr [EDX + EBX*0x8]
MOV EBX,dword ptr [EAX + 0x28]
TEST EBX,EBX
JZ 0x00085802
MOV EBX,dword ptr [EAX + 0x2c]
FLD qword ptr [ECX + 0x38]
FSTP qword ptr [EDX + EBX*0x8]
MOV EDI,dword ptr [EAX + 0x34]
TEST EDI,EDI
JZ 0x000853d1
MOV EBX,dword ptr [ECX + 0x8]
TEST EBX,EBX
JZ 0x00085d68
FLD qword ptr [ECX + 0x40]
JMP 0x000853cb
FLD dword ptr [EBP + 0xffec6710]
JMP 0x000853cb
FLD qword ptr [ESP + 0x10]
FLD qword ptr [ESP + 0x12c]
FMUL ST1
MOV EAX,dword ptr [ESP + 0x18]
FLD qword ptr [EBP + 0xffec6148]
MOV EAX,dword ptr [EAX + 0x2c]
FMUL ST1
FXCH ST2
FSUBR ST0,ST4
FLD qword ptr [EAX + 0x40]
FMULP
FMULP ST2
FLD ST0
FADD ST0,ST2
FXCH ST3
FUCOMIP ST0,ST3
JA 0x00085f28
FXCH ST2
FUCOMI ST0,ST3
FSTP ST3
JBE 0x00086260
FSTP ST2
FXCH
FLD1
FLD dword ptr [EBP + 0xffec6710]
FSTP qword ptr [ESP + 0x12c]
FLD qword ptr [EBP + 0xffec6138]
FXCH
FUCOMI ST0,ST1
FSTP ST1
JC 0x00085ec0
FDIVR dword ptr [EBP + 0xffec6718]
FLD qword ptr [ESP + 0x10c]
FMUL ST3
CMP dword ptr [EAX + 0x4],0x2
FLD qword ptr [EAX + 0x20]
FMUL ST3
FADDP
FMUL ST1
FST qword ptr [ESP + 0x10c]
FLD qword ptr [ESP + 0x114]
FMUL ST4
FLD qword ptr [EAX + 0x28]
FMUL ST4
FADDP
FMUL ST2
FSTP qword ptr [ESP + 0x114]
FLD qword ptr [ESP + 0x11c]
FMUL ST4
FLD qword ptr [EAX + 0x30]
FMUL ST4
FADDP
FMUL ST2
FSTP qword ptr [ESP + 0x11c]
JNZ 0x00085360
FXCH ST3
FMUL qword ptr [ESP + 0x124]
FXCH ST2
FMUL qword ptr [EAX + 0x38]
FADDP ST2,ST0
FMULP
FSTP qword ptr [ESP + 0x124]
JMP 0x00085370
MOV EAX,dword ptr [ESP + 0x18]
MOV dword ptr [EAX + 0x3c],0x0
JMP 0x00085490
FSTP ST0
FLD qword ptr [EBP + 0xffec6738]
JMP 0x00085de4
MOV dword ptr [ESP + 0x10],EDX
SUB ESP,0x2c
MOV EAX,dword ptr [ESP + 0xcc]
FLD qword ptr [ESP + 0x54]
MOV EBX,dword ptr [ESP + 0x2c]
FLD qword ptr [EAX + 0x20]
FMUL ST1
FSTP qword ptr [ESP + 0x18]
FLD qword ptr [EAX + 0x18]
FMUL ST1
FSTP qword ptr [ESP + 0x10]
FLD qword ptr [EAX + 0x8]
FMUL ST1
FSTP qword ptr [ESP + 0x8]
FMUL qword ptr [EAX]
MOV EAX,dword ptr [ESP + 0xc8]
FSTP qword ptr [ESP]
PUSH dword ptr [EAX + EBX*0x4]
MOV EBX,EBP
CALL 0x00032550
ADD ESP,0x30
MOV EDX,dword ptr [ESP + 0x10]
JMP 0x00084e0d
FSTP ST2
FSTP ST2
FLDZ
FLDZ
FXCH ST2
FXCH ST3
FXCH ST2
JMP 0x00085dc5
FLD ST2
FMUL dword ptr [EBP + 0xffec6710]
FXCH
FXCH ST2
FXCH ST3
FXCH
JMP 0x00085dc5
CALL 0x0029eab0
(translation_unit "/* WARNING: Removing unreachable block (ram,0x000857c0) */\n/* WARNING: Removing unreachable block (ram,0x000857f9) */\n/* WARNING: Removing unreachable block (ram,0x00085802) */\n/* WARNING: Removing unreachable block (ram,0x0008580d) */\n/* WARNING: Removing unreachable block (ram,0x00085818) */\n/* WARNING: Removing unreachable block (ram,0x00085d78) */\n/* WARNING: Removing unreachable block (ram,0x00085f28) */\n/* WARNING: Removing unreachable block (ram,0x00085dad) */\n/* WARNING: Removing unreachable block (ram,0x00086260) */\n/* WARNING: Removing unreachable block (ram,0x00085db9) */\n/* WARNING: Removing unreachable block (ram,0x00085dc5) */\n/* WARNING: Removing unreachable block (ram,0x00085ec0) */\n/* WARNING: Removing unreachable block (ram,0x00085dde) */\n/* WARNING: Removing unreachable block (ram,0x00085de4) */\n/* WARNING: Removing unreachable block (ram,0x00085360) */\n/* WARNING: Removing unreachable block (ram,0x00085e39) */\n\nvoid FUN_00084cb0(double *param_1)\n\n{\n  longlong lVar1;\n  double dVar2;\n  int iVar3;\n  double *pdVar4;\n  undefined4 uVar5;\n  int iVar6;\n  uint *puVar7;\n  double dVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  int unaff_EBP;\n  undefined4 *puVar16;\n  undefined4 *puVar17;\n  int in_GS_OFFSET;\n  bool bVar18;\n  byte bVar19;\n  undefined4 uVar20;\n  int local_15c;\n  int local_140;\n  undefined4 local_70 [2];\n  int local_68;\n  undefined8 local_50;\n  undefined8 local_48;\n  undefined8 local_40;\n  undefined8 local_38;\n  double local_30;\n  int local_20;\n  \n  bVar19 = 0;\n  FUN_00042799();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = *(int *)((int)param_1 + 0x24);\n  local_140 = omp_get_num_threads();\n  iVar9 = omp_get_thread_num();\n  iVar10 = *(int *)(iVar3 + 0x1c) / local_140;\n  local_140 = *(int *)(iVar3 + 0x1c) % local_140;\n  if (iVar9 < local_140) {\n    iVar10 = iVar10 + 1;\n    local_140 = 0;\n  }\n  local_140 = local_140 + iVar9 * iVar10;\n  iVar10 = iVar10 + local_140;\n  if (local_140 < iVar10) {\n    iVar9 = *(int *)(param_1 + 7);\n    dVar2 = *param_1;\n    pdVar4 = *(double **)(param_1 + 4);\n    uVar5 = *(undefined4 *)((int)param_1 + 0x1c);\n    iVar6 = *(int *)(param_1 + 1);\n    do {\n      iVar11 = omp_get_thread_num();\n      uVar20 = uVar5;\n      iVar12 = QueueCacheViewAuthenticPixels();\n      if (iVar12 == 0) {\n        *(undefined4 *)((int)param_1 + 0x3c) = 0;\n      }\n      else {\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    /* WARNING: Could not recover jumptable at 0x00084e9d. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    } while (iVar10 != local_140);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0029eab0();\n}\n\n" comment comment comment comment comment comment comment comment comment comment comment comment comment comment comment comment (function_definition "void FUN_00084cb0(double *param_1)\n\n{\n  longlong lVar1;\n  double dVar2;\n  int iVar3;\n  double *pdVar4;\n  undefined4 uVar5;\n  int iVar6;\n  uint *puVar7;\n  double dVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  int unaff_EBP;\n  undefined4 *puVar16;\n  undefined4 *puVar17;\n  int in_GS_OFFSET;\n  bool bVar18;\n  byte bVar19;\n  undefined4 uVar20;\n  int local_15c;\n  int local_140;\n  undefined4 local_70 [2];\n  int local_68;\n  undefined8 local_50;\n  undefined8 local_48;\n  undefined8 local_40;\n  undefined8 local_38;\n  double local_30;\n  int local_20;\n  \n  bVar19 = 0;\n  FUN_00042799();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = *(int *)((int)param_1 + 0x24);\n  local_140 = omp_get_num_threads();\n  iVar9 = omp_get_thread_num();\n  iVar10 = *(int *)(iVar3 + 0x1c) / local_140;\n  local_140 = *(int *)(iVar3 + 0x1c) % local_140;\n  if (iVar9 < local_140) {\n    iVar10 = iVar10 + 1;\n    local_140 = 0;\n  }\n  local_140 = local_140 + iVar9 * iVar10;\n  iVar10 = iVar10 + local_140;\n  if (local_140 < iVar10) {\n    iVar9 = *(int *)(param_1 + 7);\n    dVar2 = *param_1;\n    pdVar4 = *(double **)(param_1 + 4);\n    uVar5 = *(undefined4 *)((int)param_1 + 0x1c);\n    iVar6 = *(int *)(param_1 + 1);\n    do {\n      iVar11 = omp_get_thread_num();\n      uVar20 = uVar5;\n      iVar12 = QueueCacheViewAuthenticPixels();\n      if (iVar12 == 0) {\n        *(undefined4 *)((int)param_1 + 0x3c) = 0;\n      }\n      else {\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    /* WARNING: Could not recover jumptable at 0x00084e9d. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    } while (iVar10 != local_140);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0029eab0();\n}" primitive_type (function_declarator "FUN_00084cb0(double *param_1)" identifier (parameter_list "(double *param_1)" ( (parameter_declaration "double *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  longlong lVar1;\n  double dVar2;\n  int iVar3;\n  double *pdVar4;\n  undefined4 uVar5;\n  int iVar6;\n  uint *puVar7;\n  double dVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  int unaff_EBP;\n  undefined4 *puVar16;\n  undefined4 *puVar17;\n  int in_GS_OFFSET;\n  bool bVar18;\n  byte bVar19;\n  undefined4 uVar20;\n  int local_15c;\n  int local_140;\n  undefined4 local_70 [2];\n  int local_68;\n  undefined8 local_50;\n  undefined8 local_48;\n  undefined8 local_40;\n  undefined8 local_38;\n  double local_30;\n  int local_20;\n  \n  bVar19 = 0;\n  FUN_00042799();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = *(int *)((int)param_1 + 0x24);\n  local_140 = omp_get_num_threads();\n  iVar9 = omp_get_thread_num();\n  iVar10 = *(int *)(iVar3 + 0x1c) / local_140;\n  local_140 = *(int *)(iVar3 + 0x1c) % local_140;\n  if (iVar9 < local_140) {\n    iVar10 = iVar10 + 1;\n    local_140 = 0;\n  }\n  local_140 = local_140 + iVar9 * iVar10;\n  iVar10 = iVar10 + local_140;\n  if (local_140 < iVar10) {\n    iVar9 = *(int *)(param_1 + 7);\n    dVar2 = *param_1;\n    pdVar4 = *(double **)(param_1 + 4);\n    uVar5 = *(undefined4 *)((int)param_1 + 0x1c);\n    iVar6 = *(int *)(param_1 + 1);\n    do {\n      iVar11 = omp_get_thread_num();\n      uVar20 = uVar5;\n      iVar12 = QueueCacheViewAuthenticPixels();\n      if (iVar12 == 0) {\n        *(undefined4 *)((int)param_1 + 0x3c) = 0;\n      }\n      else {\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    /* WARNING: Could not recover jumptable at 0x00084e9d. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    } while (iVar10 != local_140);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0029eab0();\n}" { (declaration "longlong lVar1;" type_identifier identifier ;) (declaration "double dVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "double *pdVar4;" primitive_type (pointer_declarator "*pdVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "double dVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "uint uVar15;" type_identifier identifier ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (declaration "undefined4 *puVar16;" type_identifier (pointer_declarator "*puVar16" * identifier) ;) (declaration "undefined4 *puVar17;" type_identifier (pointer_declarator "*puVar17" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar18;" primitive_type identifier ;) (declaration "byte bVar19;" type_identifier identifier ;) (declaration "undefined4 uVar20;" type_identifier identifier ;) (declaration "int local_15c;" primitive_type identifier ;) (declaration "int local_140;" primitive_type identifier ;) (declaration "undefined4 local_70 [2];" type_identifier (array_declarator "local_70 [2]" identifier [ number_literal ]) ;) (declaration "int local_68;" primitive_type identifier ;) (declaration "undefined8 local_50;" type_identifier identifier ;) (declaration "undefined8 local_48;" type_identifier identifier ;) (declaration "undefined8 local_40;" type_identifier identifier ;) (declaration "undefined8 local_38;" type_identifier identifier ;) (declaration "double local_30;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "bVar19 = 0;" (assignment_expression "bVar19 = 0" identifier = number_literal) ;) (expression_statement "FUN_00042799();" (call_expression "FUN_00042799()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)((int)param_1 + 0x24);" (assignment_expression "iVar3 = *(int *)((int)param_1 + 0x24)" identifier = (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) ))))) ;) (expression_statement "local_140 = omp_get_num_threads();" (assignment_expression "local_140 = 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 *)(iVar3 + 0x1c) / local_140;" (assignment_expression "iVar10 = *(int *)(iVar3 + 0x1c) / local_140" identifier = (binary_expression "*(int *)(iVar3 + 0x1c) / local_140" (pointer_expression "*(int *)(iVar3 + 0x1c)" * (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) )))) / identifier)) ;) (expression_statement "local_140 = *(int *)(iVar3 + 0x1c) % local_140;" (assignment_expression "local_140 = *(int *)(iVar3 + 0x1c) % local_140" identifier = (binary_expression "*(int *)(iVar3 + 0x1c) % local_140" (pointer_expression "*(int *)(iVar3 + 0x1c)" * (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) )))) % identifier)) ;) (if_statement "if (iVar9 < local_140) {\n    iVar10 = iVar10 + 1;\n    local_140 = 0;\n  }" if (parenthesized_expression "(iVar9 < local_140)" ( (binary_expression "iVar9 < local_140" identifier < identifier) )) (compound_statement "{\n    iVar10 = iVar10 + 1;\n    local_140 = 0;\n  }" { (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (expression_statement "local_140 = 0;" (assignment_expression "local_140 = 0" identifier = number_literal) ;) })) (expression_statement "local_140 = local_140 + iVar9 * iVar10;" (assignment_expression "local_140 = local_140 + iVar9 * iVar10" identifier = (binary_expression "local_140 + iVar9 * iVar10" identifier + (binary_expression "iVar9 * iVar10" identifier * identifier))) ;) (expression_statement "iVar10 = iVar10 + local_140;" (assignment_expression "iVar10 = iVar10 + local_140" identifier = (binary_expression "iVar10 + local_140" identifier + identifier)) ;) (if_statement "if (local_140 < iVar10) {\n    iVar9 = *(int *)(param_1 + 7);\n    dVar2 = *param_1;\n    pdVar4 = *(double **)(param_1 + 4);\n    uVar5 = *(undefined4 *)((int)param_1 + 0x1c);\n    iVar6 = *(int *)(param_1 + 1);\n    do {\n      iVar11 = omp_get_thread_num();\n      uVar20 = uVar5;\n      iVar12 = QueueCacheViewAuthenticPixels();\n      if (iVar12 == 0) {\n        *(undefined4 *)((int)param_1 + 0x3c) = 0;\n      }\n      else {\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    /* WARNING: Could not recover jumptable at 0x00084e9d. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    } while (iVar10 != local_140);\n  }" if (parenthesized_expression "(local_140 < iVar10)" ( (binary_expression "local_140 < iVar10" identifier < identifier) )) (compound_statement "{\n    iVar9 = *(int *)(param_1 + 7);\n    dVar2 = *param_1;\n    pdVar4 = *(double **)(param_1 + 4);\n    uVar5 = *(undefined4 *)((int)param_1 + 0x1c);\n    iVar6 = *(int *)(param_1 + 1);\n    do {\n      iVar11 = omp_get_thread_num();\n      uVar20 = uVar5;\n      iVar12 = QueueCacheViewAuthenticPixels();\n      if (iVar12 == 0) {\n        *(undefined4 *)((int)param_1 + 0x3c) = 0;\n      }\n      else {\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    /* WARNING: Could not recover jumptable at 0x00084e9d. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    } while (iVar10 != local_140);\n  }" { (expression_statement "iVar9 = *(int *)(param_1 + 7);" (assignment_expression "iVar9 = *(int *)(param_1 + 7)" identifier = (pointer_expression "*(int *)(param_1 + 7)" * (cast_expression "(int *)(param_1 + 7)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 7)" ( (binary_expression "param_1 + 7" identifier + number_literal) ))))) ;) (expression_statement "dVar2 = *param_1;" (assignment_expression "dVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pdVar4 = *(double **)(param_1 + 4);" (assignment_expression "pdVar4 = *(double **)(param_1 + 4)" identifier = (pointer_expression "*(double **)(param_1 + 4)" * (cast_expression "(double **)(param_1 + 4)" ( (type_descriptor "double **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(undefined4 *)((int)param_1 + 0x1c);" (assignment_expression "uVar5 = *(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 "iVar6 = *(int *)(param_1 + 1);" (assignment_expression "iVar6 = *(int *)(param_1 + 1)" identifier = (pointer_expression "*(int *)(param_1 + 1)" * (cast_expression "(int *)(param_1 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))))) ;) (do_statement "do {\n      iVar11 = omp_get_thread_num();\n      uVar20 = uVar5;\n      iVar12 = QueueCacheViewAuthenticPixels();\n      if (iVar12 == 0) {\n        *(undefined4 *)((int)param_1 + 0x3c) = 0;\n      }\n      else {\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    /* WARNING: Could not recover jumptable at 0x00084e9d. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    } while (iVar10 != local_140);" do (compound_statement "{\n      iVar11 = omp_get_thread_num();\n      uVar20 = uVar5;\n      iVar12 = QueueCacheViewAuthenticPixels();\n      if (iVar12 == 0) {\n        *(undefined4 *)((int)param_1 + 0x3c) = 0;\n      }\n      else {\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    /* WARNING: Could not recover jumptable at 0x00084e9d. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    }" { (expression_statement "iVar11 = omp_get_thread_num();" (assignment_expression "iVar11 = omp_get_thread_num()" identifier = (call_expression "omp_get_thread_num()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar20 = uVar5;" (assignment_expression "uVar20 = uVar5" identifier = identifier) ;) (expression_statement "iVar12 = QueueCacheViewAuthenticPixels();" (assignment_expression "iVar12 = QueueCacheViewAuthenticPixels()" identifier = (call_expression "QueueCacheViewAuthenticPixels()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar12 == 0) {\n        *(undefined4 *)((int)param_1 + 0x3c) = 0;\n      }\n      else {\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    /* WARNING: Could not recover jumptable at 0x00084e9d. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (compound_statement "{\n        *(undefined4 *)((int)param_1 + 0x3c) = 0;\n      }" { (expression_statement "*(undefined4 *)((int)param_1 + 0x3c) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + 0x3c) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + 0x3c)" * (cast_expression "(undefined4 *)((int)param_1 + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x3c)" ( (binary_expression "(int)param_1 + 0x3c" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    /* WARNING: Could not recover jumptable at 0x00084e9d. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }" else (compound_statement "{\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    /* WARNING: Could not recover jumptable at 0x00084e9d. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }" { (expression_statement "puVar16 = *(undefined4 **)((int)param_1 + 0x34);" (assignment_expression "puVar16 = *(undefined4 **)((int)param_1 + 0x34)" identifier = (pointer_expression "*(undefined4 **)((int)param_1 + 0x34)" * (cast_expression "(undefined4 **)((int)param_1 + 0x34)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + 0x34)" ( (binary_expression "(int)param_1 + 0x34" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "puVar17 = local_70;" (assignment_expression "puVar17 = local_70" identifier = identifier) ;) (for_statement "for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }" for ( (assignment_expression "iVar14 = 0x14" identifier = number_literal) ; (binary_expression "iVar14 != 0" identifier != number_literal) ; (assignment_expression "iVar14 = iVar14 + -1" identifier = (binary_expression "iVar14 + -1" identifier + number_literal)) ) (compound_statement "{\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }" { (expression_statement "*puVar17 = *puVar16;" (assignment_expression "*puVar17 = *puVar16" (pointer_expression "*puVar17" * identifier) = (pointer_expression "*puVar16" * identifier)) ;) (expression_statement "puVar16 = puVar16 + (uint)bVar19 * -2 + 1;" (assignment_expression "puVar16 = puVar16 + (uint)bVar19 * -2 + 1" identifier = (binary_expression "puVar16 + (uint)bVar19 * -2 + 1" (binary_expression "puVar16 + (uint)bVar19 * -2" identifier + (binary_expression "(uint)bVar19 * -2" (cast_expression "(uint)bVar19" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar17 = puVar17 + (uint)bVar19 * -2 + 1;" (assignment_expression "puVar17 = puVar17 + (uint)bVar19 * -2 + 1" identifier = (binary_expression "puVar17 + (uint)bVar19 * -2 + 1" (binary_expression "puVar17 + (uint)bVar19 * -2" identifier + (binary_expression "(uint)bVar19 * -2" (cast_expression "(uint)bVar19" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (if_statement "if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }" if (parenthesized_expression "((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13))" ( (binary_expression "(**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)" (parenthesized_expression "(**(int **)((int)param_1 + 0xc) == 1)" ( (binary_expression "**(int **)((int)param_1 + 0xc) == 1" (pointer_expression "**(int **)((int)param_1 + 0xc)" * (pointer_expression "*(int **)((int)param_1 + 0xc)" * (cast_expression "(int **)((int)param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + 0xc)" ( (binary_expression "(int)param_1 + 0xc" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) == number_literal) )) || (parenthesized_expression "(**(int **)((int)param_1 + 0xc) == 0x13)" ( (binary_expression "**(int **)((int)param_1 + 0xc) == 0x13" (pointer_expression "**(int **)((int)param_1 + 0xc)" * (pointer_expression "*(int **)((int)param_1 + 0xc)" * (cast_expression "(int **)((int)param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + 0xc)" ( (binary_expression "(int)param_1 + 0xc" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) == number_literal) ))) )) (compound_statement "{\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }" { (expression_statement "ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);" (call_expression "ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20)" identifier (argument_list "(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20)" ( (pointer_expression "*(undefined4 *)(iVar9 + iVar11 * 4)" * (cast_expression "(undefined4 *)(iVar9 + iVar11 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + iVar11 * 4)" ( (binary_expression "iVar9 + iVar11 * 4" identifier + (binary_expression "iVar11 * 4" identifier * number_literal)) )))) , (binary_expression "dVar2 * *pdVar4" identifier * (pointer_expression "*pdVar4" * identifier)) , (binary_expression "pdVar4[1] * dVar2" (subscript_expression "pdVar4[1]" identifier [ number_literal ]) * identifier) , (binary_expression "pdVar4[3] * dVar2" (subscript_expression "pdVar4[3]" identifier [ number_literal ]) * identifier) , (binary_expression "pdVar4[4] * dVar2" (subscript_expression "pdVar4[4]" identifier [ number_literal ]) * identifier) , identifier ))) ;) })) (if_statement "if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    /* WARNING: Could not recover jumptable at 0x00084e9d. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }" if (parenthesized_expression "(0 < *(int *)(iVar3 + 0x18))" ( (binary_expression "0 < *(int *)(iVar3 + 0x18)" number_literal < (pointer_expression "*(int *)(iVar3 + 0x18)" * (cast_expression "(int *)(iVar3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    /* WARNING: Could not recover jumptable at 0x00084e9d. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }" { (expression_statement "local_15c = 0;" (assignment_expression "local_15c = 0" identifier = number_literal) ;) (do_statement "do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    /* WARNING: Could not recover jumptable at 0x00084e9d. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));" do (compound_statement "{\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    /* WARNING: Could not recover jumptable at 0x00084e9d. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          }" { (if_statement "if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    /* WARNING: Could not recover jumptable at 0x00084e9d. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }" if (parenthesized_expression "(**(uint **)((int)param_1 + 0xc) < 0x14)" ( (binary_expression "**(uint **)((int)param_1 + 0xc) < 0x14" (pointer_expression "**(uint **)((int)param_1 + 0xc)" * (pointer_expression "*(uint **)((int)param_1 + 0xc)" * (cast_expression "(uint **)((int)param_1 + 0xc)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + 0xc)" ( (binary_expression "(int)param_1 + 0xc" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) < number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x00084e9d. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }" { comment comment (expression_statement "(*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();" (call_expression "(*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))()" (parenthesized_expression "(*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))" ( (pointer_expression "*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a)" * (cast_expression "(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a)" ( (binary_expression "*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a" (binary_expression "*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP" (pointer_expression "*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4)" * (cast_expression "(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4)" ( (binary_expression "unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4" (binary_expression "unaff_EBP + 0x22ad1e" identifier + number_literal) + (binary_expression "**(uint **)((int)param_1 + 0xc) * 4" (pointer_expression "**(uint **)((int)param_1 + 0xc)" * (pointer_expression "*(uint **)((int)param_1 + 0xc)" * (cast_expression "(uint **)((int)param_1 + 0xc)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + 0xc)" ( (binary_expression "(int)param_1 + 0xc" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) * number_literal)) )))) + identifier) + number_literal) )))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "ResamplePixelColor();" (call_expression "ResamplePixelColor()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar11 = *(int *)(iVar3 + 0x2a8);" (assignment_expression "iVar11 = *(int *)(iVar3 + 0x2a8)" identifier = (pointer_expression "*(int *)(iVar3 + 0x2a8)" * (cast_expression "(int *)(iVar3 + 0x2a8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x2a8)" ( (binary_expression "iVar3 + 0x2a8" identifier + number_literal) ))))) ;) (expression_statement "iVar14 = *(int *)(iVar11 + 0x28);" (assignment_expression "iVar14 = *(int *)(iVar11 + 0x28)" identifier = (pointer_expression "*(int *)(iVar11 + 0x28)" * (cast_expression "(int *)(iVar11 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x28)" ( (binary_expression "iVar11 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;" (assignment_expression "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50" (pointer_expression "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8)" * (cast_expression "(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + *(int *)(iVar11 + 8) * 8)" ( (binary_expression "iVar12 + *(int *)(iVar11 + 8) * 8" identifier + (binary_expression "*(int *)(iVar11 + 8) * 8" (pointer_expression "*(int *)(iVar11 + 8)" * (cast_expression "(int *)(iVar11 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 8)" ( (binary_expression "iVar11 + 8" identifier + number_literal) )))) * number_literal)) )))) = identifier) ;) (expression_statement "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;" (assignment_expression "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48" (pointer_expression "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8)" * (cast_expression "(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + *(int *)(iVar11 + 0x14) * 8)" ( (binary_expression "iVar12 + *(int *)(iVar11 + 0x14) * 8" identifier + (binary_expression "*(int *)(iVar11 + 0x14) * 8" (pointer_expression "*(int *)(iVar11 + 0x14)" * (cast_expression "(int *)(iVar11 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x14)" ( (binary_expression "iVar11 + 0x14" identifier + number_literal) )))) * number_literal)) )))) = identifier) ;) (expression_statement "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;" (assignment_expression "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40" (pointer_expression "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8)" * (cast_expression "(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + *(int *)(iVar11 + 0x20) * 8)" ( (binary_expression "iVar12 + *(int *)(iVar11 + 0x20) * 8" identifier + (binary_expression "*(int *)(iVar11 + 0x20) * 8" (pointer_expression "*(int *)(iVar11 + 0x20)" * (cast_expression "(int *)(iVar11 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x20)" ( (binary_expression "iVar11 + 0x20" identifier + number_literal) )))) * number_literal)) )))) = identifier) ;) (if_statement "if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }" if (parenthesized_expression "(iVar14 != 0)" ( (binary_expression "iVar14 != 0" identifier != number_literal) )) (compound_statement "{\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }" { (expression_statement "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;" (assignment_expression "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38" (pointer_expression "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8)" * (cast_expression "(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + *(int *)(iVar11 + 0x2c) * 8)" ( (binary_expression "iVar12 + *(int *)(iVar11 + 0x2c) * 8" identifier + (binary_expression "*(int *)(iVar11 + 0x2c) * 8" (pointer_expression "*(int *)(iVar11 + 0x2c)" * (cast_expression "(int *)(iVar11 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x2c)" ( (binary_expression "iVar11 + 0x2c" identifier + number_literal) )))) * number_literal)) )))) = identifier) ;) })) (if_statement "if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }" if (parenthesized_expression "(*(int *)(iVar11 + 0x34) != 0)" ( (binary_expression "*(int *)(iVar11 + 0x34) != 0" (pointer_expression "*(int *)(iVar11 + 0x34)" * (cast_expression "(int *)(iVar11 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x34)" ( (binary_expression "iVar11 + 0x34" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }" { (expression_statement "dVar8 = local_30;" (assignment_expression "dVar8 = local_30" identifier = identifier) ;) (if_statement "if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }" if (parenthesized_expression "(local_68 == 0)" ( (binary_expression "local_68 == 0" identifier == number_literal) )) (compound_statement "{\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }" { (expression_statement "dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);" (assignment_expression "dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a)" identifier = (cast_expression "(double)*(float *)(unaff_EBP + 0x21aa5a)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(float *)(unaff_EBP + 0x21aa5a)" * (cast_expression "(float *)(unaff_EBP + 0x21aa5a)" ( (type_descriptor "float *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + 0x21aa5a)" ( (binary_expression "unaff_EBP + 0x21aa5a" identifier + number_literal) )))))) ;) })) (expression_statement "*(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;" (assignment_expression "*(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8" (pointer_expression "*(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8)" * (cast_expression "(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + *(int *)(iVar11 + 0x38) * 8)" ( (binary_expression "iVar12 + *(int *)(iVar11 + 0x38) * 8" identifier + (binary_expression "*(int *)(iVar11 + 0x38) * 8" (pointer_expression "*(int *)(iVar11 + 0x38)" * (cast_expression "(int *)(iVar11 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x38)" ( (binary_expression "iVar11 + 0x38" identifier + number_literal) )))) * number_literal)) )))) = identifier) ;) })) (expression_statement "local_15c = local_15c + 1;" (assignment_expression "local_15c = local_15c + 1" identifier = (binary_expression "local_15c + 1" identifier + number_literal)) ;) (expression_statement "iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;" (assignment_expression "iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8" identifier = (binary_expression "iVar12 + *(int *)(iVar3 + 0x298) * 8" identifier + (binary_expression "*(int *)(iVar3 + 0x298) * 8" (pointer_expression "*(int *)(iVar3 + 0x298)" * (cast_expression "(int *)(iVar3 + 0x298)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x298)" ( (binary_expression "iVar3 + 0x298" identifier + number_literal) )))) * number_literal))) ;) }) while (parenthesized_expression "(local_15c < *(int *)(iVar3 + 0x18))" ( (binary_expression "local_15c < *(int *)(iVar3 + 0x18)" identifier < (pointer_expression "*(int *)(iVar3 + 0x18)" * (cast_expression "(int *)(iVar3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) ))))) )) ;) })) (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 + 0x3c) = 0;\n        }" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (compound_statement "{\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }" { (expression_statement "*(undefined4 *)((int)param_1 + 0x3c) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + 0x3c) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + 0x3c)" * (cast_expression "(undefined4 *)((int)param_1 + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x3c)" ( (binary_expression "(int)param_1 + 0x3c" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) (if_statement "if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }" if (parenthesized_expression "(*(int *)(iVar6 + 0x300) != 0)" ( (binary_expression "*(int *)(iVar6 + 0x300) != 0" (pointer_expression "*(int *)(iVar6 + 0x300)" * (cast_expression "(int *)(iVar6 + 0x300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x300)" ( (binary_expression "iVar6 + 0x300" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }" { (expression_statement "puVar7 = *(uint **)(param_1 + 8);" (assignment_expression "puVar7 = *(uint **)(param_1 + 8)" identifier = (pointer_expression "*(uint **)(param_1 + 8)" * (cast_expression "(uint **)(param_1 + 8)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar13 = *puVar7;" (assignment_expression "uVar13 = *puVar7" identifier = (pointer_expression "*puVar7" * identifier)) ;) (expression_statement "uVar15 = puVar7[1];" (assignment_expression "uVar15 = puVar7[1]" identifier = (subscript_expression "puVar7[1]" identifier [ number_literal ])) ;) (do_statement "do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);" do (compound_statement "{\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = 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 *)puVar7;" (assignment_expression "lVar1 = *(longlong *)puVar7" identifier = (pointer_expression "*(longlong *)puVar7" * (cast_expression "(longlong *)puVar7" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "bVar18 = CONCAT44(uVar15,uVar13) == lVar1;" (assignment_expression "bVar18 = 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 (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }" if (parenthesized_expression "(bVar18)" ( identifier )) (compound_statement "{\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }" { (expression_statement "*(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);" (assignment_expression "*(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1)" (pointer_expression "*(longlong *)puVar7" * (cast_expression "(longlong *)puVar7" ( (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 "(!bVar18)" ( (unary_expression "!bVar18" ! identifier) )) ;) (expression_statement "iVar12 = SetImageProgress();" (assignment_expression "iVar12 = SetImageProgress()" identifier = (call_expression "SetImageProgress()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (compound_statement "{\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }" { (expression_statement "*(undefined4 *)((int)param_1 + 0x3c) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + 0x3c) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + 0x3c)" * (cast_expression "(undefined4 *)((int)param_1 + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x3c)" ( (binary_expression "(int)param_1 + 0x3c" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) })) }))) (expression_statement "local_140 = local_140 + 1;" (assignment_expression "local_140 = local_140 + 1" identifier = (binary_expression "local_140 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar10 != local_140)" ( (binary_expression "iVar10 != local_140" identifier != identifier) )) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_0029eab0();" (call_expression "FUN_0029eab0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */\n/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* WARNING: Enum "DisposeType": Some values do not have unique names */\n/* WARNING: Enum "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "PixelChannel": Some values do not have unique names */\n/* WARNING: Enum "DistortMethod": Some values do not have unique names */\n/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n/* DWARF original prototype: void DistortImage._omp_fn.0(anon_struct_72_16_e79c3edd * param_0) */\n\nvoid __thiscall DistortImage__omp_fn_0(anon_struct_72_16_e79c3edd *this)\n\n{\n  ResampleFilter **ppRVar1;\n  longlong lVar2;\n  double dVar3;\n  Image *pIVar4;\n  ResampleFilter **ppRVar5;\n  CacheView *cache_view;\n  double *pdVar6;\n  double *pdVar7;\n  ExceptionInfo *exception;\n  MagickBooleanType MVar8;\n  Image *image;\n  size_t sVar9;\n  PixelTrait PVar10;\n  uint *puVar11;\n  double dVar12;\n  double dVar13;\n  int iVar14;\n  int iVar15;\n  Quantum *pQVar16;\n  DistortMethod DVar17;\n  MagickBooleanType MVar18;\n  uint uVar19;\n  int n;\n  PixelChannelMap *pPVar20;\n  int iVar21;\n  uint uVar22;\n  PixelInfo *pPVar23;\n  PixelInfo *pPVar24;\n  double *pdVar25;\n  double *pdVar26;\n  int in_GS_OFFSET;\n  bool bVar27;\n  byte bVar28;\n  ushort in_FPUControlWord;\n  double dVar29;\n  double dVar30;\n  double dVar31;\n  double dVar32;\n  double dVar33;\n  int local_15c;\n  double local_14c;\n  int local_140;\n  double local_13c;\n  double local_12c;\n  double local_11c;\n  double local_114;\n  double local_10c;\n  double local_104;\n  double local_fc;\n  double local_f4;\n  double local_8c;\n  double local_84 [2];\n  ushort local_72;\n  PixelInfo local_70;\n  int local_20;\n  \n  bVar28 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pIVar4 = this->distort_image;\n  local_140 = omp_get_num_threads();\n  iVar14 = omp_get_thread_num();\n  iVar15 = (int)pIVar4->rows / local_140;\n  local_140 = (int)pIVar4->rows % local_140;\n  if (iVar14 < local_140) {\n    iVar15 = iVar15 + 1;\n    local_140 = 0;\n  }\n  local_140 = local_140 + iVar14 * iVar15;\n  iVar15 = iVar15 + local_140;\n  if (local_140 < iVar15) {\n    ppRVar5 = this->resample_filter;\n    cache_view = this->distort_view;\n    pdVar6 = this->arguments;\n    dVar3 = this->output_scaling;\n    pdVar7 = this->coeff;\n    exception = this->exception;\n    MVar8 = this->bestfit;\n    image = this->image;\n    sVar9 = this->number_arguments;\n    do {\n      iVar14 = omp_get_thread_num();\n      pQVar16 = QueueCacheViewAuthenticPixels(cache_view,0,local_140,pIVar4->columns,1,exception);\n      if (pQVar16 == (Quantum *)0x0) {\n        this->status = MagickFalse;\n      }\n      else {\n        pPVar23 = this->zero;\n        pPVar24 = &local_70;\n        for (iVar21 = 0x14; iVar21 != 0; iVar21 = iVar21 + -1) {\n          pPVar24->storage_class = pPVar23->storage_class;\n          pPVar23 = (PixelInfo *)((int)pPVar23 + (uint)bVar28 * -8 + 4);\n          pPVar24 = (PixelInfo *)((int)pPVar24 + (uint)bVar28 * -8 + 4);\n        }\n        if ((*this->method == AffineDistortion) || (*this->method == RigidAffineDistortion)) {\n          ScaleResampleFilter(ppRVar5[iVar14],dVar3 * *pdVar7,pdVar7[1] * dVar3,pdVar7[3] * dVar3,\n                              pdVar7[4] * dVar3);\n        }\n        if (0 < (int)pIVar4->columns) {\n          local_14c = 1.0;\n          ppRVar1 = ppRVar5 + iVar14;\n          local_15c = 0;\n          do {\n            dVar33 = ((double)(local_15c + this->geometry->x) + (double)DAT_0029f124) * dVar3;\n            DVar17 = *this->method;\n            dVar12 = dVar3 * ((double)(local_140 + this->geometry->y) + (double)DAT_0029f124);\n            local_f4 = dVar12;\n            local_10c = dVar33;\n            switch(DVar17) {\n            case AffineDistortion:\n            case RigidAffineDistortion:\n              local_f4 = dVar12 * pdVar7[4] + dVar33 * pdVar7[3] + pdVar7[5];\n              local_10c = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              break;\n            case PerspectiveDistortion:\n              dVar31 = pdVar7[6];\n              dVar32 = pdVar7[7];\n              dVar30 = dVar12 * dVar32 + dVar33 * dVar31 + 1.0;\n              dVar29 = pdVar7[8] * dVar30;\n              local_14c = 0.0;\n              if (0.0 <= dVar29) {\n                local_14c = 1.0;\n              }\n              dVar13 = ABS(dVar30) + ABS(dVar30);\n              if (ABS(dVar31) <= ABS(dVar32)) {\n                if (dVar13 < ABS(dVar32) * dVar3) {\n                  local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar32);\n                }\n              }\n              else if (dVar13 < ABS(dVar31) * dVar3) {\n                local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar31);\n              }\n              if (local_14c <= 0.0) goto LAB_00085796;\n              dVar29 = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              dVar33 = pdVar7[3] * dVar33 + dVar12 * pdVar7[4] + pdVar7[5];\n              dVar12 = (double)DAT_0029f718 / dVar30;\n              local_10c = dVar29 * dVar12;\n              local_f4 = dVar33 * dVar12;\n              dVar12 = dVar12 * dVar12;\n              ScaleResampleFilter(*ppRVar1,dVar3 * (dVar30 * *pdVar7 - dVar29 * dVar31) * dVar12,\n                                  (pdVar7[1] * dVar30 - dVar32 * dVar29) * dVar12 * dVar3,\n                                  (pdVar7[3] * dVar30 - dVar33 * dVar31) * dVar12 * dVar3,\n                                  (pdVar7[4] * dVar30 - dVar33 * dVar32) * dVar12 * dVar3);\n              break;\n            case BilinearDistortion:\n              dVar13 = dVar33 - pdVar7[3];\n              local_12c = pdVar7[2];\n              dVar29 = (pdVar7[6] * dVar13 - (dVar12 - pdVar7[7]) * local_12c) + pdVar7[8];\n              dVar31 = *pdVar7;\n              dVar30 = pdVar7[4] * dVar13 - (dVar12 - pdVar7[7]) * dVar31;\n              dVar32 = pdVar7[9];\n              if (ABS(dVar32) < DAT_0029f138) {\n                dVar12 = -dVar30 / dVar29;\n              }\n              else {\n                dVar30 = dVar29 * dVar29 - (dVar32 + dVar32) * dVar30;\n                local_14c = 0.0;\n                if (dVar30 < 0.0) goto LAB_00085796;\n                if (dVar30 < 0.0) {\n                  sqrt(dVar30);\n                  dVar32 = pdVar7[9];\n                  dVar31 = *pdVar7;\n                  local_12c = pdVar7[2];\n                }\n                dVar12 = (SQRT(dVar30) - dVar29) / dVar32;\n              }\n              local_10c = (dVar13 - pdVar7[1] * dVar12) / (local_12c * dVar12 + dVar31);\n              if (MVar8 != MagickFalse) {\n                local_14c = 1.0;\n                goto LAB_000852c3;\n              }\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              local_14c = 1.0;\n              goto LAB_00085370;\n            case BilinearReverseDistortion:\n              dVar31 = pdVar7[2] * dVar33;\n              local_10c = pdVar7[3] + dVar31 * dVar12 + dVar12 * pdVar7[1] + *pdVar7 * dVar33;\n              dVar32 = dVar33 * pdVar7[6];\n              local_f4 = dVar12 * dVar32 + dVar12 * pdVar7[5] + dVar33 * pdVar7[4] + pdVar7[7];\n              ScaleResampleFilter(*ppRVar1,(dVar12 * pdVar7[2] + *pdVar7) * dVar3,\n                                  (pdVar7[1] + dVar31) * dVar3,\n                                  (pdVar7[6] * dVar12 + pdVar7[4]) * dVar3,\n                                  (pdVar7[5] + dVar32) * dVar3);\n              break;\n            case PolynomialDistortion:\n              iVar14 = (int)ROUND(pdVar7[1]);\n              if (iVar14 < 1) {\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n              }\n              else {\n                iVar21 = 0;\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n                do {\n                  n = iVar21;\n                  dVar32 = poly_basis_fn(iVar21,dVar33,dVar12);\n                  dVar31 = pdVar7[iVar21 + 2];\n                  local_10c = dVar32 * dVar31 + local_10c;\n                  dVar30 = poly_basis_dx(n,dVar33,dVar12);\n                  local_114 = dVar31 * dVar30 + local_114;\n                  switch(iVar21) {\n                  case 0:\n                  case 1:\n                  case 4:\n                    dVar31 = dVar31 * 0.0;\n                    dVar29 = 0.0;\n                    break;\n                  case 2:\n                    dVar29 = 1.0;\n                    break;\n                  case 3:\n                    dVar31 = dVar31 * dVar33;\n                    dVar29 = dVar33;\n                    break;\n                  case 5:\n                    dVar31 = dVar31 * dVar12;\n                    dVar29 = dVar12;\n                    break;\n                  default:\n                    dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);\n                    dVar31 = dVar31 * dVar29;\n                  }\n                  local_fc = dVar31 + local_fc;\n                  dVar31 = pdVar7[iVar14 + iVar21 + 2];\n                  iVar21 = iVar21 + 1;\n                  local_f4 = dVar32 * dVar31 + local_f4;\n                  local_11c = dVar30 * dVar31 + local_11c;\n                  local_104 = dVar29 * dVar31 + local_104;\n                } while (iVar14 != iVar21);\n              }\n              ScaleResampleFilter(*ppRVar1,local_114 * dVar3,local_fc * dVar3,local_11c * dVar3,\n                                  local_104 * dVar3);\n              break;\n            case ArcDistortion:\n              dVar31 = atan2(dVar12,dVar33);\n              dVar31 = (dVar31 - *pdVar7) / DAT_002b0c28;\n              if (dVar31 - ROUND(dVar31) < ROUND(dVar31) - dVar31) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar33 = hypot(dVar33,dVar12);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[1] / (dVar33 * DAT_002b0c28)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              local_10c = (double)(image->page).x + (dVar31 - ROUND(dVar31)) * pdVar7[1] + pdVar7[4]\n                          + (double)DAT_0029f124;\n              local_f4 = (double)(image->page).y + (pdVar7[2] - dVar33) * pdVar7[3];\n              break;\n            case PolarDistortion:\n              dVar31 = pdVar7[2];\n              dVar32 = pdVar7[3];\n              dVar30 = atan2(dVar33 - dVar31,dVar12 - dVar32);\n              dVar29 = DAT_002b0c28;\n              dVar30 = (dVar30 - (pdVar7[4] + pdVar7[5]) * (double)DAT_0029f124) / DAT_002b0c28;\n              if (dVar30 - ROUND(dVar30) < ROUND(dVar30) - dVar30) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar30 = DAT_002b0c28 * (dVar30 - ROUND(dVar30));\n              dVar33 = hypot(dVar33 - dVar31,dVar12 - dVar32);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[6] / (dVar29 * dVar33)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              local_13c = (double)(ulonglong)image->columns;\n              local_10c = (double)(image->page).x +\n                          (double)(longlong)local_13c * (double)DAT_0029f124 + dVar30 * pdVar7[6];\n              local_f4 = (double)(image->page).y + (dVar33 - pdVar7[1]) * pdVar7[7];\n              break;\n            case DePolarDistortion:\n              dVar33 = (double)DAT_0029f124;\n              sincos((double)(((float)local_15c + DAT_0029f124) * (float)dVar3 * (float)pdVar7[6] +\n                             (float)pdVar7[4]),local_84,&local_8c);\n              dVar12 = (dVar33 + (double)local_140) * dVar3 * pdVar7[7] + pdVar7[1];\n              dVar33 = local_84[0] * dVar12 + pdVar7[2];\n              dVar12 = dVar12 * local_8c + pdVar7[3];\nLAB_00085796:\n              local_10c = dVar33;\n              if (MVar8 != MagickFalse) goto LAB_000852cf;\n              goto joined_r0x000857af;\n            case Cylinder2PlaneDistortion:\n              dVar31 = pdVar7[5];\n              dVar32 = pdVar7[1];\n              dVar33 = (dVar33 - pdVar7[4]) / dVar32;\n              dVar30 = atan(dVar33);\n              dVar29 = cos(dVar30);\n              local_f4 = (dVar12 - dVar31) * dVar29;\n              ScaleResampleFilter(*ppRVar1,(1.0 / (dVar33 * dVar33 + 1.0)) * dVar3,\n                                  dVar3 * (double)DAT_002a7fe8,\n                                  ((-dVar33 * local_f4 * dVar29 * dVar29) / dVar32) * dVar3,\n                                  (local_f4 / (dVar12 - dVar31)) * dVar3);\n              local_10c = dVar30 * dVar32 + pdVar7[2];\n              local_f4 = local_f4 + pdVar7[3];\n              break;\n            case Plane2CylinderDistortion:\n              dVar31 = pdVar7[1];\n              local_14c = (DAT_0029f740 * dVar31 - ABS(dVar33 - pdVar7[4])) / dVar3 +\n                          (double)DAT_0029f124;\n              if (0.0 < local_14c) {\n                dVar33 = (dVar33 - pdVar7[4]) / dVar31;\n                dVar32 = cos(dVar33);\n                dVar32 = (double)DAT_0029f718 / dVar32;\n                dVar33 = tan(dVar33);\n                dVar33 = dVar33 * dVar31;\n                dVar12 = (dVar12 - pdVar7[5]) * dVar32;\n                ScaleResampleFilter(*ppRVar1,dVar32 * dVar32 * dVar3,dVar3 * 0.0,\n                                    ((dVar32 * dVar12) / dVar31) * dVar3,dVar3 * dVar32);\n              }\n              local_10c = dVar33 + pdVar7[2];\n              local_f4 = dVar12 + pdVar7[3];\n              break;\n            case BarrelDistortion:\n            case BarrelInverseDistortion:\n              dVar33 = dVar33 - pdVar7[8];\n              dVar12 = dVar12 - pdVar7[9];\n              dVar32 = dVar12 * dVar12 + dVar33 * dVar33;\n              dVar31 = SQRT(dVar32);\n              if (dVar32 < 0.0) {\n                sqrt(dVar32);\n                DVar17 = *this->method;\n              }\n              dVar32 = pdVar7[7];\n              local_13c = pdVar7[3];\n              if (DAT_0029f138 < dVar31) {\n                dVar30 = pdVar7[1];\n                local_13c = ((*pdVar7 * dVar31 + dVar30) * dVar31 + pdVar7[2]) * dVar31 + local_13c;\n                dVar29 = pdVar7[5];\n                dVar32 = ((pdVar7[4] * dVar31 + dVar29) * dVar31 + pdVar7[6]) * dVar31 + dVar32;\n                dVar30 = ((dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31) * dVar31 +\n                         pdVar7[2]) / dVar31;\n                dVar31 = ((dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31) * dVar31 +\n                         pdVar7[6]) / dVar31;\n                if (DVar17 == BarrelInverseDistortion) {\n                  local_13c = 1.0 / local_13c;\n                  dVar32 = 1.0 / dVar32;\n                  dVar30 = dVar30 * -local_13c * local_13c;\n                  dVar31 = -dVar32 * dVar32 * dVar31;\n                }\n                local_10c = local_13c * dVar33 + pdVar7[8];\n                local_f4 = dVar32 * dVar12 + pdVar7[9];\n                ScaleResampleFilter(*ppRVar1,(dVar30 * dVar33 * dVar33 + local_13c) * dVar3,\n                                    dVar12 * dVar30 * dVar33 * dVar3,\n                                    dVar31 * dVar33 * dVar12 * dVar3,\n                                    (dVar31 * dVar12 * dVar12 + dVar32) * dVar3);\n              }\n              else {\n                if (DVar17 != BarrelDistortion) {\n                  dVar32 = 1.0 / dVar32;\n                  local_13c = 1.0 / local_13c;\n                }\n                ScaleResampleFilter(*ppRVar1,dVar3 * local_13c,dVar3 * (double)DAT_002a7fe8,\n                                    dVar3 * (double)DAT_002a7fe8,dVar32 * dVar3);\n              }\n              break;\n            case ShepardsDistortion:\n              if (sVar9 == 0) {\n                dVar31 = 0.0;\n                dVar30 = 0.0;\n                dVar32 = 0.0;\n              }\n              else {\n                dVar31 = 0.0;\n                dVar32 = 0.0;\n                dVar30 = 0.0;\n                pdVar25 = pdVar6;\n                do {\n                  dVar29 = pow((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7);\n                  if (dVar29 < 1.0) {\n                    dVar29 = 1.0;\n                  }\n                  else {\n                    dVar29 = 1.0 / dVar29;\n                  }\n                  pdVar26 = pdVar25 + 4;\n                  dVar30 = (*pdVar25 - pdVar25[2]) * dVar29 + dVar30;\n                  dVar32 = (pdVar25[1] - pdVar25[3]) * dVar29 + dVar32;\n                  dVar31 = dVar31 + dVar29;\n                  pdVar25 = pdVar26;\n                } while ((double *)((int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20) != pdVar26);\n              }\n              local_f4 = dVar12 + dVar32 / dVar31;\n              local_10c = dVar30 / dVar31 + dVar33;\n            }\n            dVar12 = local_f4;\n            if (MVar8 != MagickFalse) {\nLAB_000852c3:\n              dVar33 = local_10c;\n              if (*this->method != ArcDistortion) {\nLAB_000852cf:\n                local_10c = dVar33 - (double)(image->page).x;\n                dVar12 = dVar12 - (double)(image->page).y;\n              }\n            }\njoined_r0x000857af:\n            if (local_14c <= 0.0) {\n              pPVar23 = this->invalid;\n              pPVar20 = pIVar4->channel_map;\n              pQVar16[pPVar20->offset] = pPVar23->red;\n              pQVar16[pPVar20[1].offset] = pPVar23->green;\n              pQVar16[pPVar20[2].offset] = pPVar23->blue;\n              if (pPVar20[3].traits != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = pPVar23->black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                if (pPVar23->alpha_trait == UndefinedPixelTrait) goto LAB_00085d68;\n                dVar33 = pPVar23->alpha;\n                goto LAB_000853cb;\n              }\n            }\n            else {\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              if (local_14c < 1.0) {\n                pPVar23 = this->invalid;\n                dVar12 = local_70.alpha * local_14c * _DAT_0029f148;\n                dVar31 = pPVar23->alpha * (1.0 - local_14c) * _DAT_0029f148;\n                dVar33 = dVar12 + dVar31;\n                if (dVar33 < 0.0) {\n                  dVar33 = 0.0;\n                  local_70.alpha = 0.0;\n                }\n                else if (dVar33 <= 1.0) {\n                  local_70.alpha = dVar33 * (double)DAT_0029f710;\n                }\n                else {\n                  dVar33 = 1.0;\n                  local_70.alpha = (MagickRealType)DAT_0029f710;\n                }\n                dVar32 = DAT_0029f738;\n                if (DAT_0029f138 <= dVar33) {\n                  dVar32 = (double)DAT_0029f718 / dVar33;\n                }\n                local_70.red = (pPVar23->red * dVar31 + local_70.red * dVar12) * dVar32;\n                local_70.green = (pPVar23->green * dVar31 + local_70.green * dVar12) * dVar32;\n                local_70.blue = (pPVar23->blue * dVar31 + local_70.blue * dVar12) * dVar32;\n                if (pPVar23->colorspace == CMYKColorspace) {\n                  local_70.black = dVar32 * (dVar31 * pPVar23->black + dVar12 * local_70.black);\n                }\n              }\nLAB_00085370:\n              pPVar20 = pIVar4->channel_map;\n              PVar10 = pPVar20[3].traits;\n              pQVar16[pPVar20->offset] = local_70.red;\n              pQVar16[pPVar20[1].offset] = local_70.green;\n              pQVar16[pPVar20[2].offset] = local_70.blue;\n              if (PVar10 != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = local_70.black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                dVar33 = local_70.alpha;\n                if (local_70.alpha_trait == UndefinedPixelTrait) {\nLAB_00085d68:\n                  dVar33 = (double)DAT_0029f710;\n                }\nLAB_000853cb:\n                pQVar16[pPVar20[4].offset] = dVar33;\n              }\n            }\n            local_15c = local_15c + 1;\n            pQVar16 = pQVar16 + pIVar4->number_channels;\n          } while (local_15c < (int)pIVar4->columns);\n        }\n        MVar18 = SyncCacheViewAuthenticPixels(cache_view,exception);\n        if (MVar18 == MagickFalse) {\n          this->status = MagickFalse;\n        }\n        if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n          puVar11 = (uint *)this->progress;\n          uVar19 = *puVar11;\n          uVar22 = puVar11[1];\n          do {\n            LOCK();\n            lVar2 = *(longlong *)puVar11;\n            bVar27 = CONCAT44(uVar22,uVar19) == lVar2;\n            if (bVar27) {\n              *(longlong *)puVar11 = CONCAT44(uVar22 + (0xfffffffe < uVar19),uVar19 + 1);\n            }\n            else {\n              uVar22 = (uint)((ulonglong)lVar2 >> 0x20);\n              uVar19 = (uint)lVar2;\n            }\n            UNLOCK();\n          } while (!bVar27);\n          MVar18 = SetImageProgress(image,"Distort/Image",*this->progress,(ulonglong)image->rows);\n          if (MVar18 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    } while (iVar15 != local_140);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}\n\n" comment comment comment comment comment comment comment comment comment (function_definition "void __thiscall DistortImage__omp_fn_0(anon_struct_72_16_e79c3edd *this)\n\n{\n  ResampleFilter **ppRVar1;\n  longlong lVar2;\n  double dVar3;\n  Image *pIVar4;\n  ResampleFilter **ppRVar5;\n  CacheView *cache_view;\n  double *pdVar6;\n  double *pdVar7;\n  ExceptionInfo *exception;\n  MagickBooleanType MVar8;\n  Image *image;\n  size_t sVar9;\n  PixelTrait PVar10;\n  uint *puVar11;\n  double dVar12;\n  double dVar13;\n  int iVar14;\n  int iVar15;\n  Quantum *pQVar16;\n  DistortMethod DVar17;\n  MagickBooleanType MVar18;\n  uint uVar19;\n  int n;\n  PixelChannelMap *pPVar20;\n  int iVar21;\n  uint uVar22;\n  PixelInfo *pPVar23;\n  PixelInfo *pPVar24;\n  double *pdVar25;\n  double *pdVar26;\n  int in_GS_OFFSET;\n  bool bVar27;\n  byte bVar28;\n  ushort in_FPUControlWord;\n  double dVar29;\n  double dVar30;\n  double dVar31;\n  double dVar32;\n  double dVar33;\n  int local_15c;\n  double local_14c;\n  int local_140;\n  double local_13c;\n  double local_12c;\n  double local_11c;\n  double local_114;\n  double local_10c;\n  double local_104;\n  double local_fc;\n  double local_f4;\n  double local_8c;\n  double local_84 [2];\n  ushort local_72;\n  PixelInfo local_70;\n  int local_20;\n  \n  bVar28 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pIVar4 = this->distort_image;\n  local_140 = omp_get_num_threads();\n  iVar14 = omp_get_thread_num();\n  iVar15 = (int)pIVar4->rows / local_140;\n  local_140 = (int)pIVar4->rows % local_140;\n  if (iVar14 < local_140) {\n    iVar15 = iVar15 + 1;\n    local_140 = 0;\n  }\n  local_140 = local_140 + iVar14 * iVar15;\n  iVar15 = iVar15 + local_140;\n  if (local_140 < iVar15) {\n    ppRVar5 = this->resample_filter;\n    cache_view = this->distort_view;\n    pdVar6 = this->arguments;\n    dVar3 = this->output_scaling;\n    pdVar7 = this->coeff;\n    exception = this->exception;\n    MVar8 = this->bestfit;\n    image = this->image;\n    sVar9 = this->number_arguments;\n    do {\n      iVar14 = omp_get_thread_num();\n      pQVar16 = QueueCacheViewAuthenticPixels(cache_view,0,local_140,pIVar4->columns,1,exception);\n      if (pQVar16 == (Quantum *)0x0) {\n        this->status = MagickFalse;\n      }\n      else {\n        pPVar23 = this->zero;\n        pPVar24 = &local_70;\n        for (iVar21 = 0x14; iVar21 != 0; iVar21 = iVar21 + -1) {\n          pPVar24->storage_class = pPVar23->storage_class;\n          pPVar23 = (PixelInfo *)((int)pPVar23 + (uint)bVar28 * -8 + 4);\n          pPVar24 = (PixelInfo *)((int)pPVar24 + (uint)bVar28 * -8 + 4);\n        }\n        if ((*this->method == AffineDistortion) || (*this->method == RigidAffineDistortion)) {\n          ScaleResampleFilter(ppRVar5[iVar14],dVar3 * *pdVar7,pdVar7[1] * dVar3,pdVar7[3] * dVar3,\n                              pdVar7[4] * dVar3);\n        }\n        if (0 < (int)pIVar4->columns) {\n          local_14c = 1.0;\n          ppRVar1 = ppRVar5 + iVar14;\n          local_15c = 0;\n          do {\n            dVar33 = ((double)(local_15c + this->geometry->x) + (double)DAT_0029f124) * dVar3;\n            DVar17 = *this->method;\n            dVar12 = dVar3 * ((double)(local_140 + this->geometry->y) + (double)DAT_0029f124);\n            local_f4 = dVar12;\n            local_10c = dVar33;\n            switch(DVar17) {\n            case AffineDistortion:\n            case RigidAffineDistortion:\n              local_f4 = dVar12 * pdVar7[4] + dVar33 * pdVar7[3] + pdVar7[5];\n              local_10c = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              break;\n            case PerspectiveDistortion:\n              dVar31 = pdVar7[6];\n              dVar32 = pdVar7[7];\n              dVar30 = dVar12 * dVar32 + dVar33 * dVar31 + 1.0;\n              dVar29 = pdVar7[8] * dVar30;\n              local_14c = 0.0;\n              if (0.0 <= dVar29) {\n                local_14c = 1.0;\n              }\n              dVar13 = ABS(dVar30) + ABS(dVar30);\n              if (ABS(dVar31) <= ABS(dVar32)) {\n                if (dVar13 < ABS(dVar32) * dVar3) {\n                  local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar32);\n                }\n              }\n              else if (dVar13 < ABS(dVar31) * dVar3) {\n                local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar31);\n              }\n              if (local_14c <= 0.0) goto LAB_00085796;\n              dVar29 = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              dVar33 = pdVar7[3] * dVar33 + dVar12 * pdVar7[4] + pdVar7[5];\n              dVar12 = (double)DAT_0029f718 / dVar30;\n              local_10c = dVar29 * dVar12;\n              local_f4 = dVar33 * dVar12;\n              dVar12 = dVar12 * dVar12;\n              ScaleResampleFilter(*ppRVar1,dVar3 * (dVar30 * *pdVar7 - dVar29 * dVar31) * dVar12,\n                                  (pdVar7[1] * dVar30 - dVar32 * dVar29) * dVar12 * dVar3,\n                                  (pdVar7[3] * dVar30 - dVar33 * dVar31) * dVar12 * dVar3,\n                                  (pdVar7[4] * dVar30 - dVar33 * dVar32) * dVar12 * dVar3);\n              break;\n            case BilinearDistortion:\n              dVar13 = dVar33 - pdVar7[3];\n              local_12c = pdVar7[2];\n              dVar29 = (pdVar7[6] * dVar13 - (dVar12 - pdVar7[7]) * local_12c) + pdVar7[8];\n              dVar31 = *pdVar7;\n              dVar30 = pdVar7[4] * dVar13 - (dVar12 - pdVar7[7]) * dVar31;\n              dVar32 = pdVar7[9];\n              if (ABS(dVar32) < DAT_0029f138) {\n                dVar12 = -dVar30 / dVar29;\n              }\n              else {\n                dVar30 = dVar29 * dVar29 - (dVar32 + dVar32) * dVar30;\n                local_14c = 0.0;\n                if (dVar30 < 0.0) goto LAB_00085796;\n                if (dVar30 < 0.0) {\n                  sqrt(dVar30);\n                  dVar32 = pdVar7[9];\n                  dVar31 = *pdVar7;\n                  local_12c = pdVar7[2];\n                }\n                dVar12 = (SQRT(dVar30) - dVar29) / dVar32;\n              }\n              local_10c = (dVar13 - pdVar7[1] * dVar12) / (local_12c * dVar12 + dVar31);\n              if (MVar8 != MagickFalse) {\n                local_14c = 1.0;\n                goto LAB_000852c3;\n              }\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              local_14c = 1.0;\n              goto LAB_00085370;\n            case BilinearReverseDistortion:\n              dVar31 = pdVar7[2] * dVar33;\n              local_10c = pdVar7[3] + dVar31 * dVar12 + dVar12 * pdVar7[1] + *pdVar7 * dVar33;\n              dVar32 = dVar33 * pdVar7[6];\n              local_f4 = dVar12 * dVar32 + dVar12 * pdVar7[5] + dVar33 * pdVar7[4] + pdVar7[7];\n              ScaleResampleFilter(*ppRVar1,(dVar12 * pdVar7[2] + *pdVar7) * dVar3,\n                                  (pdVar7[1] + dVar31) * dVar3,\n                                  (pdVar7[6] * dVar12 + pdVar7[4]) * dVar3,\n                                  (pdVar7[5] + dVar32) * dVar3);\n              break;\n            case PolynomialDistortion:\n              iVar14 = (int)ROUND(pdVar7[1]);\n              if (iVar14 < 1) {\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n              }\n              else {\n                iVar21 = 0;\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n                do {\n                  n = iVar21;\n                  dVar32 = poly_basis_fn(iVar21,dVar33,dVar12);\n                  dVar31 = pdVar7[iVar21 + 2];\n                  local_10c = dVar32 * dVar31 + local_10c;\n                  dVar30 = poly_basis_dx(n,dVar33,dVar12);\n                  local_114 = dVar31 * dVar30 + local_114;\n                  switch(iVar21) {\n                  case 0:\n                  case 1:\n                  case 4:\n                    dVar31 = dVar31 * 0.0;\n                    dVar29 = 0.0;\n                    break;\n                  case 2:\n                    dVar29 = 1.0;\n                    break;\n                  case 3:\n                    dVar31 = dVar31 * dVar33;\n                    dVar29 = dVar33;\n                    break;\n                  case 5:\n                    dVar31 = dVar31 * dVar12;\n                    dVar29 = dVar12;\n                    break;\n                  default:\n                    dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);\n                    dVar31 = dVar31 * dVar29;\n                  }\n                  local_fc = dVar31 + local_fc;\n                  dVar31 = pdVar7[iVar14 + iVar21 + 2];\n                  iVar21 = iVar21 + 1;\n                  local_f4 = dVar32 * dVar31 + local_f4;\n                  local_11c = dVar30 * dVar31 + local_11c;\n                  local_104 = dVar29 * dVar31 + local_104;\n                } while (iVar14 != iVar21);\n              }\n              ScaleResampleFilter(*ppRVar1,local_114 * dVar3,local_fc * dVar3,local_11c * dVar3,\n                                  local_104 * dVar3);\n              break;\n            case ArcDistortion:\n              dVar31 = atan2(dVar12,dVar33);\n              dVar31 = (dVar31 - *pdVar7) / DAT_002b0c28;\n              if (dVar31 - ROUND(dVar31) < ROUND(dVar31) - dVar31) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar33 = hypot(dVar33,dVar12);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[1] / (dVar33 * DAT_002b0c28)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              local_10c = (double)(image->page).x + (dVar31 - ROUND(dVar31)) * pdVar7[1] + pdVar7[4]\n                          + (double)DAT_0029f124;\n              local_f4 = (double)(image->page).y + (pdVar7[2] - dVar33) * pdVar7[3];\n              break;\n            case PolarDistortion:\n              dVar31 = pdVar7[2];\n              dVar32 = pdVar7[3];\n              dVar30 = atan2(dVar33 - dVar31,dVar12 - dVar32);\n              dVar29 = DAT_002b0c28;\n              dVar30 = (dVar30 - (pdVar7[4] + pdVar7[5]) * (double)DAT_0029f124) / DAT_002b0c28;\n              if (dVar30 - ROUND(dVar30) < ROUND(dVar30) - dVar30) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar30 = DAT_002b0c28 * (dVar30 - ROUND(dVar30));\n              dVar33 = hypot(dVar33 - dVar31,dVar12 - dVar32);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[6] / (dVar29 * dVar33)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              local_13c = (double)(ulonglong)image->columns;\n              local_10c = (double)(image->page).x +\n                          (double)(longlong)local_13c * (double)DAT_0029f124 + dVar30 * pdVar7[6];\n              local_f4 = (double)(image->page).y + (dVar33 - pdVar7[1]) * pdVar7[7];\n              break;\n            case DePolarDistortion:\n              dVar33 = (double)DAT_0029f124;\n              sincos((double)(((float)local_15c + DAT_0029f124) * (float)dVar3 * (float)pdVar7[6] +\n                             (float)pdVar7[4]),local_84,&local_8c);\n              dVar12 = (dVar33 + (double)local_140) * dVar3 * pdVar7[7] + pdVar7[1];\n              dVar33 = local_84[0] * dVar12 + pdVar7[2];\n              dVar12 = dVar12 * local_8c + pdVar7[3];\nLAB_00085796:\n              local_10c = dVar33;\n              if (MVar8 != MagickFalse) goto LAB_000852cf;\n              goto joined_r0x000857af;\n            case Cylinder2PlaneDistortion:\n              dVar31 = pdVar7[5];\n              dVar32 = pdVar7[1];\n              dVar33 = (dVar33 - pdVar7[4]) / dVar32;\n              dVar30 = atan(dVar33);\n              dVar29 = cos(dVar30);\n              local_f4 = (dVar12 - dVar31) * dVar29;\n              ScaleResampleFilter(*ppRVar1,(1.0 / (dVar33 * dVar33 + 1.0)) * dVar3,\n                                  dVar3 * (double)DAT_002a7fe8,\n                                  ((-dVar33 * local_f4 * dVar29 * dVar29) / dVar32) * dVar3,\n                                  (local_f4 / (dVar12 - dVar31)) * dVar3);\n              local_10c = dVar30 * dVar32 + pdVar7[2];\n              local_f4 = local_f4 + pdVar7[3];\n              break;\n            case Plane2CylinderDistortion:\n              dVar31 = pdVar7[1];\n              local_14c = (DAT_0029f740 * dVar31 - ABS(dVar33 - pdVar7[4])) / dVar3 +\n                          (double)DAT_0029f124;\n              if (0.0 < local_14c) {\n                dVar33 = (dVar33 - pdVar7[4]) / dVar31;\n                dVar32 = cos(dVar33);\n                dVar32 = (double)DAT_0029f718 / dVar32;\n                dVar33 = tan(dVar33);\n                dVar33 = dVar33 * dVar31;\n                dVar12 = (dVar12 - pdVar7[5]) * dVar32;\n                ScaleResampleFilter(*ppRVar1,dVar32 * dVar32 * dVar3,dVar3 * 0.0,\n                                    ((dVar32 * dVar12) / dVar31) * dVar3,dVar3 * dVar32);\n              }\n              local_10c = dVar33 + pdVar7[2];\n              local_f4 = dVar12 + pdVar7[3];\n              break;\n            case BarrelDistortion:\n            case BarrelInverseDistortion:\n              dVar33 = dVar33 - pdVar7[8];\n              dVar12 = dVar12 - pdVar7[9];\n              dVar32 = dVar12 * dVar12 + dVar33 * dVar33;\n              dVar31 = SQRT(dVar32);\n              if (dVar32 < 0.0) {\n                sqrt(dVar32);\n                DVar17 = *this->method;\n              }\n              dVar32 = pdVar7[7];\n              local_13c = pdVar7[3];\n              if (DAT_0029f138 < dVar31) {\n                dVar30 = pdVar7[1];\n                local_13c = ((*pdVar7 * dVar31 + dVar30) * dVar31 + pdVar7[2]) * dVar31 + local_13c;\n                dVar29 = pdVar7[5];\n                dVar32 = ((pdVar7[4] * dVar31 + dVar29) * dVar31 + pdVar7[6]) * dVar31 + dVar32;\n                dVar30 = ((dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31) * dVar31 +\n                         pdVar7[2]) / dVar31;\n                dVar31 = ((dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31) * dVar31 +\n                         pdVar7[6]) / dVar31;\n                if (DVar17 == BarrelInverseDistortion) {\n                  local_13c = 1.0 / local_13c;\n                  dVar32 = 1.0 / dVar32;\n                  dVar30 = dVar30 * -local_13c * local_13c;\n                  dVar31 = -dVar32 * dVar32 * dVar31;\n                }\n                local_10c = local_13c * dVar33 + pdVar7[8];\n                local_f4 = dVar32 * dVar12 + pdVar7[9];\n                ScaleResampleFilter(*ppRVar1,(dVar30 * dVar33 * dVar33 + local_13c) * dVar3,\n                                    dVar12 * dVar30 * dVar33 * dVar3,\n                                    dVar31 * dVar33 * dVar12 * dVar3,\n                                    (dVar31 * dVar12 * dVar12 + dVar32) * dVar3);\n              }\n              else {\n                if (DVar17 != BarrelDistortion) {\n                  dVar32 = 1.0 / dVar32;\n                  local_13c = 1.0 / local_13c;\n                }\n                ScaleResampleFilter(*ppRVar1,dVar3 * local_13c,dVar3 * (double)DAT_002a7fe8,\n                                    dVar3 * (double)DAT_002a7fe8,dVar32 * dVar3);\n              }\n              break;\n            case ShepardsDistortion:\n              if (sVar9 == 0) {\n                dVar31 = 0.0;\n                dVar30 = 0.0;\n                dVar32 = 0.0;\n              }\n              else {\n                dVar31 = 0.0;\n                dVar32 = 0.0;\n                dVar30 = 0.0;\n                pdVar25 = pdVar6;\n                do {\n                  dVar29 = pow((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7);\n                  if (dVar29 < 1.0) {\n                    dVar29 = 1.0;\n                  }\n                  else {\n                    dVar29 = 1.0 / dVar29;\n                  }\n                  pdVar26 = pdVar25 + 4;\n                  dVar30 = (*pdVar25 - pdVar25[2]) * dVar29 + dVar30;\n                  dVar32 = (pdVar25[1] - pdVar25[3]) * dVar29 + dVar32;\n                  dVar31 = dVar31 + dVar29;\n                  pdVar25 = pdVar26;\n                } while ((double *)((int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20) != pdVar26);\n              }\n              local_f4 = dVar12 + dVar32 / dVar31;\n              local_10c = dVar30 / dVar31 + dVar33;\n            }\n            dVar12 = local_f4;\n            if (MVar8 != MagickFalse) {\nLAB_000852c3:\n              dVar33 = local_10c;\n              if (*this->method != ArcDistortion) {\nLAB_000852cf:\n                local_10c = dVar33 - (double)(image->page).x;\n                dVar12 = dVar12 - (double)(image->page).y;\n              }\n            }\njoined_r0x000857af:\n            if (local_14c <= 0.0) {\n              pPVar23 = this->invalid;\n              pPVar20 = pIVar4->channel_map;\n              pQVar16[pPVar20->offset] = pPVar23->red;\n              pQVar16[pPVar20[1].offset] = pPVar23->green;\n              pQVar16[pPVar20[2].offset] = pPVar23->blue;\n              if (pPVar20[3].traits != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = pPVar23->black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                if (pPVar23->alpha_trait == UndefinedPixelTrait) goto LAB_00085d68;\n                dVar33 = pPVar23->alpha;\n                goto LAB_000853cb;\n              }\n            }\n            else {\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              if (local_14c < 1.0) {\n                pPVar23 = this->invalid;\n                dVar12 = local_70.alpha * local_14c * _DAT_0029f148;\n                dVar31 = pPVar23->alpha * (1.0 - local_14c) * _DAT_0029f148;\n                dVar33 = dVar12 + dVar31;\n                if (dVar33 < 0.0) {\n                  dVar33 = 0.0;\n                  local_70.alpha = 0.0;\n                }\n                else if (dVar33 <= 1.0) {\n                  local_70.alpha = dVar33 * (double)DAT_0029f710;\n                }\n                else {\n                  dVar33 = 1.0;\n                  local_70.alpha = (MagickRealType)DAT_0029f710;\n                }\n                dVar32 = DAT_0029f738;\n                if (DAT_0029f138 <= dVar33) {\n                  dVar32 = (double)DAT_0029f718 / dVar33;\n                }\n                local_70.red = (pPVar23->red * dVar31 + local_70.red * dVar12) * dVar32;\n                local_70.green = (pPVar23->green * dVar31 + local_70.green * dVar12) * dVar32;\n                local_70.blue = (pPVar23->blue * dVar31 + local_70.blue * dVar12) * dVar32;\n                if (pPVar23->colorspace == CMYKColorspace) {\n                  local_70.black = dVar32 * (dVar31 * pPVar23->black + dVar12 * local_70.black);\n                }\n              }\nLAB_00085370:\n              pPVar20 = pIVar4->channel_map;\n              PVar10 = pPVar20[3].traits;\n              pQVar16[pPVar20->offset] = local_70.red;\n              pQVar16[pPVar20[1].offset] = local_70.green;\n              pQVar16[pPVar20[2].offset] = local_70.blue;\n              if (PVar10 != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = local_70.black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                dVar33 = local_70.alpha;\n                if (local_70.alpha_trait == UndefinedPixelTrait) {\nLAB_00085d68:\n                  dVar33 = (double)DAT_0029f710;\n                }\nLAB_000853cb:\n                pQVar16[pPVar20[4].offset] = dVar33;\n              }\n            }\n            local_15c = local_15c + 1;\n            pQVar16 = pQVar16 + pIVar4->number_channels;\n          } while (local_15c < (int)pIVar4->columns);\n        }\n        MVar18 = SyncCacheViewAuthenticPixels(cache_view,exception);\n        if (MVar18 == MagickFalse) {\n          this->status = MagickFalse;\n        }\n        if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n          puVar11 = (uint *)this->progress;\n          uVar19 = *puVar11;\n          uVar22 = puVar11[1];\n          do {\n            LOCK();\n            lVar2 = *(longlong *)puVar11;\n            bVar27 = CONCAT44(uVar22,uVar19) == lVar2;\n            if (bVar27) {\n              *(longlong *)puVar11 = CONCAT44(uVar22 + (0xfffffffe < uVar19),uVar19 + 1);\n            }\n            else {\n              uVar22 = (uint)((ulonglong)lVar2 >> 0x20);\n              uVar19 = (uint)lVar2;\n            }\n            UNLOCK();\n          } while (!bVar27);\n          MVar18 = SetImageProgress(image,"Distort/Image",*this->progress,(ulonglong)image->rows);\n          if (MVar18 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    } while (iVar15 != local_140);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (function_declarator "DistortImage__omp_fn_0(anon_struct_72_16_e79c3edd *this)" identifier (parameter_list "(anon_struct_72_16_e79c3edd *this)" ( (parameter_declaration "anon_struct_72_16_e79c3edd *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  ResampleFilter **ppRVar1;\n  longlong lVar2;\n  double dVar3;\n  Image *pIVar4;\n  ResampleFilter **ppRVar5;\n  CacheView *cache_view;\n  double *pdVar6;\n  double *pdVar7;\n  ExceptionInfo *exception;\n  MagickBooleanType MVar8;\n  Image *image;\n  size_t sVar9;\n  PixelTrait PVar10;\n  uint *puVar11;\n  double dVar12;\n  double dVar13;\n  int iVar14;\n  int iVar15;\n  Quantum *pQVar16;\n  DistortMethod DVar17;\n  MagickBooleanType MVar18;\n  uint uVar19;\n  int n;\n  PixelChannelMap *pPVar20;\n  int iVar21;\n  uint uVar22;\n  PixelInfo *pPVar23;\n  PixelInfo *pPVar24;\n  double *pdVar25;\n  double *pdVar26;\n  int in_GS_OFFSET;\n  bool bVar27;\n  byte bVar28;\n  ushort in_FPUControlWord;\n  double dVar29;\n  double dVar30;\n  double dVar31;\n  double dVar32;\n  double dVar33;\n  int local_15c;\n  double local_14c;\n  int local_140;\n  double local_13c;\n  double local_12c;\n  double local_11c;\n  double local_114;\n  double local_10c;\n  double local_104;\n  double local_fc;\n  double local_f4;\n  double local_8c;\n  double local_84 [2];\n  ushort local_72;\n  PixelInfo local_70;\n  int local_20;\n  \n  bVar28 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pIVar4 = this->distort_image;\n  local_140 = omp_get_num_threads();\n  iVar14 = omp_get_thread_num();\n  iVar15 = (int)pIVar4->rows / local_140;\n  local_140 = (int)pIVar4->rows % local_140;\n  if (iVar14 < local_140) {\n    iVar15 = iVar15 + 1;\n    local_140 = 0;\n  }\n  local_140 = local_140 + iVar14 * iVar15;\n  iVar15 = iVar15 + local_140;\n  if (local_140 < iVar15) {\n    ppRVar5 = this->resample_filter;\n    cache_view = this->distort_view;\n    pdVar6 = this->arguments;\n    dVar3 = this->output_scaling;\n    pdVar7 = this->coeff;\n    exception = this->exception;\n    MVar8 = this->bestfit;\n    image = this->image;\n    sVar9 = this->number_arguments;\n    do {\n      iVar14 = omp_get_thread_num();\n      pQVar16 = QueueCacheViewAuthenticPixels(cache_view,0,local_140,pIVar4->columns,1,exception);\n      if (pQVar16 == (Quantum *)0x0) {\n        this->status = MagickFalse;\n      }\n      else {\n        pPVar23 = this->zero;\n        pPVar24 = &local_70;\n        for (iVar21 = 0x14; iVar21 != 0; iVar21 = iVar21 + -1) {\n          pPVar24->storage_class = pPVar23->storage_class;\n          pPVar23 = (PixelInfo *)((int)pPVar23 + (uint)bVar28 * -8 + 4);\n          pPVar24 = (PixelInfo *)((int)pPVar24 + (uint)bVar28 * -8 + 4);\n        }\n        if ((*this->method == AffineDistortion) || (*this->method == RigidAffineDistortion)) {\n          ScaleResampleFilter(ppRVar5[iVar14],dVar3 * *pdVar7,pdVar7[1] * dVar3,pdVar7[3] * dVar3,\n                              pdVar7[4] * dVar3);\n        }\n        if (0 < (int)pIVar4->columns) {\n          local_14c = 1.0;\n          ppRVar1 = ppRVar5 + iVar14;\n          local_15c = 0;\n          do {\n            dVar33 = ((double)(local_15c + this->geometry->x) + (double)DAT_0029f124) * dVar3;\n            DVar17 = *this->method;\n            dVar12 = dVar3 * ((double)(local_140 + this->geometry->y) + (double)DAT_0029f124);\n            local_f4 = dVar12;\n            local_10c = dVar33;\n            switch(DVar17) {\n            case AffineDistortion:\n            case RigidAffineDistortion:\n              local_f4 = dVar12 * pdVar7[4] + dVar33 * pdVar7[3] + pdVar7[5];\n              local_10c = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              break;\n            case PerspectiveDistortion:\n              dVar31 = pdVar7[6];\n              dVar32 = pdVar7[7];\n              dVar30 = dVar12 * dVar32 + dVar33 * dVar31 + 1.0;\n              dVar29 = pdVar7[8] * dVar30;\n              local_14c = 0.0;\n              if (0.0 <= dVar29) {\n                local_14c = 1.0;\n              }\n              dVar13 = ABS(dVar30) + ABS(dVar30);\n              if (ABS(dVar31) <= ABS(dVar32)) {\n                if (dVar13 < ABS(dVar32) * dVar3) {\n                  local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar32);\n                }\n              }\n              else if (dVar13 < ABS(dVar31) * dVar3) {\n                local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar31);\n              }\n              if (local_14c <= 0.0) goto LAB_00085796;\n              dVar29 = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              dVar33 = pdVar7[3] * dVar33 + dVar12 * pdVar7[4] + pdVar7[5];\n              dVar12 = (double)DAT_0029f718 / dVar30;\n              local_10c = dVar29 * dVar12;\n              local_f4 = dVar33 * dVar12;\n              dVar12 = dVar12 * dVar12;\n              ScaleResampleFilter(*ppRVar1,dVar3 * (dVar30 * *pdVar7 - dVar29 * dVar31) * dVar12,\n                                  (pdVar7[1] * dVar30 - dVar32 * dVar29) * dVar12 * dVar3,\n                                  (pdVar7[3] * dVar30 - dVar33 * dVar31) * dVar12 * dVar3,\n                                  (pdVar7[4] * dVar30 - dVar33 * dVar32) * dVar12 * dVar3);\n              break;\n            case BilinearDistortion:\n              dVar13 = dVar33 - pdVar7[3];\n              local_12c = pdVar7[2];\n              dVar29 = (pdVar7[6] * dVar13 - (dVar12 - pdVar7[7]) * local_12c) + pdVar7[8];\n              dVar31 = *pdVar7;\n              dVar30 = pdVar7[4] * dVar13 - (dVar12 - pdVar7[7]) * dVar31;\n              dVar32 = pdVar7[9];\n              if (ABS(dVar32) < DAT_0029f138) {\n                dVar12 = -dVar30 / dVar29;\n              }\n              else {\n                dVar30 = dVar29 * dVar29 - (dVar32 + dVar32) * dVar30;\n                local_14c = 0.0;\n                if (dVar30 < 0.0) goto LAB_00085796;\n                if (dVar30 < 0.0) {\n                  sqrt(dVar30);\n                  dVar32 = pdVar7[9];\n                  dVar31 = *pdVar7;\n                  local_12c = pdVar7[2];\n                }\n                dVar12 = (SQRT(dVar30) - dVar29) / dVar32;\n              }\n              local_10c = (dVar13 - pdVar7[1] * dVar12) / (local_12c * dVar12 + dVar31);\n              if (MVar8 != MagickFalse) {\n                local_14c = 1.0;\n                goto LAB_000852c3;\n              }\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              local_14c = 1.0;\n              goto LAB_00085370;\n            case BilinearReverseDistortion:\n              dVar31 = pdVar7[2] * dVar33;\n              local_10c = pdVar7[3] + dVar31 * dVar12 + dVar12 * pdVar7[1] + *pdVar7 * dVar33;\n              dVar32 = dVar33 * pdVar7[6];\n              local_f4 = dVar12 * dVar32 + dVar12 * pdVar7[5] + dVar33 * pdVar7[4] + pdVar7[7];\n              ScaleResampleFilter(*ppRVar1,(dVar12 * pdVar7[2] + *pdVar7) * dVar3,\n                                  (pdVar7[1] + dVar31) * dVar3,\n                                  (pdVar7[6] * dVar12 + pdVar7[4]) * dVar3,\n                                  (pdVar7[5] + dVar32) * dVar3);\n              break;\n            case PolynomialDistortion:\n              iVar14 = (int)ROUND(pdVar7[1]);\n              if (iVar14 < 1) {\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n              }\n              else {\n                iVar21 = 0;\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n                do {\n                  n = iVar21;\n                  dVar32 = poly_basis_fn(iVar21,dVar33,dVar12);\n                  dVar31 = pdVar7[iVar21 + 2];\n                  local_10c = dVar32 * dVar31 + local_10c;\n                  dVar30 = poly_basis_dx(n,dVar33,dVar12);\n                  local_114 = dVar31 * dVar30 + local_114;\n                  switch(iVar21) {\n                  case 0:\n                  case 1:\n                  case 4:\n                    dVar31 = dVar31 * 0.0;\n                    dVar29 = 0.0;\n                    break;\n                  case 2:\n                    dVar29 = 1.0;\n                    break;\n                  case 3:\n                    dVar31 = dVar31 * dVar33;\n                    dVar29 = dVar33;\n                    break;\n                  case 5:\n                    dVar31 = dVar31 * dVar12;\n                    dVar29 = dVar12;\n                    break;\n                  default:\n                    dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);\n                    dVar31 = dVar31 * dVar29;\n                  }\n                  local_fc = dVar31 + local_fc;\n                  dVar31 = pdVar7[iVar14 + iVar21 + 2];\n                  iVar21 = iVar21 + 1;\n                  local_f4 = dVar32 * dVar31 + local_f4;\n                  local_11c = dVar30 * dVar31 + local_11c;\n                  local_104 = dVar29 * dVar31 + local_104;\n                } while (iVar14 != iVar21);\n              }\n              ScaleResampleFilter(*ppRVar1,local_114 * dVar3,local_fc * dVar3,local_11c * dVar3,\n                                  local_104 * dVar3);\n              break;\n            case ArcDistortion:\n              dVar31 = atan2(dVar12,dVar33);\n              dVar31 = (dVar31 - *pdVar7) / DAT_002b0c28;\n              if (dVar31 - ROUND(dVar31) < ROUND(dVar31) - dVar31) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar33 = hypot(dVar33,dVar12);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[1] / (dVar33 * DAT_002b0c28)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              local_10c = (double)(image->page).x + (dVar31 - ROUND(dVar31)) * pdVar7[1] + pdVar7[4]\n                          + (double)DAT_0029f124;\n              local_f4 = (double)(image->page).y + (pdVar7[2] - dVar33) * pdVar7[3];\n              break;\n            case PolarDistortion:\n              dVar31 = pdVar7[2];\n              dVar32 = pdVar7[3];\n              dVar30 = atan2(dVar33 - dVar31,dVar12 - dVar32);\n              dVar29 = DAT_002b0c28;\n              dVar30 = (dVar30 - (pdVar7[4] + pdVar7[5]) * (double)DAT_0029f124) / DAT_002b0c28;\n              if (dVar30 - ROUND(dVar30) < ROUND(dVar30) - dVar30) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar30 = DAT_002b0c28 * (dVar30 - ROUND(dVar30));\n              dVar33 = hypot(dVar33 - dVar31,dVar12 - dVar32);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[6] / (dVar29 * dVar33)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              local_13c = (double)(ulonglong)image->columns;\n              local_10c = (double)(image->page).x +\n                          (double)(longlong)local_13c * (double)DAT_0029f124 + dVar30 * pdVar7[6];\n              local_f4 = (double)(image->page).y + (dVar33 - pdVar7[1]) * pdVar7[7];\n              break;\n            case DePolarDistortion:\n              dVar33 = (double)DAT_0029f124;\n              sincos((double)(((float)local_15c + DAT_0029f124) * (float)dVar3 * (float)pdVar7[6] +\n                             (float)pdVar7[4]),local_84,&local_8c);\n              dVar12 = (dVar33 + (double)local_140) * dVar3 * pdVar7[7] + pdVar7[1];\n              dVar33 = local_84[0] * dVar12 + pdVar7[2];\n              dVar12 = dVar12 * local_8c + pdVar7[3];\nLAB_00085796:\n              local_10c = dVar33;\n              if (MVar8 != MagickFalse) goto LAB_000852cf;\n              goto joined_r0x000857af;\n            case Cylinder2PlaneDistortion:\n              dVar31 = pdVar7[5];\n              dVar32 = pdVar7[1];\n              dVar33 = (dVar33 - pdVar7[4]) / dVar32;\n              dVar30 = atan(dVar33);\n              dVar29 = cos(dVar30);\n              local_f4 = (dVar12 - dVar31) * dVar29;\n              ScaleResampleFilter(*ppRVar1,(1.0 / (dVar33 * dVar33 + 1.0)) * dVar3,\n                                  dVar3 * (double)DAT_002a7fe8,\n                                  ((-dVar33 * local_f4 * dVar29 * dVar29) / dVar32) * dVar3,\n                                  (local_f4 / (dVar12 - dVar31)) * dVar3);\n              local_10c = dVar30 * dVar32 + pdVar7[2];\n              local_f4 = local_f4 + pdVar7[3];\n              break;\n            case Plane2CylinderDistortion:\n              dVar31 = pdVar7[1];\n              local_14c = (DAT_0029f740 * dVar31 - ABS(dVar33 - pdVar7[4])) / dVar3 +\n                          (double)DAT_0029f124;\n              if (0.0 < local_14c) {\n                dVar33 = (dVar33 - pdVar7[4]) / dVar31;\n                dVar32 = cos(dVar33);\n                dVar32 = (double)DAT_0029f718 / dVar32;\n                dVar33 = tan(dVar33);\n                dVar33 = dVar33 * dVar31;\n                dVar12 = (dVar12 - pdVar7[5]) * dVar32;\n                ScaleResampleFilter(*ppRVar1,dVar32 * dVar32 * dVar3,dVar3 * 0.0,\n                                    ((dVar32 * dVar12) / dVar31) * dVar3,dVar3 * dVar32);\n              }\n              local_10c = dVar33 + pdVar7[2];\n              local_f4 = dVar12 + pdVar7[3];\n              break;\n            case BarrelDistortion:\n            case BarrelInverseDistortion:\n              dVar33 = dVar33 - pdVar7[8];\n              dVar12 = dVar12 - pdVar7[9];\n              dVar32 = dVar12 * dVar12 + dVar33 * dVar33;\n              dVar31 = SQRT(dVar32);\n              if (dVar32 < 0.0) {\n                sqrt(dVar32);\n                DVar17 = *this->method;\n              }\n              dVar32 = pdVar7[7];\n              local_13c = pdVar7[3];\n              if (DAT_0029f138 < dVar31) {\n                dVar30 = pdVar7[1];\n                local_13c = ((*pdVar7 * dVar31 + dVar30) * dVar31 + pdVar7[2]) * dVar31 + local_13c;\n                dVar29 = pdVar7[5];\n                dVar32 = ((pdVar7[4] * dVar31 + dVar29) * dVar31 + pdVar7[6]) * dVar31 + dVar32;\n                dVar30 = ((dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31) * dVar31 +\n                         pdVar7[2]) / dVar31;\n                dVar31 = ((dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31) * dVar31 +\n                         pdVar7[6]) / dVar31;\n                if (DVar17 == BarrelInverseDistortion) {\n                  local_13c = 1.0 / local_13c;\n                  dVar32 = 1.0 / dVar32;\n                  dVar30 = dVar30 * -local_13c * local_13c;\n                  dVar31 = -dVar32 * dVar32 * dVar31;\n                }\n                local_10c = local_13c * dVar33 + pdVar7[8];\n                local_f4 = dVar32 * dVar12 + pdVar7[9];\n                ScaleResampleFilter(*ppRVar1,(dVar30 * dVar33 * dVar33 + local_13c) * dVar3,\n                                    dVar12 * dVar30 * dVar33 * dVar3,\n                                    dVar31 * dVar33 * dVar12 * dVar3,\n                                    (dVar31 * dVar12 * dVar12 + dVar32) * dVar3);\n              }\n              else {\n                if (DVar17 != BarrelDistortion) {\n                  dVar32 = 1.0 / dVar32;\n                  local_13c = 1.0 / local_13c;\n                }\n                ScaleResampleFilter(*ppRVar1,dVar3 * local_13c,dVar3 * (double)DAT_002a7fe8,\n                                    dVar3 * (double)DAT_002a7fe8,dVar32 * dVar3);\n              }\n              break;\n            case ShepardsDistortion:\n              if (sVar9 == 0) {\n                dVar31 = 0.0;\n                dVar30 = 0.0;\n                dVar32 = 0.0;\n              }\n              else {\n                dVar31 = 0.0;\n                dVar32 = 0.0;\n                dVar30 = 0.0;\n                pdVar25 = pdVar6;\n                do {\n                  dVar29 = pow((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7);\n                  if (dVar29 < 1.0) {\n                    dVar29 = 1.0;\n                  }\n                  else {\n                    dVar29 = 1.0 / dVar29;\n                  }\n                  pdVar26 = pdVar25 + 4;\n                  dVar30 = (*pdVar25 - pdVar25[2]) * dVar29 + dVar30;\n                  dVar32 = (pdVar25[1] - pdVar25[3]) * dVar29 + dVar32;\n                  dVar31 = dVar31 + dVar29;\n                  pdVar25 = pdVar26;\n                } while ((double *)((int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20) != pdVar26);\n              }\n              local_f4 = dVar12 + dVar32 / dVar31;\n              local_10c = dVar30 / dVar31 + dVar33;\n            }\n            dVar12 = local_f4;\n            if (MVar8 != MagickFalse) {\nLAB_000852c3:\n              dVar33 = local_10c;\n              if (*this->method != ArcDistortion) {\nLAB_000852cf:\n                local_10c = dVar33 - (double)(image->page).x;\n                dVar12 = dVar12 - (double)(image->page).y;\n              }\n            }\njoined_r0x000857af:\n            if (local_14c <= 0.0) {\n              pPVar23 = this->invalid;\n              pPVar20 = pIVar4->channel_map;\n              pQVar16[pPVar20->offset] = pPVar23->red;\n              pQVar16[pPVar20[1].offset] = pPVar23->green;\n              pQVar16[pPVar20[2].offset] = pPVar23->blue;\n              if (pPVar20[3].traits != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = pPVar23->black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                if (pPVar23->alpha_trait == UndefinedPixelTrait) goto LAB_00085d68;\n                dVar33 = pPVar23->alpha;\n                goto LAB_000853cb;\n              }\n            }\n            else {\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              if (local_14c < 1.0) {\n                pPVar23 = this->invalid;\n                dVar12 = local_70.alpha * local_14c * _DAT_0029f148;\n                dVar31 = pPVar23->alpha * (1.0 - local_14c) * _DAT_0029f148;\n                dVar33 = dVar12 + dVar31;\n                if (dVar33 < 0.0) {\n                  dVar33 = 0.0;\n                  local_70.alpha = 0.0;\n                }\n                else if (dVar33 <= 1.0) {\n                  local_70.alpha = dVar33 * (double)DAT_0029f710;\n                }\n                else {\n                  dVar33 = 1.0;\n                  local_70.alpha = (MagickRealType)DAT_0029f710;\n                }\n                dVar32 = DAT_0029f738;\n                if (DAT_0029f138 <= dVar33) {\n                  dVar32 = (double)DAT_0029f718 / dVar33;\n                }\n                local_70.red = (pPVar23->red * dVar31 + local_70.red * dVar12) * dVar32;\n                local_70.green = (pPVar23->green * dVar31 + local_70.green * dVar12) * dVar32;\n                local_70.blue = (pPVar23->blue * dVar31 + local_70.blue * dVar12) * dVar32;\n                if (pPVar23->colorspace == CMYKColorspace) {\n                  local_70.black = dVar32 * (dVar31 * pPVar23->black + dVar12 * local_70.black);\n                }\n              }\nLAB_00085370:\n              pPVar20 = pIVar4->channel_map;\n              PVar10 = pPVar20[3].traits;\n              pQVar16[pPVar20->offset] = local_70.red;\n              pQVar16[pPVar20[1].offset] = local_70.green;\n              pQVar16[pPVar20[2].offset] = local_70.blue;\n              if (PVar10 != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = local_70.black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                dVar33 = local_70.alpha;\n                if (local_70.alpha_trait == UndefinedPixelTrait) {\nLAB_00085d68:\n                  dVar33 = (double)DAT_0029f710;\n                }\nLAB_000853cb:\n                pQVar16[pPVar20[4].offset] = dVar33;\n              }\n            }\n            local_15c = local_15c + 1;\n            pQVar16 = pQVar16 + pIVar4->number_channels;\n          } while (local_15c < (int)pIVar4->columns);\n        }\n        MVar18 = SyncCacheViewAuthenticPixels(cache_view,exception);\n        if (MVar18 == MagickFalse) {\n          this->status = MagickFalse;\n        }\n        if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n          puVar11 = (uint *)this->progress;\n          uVar19 = *puVar11;\n          uVar22 = puVar11[1];\n          do {\n            LOCK();\n            lVar2 = *(longlong *)puVar11;\n            bVar27 = CONCAT44(uVar22,uVar19) == lVar2;\n            if (bVar27) {\n              *(longlong *)puVar11 = CONCAT44(uVar22 + (0xfffffffe < uVar19),uVar19 + 1);\n            }\n            else {\n              uVar22 = (uint)((ulonglong)lVar2 >> 0x20);\n              uVar19 = (uint)lVar2;\n            }\n            UNLOCK();\n          } while (!bVar27);\n          MVar18 = SetImageProgress(image,"Distort/Image",*this->progress,(ulonglong)image->rows);\n          if (MVar18 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    } while (iVar15 != local_140);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" { (declaration "ResampleFilter **ppRVar1;" type_identifier (pointer_declarator "**ppRVar1" * (pointer_declarator "*ppRVar1" * identifier)) ;) (declaration "longlong lVar2;" type_identifier identifier ;) (declaration "double dVar3;" primitive_type identifier ;) (declaration "Image *pIVar4;" type_identifier (pointer_declarator "*pIVar4" * identifier) ;) (declaration "ResampleFilter **ppRVar5;" type_identifier (pointer_declarator "**ppRVar5" * (pointer_declarator "*ppRVar5" * identifier)) ;) (declaration "CacheView *cache_view;" type_identifier (pointer_declarator "*cache_view" * identifier) ;) (declaration "double *pdVar6;" primitive_type (pointer_declarator "*pdVar6" * identifier) ;) (declaration "double *pdVar7;" primitive_type (pointer_declarator "*pdVar7" * identifier) ;) (declaration "ExceptionInfo *exception;" type_identifier (pointer_declarator "*exception" * identifier) ;) (declaration "MagickBooleanType MVar8;" type_identifier identifier ;) (declaration "Image *image;" type_identifier (pointer_declarator "*image" * identifier) ;) (declaration "size_t sVar9;" primitive_type identifier ;) (declaration "PixelTrait PVar10;" type_identifier identifier ;) (declaration "uint *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "double dVar12;" primitive_type identifier ;) (declaration "double dVar13;" primitive_type identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "int iVar15;" primitive_type identifier ;) (declaration "Quantum *pQVar16;" type_identifier (pointer_declarator "*pQVar16" * identifier) ;) (declaration "DistortMethod DVar17;" type_identifier identifier ;) (declaration "MagickBooleanType MVar18;" type_identifier identifier ;) (declaration "uint uVar19;" type_identifier identifier ;) (declaration "int n;" primitive_type identifier ;) (declaration "PixelChannelMap *pPVar20;" type_identifier (pointer_declarator "*pPVar20" * identifier) ;) (declaration "int iVar21;" primitive_type identifier ;) (declaration "uint uVar22;" type_identifier identifier ;) (declaration "PixelInfo *pPVar23;" type_identifier (pointer_declarator "*pPVar23" * identifier) ;) (declaration "PixelInfo *pPVar24;" type_identifier (pointer_declarator "*pPVar24" * identifier) ;) (declaration "double *pdVar25;" primitive_type (pointer_declarator "*pdVar25" * identifier) ;) (declaration "double *pdVar26;" primitive_type (pointer_declarator "*pdVar26" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar27;" primitive_type identifier ;) (declaration "byte bVar28;" type_identifier identifier ;) (declaration "ushort in_FPUControlWord;" type_identifier identifier ;) (declaration "double dVar29;" primitive_type identifier ;) (declaration "double dVar30;" primitive_type identifier ;) (declaration "double dVar31;" primitive_type identifier ;) (declaration "double dVar32;" primitive_type identifier ;) (declaration "double dVar33;" primitive_type identifier ;) (declaration "int local_15c;" primitive_type identifier ;) (declaration "double local_14c;" primitive_type identifier ;) (declaration "int local_140;" primitive_type identifier ;) (declaration "double local_13c;" primitive_type identifier ;) (declaration "double local_12c;" primitive_type identifier ;) (declaration "double local_11c;" primitive_type identifier ;) (declaration "double local_114;" primitive_type identifier ;) (declaration "double local_10c;" primitive_type identifier ;) (declaration "double local_104;" primitive_type identifier ;) (declaration "double local_fc;" primitive_type identifier ;) (declaration "double local_f4;" primitive_type identifier ;) (declaration "double local_8c;" primitive_type identifier ;) (declaration "double local_84 [2];" primitive_type (array_declarator "local_84 [2]" identifier [ number_literal ]) ;) (declaration "ushort local_72;" type_identifier identifier ;) (declaration "PixelInfo local_70;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "bVar28 = 0;" (assignment_expression "bVar28 = 0" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "pIVar4 = this->distort_image;" (assignment_expression "pIVar4 = this->distort_image" identifier = (field_expression "this->distort_image" identifier -> field_identifier)) ;) (expression_statement "local_140 = omp_get_num_threads();" (assignment_expression "local_140 = omp_get_num_threads()" identifier = (call_expression "omp_get_num_threads()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar14 = omp_get_thread_num();" (assignment_expression "iVar14 = omp_get_thread_num()" identifier = (call_expression "omp_get_thread_num()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar15 = (int)pIVar4->rows / local_140;" (assignment_expression "iVar15 = (int)pIVar4->rows / local_140" identifier = (binary_expression "(int)pIVar4->rows / local_140" (cast_expression "(int)pIVar4->rows" ( (type_descriptor "int" primitive_type) ) (field_expression "pIVar4->rows" identifier -> field_identifier)) / identifier)) ;) (expression_statement "local_140 = (int)pIVar4->rows % local_140;" (assignment_expression "local_140 = (int)pIVar4->rows % local_140" identifier = (binary_expression "(int)pIVar4->rows % local_140" (cast_expression "(int)pIVar4->rows" ( (type_descriptor "int" primitive_type) ) (field_expression "pIVar4->rows" identifier -> field_identifier)) % identifier)) ;) (if_statement "if (iVar14 < local_140) {\n    iVar15 = iVar15 + 1;\n    local_140 = 0;\n  }" if (parenthesized_expression "(iVar14 < local_140)" ( (binary_expression "iVar14 < local_140" identifier < identifier) )) (compound_statement "{\n    iVar15 = iVar15 + 1;\n    local_140 = 0;\n  }" { (expression_statement "iVar15 = iVar15 + 1;" (assignment_expression "iVar15 = iVar15 + 1" identifier = (binary_expression "iVar15 + 1" identifier + number_literal)) ;) (expression_statement "local_140 = 0;" (assignment_expression "local_140 = 0" identifier = number_literal) ;) })) (expression_statement "local_140 = local_140 + iVar14 * iVar15;" (assignment_expression "local_140 = local_140 + iVar14 * iVar15" identifier = (binary_expression "local_140 + iVar14 * iVar15" identifier + (binary_expression "iVar14 * iVar15" identifier * identifier))) ;) (expression_statement "iVar15 = iVar15 + local_140;" (assignment_expression "iVar15 = iVar15 + local_140" identifier = (binary_expression "iVar15 + local_140" identifier + identifier)) ;) (if_statement "if (local_140 < iVar15) {\n    ppRVar5 = this->resample_filter;\n    cache_view = this->distort_view;\n    pdVar6 = this->arguments;\n    dVar3 = this->output_scaling;\n    pdVar7 = this->coeff;\n    exception = this->exception;\n    MVar8 = this->bestfit;\n    image = this->image;\n    sVar9 = this->number_arguments;\n    do {\n      iVar14 = omp_get_thread_num();\n      pQVar16 = QueueCacheViewAuthenticPixels(cache_view,0,local_140,pIVar4->columns,1,exception);\n      if (pQVar16 == (Quantum *)0x0) {\n        this->status = MagickFalse;\n      }\n      else {\n        pPVar23 = this->zero;\n        pPVar24 = &local_70;\n        for (iVar21 = 0x14; iVar21 != 0; iVar21 = iVar21 + -1) {\n          pPVar24->storage_class = pPVar23->storage_class;\n          pPVar23 = (PixelInfo *)((int)pPVar23 + (uint)bVar28 * -8 + 4);\n          pPVar24 = (PixelInfo *)((int)pPVar24 + (uint)bVar28 * -8 + 4);\n        }\n        if ((*this->method == AffineDistortion) || (*this->method == RigidAffineDistortion)) {\n          ScaleResampleFilter(ppRVar5[iVar14],dVar3 * *pdVar7,pdVar7[1] * dVar3,pdVar7[3] * dVar3,\n                              pdVar7[4] * dVar3);\n        }\n        if (0 < (int)pIVar4->columns) {\n          local_14c = 1.0;\n          ppRVar1 = ppRVar5 + iVar14;\n          local_15c = 0;\n          do {\n            dVar33 = ((double)(local_15c + this->geometry->x) + (double)DAT_0029f124) * dVar3;\n            DVar17 = *this->method;\n            dVar12 = dVar3 * ((double)(local_140 + this->geometry->y) + (double)DAT_0029f124);\n            local_f4 = dVar12;\n            local_10c = dVar33;\n            switch(DVar17) {\n            case AffineDistortion:\n            case RigidAffineDistortion:\n              local_f4 = dVar12 * pdVar7[4] + dVar33 * pdVar7[3] + pdVar7[5];\n              local_10c = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              break;\n            case PerspectiveDistortion:\n              dVar31 = pdVar7[6];\n              dVar32 = pdVar7[7];\n              dVar30 = dVar12 * dVar32 + dVar33 * dVar31 + 1.0;\n              dVar29 = pdVar7[8] * dVar30;\n              local_14c = 0.0;\n              if (0.0 <= dVar29) {\n                local_14c = 1.0;\n              }\n              dVar13 = ABS(dVar30) + ABS(dVar30);\n              if (ABS(dVar31) <= ABS(dVar32)) {\n                if (dVar13 < ABS(dVar32) * dVar3) {\n                  local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar32);\n                }\n              }\n              else if (dVar13 < ABS(dVar31) * dVar3) {\n                local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar31);\n              }\n              if (local_14c <= 0.0) goto LAB_00085796;\n              dVar29 = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              dVar33 = pdVar7[3] * dVar33 + dVar12 * pdVar7[4] + pdVar7[5];\n              dVar12 = (double)DAT_0029f718 / dVar30;\n              local_10c = dVar29 * dVar12;\n              local_f4 = dVar33 * dVar12;\n              dVar12 = dVar12 * dVar12;\n              ScaleResampleFilter(*ppRVar1,dVar3 * (dVar30 * *pdVar7 - dVar29 * dVar31) * dVar12,\n                                  (pdVar7[1] * dVar30 - dVar32 * dVar29) * dVar12 * dVar3,\n                                  (pdVar7[3] * dVar30 - dVar33 * dVar31) * dVar12 * dVar3,\n                                  (pdVar7[4] * dVar30 - dVar33 * dVar32) * dVar12 * dVar3);\n              break;\n            case BilinearDistortion:\n              dVar13 = dVar33 - pdVar7[3];\n              local_12c = pdVar7[2];\n              dVar29 = (pdVar7[6] * dVar13 - (dVar12 - pdVar7[7]) * local_12c) + pdVar7[8];\n              dVar31 = *pdVar7;\n              dVar30 = pdVar7[4] * dVar13 - (dVar12 - pdVar7[7]) * dVar31;\n              dVar32 = pdVar7[9];\n              if (ABS(dVar32) < DAT_0029f138) {\n                dVar12 = -dVar30 / dVar29;\n              }\n              else {\n                dVar30 = dVar29 * dVar29 - (dVar32 + dVar32) * dVar30;\n                local_14c = 0.0;\n                if (dVar30 < 0.0) goto LAB_00085796;\n                if (dVar30 < 0.0) {\n                  sqrt(dVar30);\n                  dVar32 = pdVar7[9];\n                  dVar31 = *pdVar7;\n                  local_12c = pdVar7[2];\n                }\n                dVar12 = (SQRT(dVar30) - dVar29) / dVar32;\n              }\n              local_10c = (dVar13 - pdVar7[1] * dVar12) / (local_12c * dVar12 + dVar31);\n              if (MVar8 != MagickFalse) {\n                local_14c = 1.0;\n                goto LAB_000852c3;\n              }\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              local_14c = 1.0;\n              goto LAB_00085370;\n            case BilinearReverseDistortion:\n              dVar31 = pdVar7[2] * dVar33;\n              local_10c = pdVar7[3] + dVar31 * dVar12 + dVar12 * pdVar7[1] + *pdVar7 * dVar33;\n              dVar32 = dVar33 * pdVar7[6];\n              local_f4 = dVar12 * dVar32 + dVar12 * pdVar7[5] + dVar33 * pdVar7[4] + pdVar7[7];\n              ScaleResampleFilter(*ppRVar1,(dVar12 * pdVar7[2] + *pdVar7) * dVar3,\n                                  (pdVar7[1] + dVar31) * dVar3,\n                                  (pdVar7[6] * dVar12 + pdVar7[4]) * dVar3,\n                                  (pdVar7[5] + dVar32) * dVar3);\n              break;\n            case PolynomialDistortion:\n              iVar14 = (int)ROUND(pdVar7[1]);\n              if (iVar14 < 1) {\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n              }\n              else {\n                iVar21 = 0;\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n                do {\n                  n = iVar21;\n                  dVar32 = poly_basis_fn(iVar21,dVar33,dVar12);\n                  dVar31 = pdVar7[iVar21 + 2];\n                  local_10c = dVar32 * dVar31 + local_10c;\n                  dVar30 = poly_basis_dx(n,dVar33,dVar12);\n                  local_114 = dVar31 * dVar30 + local_114;\n                  switch(iVar21) {\n                  case 0:\n                  case 1:\n                  case 4:\n                    dVar31 = dVar31 * 0.0;\n                    dVar29 = 0.0;\n                    break;\n                  case 2:\n                    dVar29 = 1.0;\n                    break;\n                  case 3:\n                    dVar31 = dVar31 * dVar33;\n                    dVar29 = dVar33;\n                    break;\n                  case 5:\n                    dVar31 = dVar31 * dVar12;\n                    dVar29 = dVar12;\n                    break;\n                  default:\n                    dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);\n                    dVar31 = dVar31 * dVar29;\n                  }\n                  local_fc = dVar31 + local_fc;\n                  dVar31 = pdVar7[iVar14 + iVar21 + 2];\n                  iVar21 = iVar21 + 1;\n                  local_f4 = dVar32 * dVar31 + local_f4;\n                  local_11c = dVar30 * dVar31 + local_11c;\n                  local_104 = dVar29 * dVar31 + local_104;\n                } while (iVar14 != iVar21);\n              }\n              ScaleResampleFilter(*ppRVar1,local_114 * dVar3,local_fc * dVar3,local_11c * dVar3,\n                                  local_104 * dVar3);\n              break;\n            case ArcDistortion:\n              dVar31 = atan2(dVar12,dVar33);\n              dVar31 = (dVar31 - *pdVar7) / DAT_002b0c28;\n              if (dVar31 - ROUND(dVar31) < ROUND(dVar31) - dVar31) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar33 = hypot(dVar33,dVar12);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[1] / (dVar33 * DAT_002b0c28)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              local_10c = (double)(image->page).x + (dVar31 - ROUND(dVar31)) * pdVar7[1] + pdVar7[4]\n                          + (double)DAT_0029f124;\n              local_f4 = (double)(image->page).y + (pdVar7[2] - dVar33) * pdVar7[3];\n              break;\n            case PolarDistortion:\n              dVar31 = pdVar7[2];\n              dVar32 = pdVar7[3];\n              dVar30 = atan2(dVar33 - dVar31,dVar12 - dVar32);\n              dVar29 = DAT_002b0c28;\n              dVar30 = (dVar30 - (pdVar7[4] + pdVar7[5]) * (double)DAT_0029f124) / DAT_002b0c28;\n              if (dVar30 - ROUND(dVar30) < ROUND(dVar30) - dVar30) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar30 = DAT_002b0c28 * (dVar30 - ROUND(dVar30));\n              dVar33 = hypot(dVar33 - dVar31,dVar12 - dVar32);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[6] / (dVar29 * dVar33)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              local_13c = (double)(ulonglong)image->columns;\n              local_10c = (double)(image->page).x +\n                          (double)(longlong)local_13c * (double)DAT_0029f124 + dVar30 * pdVar7[6];\n              local_f4 = (double)(image->page).y + (dVar33 - pdVar7[1]) * pdVar7[7];\n              break;\n            case DePolarDistortion:\n              dVar33 = (double)DAT_0029f124;\n              sincos((double)(((float)local_15c + DAT_0029f124) * (float)dVar3 * (float)pdVar7[6] +\n                             (float)pdVar7[4]),local_84,&local_8c);\n              dVar12 = (dVar33 + (double)local_140) * dVar3 * pdVar7[7] + pdVar7[1];\n              dVar33 = local_84[0] * dVar12 + pdVar7[2];\n              dVar12 = dVar12 * local_8c + pdVar7[3];\nLAB_00085796:\n              local_10c = dVar33;\n              if (MVar8 != MagickFalse) goto LAB_000852cf;\n              goto joined_r0x000857af;\n            case Cylinder2PlaneDistortion:\n              dVar31 = pdVar7[5];\n              dVar32 = pdVar7[1];\n              dVar33 = (dVar33 - pdVar7[4]) / dVar32;\n              dVar30 = atan(dVar33);\n              dVar29 = cos(dVar30);\n              local_f4 = (dVar12 - dVar31) * dVar29;\n              ScaleResampleFilter(*ppRVar1,(1.0 / (dVar33 * dVar33 + 1.0)) * dVar3,\n                                  dVar3 * (double)DAT_002a7fe8,\n                                  ((-dVar33 * local_f4 * dVar29 * dVar29) / dVar32) * dVar3,\n                                  (local_f4 / (dVar12 - dVar31)) * dVar3);\n              local_10c = dVar30 * dVar32 + pdVar7[2];\n              local_f4 = local_f4 + pdVar7[3];\n              break;\n            case Plane2CylinderDistortion:\n              dVar31 = pdVar7[1];\n              local_14c = (DAT_0029f740 * dVar31 - ABS(dVar33 - pdVar7[4])) / dVar3 +\n                          (double)DAT_0029f124;\n              if (0.0 < local_14c) {\n                dVar33 = (dVar33 - pdVar7[4]) / dVar31;\n                dVar32 = cos(dVar33);\n                dVar32 = (double)DAT_0029f718 / dVar32;\n                dVar33 = tan(dVar33);\n                dVar33 = dVar33 * dVar31;\n                dVar12 = (dVar12 - pdVar7[5]) * dVar32;\n                ScaleResampleFilter(*ppRVar1,dVar32 * dVar32 * dVar3,dVar3 * 0.0,\n                                    ((dVar32 * dVar12) / dVar31) * dVar3,dVar3 * dVar32);\n              }\n              local_10c = dVar33 + pdVar7[2];\n              local_f4 = dVar12 + pdVar7[3];\n              break;\n            case BarrelDistortion:\n            case BarrelInverseDistortion:\n              dVar33 = dVar33 - pdVar7[8];\n              dVar12 = dVar12 - pdVar7[9];\n              dVar32 = dVar12 * dVar12 + dVar33 * dVar33;\n              dVar31 = SQRT(dVar32);\n              if (dVar32 < 0.0) {\n                sqrt(dVar32);\n                DVar17 = *this->method;\n              }\n              dVar32 = pdVar7[7];\n              local_13c = pdVar7[3];\n              if (DAT_0029f138 < dVar31) {\n                dVar30 = pdVar7[1];\n                local_13c = ((*pdVar7 * dVar31 + dVar30) * dVar31 + pdVar7[2]) * dVar31 + local_13c;\n                dVar29 = pdVar7[5];\n                dVar32 = ((pdVar7[4] * dVar31 + dVar29) * dVar31 + pdVar7[6]) * dVar31 + dVar32;\n                dVar30 = ((dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31) * dVar31 +\n                         pdVar7[2]) / dVar31;\n                dVar31 = ((dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31) * dVar31 +\n                         pdVar7[6]) / dVar31;\n                if (DVar17 == BarrelInverseDistortion) {\n                  local_13c = 1.0 / local_13c;\n                  dVar32 = 1.0 / dVar32;\n                  dVar30 = dVar30 * -local_13c * local_13c;\n                  dVar31 = -dVar32 * dVar32 * dVar31;\n                }\n                local_10c = local_13c * dVar33 + pdVar7[8];\n                local_f4 = dVar32 * dVar12 + pdVar7[9];\n                ScaleResampleFilter(*ppRVar1,(dVar30 * dVar33 * dVar33 + local_13c) * dVar3,\n                                    dVar12 * dVar30 * dVar33 * dVar3,\n                                    dVar31 * dVar33 * dVar12 * dVar3,\n                                    (dVar31 * dVar12 * dVar12 + dVar32) * dVar3);\n              }\n              else {\n                if (DVar17 != BarrelDistortion) {\n                  dVar32 = 1.0 / dVar32;\n                  local_13c = 1.0 / local_13c;\n                }\n                ScaleResampleFilter(*ppRVar1,dVar3 * local_13c,dVar3 * (double)DAT_002a7fe8,\n                                    dVar3 * (double)DAT_002a7fe8,dVar32 * dVar3);\n              }\n              break;\n            case ShepardsDistortion:\n              if (sVar9 == 0) {\n                dVar31 = 0.0;\n                dVar30 = 0.0;\n                dVar32 = 0.0;\n              }\n              else {\n                dVar31 = 0.0;\n                dVar32 = 0.0;\n                dVar30 = 0.0;\n                pdVar25 = pdVar6;\n                do {\n                  dVar29 = pow((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7);\n                  if (dVar29 < 1.0) {\n                    dVar29 = 1.0;\n                  }\n                  else {\n                    dVar29 = 1.0 / dVar29;\n                  }\n                  pdVar26 = pdVar25 + 4;\n                  dVar30 = (*pdVar25 - pdVar25[2]) * dVar29 + dVar30;\n                  dVar32 = (pdVar25[1] - pdVar25[3]) * dVar29 + dVar32;\n                  dVar31 = dVar31 + dVar29;\n                  pdVar25 = pdVar26;\n                } while ((double *)((int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20) != pdVar26);\n              }\n              local_f4 = dVar12 + dVar32 / dVar31;\n              local_10c = dVar30 / dVar31 + dVar33;\n            }\n            dVar12 = local_f4;\n            if (MVar8 != MagickFalse) {\nLAB_000852c3:\n              dVar33 = local_10c;\n              if (*this->method != ArcDistortion) {\nLAB_000852cf:\n                local_10c = dVar33 - (double)(image->page).x;\n                dVar12 = dVar12 - (double)(image->page).y;\n              }\n            }\njoined_r0x000857af:\n            if (local_14c <= 0.0) {\n              pPVar23 = this->invalid;\n              pPVar20 = pIVar4->channel_map;\n              pQVar16[pPVar20->offset] = pPVar23->red;\n              pQVar16[pPVar20[1].offset] = pPVar23->green;\n              pQVar16[pPVar20[2].offset] = pPVar23->blue;\n              if (pPVar20[3].traits != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = pPVar23->black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                if (pPVar23->alpha_trait == UndefinedPixelTrait) goto LAB_00085d68;\n                dVar33 = pPVar23->alpha;\n                goto LAB_000853cb;\n              }\n            }\n            else {\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              if (local_14c < 1.0) {\n                pPVar23 = this->invalid;\n                dVar12 = local_70.alpha * local_14c * _DAT_0029f148;\n                dVar31 = pPVar23->alpha * (1.0 - local_14c) * _DAT_0029f148;\n                dVar33 = dVar12 + dVar31;\n                if (dVar33 < 0.0) {\n                  dVar33 = 0.0;\n                  local_70.alpha = 0.0;\n                }\n                else if (dVar33 <= 1.0) {\n                  local_70.alpha = dVar33 * (double)DAT_0029f710;\n                }\n                else {\n                  dVar33 = 1.0;\n                  local_70.alpha = (MagickRealType)DAT_0029f710;\n                }\n                dVar32 = DAT_0029f738;\n                if (DAT_0029f138 <= dVar33) {\n                  dVar32 = (double)DAT_0029f718 / dVar33;\n                }\n                local_70.red = (pPVar23->red * dVar31 + local_70.red * dVar12) * dVar32;\n                local_70.green = (pPVar23->green * dVar31 + local_70.green * dVar12) * dVar32;\n                local_70.blue = (pPVar23->blue * dVar31 + local_70.blue * dVar12) * dVar32;\n                if (pPVar23->colorspace == CMYKColorspace) {\n                  local_70.black = dVar32 * (dVar31 * pPVar23->black + dVar12 * local_70.black);\n                }\n              }\nLAB_00085370:\n              pPVar20 = pIVar4->channel_map;\n              PVar10 = pPVar20[3].traits;\n              pQVar16[pPVar20->offset] = local_70.red;\n              pQVar16[pPVar20[1].offset] = local_70.green;\n              pQVar16[pPVar20[2].offset] = local_70.blue;\n              if (PVar10 != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = local_70.black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                dVar33 = local_70.alpha;\n                if (local_70.alpha_trait == UndefinedPixelTrait) {\nLAB_00085d68:\n                  dVar33 = (double)DAT_0029f710;\n                }\nLAB_000853cb:\n                pQVar16[pPVar20[4].offset] = dVar33;\n              }\n            }\n            local_15c = local_15c + 1;\n            pQVar16 = pQVar16 + pIVar4->number_channels;\n          } while (local_15c < (int)pIVar4->columns);\n        }\n        MVar18 = SyncCacheViewAuthenticPixels(cache_view,exception);\n        if (MVar18 == MagickFalse) {\n          this->status = MagickFalse;\n        }\n        if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n          puVar11 = (uint *)this->progress;\n          uVar19 = *puVar11;\n          uVar22 = puVar11[1];\n          do {\n            LOCK();\n            lVar2 = *(longlong *)puVar11;\n            bVar27 = CONCAT44(uVar22,uVar19) == lVar2;\n            if (bVar27) {\n              *(longlong *)puVar11 = CONCAT44(uVar22 + (0xfffffffe < uVar19),uVar19 + 1);\n            }\n            else {\n              uVar22 = (uint)((ulonglong)lVar2 >> 0x20);\n              uVar19 = (uint)lVar2;\n            }\n            UNLOCK();\n          } while (!bVar27);\n          MVar18 = SetImageProgress(image,"Distort/Image",*this->progress,(ulonglong)image->rows);\n          if (MVar18 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    } while (iVar15 != local_140);\n  }" if (parenthesized_expression "(local_140 < iVar15)" ( (binary_expression "local_140 < iVar15" identifier < identifier) )) (compound_statement "{\n    ppRVar5 = this->resample_filter;\n    cache_view = this->distort_view;\n    pdVar6 = this->arguments;\n    dVar3 = this->output_scaling;\n    pdVar7 = this->coeff;\n    exception = this->exception;\n    MVar8 = this->bestfit;\n    image = this->image;\n    sVar9 = this->number_arguments;\n    do {\n      iVar14 = omp_get_thread_num();\n      pQVar16 = QueueCacheViewAuthenticPixels(cache_view,0,local_140,pIVar4->columns,1,exception);\n      if (pQVar16 == (Quantum *)0x0) {\n        this->status = MagickFalse;\n      }\n      else {\n        pPVar23 = this->zero;\n        pPVar24 = &local_70;\n        for (iVar21 = 0x14; iVar21 != 0; iVar21 = iVar21 + -1) {\n          pPVar24->storage_class = pPVar23->storage_class;\n          pPVar23 = (PixelInfo *)((int)pPVar23 + (uint)bVar28 * -8 + 4);\n          pPVar24 = (PixelInfo *)((int)pPVar24 + (uint)bVar28 * -8 + 4);\n        }\n        if ((*this->method == AffineDistortion) || (*this->method == RigidAffineDistortion)) {\n          ScaleResampleFilter(ppRVar5[iVar14],dVar3 * *pdVar7,pdVar7[1] * dVar3,pdVar7[3] * dVar3,\n                              pdVar7[4] * dVar3);\n        }\n        if (0 < (int)pIVar4->columns) {\n          local_14c = 1.0;\n          ppRVar1 = ppRVar5 + iVar14;\n          local_15c = 0;\n          do {\n            dVar33 = ((double)(local_15c + this->geometry->x) + (double)DAT_0029f124) * dVar3;\n            DVar17 = *this->method;\n            dVar12 = dVar3 * ((double)(local_140 + this->geometry->y) + (double)DAT_0029f124);\n            local_f4 = dVar12;\n            local_10c = dVar33;\n            switch(DVar17) {\n            case AffineDistortion:\n            case RigidAffineDistortion:\n              local_f4 = dVar12 * pdVar7[4] + dVar33 * pdVar7[3] + pdVar7[5];\n              local_10c = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              break;\n            case PerspectiveDistortion:\n              dVar31 = pdVar7[6];\n              dVar32 = pdVar7[7];\n              dVar30 = dVar12 * dVar32 + dVar33 * dVar31 + 1.0;\n              dVar29 = pdVar7[8] * dVar30;\n              local_14c = 0.0;\n              if (0.0 <= dVar29) {\n                local_14c = 1.0;\n              }\n              dVar13 = ABS(dVar30) + ABS(dVar30);\n              if (ABS(dVar31) <= ABS(dVar32)) {\n                if (dVar13 < ABS(dVar32) * dVar3) {\n                  local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar32);\n                }\n              }\n              else if (dVar13 < ABS(dVar31) * dVar3) {\n                local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar31);\n              }\n              if (local_14c <= 0.0) goto LAB_00085796;\n              dVar29 = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              dVar33 = pdVar7[3] * dVar33 + dVar12 * pdVar7[4] + pdVar7[5];\n              dVar12 = (double)DAT_0029f718 / dVar30;\n              local_10c = dVar29 * dVar12;\n              local_f4 = dVar33 * dVar12;\n              dVar12 = dVar12 * dVar12;\n              ScaleResampleFilter(*ppRVar1,dVar3 * (dVar30 * *pdVar7 - dVar29 * dVar31) * dVar12,\n                                  (pdVar7[1] * dVar30 - dVar32 * dVar29) * dVar12 * dVar3,\n                                  (pdVar7[3] * dVar30 - dVar33 * dVar31) * dVar12 * dVar3,\n                                  (pdVar7[4] * dVar30 - dVar33 * dVar32) * dVar12 * dVar3);\n              break;\n            case BilinearDistortion:\n              dVar13 = dVar33 - pdVar7[3];\n              local_12c = pdVar7[2];\n              dVar29 = (pdVar7[6] * dVar13 - (dVar12 - pdVar7[7]) * local_12c) + pdVar7[8];\n              dVar31 = *pdVar7;\n              dVar30 = pdVar7[4] * dVar13 - (dVar12 - pdVar7[7]) * dVar31;\n              dVar32 = pdVar7[9];\n              if (ABS(dVar32) < DAT_0029f138) {\n                dVar12 = -dVar30 / dVar29;\n              }\n              else {\n                dVar30 = dVar29 * dVar29 - (dVar32 + dVar32) * dVar30;\n                local_14c = 0.0;\n                if (dVar30 < 0.0) goto LAB_00085796;\n                if (dVar30 < 0.0) {\n                  sqrt(dVar30);\n                  dVar32 = pdVar7[9];\n                  dVar31 = *pdVar7;\n                  local_12c = pdVar7[2];\n                }\n                dVar12 = (SQRT(dVar30) - dVar29) / dVar32;\n              }\n              local_10c = (dVar13 - pdVar7[1] * dVar12) / (local_12c * dVar12 + dVar31);\n              if (MVar8 != MagickFalse) {\n                local_14c = 1.0;\n                goto LAB_000852c3;\n              }\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              local_14c = 1.0;\n              goto LAB_00085370;\n            case BilinearReverseDistortion:\n              dVar31 = pdVar7[2] * dVar33;\n              local_10c = pdVar7[3] + dVar31 * dVar12 + dVar12 * pdVar7[1] + *pdVar7 * dVar33;\n              dVar32 = dVar33 * pdVar7[6];\n              local_f4 = dVar12 * dVar32 + dVar12 * pdVar7[5] + dVar33 * pdVar7[4] + pdVar7[7];\n              ScaleResampleFilter(*ppRVar1,(dVar12 * pdVar7[2] + *pdVar7) * dVar3,\n                                  (pdVar7[1] + dVar31) * dVar3,\n                                  (pdVar7[6] * dVar12 + pdVar7[4]) * dVar3,\n                                  (pdVar7[5] + dVar32) * dVar3);\n              break;\n            case PolynomialDistortion:\n              iVar14 = (int)ROUND(pdVar7[1]);\n              if (iVar14 < 1) {\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n              }\n              else {\n                iVar21 = 0;\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n                do {\n                  n = iVar21;\n                  dVar32 = poly_basis_fn(iVar21,dVar33,dVar12);\n                  dVar31 = pdVar7[iVar21 + 2];\n                  local_10c = dVar32 * dVar31 + local_10c;\n                  dVar30 = poly_basis_dx(n,dVar33,dVar12);\n                  local_114 = dVar31 * dVar30 + local_114;\n                  switch(iVar21) {\n                  case 0:\n                  case 1:\n                  case 4:\n                    dVar31 = dVar31 * 0.0;\n                    dVar29 = 0.0;\n                    break;\n                  case 2:\n                    dVar29 = 1.0;\n                    break;\n                  case 3:\n                    dVar31 = dVar31 * dVar33;\n                    dVar29 = dVar33;\n                    break;\n                  case 5:\n                    dVar31 = dVar31 * dVar12;\n                    dVar29 = dVar12;\n                    break;\n                  default:\n                    dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);\n                    dVar31 = dVar31 * dVar29;\n                  }\n                  local_fc = dVar31 + local_fc;\n                  dVar31 = pdVar7[iVar14 + iVar21 + 2];\n                  iVar21 = iVar21 + 1;\n                  local_f4 = dVar32 * dVar31 + local_f4;\n                  local_11c = dVar30 * dVar31 + local_11c;\n                  local_104 = dVar29 * dVar31 + local_104;\n                } while (iVar14 != iVar21);\n              }\n              ScaleResampleFilter(*ppRVar1,local_114 * dVar3,local_fc * dVar3,local_11c * dVar3,\n                                  local_104 * dVar3);\n              break;\n            case ArcDistortion:\n              dVar31 = atan2(dVar12,dVar33);\n              dVar31 = (dVar31 - *pdVar7) / DAT_002b0c28;\n              if (dVar31 - ROUND(dVar31) < ROUND(dVar31) - dVar31) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar33 = hypot(dVar33,dVar12);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[1] / (dVar33 * DAT_002b0c28)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              local_10c = (double)(image->page).x + (dVar31 - ROUND(dVar31)) * pdVar7[1] + pdVar7[4]\n                          + (double)DAT_0029f124;\n              local_f4 = (double)(image->page).y + (pdVar7[2] - dVar33) * pdVar7[3];\n              break;\n            case PolarDistortion:\n              dVar31 = pdVar7[2];\n              dVar32 = pdVar7[3];\n              dVar30 = atan2(dVar33 - dVar31,dVar12 - dVar32);\n              dVar29 = DAT_002b0c28;\n              dVar30 = (dVar30 - (pdVar7[4] + pdVar7[5]) * (double)DAT_0029f124) / DAT_002b0c28;\n              if (dVar30 - ROUND(dVar30) < ROUND(dVar30) - dVar30) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar30 = DAT_002b0c28 * (dVar30 - ROUND(dVar30));\n              dVar33 = hypot(dVar33 - dVar31,dVar12 - dVar32);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[6] / (dVar29 * dVar33)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              local_13c = (double)(ulonglong)image->columns;\n              local_10c = (double)(image->page).x +\n                          (double)(longlong)local_13c * (double)DAT_0029f124 + dVar30 * pdVar7[6];\n              local_f4 = (double)(image->page).y + (dVar33 - pdVar7[1]) * pdVar7[7];\n              break;\n            case DePolarDistortion:\n              dVar33 = (double)DAT_0029f124;\n              sincos((double)(((float)local_15c + DAT_0029f124) * (float)dVar3 * (float)pdVar7[6] +\n                             (float)pdVar7[4]),local_84,&local_8c);\n              dVar12 = (dVar33 + (double)local_140) * dVar3 * pdVar7[7] + pdVar7[1];\n              dVar33 = local_84[0] * dVar12 + pdVar7[2];\n              dVar12 = dVar12 * local_8c + pdVar7[3];\nLAB_00085796:\n              local_10c = dVar33;\n              if (MVar8 != MagickFalse) goto LAB_000852cf;\n              goto joined_r0x000857af;\n            case Cylinder2PlaneDistortion:\n              dVar31 = pdVar7[5];\n              dVar32 = pdVar7[1];\n              dVar33 = (dVar33 - pdVar7[4]) / dVar32;\n              dVar30 = atan(dVar33);\n              dVar29 = cos(dVar30);\n              local_f4 = (dVar12 - dVar31) * dVar29;\n              ScaleResampleFilter(*ppRVar1,(1.0 / (dVar33 * dVar33 + 1.0)) * dVar3,\n                                  dVar3 * (double)DAT_002a7fe8,\n                                  ((-dVar33 * local_f4 * dVar29 * dVar29) / dVar32) * dVar3,\n                                  (local_f4 / (dVar12 - dVar31)) * dVar3);\n              local_10c = dVar30 * dVar32 + pdVar7[2];\n              local_f4 = local_f4 + pdVar7[3];\n              break;\n            case Plane2CylinderDistortion:\n              dVar31 = pdVar7[1];\n              local_14c = (DAT_0029f740 * dVar31 - ABS(dVar33 - pdVar7[4])) / dVar3 +\n                          (double)DAT_0029f124;\n              if (0.0 < local_14c) {\n                dVar33 = (dVar33 - pdVar7[4]) / dVar31;\n                dVar32 = cos(dVar33);\n                dVar32 = (double)DAT_0029f718 / dVar32;\n                dVar33 = tan(dVar33);\n                dVar33 = dVar33 * dVar31;\n                dVar12 = (dVar12 - pdVar7[5]) * dVar32;\n                ScaleResampleFilter(*ppRVar1,dVar32 * dVar32 * dVar3,dVar3 * 0.0,\n                                    ((dVar32 * dVar12) / dVar31) * dVar3,dVar3 * dVar32);\n              }\n              local_10c = dVar33 + pdVar7[2];\n              local_f4 = dVar12 + pdVar7[3];\n              break;\n            case BarrelDistortion:\n            case BarrelInverseDistortion:\n              dVar33 = dVar33 - pdVar7[8];\n              dVar12 = dVar12 - pdVar7[9];\n              dVar32 = dVar12 * dVar12 + dVar33 * dVar33;\n              dVar31 = SQRT(dVar32);\n              if (dVar32 < 0.0) {\n                sqrt(dVar32);\n                DVar17 = *this->method;\n              }\n              dVar32 = pdVar7[7];\n              local_13c = pdVar7[3];\n              if (DAT_0029f138 < dVar31) {\n                dVar30 = pdVar7[1];\n                local_13c = ((*pdVar7 * dVar31 + dVar30) * dVar31 + pdVar7[2]) * dVar31 + local_13c;\n                dVar29 = pdVar7[5];\n                dVar32 = ((pdVar7[4] * dVar31 + dVar29) * dVar31 + pdVar7[6]) * dVar31 + dVar32;\n                dVar30 = ((dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31) * dVar31 +\n                         pdVar7[2]) / dVar31;\n                dVar31 = ((dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31) * dVar31 +\n                         pdVar7[6]) / dVar31;\n                if (DVar17 == BarrelInverseDistortion) {\n                  local_13c = 1.0 / local_13c;\n                  dVar32 = 1.0 / dVar32;\n                  dVar30 = dVar30 * -local_13c * local_13c;\n                  dVar31 = -dVar32 * dVar32 * dVar31;\n                }\n                local_10c = local_13c * dVar33 + pdVar7[8];\n                local_f4 = dVar32 * dVar12 + pdVar7[9];\n                ScaleResampleFilter(*ppRVar1,(dVar30 * dVar33 * dVar33 + local_13c) * dVar3,\n                                    dVar12 * dVar30 * dVar33 * dVar3,\n                                    dVar31 * dVar33 * dVar12 * dVar3,\n                                    (dVar31 * dVar12 * dVar12 + dVar32) * dVar3);\n              }\n              else {\n                if (DVar17 != BarrelDistortion) {\n                  dVar32 = 1.0 / dVar32;\n                  local_13c = 1.0 / local_13c;\n                }\n                ScaleResampleFilter(*ppRVar1,dVar3 * local_13c,dVar3 * (double)DAT_002a7fe8,\n                                    dVar3 * (double)DAT_002a7fe8,dVar32 * dVar3);\n              }\n              break;\n            case ShepardsDistortion:\n              if (sVar9 == 0) {\n                dVar31 = 0.0;\n                dVar30 = 0.0;\n                dVar32 = 0.0;\n              }\n              else {\n                dVar31 = 0.0;\n                dVar32 = 0.0;\n                dVar30 = 0.0;\n                pdVar25 = pdVar6;\n                do {\n                  dVar29 = pow((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7);\n                  if (dVar29 < 1.0) {\n                    dVar29 = 1.0;\n                  }\n                  else {\n                    dVar29 = 1.0 / dVar29;\n                  }\n                  pdVar26 = pdVar25 + 4;\n                  dVar30 = (*pdVar25 - pdVar25[2]) * dVar29 + dVar30;\n                  dVar32 = (pdVar25[1] - pdVar25[3]) * dVar29 + dVar32;\n                  dVar31 = dVar31 + dVar29;\n                  pdVar25 = pdVar26;\n                } while ((double *)((int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20) != pdVar26);\n              }\n              local_f4 = dVar12 + dVar32 / dVar31;\n              local_10c = dVar30 / dVar31 + dVar33;\n            }\n            dVar12 = local_f4;\n            if (MVar8 != MagickFalse) {\nLAB_000852c3:\n              dVar33 = local_10c;\n              if (*this->method != ArcDistortion) {\nLAB_000852cf:\n                local_10c = dVar33 - (double)(image->page).x;\n                dVar12 = dVar12 - (double)(image->page).y;\n              }\n            }\njoined_r0x000857af:\n            if (local_14c <= 0.0) {\n              pPVar23 = this->invalid;\n              pPVar20 = pIVar4->channel_map;\n              pQVar16[pPVar20->offset] = pPVar23->red;\n              pQVar16[pPVar20[1].offset] = pPVar23->green;\n              pQVar16[pPVar20[2].offset] = pPVar23->blue;\n              if (pPVar20[3].traits != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = pPVar23->black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                if (pPVar23->alpha_trait == UndefinedPixelTrait) goto LAB_00085d68;\n                dVar33 = pPVar23->alpha;\n                goto LAB_000853cb;\n              }\n            }\n            else {\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              if (local_14c < 1.0) {\n                pPVar23 = this->invalid;\n                dVar12 = local_70.alpha * local_14c * _DAT_0029f148;\n                dVar31 = pPVar23->alpha * (1.0 - local_14c) * _DAT_0029f148;\n                dVar33 = dVar12 + dVar31;\n                if (dVar33 < 0.0) {\n                  dVar33 = 0.0;\n                  local_70.alpha = 0.0;\n                }\n                else if (dVar33 <= 1.0) {\n                  local_70.alpha = dVar33 * (double)DAT_0029f710;\n                }\n                else {\n                  dVar33 = 1.0;\n                  local_70.alpha = (MagickRealType)DAT_0029f710;\n                }\n                dVar32 = DAT_0029f738;\n                if (DAT_0029f138 <= dVar33) {\n                  dVar32 = (double)DAT_0029f718 / dVar33;\n                }\n                local_70.red = (pPVar23->red * dVar31 + local_70.red * dVar12) * dVar32;\n                local_70.green = (pPVar23->green * dVar31 + local_70.green * dVar12) * dVar32;\n                local_70.blue = (pPVar23->blue * dVar31 + local_70.blue * dVar12) * dVar32;\n                if (pPVar23->colorspace == CMYKColorspace) {\n                  local_70.black = dVar32 * (dVar31 * pPVar23->black + dVar12 * local_70.black);\n                }\n              }\nLAB_00085370:\n              pPVar20 = pIVar4->channel_map;\n              PVar10 = pPVar20[3].traits;\n              pQVar16[pPVar20->offset] = local_70.red;\n              pQVar16[pPVar20[1].offset] = local_70.green;\n              pQVar16[pPVar20[2].offset] = local_70.blue;\n              if (PVar10 != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = local_70.black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                dVar33 = local_70.alpha;\n                if (local_70.alpha_trait == UndefinedPixelTrait) {\nLAB_00085d68:\n                  dVar33 = (double)DAT_0029f710;\n                }\nLAB_000853cb:\n                pQVar16[pPVar20[4].offset] = dVar33;\n              }\n            }\n            local_15c = local_15c + 1;\n            pQVar16 = pQVar16 + pIVar4->number_channels;\n          } while (local_15c < (int)pIVar4->columns);\n        }\n        MVar18 = SyncCacheViewAuthenticPixels(cache_view,exception);\n        if (MVar18 == MagickFalse) {\n          this->status = MagickFalse;\n        }\n        if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n          puVar11 = (uint *)this->progress;\n          uVar19 = *puVar11;\n          uVar22 = puVar11[1];\n          do {\n            LOCK();\n            lVar2 = *(longlong *)puVar11;\n            bVar27 = CONCAT44(uVar22,uVar19) == lVar2;\n            if (bVar27) {\n              *(longlong *)puVar11 = CONCAT44(uVar22 + (0xfffffffe < uVar19),uVar19 + 1);\n            }\n            else {\n              uVar22 = (uint)((ulonglong)lVar2 >> 0x20);\n              uVar19 = (uint)lVar2;\n            }\n            UNLOCK();\n          } while (!bVar27);\n          MVar18 = SetImageProgress(image,"Distort/Image",*this->progress,(ulonglong)image->rows);\n          if (MVar18 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    } while (iVar15 != local_140);\n  }" { (expression_statement "ppRVar5 = this->resample_filter;" (assignment_expression "ppRVar5 = this->resample_filter" identifier = (field_expression "this->resample_filter" identifier -> field_identifier)) ;) (expression_statement "cache_view = this->distort_view;" (assignment_expression "cache_view = this->distort_view" identifier = (field_expression "this->distort_view" identifier -> field_identifier)) ;) (expression_statement "pdVar6 = this->arguments;" (assignment_expression "pdVar6 = this->arguments" identifier = (field_expression "this->arguments" identifier -> field_identifier)) ;) (expression_statement "dVar3 = this->output_scaling;" (assignment_expression "dVar3 = this->output_scaling" identifier = (field_expression "this->output_scaling" identifier -> field_identifier)) ;) (expression_statement "pdVar7 = this->coeff;" (assignment_expression "pdVar7 = this->coeff" identifier = (field_expression "this->coeff" identifier -> field_identifier)) ;) (expression_statement "exception = this->exception;" (assignment_expression "exception = this->exception" identifier = (field_expression "this->exception" identifier -> field_identifier)) ;) (expression_statement "MVar8 = this->bestfit;" (assignment_expression "MVar8 = this->bestfit" identifier = (field_expression "this->bestfit" identifier -> field_identifier)) ;) (expression_statement "image = this->image;" (assignment_expression "image = this->image" identifier = (field_expression "this->image" identifier -> field_identifier)) ;) (expression_statement "sVar9 = this->number_arguments;" (assignment_expression "sVar9 = this->number_arguments" identifier = (field_expression "this->number_arguments" identifier -> field_identifier)) ;) (do_statement "do {\n      iVar14 = omp_get_thread_num();\n      pQVar16 = QueueCacheViewAuthenticPixels(cache_view,0,local_140,pIVar4->columns,1,exception);\n      if (pQVar16 == (Quantum *)0x0) {\n        this->status = MagickFalse;\n      }\n      else {\n        pPVar23 = this->zero;\n        pPVar24 = &local_70;\n        for (iVar21 = 0x14; iVar21 != 0; iVar21 = iVar21 + -1) {\n          pPVar24->storage_class = pPVar23->storage_class;\n          pPVar23 = (PixelInfo *)((int)pPVar23 + (uint)bVar28 * -8 + 4);\n          pPVar24 = (PixelInfo *)((int)pPVar24 + (uint)bVar28 * -8 + 4);\n        }\n        if ((*this->method == AffineDistortion) || (*this->method == RigidAffineDistortion)) {\n          ScaleResampleFilter(ppRVar5[iVar14],dVar3 * *pdVar7,pdVar7[1] * dVar3,pdVar7[3] * dVar3,\n                              pdVar7[4] * dVar3);\n        }\n        if (0 < (int)pIVar4->columns) {\n          local_14c = 1.0;\n          ppRVar1 = ppRVar5 + iVar14;\n          local_15c = 0;\n          do {\n            dVar33 = ((double)(local_15c + this->geometry->x) + (double)DAT_0029f124) * dVar3;\n            DVar17 = *this->method;\n            dVar12 = dVar3 * ((double)(local_140 + this->geometry->y) + (double)DAT_0029f124);\n            local_f4 = dVar12;\n            local_10c = dVar33;\n            switch(DVar17) {\n            case AffineDistortion:\n            case RigidAffineDistortion:\n              local_f4 = dVar12 * pdVar7[4] + dVar33 * pdVar7[3] + pdVar7[5];\n              local_10c = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              break;\n            case PerspectiveDistortion:\n              dVar31 = pdVar7[6];\n              dVar32 = pdVar7[7];\n              dVar30 = dVar12 * dVar32 + dVar33 * dVar31 + 1.0;\n              dVar29 = pdVar7[8] * dVar30;\n              local_14c = 0.0;\n              if (0.0 <= dVar29) {\n                local_14c = 1.0;\n              }\n              dVar13 = ABS(dVar30) + ABS(dVar30);\n              if (ABS(dVar31) <= ABS(dVar32)) {\n                if (dVar13 < ABS(dVar32) * dVar3) {\n                  local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar32);\n                }\n              }\n              else if (dVar13 < ABS(dVar31) * dVar3) {\n                local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar31);\n              }\n              if (local_14c <= 0.0) goto LAB_00085796;\n              dVar29 = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              dVar33 = pdVar7[3] * dVar33 + dVar12 * pdVar7[4] + pdVar7[5];\n              dVar12 = (double)DAT_0029f718 / dVar30;\n              local_10c = dVar29 * dVar12;\n              local_f4 = dVar33 * dVar12;\n              dVar12 = dVar12 * dVar12;\n              ScaleResampleFilter(*ppRVar1,dVar3 * (dVar30 * *pdVar7 - dVar29 * dVar31) * dVar12,\n                                  (pdVar7[1] * dVar30 - dVar32 * dVar29) * dVar12 * dVar3,\n                                  (pdVar7[3] * dVar30 - dVar33 * dVar31) * dVar12 * dVar3,\n                                  (pdVar7[4] * dVar30 - dVar33 * dVar32) * dVar12 * dVar3);\n              break;\n            case BilinearDistortion:\n              dVar13 = dVar33 - pdVar7[3];\n              local_12c = pdVar7[2];\n              dVar29 = (pdVar7[6] * dVar13 - (dVar12 - pdVar7[7]) * local_12c) + pdVar7[8];\n              dVar31 = *pdVar7;\n              dVar30 = pdVar7[4] * dVar13 - (dVar12 - pdVar7[7]) * dVar31;\n              dVar32 = pdVar7[9];\n              if (ABS(dVar32) < DAT_0029f138) {\n                dVar12 = -dVar30 / dVar29;\n              }\n              else {\n                dVar30 = dVar29 * dVar29 - (dVar32 + dVar32) * dVar30;\n                local_14c = 0.0;\n                if (dVar30 < 0.0) goto LAB_00085796;\n                if (dVar30 < 0.0) {\n                  sqrt(dVar30);\n                  dVar32 = pdVar7[9];\n                  dVar31 = *pdVar7;\n                  local_12c = pdVar7[2];\n                }\n                dVar12 = (SQRT(dVar30) - dVar29) / dVar32;\n              }\n              local_10c = (dVar13 - pdVar7[1] * dVar12) / (local_12c * dVar12 + dVar31);\n              if (MVar8 != MagickFalse) {\n                local_14c = 1.0;\n                goto LAB_000852c3;\n              }\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              local_14c = 1.0;\n              goto LAB_00085370;\n            case BilinearReverseDistortion:\n              dVar31 = pdVar7[2] * dVar33;\n              local_10c = pdVar7[3] + dVar31 * dVar12 + dVar12 * pdVar7[1] + *pdVar7 * dVar33;\n              dVar32 = dVar33 * pdVar7[6];\n              local_f4 = dVar12 * dVar32 + dVar12 * pdVar7[5] + dVar33 * pdVar7[4] + pdVar7[7];\n              ScaleResampleFilter(*ppRVar1,(dVar12 * pdVar7[2] + *pdVar7) * dVar3,\n                                  (pdVar7[1] + dVar31) * dVar3,\n                                  (pdVar7[6] * dVar12 + pdVar7[4]) * dVar3,\n                                  (pdVar7[5] + dVar32) * dVar3);\n              break;\n            case PolynomialDistortion:\n              iVar14 = (int)ROUND(pdVar7[1]);\n              if (iVar14 < 1) {\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n              }\n              else {\n                iVar21 = 0;\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n                do {\n                  n = iVar21;\n                  dVar32 = poly_basis_fn(iVar21,dVar33,dVar12);\n                  dVar31 = pdVar7[iVar21 + 2];\n                  local_10c = dVar32 * dVar31 + local_10c;\n                  dVar30 = poly_basis_dx(n,dVar33,dVar12);\n                  local_114 = dVar31 * dVar30 + local_114;\n                  switch(iVar21) {\n                  case 0:\n                  case 1:\n                  case 4:\n                    dVar31 = dVar31 * 0.0;\n                    dVar29 = 0.0;\n                    break;\n                  case 2:\n                    dVar29 = 1.0;\n                    break;\n                  case 3:\n                    dVar31 = dVar31 * dVar33;\n                    dVar29 = dVar33;\n                    break;\n                  case 5:\n                    dVar31 = dVar31 * dVar12;\n                    dVar29 = dVar12;\n                    break;\n                  default:\n                    dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);\n                    dVar31 = dVar31 * dVar29;\n                  }\n                  local_fc = dVar31 + local_fc;\n                  dVar31 = pdVar7[iVar14 + iVar21 + 2];\n                  iVar21 = iVar21 + 1;\n                  local_f4 = dVar32 * dVar31 + local_f4;\n                  local_11c = dVar30 * dVar31 + local_11c;\n                  local_104 = dVar29 * dVar31 + local_104;\n                } while (iVar14 != iVar21);\n              }\n              ScaleResampleFilter(*ppRVar1,local_114 * dVar3,local_fc * dVar3,local_11c * dVar3,\n                                  local_104 * dVar3);\n              break;\n            case ArcDistortion:\n              dVar31 = atan2(dVar12,dVar33);\n              dVar31 = (dVar31 - *pdVar7) / DAT_002b0c28;\n              if (dVar31 - ROUND(dVar31) < ROUND(dVar31) - dVar31) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar33 = hypot(dVar33,dVar12);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[1] / (dVar33 * DAT_002b0c28)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              local_10c = (double)(image->page).x + (dVar31 - ROUND(dVar31)) * pdVar7[1] + pdVar7[4]\n                          + (double)DAT_0029f124;\n              local_f4 = (double)(image->page).y + (pdVar7[2] - dVar33) * pdVar7[3];\n              break;\n            case PolarDistortion:\n              dVar31 = pdVar7[2];\n              dVar32 = pdVar7[3];\n              dVar30 = atan2(dVar33 - dVar31,dVar12 - dVar32);\n              dVar29 = DAT_002b0c28;\n              dVar30 = (dVar30 - (pdVar7[4] + pdVar7[5]) * (double)DAT_0029f124) / DAT_002b0c28;\n              if (dVar30 - ROUND(dVar30) < ROUND(dVar30) - dVar30) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar30 = DAT_002b0c28 * (dVar30 - ROUND(dVar30));\n              dVar33 = hypot(dVar33 - dVar31,dVar12 - dVar32);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[6] / (dVar29 * dVar33)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              local_13c = (double)(ulonglong)image->columns;\n              local_10c = (double)(image->page).x +\n                          (double)(longlong)local_13c * (double)DAT_0029f124 + dVar30 * pdVar7[6];\n              local_f4 = (double)(image->page).y + (dVar33 - pdVar7[1]) * pdVar7[7];\n              break;\n            case DePolarDistortion:\n              dVar33 = (double)DAT_0029f124;\n              sincos((double)(((float)local_15c + DAT_0029f124) * (float)dVar3 * (float)pdVar7[6] +\n                             (float)pdVar7[4]),local_84,&local_8c);\n              dVar12 = (dVar33 + (double)local_140) * dVar3 * pdVar7[7] + pdVar7[1];\n              dVar33 = local_84[0] * dVar12 + pdVar7[2];\n              dVar12 = dVar12 * local_8c + pdVar7[3];\nLAB_00085796:\n              local_10c = dVar33;\n              if (MVar8 != MagickFalse) goto LAB_000852cf;\n              goto joined_r0x000857af;\n            case Cylinder2PlaneDistortion:\n              dVar31 = pdVar7[5];\n              dVar32 = pdVar7[1];\n              dVar33 = (dVar33 - pdVar7[4]) / dVar32;\n              dVar30 = atan(dVar33);\n              dVar29 = cos(dVar30);\n              local_f4 = (dVar12 - dVar31) * dVar29;\n              ScaleResampleFilter(*ppRVar1,(1.0 / (dVar33 * dVar33 + 1.0)) * dVar3,\n                                  dVar3 * (double)DAT_002a7fe8,\n                                  ((-dVar33 * local_f4 * dVar29 * dVar29) / dVar32) * dVar3,\n                                  (local_f4 / (dVar12 - dVar31)) * dVar3);\n              local_10c = dVar30 * dVar32 + pdVar7[2];\n              local_f4 = local_f4 + pdVar7[3];\n              break;\n            case Plane2CylinderDistortion:\n              dVar31 = pdVar7[1];\n              local_14c = (DAT_0029f740 * dVar31 - ABS(dVar33 - pdVar7[4])) / dVar3 +\n                          (double)DAT_0029f124;\n              if (0.0 < local_14c) {\n                dVar33 = (dVar33 - pdVar7[4]) / dVar31;\n                dVar32 = cos(dVar33);\n                dVar32 = (double)DAT_0029f718 / dVar32;\n                dVar33 = tan(dVar33);\n                dVar33 = dVar33 * dVar31;\n                dVar12 = (dVar12 - pdVar7[5]) * dVar32;\n                ScaleResampleFilter(*ppRVar1,dVar32 * dVar32 * dVar3,dVar3 * 0.0,\n                                    ((dVar32 * dVar12) / dVar31) * dVar3,dVar3 * dVar32);\n              }\n              local_10c = dVar33 + pdVar7[2];\n              local_f4 = dVar12 + pdVar7[3];\n              break;\n            case BarrelDistortion:\n            case BarrelInverseDistortion:\n              dVar33 = dVar33 - pdVar7[8];\n              dVar12 = dVar12 - pdVar7[9];\n              dVar32 = dVar12 * dVar12 + dVar33 * dVar33;\n              dVar31 = SQRT(dVar32);\n              if (dVar32 < 0.0) {\n                sqrt(dVar32);\n                DVar17 = *this->method;\n              }\n              dVar32 = pdVar7[7];\n              local_13c = pdVar7[3];\n              if (DAT_0029f138 < dVar31) {\n                dVar30 = pdVar7[1];\n                local_13c = ((*pdVar7 * dVar31 + dVar30) * dVar31 + pdVar7[2]) * dVar31 + local_13c;\n                dVar29 = pdVar7[5];\n                dVar32 = ((pdVar7[4] * dVar31 + dVar29) * dVar31 + pdVar7[6]) * dVar31 + dVar32;\n                dVar30 = ((dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31) * dVar31 +\n                         pdVar7[2]) / dVar31;\n                dVar31 = ((dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31) * dVar31 +\n                         pdVar7[6]) / dVar31;\n                if (DVar17 == BarrelInverseDistortion) {\n                  local_13c = 1.0 / local_13c;\n                  dVar32 = 1.0 / dVar32;\n                  dVar30 = dVar30 * -local_13c * local_13c;\n                  dVar31 = -dVar32 * dVar32 * dVar31;\n                }\n                local_10c = local_13c * dVar33 + pdVar7[8];\n                local_f4 = dVar32 * dVar12 + pdVar7[9];\n                ScaleResampleFilter(*ppRVar1,(dVar30 * dVar33 * dVar33 + local_13c) * dVar3,\n                                    dVar12 * dVar30 * dVar33 * dVar3,\n                                    dVar31 * dVar33 * dVar12 * dVar3,\n                                    (dVar31 * dVar12 * dVar12 + dVar32) * dVar3);\n              }\n              else {\n                if (DVar17 != BarrelDistortion) {\n                  dVar32 = 1.0 / dVar32;\n                  local_13c = 1.0 / local_13c;\n                }\n                ScaleResampleFilter(*ppRVar1,dVar3 * local_13c,dVar3 * (double)DAT_002a7fe8,\n                                    dVar3 * (double)DAT_002a7fe8,dVar32 * dVar3);\n              }\n              break;\n            case ShepardsDistortion:\n              if (sVar9 == 0) {\n                dVar31 = 0.0;\n                dVar30 = 0.0;\n                dVar32 = 0.0;\n              }\n              else {\n                dVar31 = 0.0;\n                dVar32 = 0.0;\n                dVar30 = 0.0;\n                pdVar25 = pdVar6;\n                do {\n                  dVar29 = pow((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7);\n                  if (dVar29 < 1.0) {\n                    dVar29 = 1.0;\n                  }\n                  else {\n                    dVar29 = 1.0 / dVar29;\n                  }\n                  pdVar26 = pdVar25 + 4;\n                  dVar30 = (*pdVar25 - pdVar25[2]) * dVar29 + dVar30;\n                  dVar32 = (pdVar25[1] - pdVar25[3]) * dVar29 + dVar32;\n                  dVar31 = dVar31 + dVar29;\n                  pdVar25 = pdVar26;\n                } while ((double *)((int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20) != pdVar26);\n              }\n              local_f4 = dVar12 + dVar32 / dVar31;\n              local_10c = dVar30 / dVar31 + dVar33;\n            }\n            dVar12 = local_f4;\n            if (MVar8 != MagickFalse) {\nLAB_000852c3:\n              dVar33 = local_10c;\n              if (*this->method != ArcDistortion) {\nLAB_000852cf:\n                local_10c = dVar33 - (double)(image->page).x;\n                dVar12 = dVar12 - (double)(image->page).y;\n              }\n            }\njoined_r0x000857af:\n            if (local_14c <= 0.0) {\n              pPVar23 = this->invalid;\n              pPVar20 = pIVar4->channel_map;\n              pQVar16[pPVar20->offset] = pPVar23->red;\n              pQVar16[pPVar20[1].offset] = pPVar23->green;\n              pQVar16[pPVar20[2].offset] = pPVar23->blue;\n              if (pPVar20[3].traits != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = pPVar23->black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                if (pPVar23->alpha_trait == UndefinedPixelTrait) goto LAB_00085d68;\n                dVar33 = pPVar23->alpha;\n                goto LAB_000853cb;\n              }\n            }\n            else {\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              if (local_14c < 1.0) {\n                pPVar23 = this->invalid;\n                dVar12 = local_70.alpha * local_14c * _DAT_0029f148;\n                dVar31 = pPVar23->alpha * (1.0 - local_14c) * _DAT_0029f148;\n                dVar33 = dVar12 + dVar31;\n                if (dVar33 < 0.0) {\n                  dVar33 = 0.0;\n                  local_70.alpha = 0.0;\n                }\n                else if (dVar33 <= 1.0) {\n                  local_70.alpha = dVar33 * (double)DAT_0029f710;\n                }\n                else {\n                  dVar33 = 1.0;\n                  local_70.alpha = (MagickRealType)DAT_0029f710;\n                }\n                dVar32 = DAT_0029f738;\n                if (DAT_0029f138 <= dVar33) {\n                  dVar32 = (double)DAT_0029f718 / dVar33;\n                }\n                local_70.red = (pPVar23->red * dVar31 + local_70.red * dVar12) * dVar32;\n                local_70.green = (pPVar23->green * dVar31 + local_70.green * dVar12) * dVar32;\n                local_70.blue = (pPVar23->blue * dVar31 + local_70.blue * dVar12) * dVar32;\n                if (pPVar23->colorspace == CMYKColorspace) {\n                  local_70.black = dVar32 * (dVar31 * pPVar23->black + dVar12 * local_70.black);\n                }\n              }\nLAB_00085370:\n              pPVar20 = pIVar4->channel_map;\n              PVar10 = pPVar20[3].traits;\n              pQVar16[pPVar20->offset] = local_70.red;\n              pQVar16[pPVar20[1].offset] = local_70.green;\n              pQVar16[pPVar20[2].offset] = local_70.blue;\n              if (PVar10 != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = local_70.black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                dVar33 = local_70.alpha;\n                if (local_70.alpha_trait == UndefinedPixelTrait) {\nLAB_00085d68:\n                  dVar33 = (double)DAT_0029f710;\n                }\nLAB_000853cb:\n                pQVar16[pPVar20[4].offset] = dVar33;\n              }\n            }\n            local_15c = local_15c + 1;\n            pQVar16 = pQVar16 + pIVar4->number_channels;\n          } while (local_15c < (int)pIVar4->columns);\n        }\n        MVar18 = SyncCacheViewAuthenticPixels(cache_view,exception);\n        if (MVar18 == MagickFalse) {\n          this->status = MagickFalse;\n        }\n        if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n          puVar11 = (uint *)this->progress;\n          uVar19 = *puVar11;\n          uVar22 = puVar11[1];\n          do {\n            LOCK();\n            lVar2 = *(longlong *)puVar11;\n            bVar27 = CONCAT44(uVar22,uVar19) == lVar2;\n            if (bVar27) {\n              *(longlong *)puVar11 = CONCAT44(uVar22 + (0xfffffffe < uVar19),uVar19 + 1);\n            }\n            else {\n              uVar22 = (uint)((ulonglong)lVar2 >> 0x20);\n              uVar19 = (uint)lVar2;\n            }\n            UNLOCK();\n          } while (!bVar27);\n          MVar18 = SetImageProgress(image,"Distort/Image",*this->progress,(ulonglong)image->rows);\n          if (MVar18 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    } while (iVar15 != local_140);" do (compound_statement "{\n      iVar14 = omp_get_thread_num();\n      pQVar16 = QueueCacheViewAuthenticPixels(cache_view,0,local_140,pIVar4->columns,1,exception);\n      if (pQVar16 == (Quantum *)0x0) {\n        this->status = MagickFalse;\n      }\n      else {\n        pPVar23 = this->zero;\n        pPVar24 = &local_70;\n        for (iVar21 = 0x14; iVar21 != 0; iVar21 = iVar21 + -1) {\n          pPVar24->storage_class = pPVar23->storage_class;\n          pPVar23 = (PixelInfo *)((int)pPVar23 + (uint)bVar28 * -8 + 4);\n          pPVar24 = (PixelInfo *)((int)pPVar24 + (uint)bVar28 * -8 + 4);\n        }\n        if ((*this->method == AffineDistortion) || (*this->method == RigidAffineDistortion)) {\n          ScaleResampleFilter(ppRVar5[iVar14],dVar3 * *pdVar7,pdVar7[1] * dVar3,pdVar7[3] * dVar3,\n                              pdVar7[4] * dVar3);\n        }\n        if (0 < (int)pIVar4->columns) {\n          local_14c = 1.0;\n          ppRVar1 = ppRVar5 + iVar14;\n          local_15c = 0;\n          do {\n            dVar33 = ((double)(local_15c + this->geometry->x) + (double)DAT_0029f124) * dVar3;\n            DVar17 = *this->method;\n            dVar12 = dVar3 * ((double)(local_140 + this->geometry->y) + (double)DAT_0029f124);\n            local_f4 = dVar12;\n            local_10c = dVar33;\n            switch(DVar17) {\n            case AffineDistortion:\n            case RigidAffineDistortion:\n              local_f4 = dVar12 * pdVar7[4] + dVar33 * pdVar7[3] + pdVar7[5];\n              local_10c = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              break;\n            case PerspectiveDistortion:\n              dVar31 = pdVar7[6];\n              dVar32 = pdVar7[7];\n              dVar30 = dVar12 * dVar32 + dVar33 * dVar31 + 1.0;\n              dVar29 = pdVar7[8] * dVar30;\n              local_14c = 0.0;\n              if (0.0 <= dVar29) {\n                local_14c = 1.0;\n              }\n              dVar13 = ABS(dVar30) + ABS(dVar30);\n              if (ABS(dVar31) <= ABS(dVar32)) {\n                if (dVar13 < ABS(dVar32) * dVar3) {\n                  local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar32);\n                }\n              }\n              else if (dVar13 < ABS(dVar31) * dVar3) {\n                local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar31);\n              }\n              if (local_14c <= 0.0) goto LAB_00085796;\n              dVar29 = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              dVar33 = pdVar7[3] * dVar33 + dVar12 * pdVar7[4] + pdVar7[5];\n              dVar12 = (double)DAT_0029f718 / dVar30;\n              local_10c = dVar29 * dVar12;\n              local_f4 = dVar33 * dVar12;\n              dVar12 = dVar12 * dVar12;\n              ScaleResampleFilter(*ppRVar1,dVar3 * (dVar30 * *pdVar7 - dVar29 * dVar31) * dVar12,\n                                  (pdVar7[1] * dVar30 - dVar32 * dVar29) * dVar12 * dVar3,\n                                  (pdVar7[3] * dVar30 - dVar33 * dVar31) * dVar12 * dVar3,\n                                  (pdVar7[4] * dVar30 - dVar33 * dVar32) * dVar12 * dVar3);\n              break;\n            case BilinearDistortion:\n              dVar13 = dVar33 - pdVar7[3];\n              local_12c = pdVar7[2];\n              dVar29 = (pdVar7[6] * dVar13 - (dVar12 - pdVar7[7]) * local_12c) + pdVar7[8];\n              dVar31 = *pdVar7;\n              dVar30 = pdVar7[4] * dVar13 - (dVar12 - pdVar7[7]) * dVar31;\n              dVar32 = pdVar7[9];\n              if (ABS(dVar32) < DAT_0029f138) {\n                dVar12 = -dVar30 / dVar29;\n              }\n              else {\n                dVar30 = dVar29 * dVar29 - (dVar32 + dVar32) * dVar30;\n                local_14c = 0.0;\n                if (dVar30 < 0.0) goto LAB_00085796;\n                if (dVar30 < 0.0) {\n                  sqrt(dVar30);\n                  dVar32 = pdVar7[9];\n                  dVar31 = *pdVar7;\n                  local_12c = pdVar7[2];\n                }\n                dVar12 = (SQRT(dVar30) - dVar29) / dVar32;\n              }\n              local_10c = (dVar13 - pdVar7[1] * dVar12) / (local_12c * dVar12 + dVar31);\n              if (MVar8 != MagickFalse) {\n                local_14c = 1.0;\n                goto LAB_000852c3;\n              }\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              local_14c = 1.0;\n              goto LAB_00085370;\n            case BilinearReverseDistortion:\n              dVar31 = pdVar7[2] * dVar33;\n              local_10c = pdVar7[3] + dVar31 * dVar12 + dVar12 * pdVar7[1] + *pdVar7 * dVar33;\n              dVar32 = dVar33 * pdVar7[6];\n              local_f4 = dVar12 * dVar32 + dVar12 * pdVar7[5] + dVar33 * pdVar7[4] + pdVar7[7];\n              ScaleResampleFilter(*ppRVar1,(dVar12 * pdVar7[2] + *pdVar7) * dVar3,\n                                  (pdVar7[1] + dVar31) * dVar3,\n                                  (pdVar7[6] * dVar12 + pdVar7[4]) * dVar3,\n                                  (pdVar7[5] + dVar32) * dVar3);\n              break;\n            case PolynomialDistortion:\n              iVar14 = (int)ROUND(pdVar7[1]);\n              if (iVar14 < 1) {\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n              }\n              else {\n                iVar21 = 0;\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n                do {\n                  n = iVar21;\n                  dVar32 = poly_basis_fn(iVar21,dVar33,dVar12);\n                  dVar31 = pdVar7[iVar21 + 2];\n                  local_10c = dVar32 * dVar31 + local_10c;\n                  dVar30 = poly_basis_dx(n,dVar33,dVar12);\n                  local_114 = dVar31 * dVar30 + local_114;\n                  switch(iVar21) {\n                  case 0:\n                  case 1:\n                  case 4:\n                    dVar31 = dVar31 * 0.0;\n                    dVar29 = 0.0;\n                    break;\n                  case 2:\n                    dVar29 = 1.0;\n                    break;\n                  case 3:\n                    dVar31 = dVar31 * dVar33;\n                    dVar29 = dVar33;\n                    break;\n                  case 5:\n                    dVar31 = dVar31 * dVar12;\n                    dVar29 = dVar12;\n                    break;\n                  default:\n                    dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);\n                    dVar31 = dVar31 * dVar29;\n                  }\n                  local_fc = dVar31 + local_fc;\n                  dVar31 = pdVar7[iVar14 + iVar21 + 2];\n                  iVar21 = iVar21 + 1;\n                  local_f4 = dVar32 * dVar31 + local_f4;\n                  local_11c = dVar30 * dVar31 + local_11c;\n                  local_104 = dVar29 * dVar31 + local_104;\n                } while (iVar14 != iVar21);\n              }\n              ScaleResampleFilter(*ppRVar1,local_114 * dVar3,local_fc * dVar3,local_11c * dVar3,\n                                  local_104 * dVar3);\n              break;\n            case ArcDistortion:\n              dVar31 = atan2(dVar12,dVar33);\n              dVar31 = (dVar31 - *pdVar7) / DAT_002b0c28;\n              if (dVar31 - ROUND(dVar31) < ROUND(dVar31) - dVar31) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar33 = hypot(dVar33,dVar12);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[1] / (dVar33 * DAT_002b0c28)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              local_10c = (double)(image->page).x + (dVar31 - ROUND(dVar31)) * pdVar7[1] + pdVar7[4]\n                          + (double)DAT_0029f124;\n              local_f4 = (double)(image->page).y + (pdVar7[2] - dVar33) * pdVar7[3];\n              break;\n            case PolarDistortion:\n              dVar31 = pdVar7[2];\n              dVar32 = pdVar7[3];\n              dVar30 = atan2(dVar33 - dVar31,dVar12 - dVar32);\n              dVar29 = DAT_002b0c28;\n              dVar30 = (dVar30 - (pdVar7[4] + pdVar7[5]) * (double)DAT_0029f124) / DAT_002b0c28;\n              if (dVar30 - ROUND(dVar30) < ROUND(dVar30) - dVar30) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar30 = DAT_002b0c28 * (dVar30 - ROUND(dVar30));\n              dVar33 = hypot(dVar33 - dVar31,dVar12 - dVar32);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[6] / (dVar29 * dVar33)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              local_13c = (double)(ulonglong)image->columns;\n              local_10c = (double)(image->page).x +\n                          (double)(longlong)local_13c * (double)DAT_0029f124 + dVar30 * pdVar7[6];\n              local_f4 = (double)(image->page).y + (dVar33 - pdVar7[1]) * pdVar7[7];\n              break;\n            case DePolarDistortion:\n              dVar33 = (double)DAT_0029f124;\n              sincos((double)(((float)local_15c + DAT_0029f124) * (float)dVar3 * (float)pdVar7[6] +\n                             (float)pdVar7[4]),local_84,&local_8c);\n              dVar12 = (dVar33 + (double)local_140) * dVar3 * pdVar7[7] + pdVar7[1];\n              dVar33 = local_84[0] * dVar12 + pdVar7[2];\n              dVar12 = dVar12 * local_8c + pdVar7[3];\nLAB_00085796:\n              local_10c = dVar33;\n              if (MVar8 != MagickFalse) goto LAB_000852cf;\n              goto joined_r0x000857af;\n            case Cylinder2PlaneDistortion:\n              dVar31 = pdVar7[5];\n              dVar32 = pdVar7[1];\n              dVar33 = (dVar33 - pdVar7[4]) / dVar32;\n              dVar30 = atan(dVar33);\n              dVar29 = cos(dVar30);\n              local_f4 = (dVar12 - dVar31) * dVar29;\n              ScaleResampleFilter(*ppRVar1,(1.0 / (dVar33 * dVar33 + 1.0)) * dVar3,\n                                  dVar3 * (double)DAT_002a7fe8,\n                                  ((-dVar33 * local_f4 * dVar29 * dVar29) / dVar32) * dVar3,\n                                  (local_f4 / (dVar12 - dVar31)) * dVar3);\n              local_10c = dVar30 * dVar32 + pdVar7[2];\n              local_f4 = local_f4 + pdVar7[3];\n              break;\n            case Plane2CylinderDistortion:\n              dVar31 = pdVar7[1];\n              local_14c = (DAT_0029f740 * dVar31 - ABS(dVar33 - pdVar7[4])) / dVar3 +\n                          (double)DAT_0029f124;\n              if (0.0 < local_14c) {\n                dVar33 = (dVar33 - pdVar7[4]) / dVar31;\n                dVar32 = cos(dVar33);\n                dVar32 = (double)DAT_0029f718 / dVar32;\n                dVar33 = tan(dVar33);\n                dVar33 = dVar33 * dVar31;\n                dVar12 = (dVar12 - pdVar7[5]) * dVar32;\n                ScaleResampleFilter(*ppRVar1,dVar32 * dVar32 * dVar3,dVar3 * 0.0,\n                                    ((dVar32 * dVar12) / dVar31) * dVar3,dVar3 * dVar32);\n              }\n              local_10c = dVar33 + pdVar7[2];\n              local_f4 = dVar12 + pdVar7[3];\n              break;\n            case BarrelDistortion:\n            case BarrelInverseDistortion:\n              dVar33 = dVar33 - pdVar7[8];\n              dVar12 = dVar12 - pdVar7[9];\n              dVar32 = dVar12 * dVar12 + dVar33 * dVar33;\n              dVar31 = SQRT(dVar32);\n              if (dVar32 < 0.0) {\n                sqrt(dVar32);\n                DVar17 = *this->method;\n              }\n              dVar32 = pdVar7[7];\n              local_13c = pdVar7[3];\n              if (DAT_0029f138 < dVar31) {\n                dVar30 = pdVar7[1];\n                local_13c = ((*pdVar7 * dVar31 + dVar30) * dVar31 + pdVar7[2]) * dVar31 + local_13c;\n                dVar29 = pdVar7[5];\n                dVar32 = ((pdVar7[4] * dVar31 + dVar29) * dVar31 + pdVar7[6]) * dVar31 + dVar32;\n                dVar30 = ((dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31) * dVar31 +\n                         pdVar7[2]) / dVar31;\n                dVar31 = ((dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31) * dVar31 +\n                         pdVar7[6]) / dVar31;\n                if (DVar17 == BarrelInverseDistortion) {\n                  local_13c = 1.0 / local_13c;\n                  dVar32 = 1.0 / dVar32;\n                  dVar30 = dVar30 * -local_13c * local_13c;\n                  dVar31 = -dVar32 * dVar32 * dVar31;\n                }\n                local_10c = local_13c * dVar33 + pdVar7[8];\n                local_f4 = dVar32 * dVar12 + pdVar7[9];\n                ScaleResampleFilter(*ppRVar1,(dVar30 * dVar33 * dVar33 + local_13c) * dVar3,\n                                    dVar12 * dVar30 * dVar33 * dVar3,\n                                    dVar31 * dVar33 * dVar12 * dVar3,\n                                    (dVar31 * dVar12 * dVar12 + dVar32) * dVar3);\n              }\n              else {\n                if (DVar17 != BarrelDistortion) {\n                  dVar32 = 1.0 / dVar32;\n                  local_13c = 1.0 / local_13c;\n                }\n                ScaleResampleFilter(*ppRVar1,dVar3 * local_13c,dVar3 * (double)DAT_002a7fe8,\n                                    dVar3 * (double)DAT_002a7fe8,dVar32 * dVar3);\n              }\n              break;\n            case ShepardsDistortion:\n              if (sVar9 == 0) {\n                dVar31 = 0.0;\n                dVar30 = 0.0;\n                dVar32 = 0.0;\n              }\n              else {\n                dVar31 = 0.0;\n                dVar32 = 0.0;\n                dVar30 = 0.0;\n                pdVar25 = pdVar6;\n                do {\n                  dVar29 = pow((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7);\n                  if (dVar29 < 1.0) {\n                    dVar29 = 1.0;\n                  }\n                  else {\n                    dVar29 = 1.0 / dVar29;\n                  }\n                  pdVar26 = pdVar25 + 4;\n                  dVar30 = (*pdVar25 - pdVar25[2]) * dVar29 + dVar30;\n                  dVar32 = (pdVar25[1] - pdVar25[3]) * dVar29 + dVar32;\n                  dVar31 = dVar31 + dVar29;\n                  pdVar25 = pdVar26;\n                } while ((double *)((int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20) != pdVar26);\n              }\n              local_f4 = dVar12 + dVar32 / dVar31;\n              local_10c = dVar30 / dVar31 + dVar33;\n            }\n            dVar12 = local_f4;\n            if (MVar8 != MagickFalse) {\nLAB_000852c3:\n              dVar33 = local_10c;\n              if (*this->method != ArcDistortion) {\nLAB_000852cf:\n                local_10c = dVar33 - (double)(image->page).x;\n                dVar12 = dVar12 - (double)(image->page).y;\n              }\n            }\njoined_r0x000857af:\n            if (local_14c <= 0.0) {\n              pPVar23 = this->invalid;\n              pPVar20 = pIVar4->channel_map;\n              pQVar16[pPVar20->offset] = pPVar23->red;\n              pQVar16[pPVar20[1].offset] = pPVar23->green;\n              pQVar16[pPVar20[2].offset] = pPVar23->blue;\n              if (pPVar20[3].traits != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = pPVar23->black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                if (pPVar23->alpha_trait == UndefinedPixelTrait) goto LAB_00085d68;\n                dVar33 = pPVar23->alpha;\n                goto LAB_000853cb;\n              }\n            }\n            else {\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              if (local_14c < 1.0) {\n                pPVar23 = this->invalid;\n                dVar12 = local_70.alpha * local_14c * _DAT_0029f148;\n                dVar31 = pPVar23->alpha * (1.0 - local_14c) * _DAT_0029f148;\n                dVar33 = dVar12 + dVar31;\n                if (dVar33 < 0.0) {\n                  dVar33 = 0.0;\n                  local_70.alpha = 0.0;\n                }\n                else if (dVar33 <= 1.0) {\n                  local_70.alpha = dVar33 * (double)DAT_0029f710;\n                }\n                else {\n                  dVar33 = 1.0;\n                  local_70.alpha = (MagickRealType)DAT_0029f710;\n                }\n                dVar32 = DAT_0029f738;\n                if (DAT_0029f138 <= dVar33) {\n                  dVar32 = (double)DAT_0029f718 / dVar33;\n                }\n                local_70.red = (pPVar23->red * dVar31 + local_70.red * dVar12) * dVar32;\n                local_70.green = (pPVar23->green * dVar31 + local_70.green * dVar12) * dVar32;\n                local_70.blue = (pPVar23->blue * dVar31 + local_70.blue * dVar12) * dVar32;\n                if (pPVar23->colorspace == CMYKColorspace) {\n                  local_70.black = dVar32 * (dVar31 * pPVar23->black + dVar12 * local_70.black);\n                }\n              }\nLAB_00085370:\n              pPVar20 = pIVar4->channel_map;\n              PVar10 = pPVar20[3].traits;\n              pQVar16[pPVar20->offset] = local_70.red;\n              pQVar16[pPVar20[1].offset] = local_70.green;\n              pQVar16[pPVar20[2].offset] = local_70.blue;\n              if (PVar10 != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = local_70.black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                dVar33 = local_70.alpha;\n                if (local_70.alpha_trait == UndefinedPixelTrait) {\nLAB_00085d68:\n                  dVar33 = (double)DAT_0029f710;\n                }\nLAB_000853cb:\n                pQVar16[pPVar20[4].offset] = dVar33;\n              }\n            }\n            local_15c = local_15c + 1;\n            pQVar16 = pQVar16 + pIVar4->number_channels;\n          } while (local_15c < (int)pIVar4->columns);\n        }\n        MVar18 = SyncCacheViewAuthenticPixels(cache_view,exception);\n        if (MVar18 == MagickFalse) {\n          this->status = MagickFalse;\n        }\n        if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n          puVar11 = (uint *)this->progress;\n          uVar19 = *puVar11;\n          uVar22 = puVar11[1];\n          do {\n            LOCK();\n            lVar2 = *(longlong *)puVar11;\n            bVar27 = CONCAT44(uVar22,uVar19) == lVar2;\n            if (bVar27) {\n              *(longlong *)puVar11 = CONCAT44(uVar22 + (0xfffffffe < uVar19),uVar19 + 1);\n            }\n            else {\n              uVar22 = (uint)((ulonglong)lVar2 >> 0x20);\n              uVar19 = (uint)lVar2;\n            }\n            UNLOCK();\n          } while (!bVar27);\n          MVar18 = SetImageProgress(image,"Distort/Image",*this->progress,(ulonglong)image->rows);\n          if (MVar18 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    }" { (expression_statement "iVar14 = omp_get_thread_num();" (assignment_expression "iVar14 = omp_get_thread_num()" identifier = (call_expression "omp_get_thread_num()" identifier (argument_list "()" ( )))) ;) (expression_statement "pQVar16 = QueueCacheViewAuthenticPixels(cache_view,0,local_140,pIVar4->columns,1,exception);" (assignment_expression "pQVar16 = QueueCacheViewAuthenticPixels(cache_view,0,local_140,pIVar4->columns,1,exception)" identifier = (call_expression "QueueCacheViewAuthenticPixels(cache_view,0,local_140,pIVar4->columns,1,exception)" identifier (argument_list "(cache_view,0,local_140,pIVar4->columns,1,exception)" ( identifier , number_literal , identifier , (field_expression "pIVar4->columns" identifier -> field_identifier) , number_literal , identifier )))) ;) (if_statement "if (pQVar16 == (Quantum *)0x0) {\n        this->status = MagickFalse;\n      }\n      else {\n        pPVar23 = this->zero;\n        pPVar24 = &local_70;\n        for (iVar21 = 0x14; iVar21 != 0; iVar21 = iVar21 + -1) {\n          pPVar24->storage_class = pPVar23->storage_class;\n          pPVar23 = (PixelInfo *)((int)pPVar23 + (uint)bVar28 * -8 + 4);\n          pPVar24 = (PixelInfo *)((int)pPVar24 + (uint)bVar28 * -8 + 4);\n        }\n        if ((*this->method == AffineDistortion) || (*this->method == RigidAffineDistortion)) {\n          ScaleResampleFilter(ppRVar5[iVar14],dVar3 * *pdVar7,pdVar7[1] * dVar3,pdVar7[3] * dVar3,\n                              pdVar7[4] * dVar3);\n        }\n        if (0 < (int)pIVar4->columns) {\n          local_14c = 1.0;\n          ppRVar1 = ppRVar5 + iVar14;\n          local_15c = 0;\n          do {\n            dVar33 = ((double)(local_15c + this->geometry->x) + (double)DAT_0029f124) * dVar3;\n            DVar17 = *this->method;\n            dVar12 = dVar3 * ((double)(local_140 + this->geometry->y) + (double)DAT_0029f124);\n            local_f4 = dVar12;\n            local_10c = dVar33;\n            switch(DVar17) {\n            case AffineDistortion:\n            case RigidAffineDistortion:\n              local_f4 = dVar12 * pdVar7[4] + dVar33 * pdVar7[3] + pdVar7[5];\n              local_10c = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              break;\n            case PerspectiveDistortion:\n              dVar31 = pdVar7[6];\n              dVar32 = pdVar7[7];\n              dVar30 = dVar12 * dVar32 + dVar33 * dVar31 + 1.0;\n              dVar29 = pdVar7[8] * dVar30;\n              local_14c = 0.0;\n              if (0.0 <= dVar29) {\n                local_14c = 1.0;\n              }\n              dVar13 = ABS(dVar30) + ABS(dVar30);\n              if (ABS(dVar31) <= ABS(dVar32)) {\n                if (dVar13 < ABS(dVar32) * dVar3) {\n                  local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar32);\n                }\n              }\n              else if (dVar13 < ABS(dVar31) * dVar3) {\n                local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar31);\n              }\n              if (local_14c <= 0.0) goto LAB_00085796;\n              dVar29 = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              dVar33 = pdVar7[3] * dVar33 + dVar12 * pdVar7[4] + pdVar7[5];\n              dVar12 = (double)DAT_0029f718 / dVar30;\n              local_10c = dVar29 * dVar12;\n              local_f4 = dVar33 * dVar12;\n              dVar12 = dVar12 * dVar12;\n              ScaleResampleFilter(*ppRVar1,dVar3 * (dVar30 * *pdVar7 - dVar29 * dVar31) * dVar12,\n                                  (pdVar7[1] * dVar30 - dVar32 * dVar29) * dVar12 * dVar3,\n                                  (pdVar7[3] * dVar30 - dVar33 * dVar31) * dVar12 * dVar3,\n                                  (pdVar7[4] * dVar30 - dVar33 * dVar32) * dVar12 * dVar3);\n              break;\n            case BilinearDistortion:\n              dVar13 = dVar33 - pdVar7[3];\n              local_12c = pdVar7[2];\n              dVar29 = (pdVar7[6] * dVar13 - (dVar12 - pdVar7[7]) * local_12c) + pdVar7[8];\n              dVar31 = *pdVar7;\n              dVar30 = pdVar7[4] * dVar13 - (dVar12 - pdVar7[7]) * dVar31;\n              dVar32 = pdVar7[9];\n              if (ABS(dVar32) < DAT_0029f138) {\n                dVar12 = -dVar30 / dVar29;\n              }\n              else {\n                dVar30 = dVar29 * dVar29 - (dVar32 + dVar32) * dVar30;\n                local_14c = 0.0;\n                if (dVar30 < 0.0) goto LAB_00085796;\n                if (dVar30 < 0.0) {\n                  sqrt(dVar30);\n                  dVar32 = pdVar7[9];\n                  dVar31 = *pdVar7;\n                  local_12c = pdVar7[2];\n                }\n                dVar12 = (SQRT(dVar30) - dVar29) / dVar32;\n              }\n              local_10c = (dVar13 - pdVar7[1] * dVar12) / (local_12c * dVar12 + dVar31);\n              if (MVar8 != MagickFalse) {\n                local_14c = 1.0;\n                goto LAB_000852c3;\n              }\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              local_14c = 1.0;\n              goto LAB_00085370;\n            case BilinearReverseDistortion:\n              dVar31 = pdVar7[2] * dVar33;\n              local_10c = pdVar7[3] + dVar31 * dVar12 + dVar12 * pdVar7[1] + *pdVar7 * dVar33;\n              dVar32 = dVar33 * pdVar7[6];\n              local_f4 = dVar12 * dVar32 + dVar12 * pdVar7[5] + dVar33 * pdVar7[4] + pdVar7[7];\n              ScaleResampleFilter(*ppRVar1,(dVar12 * pdVar7[2] + *pdVar7) * dVar3,\n                                  (pdVar7[1] + dVar31) * dVar3,\n                                  (pdVar7[6] * dVar12 + pdVar7[4]) * dVar3,\n                                  (pdVar7[5] + dVar32) * dVar3);\n              break;\n            case PolynomialDistortion:\n              iVar14 = (int)ROUND(pdVar7[1]);\n              if (iVar14 < 1) {\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n              }\n              else {\n                iVar21 = 0;\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n                do {\n                  n = iVar21;\n                  dVar32 = poly_basis_fn(iVar21,dVar33,dVar12);\n                  dVar31 = pdVar7[iVar21 + 2];\n                  local_10c = dVar32 * dVar31 + local_10c;\n                  dVar30 = poly_basis_dx(n,dVar33,dVar12);\n                  local_114 = dVar31 * dVar30 + local_114;\n                  switch(iVar21) {\n                  case 0:\n                  case 1:\n                  case 4:\n                    dVar31 = dVar31 * 0.0;\n                    dVar29 = 0.0;\n                    break;\n                  case 2:\n                    dVar29 = 1.0;\n                    break;\n                  case 3:\n                    dVar31 = dVar31 * dVar33;\n                    dVar29 = dVar33;\n                    break;\n                  case 5:\n                    dVar31 = dVar31 * dVar12;\n                    dVar29 = dVar12;\n                    break;\n                  default:\n                    dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);\n                    dVar31 = dVar31 * dVar29;\n                  }\n                  local_fc = dVar31 + local_fc;\n                  dVar31 = pdVar7[iVar14 + iVar21 + 2];\n                  iVar21 = iVar21 + 1;\n                  local_f4 = dVar32 * dVar31 + local_f4;\n                  local_11c = dVar30 * dVar31 + local_11c;\n                  local_104 = dVar29 * dVar31 + local_104;\n                } while (iVar14 != iVar21);\n              }\n              ScaleResampleFilter(*ppRVar1,local_114 * dVar3,local_fc * dVar3,local_11c * dVar3,\n                                  local_104 * dVar3);\n              break;\n            case ArcDistortion:\n              dVar31 = atan2(dVar12,dVar33);\n              dVar31 = (dVar31 - *pdVar7) / DAT_002b0c28;\n              if (dVar31 - ROUND(dVar31) < ROUND(dVar31) - dVar31) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar33 = hypot(dVar33,dVar12);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[1] / (dVar33 * DAT_002b0c28)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              local_10c = (double)(image->page).x + (dVar31 - ROUND(dVar31)) * pdVar7[1] + pdVar7[4]\n                          + (double)DAT_0029f124;\n              local_f4 = (double)(image->page).y + (pdVar7[2] - dVar33) * pdVar7[3];\n              break;\n            case PolarDistortion:\n              dVar31 = pdVar7[2];\n              dVar32 = pdVar7[3];\n              dVar30 = atan2(dVar33 - dVar31,dVar12 - dVar32);\n              dVar29 = DAT_002b0c28;\n              dVar30 = (dVar30 - (pdVar7[4] + pdVar7[5]) * (double)DAT_0029f124) / DAT_002b0c28;\n              if (dVar30 - ROUND(dVar30) < ROUND(dVar30) - dVar30) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar30 = DAT_002b0c28 * (dVar30 - ROUND(dVar30));\n              dVar33 = hypot(dVar33 - dVar31,dVar12 - dVar32);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[6] / (dVar29 * dVar33)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              local_13c = (double)(ulonglong)image->columns;\n              local_10c = (double)(image->page).x +\n                          (double)(longlong)local_13c * (double)DAT_0029f124 + dVar30 * pdVar7[6];\n              local_f4 = (double)(image->page).y + (dVar33 - pdVar7[1]) * pdVar7[7];\n              break;\n            case DePolarDistortion:\n              dVar33 = (double)DAT_0029f124;\n              sincos((double)(((float)local_15c + DAT_0029f124) * (float)dVar3 * (float)pdVar7[6] +\n                             (float)pdVar7[4]),local_84,&local_8c);\n              dVar12 = (dVar33 + (double)local_140) * dVar3 * pdVar7[7] + pdVar7[1];\n              dVar33 = local_84[0] * dVar12 + pdVar7[2];\n              dVar12 = dVar12 * local_8c + pdVar7[3];\nLAB_00085796:\n              local_10c = dVar33;\n              if (MVar8 != MagickFalse) goto LAB_000852cf;\n              goto joined_r0x000857af;\n            case Cylinder2PlaneDistortion:\n              dVar31 = pdVar7[5];\n              dVar32 = pdVar7[1];\n              dVar33 = (dVar33 - pdVar7[4]) / dVar32;\n              dVar30 = atan(dVar33);\n              dVar29 = cos(dVar30);\n              local_f4 = (dVar12 - dVar31) * dVar29;\n              ScaleResampleFilter(*ppRVar1,(1.0 / (dVar33 * dVar33 + 1.0)) * dVar3,\n                                  dVar3 * (double)DAT_002a7fe8,\n                                  ((-dVar33 * local_f4 * dVar29 * dVar29) / dVar32) * dVar3,\n                                  (local_f4 / (dVar12 - dVar31)) * dVar3);\n              local_10c = dVar30 * dVar32 + pdVar7[2];\n              local_f4 = local_f4 + pdVar7[3];\n              break;\n            case Plane2CylinderDistortion:\n              dVar31 = pdVar7[1];\n              local_14c = (DAT_0029f740 * dVar31 - ABS(dVar33 - pdVar7[4])) / dVar3 +\n                          (double)DAT_0029f124;\n              if (0.0 < local_14c) {\n                dVar33 = (dVar33 - pdVar7[4]) / dVar31;\n                dVar32 = cos(dVar33);\n                dVar32 = (double)DAT_0029f718 / dVar32;\n                dVar33 = tan(dVar33);\n                dVar33 = dVar33 * dVar31;\n                dVar12 = (dVar12 - pdVar7[5]) * dVar32;\n                ScaleResampleFilter(*ppRVar1,dVar32 * dVar32 * dVar3,dVar3 * 0.0,\n                                    ((dVar32 * dVar12) / dVar31) * dVar3,dVar3 * dVar32);\n              }\n              local_10c = dVar33 + pdVar7[2];\n              local_f4 = dVar12 + pdVar7[3];\n              break;\n            case BarrelDistortion:\n            case BarrelInverseDistortion:\n              dVar33 = dVar33 - pdVar7[8];\n              dVar12 = dVar12 - pdVar7[9];\n              dVar32 = dVar12 * dVar12 + dVar33 * dVar33;\n              dVar31 = SQRT(dVar32);\n              if (dVar32 < 0.0) {\n                sqrt(dVar32);\n                DVar17 = *this->method;\n              }\n              dVar32 = pdVar7[7];\n              local_13c = pdVar7[3];\n              if (DAT_0029f138 < dVar31) {\n                dVar30 = pdVar7[1];\n                local_13c = ((*pdVar7 * dVar31 + dVar30) * dVar31 + pdVar7[2]) * dVar31 + local_13c;\n                dVar29 = pdVar7[5];\n                dVar32 = ((pdVar7[4] * dVar31 + dVar29) * dVar31 + pdVar7[6]) * dVar31 + dVar32;\n                dVar30 = ((dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31) * dVar31 +\n                         pdVar7[2]) / dVar31;\n                dVar31 = ((dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31) * dVar31 +\n                         pdVar7[6]) / dVar31;\n                if (DVar17 == BarrelInverseDistortion) {\n                  local_13c = 1.0 / local_13c;\n                  dVar32 = 1.0 / dVar32;\n                  dVar30 = dVar30 * -local_13c * local_13c;\n                  dVar31 = -dVar32 * dVar32 * dVar31;\n                }\n                local_10c = local_13c * dVar33 + pdVar7[8];\n                local_f4 = dVar32 * dVar12 + pdVar7[9];\n                ScaleResampleFilter(*ppRVar1,(dVar30 * dVar33 * dVar33 + local_13c) * dVar3,\n                                    dVar12 * dVar30 * dVar33 * dVar3,\n                                    dVar31 * dVar33 * dVar12 * dVar3,\n                                    (dVar31 * dVar12 * dVar12 + dVar32) * dVar3);\n              }\n              else {\n                if (DVar17 != BarrelDistortion) {\n                  dVar32 = 1.0 / dVar32;\n                  local_13c = 1.0 / local_13c;\n                }\n                ScaleResampleFilter(*ppRVar1,dVar3 * local_13c,dVar3 * (double)DAT_002a7fe8,\n                                    dVar3 * (double)DAT_002a7fe8,dVar32 * dVar3);\n              }\n              break;\n            case ShepardsDistortion:\n              if (sVar9 == 0) {\n                dVar31 = 0.0;\n                dVar30 = 0.0;\n                dVar32 = 0.0;\n              }\n              else {\n                dVar31 = 0.0;\n                dVar32 = 0.0;\n                dVar30 = 0.0;\n                pdVar25 = pdVar6;\n                do {\n                  dVar29 = pow((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7);\n                  if (dVar29 < 1.0) {\n                    dVar29 = 1.0;\n                  }\n                  else {\n                    dVar29 = 1.0 / dVar29;\n                  }\n                  pdVar26 = pdVar25 + 4;\n                  dVar30 = (*pdVar25 - pdVar25[2]) * dVar29 + dVar30;\n                  dVar32 = (pdVar25[1] - pdVar25[3]) * dVar29 + dVar32;\n                  dVar31 = dVar31 + dVar29;\n                  pdVar25 = pdVar26;\n                } while ((double *)((int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20) != pdVar26);\n              }\n              local_f4 = dVar12 + dVar32 / dVar31;\n              local_10c = dVar30 / dVar31 + dVar33;\n            }\n            dVar12 = local_f4;\n            if (MVar8 != MagickFalse) {\nLAB_000852c3:\n              dVar33 = local_10c;\n              if (*this->method != ArcDistortion) {\nLAB_000852cf:\n                local_10c = dVar33 - (double)(image->page).x;\n                dVar12 = dVar12 - (double)(image->page).y;\n              }\n            }\njoined_r0x000857af:\n            if (local_14c <= 0.0) {\n              pPVar23 = this->invalid;\n              pPVar20 = pIVar4->channel_map;\n              pQVar16[pPVar20->offset] = pPVar23->red;\n              pQVar16[pPVar20[1].offset] = pPVar23->green;\n              pQVar16[pPVar20[2].offset] = pPVar23->blue;\n              if (pPVar20[3].traits != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = pPVar23->black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                if (pPVar23->alpha_trait == UndefinedPixelTrait) goto LAB_00085d68;\n                dVar33 = pPVar23->alpha;\n                goto LAB_000853cb;\n              }\n            }\n            else {\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              if (local_14c < 1.0) {\n                pPVar23 = this->invalid;\n                dVar12 = local_70.alpha * local_14c * _DAT_0029f148;\n                dVar31 = pPVar23->alpha * (1.0 - local_14c) * _DAT_0029f148;\n                dVar33 = dVar12 + dVar31;\n                if (dVar33 < 0.0) {\n                  dVar33 = 0.0;\n                  local_70.alpha = 0.0;\n                }\n                else if (dVar33 <= 1.0) {\n                  local_70.alpha = dVar33 * (double)DAT_0029f710;\n                }\n                else {\n                  dVar33 = 1.0;\n                  local_70.alpha = (MagickRealType)DAT_0029f710;\n                }\n                dVar32 = DAT_0029f738;\n                if (DAT_0029f138 <= dVar33) {\n                  dVar32 = (double)DAT_0029f718 / dVar33;\n                }\n                local_70.red = (pPVar23->red * dVar31 + local_70.red * dVar12) * dVar32;\n                local_70.green = (pPVar23->green * dVar31 + local_70.green * dVar12) * dVar32;\n                local_70.blue = (pPVar23->blue * dVar31 + local_70.blue * dVar12) * dVar32;\n                if (pPVar23->colorspace == CMYKColorspace) {\n                  local_70.black = dVar32 * (dVar31 * pPVar23->black + dVar12 * local_70.black);\n                }\n              }\nLAB_00085370:\n              pPVar20 = pIVar4->channel_map;\n              PVar10 = pPVar20[3].traits;\n              pQVar16[pPVar20->offset] = local_70.red;\n              pQVar16[pPVar20[1].offset] = local_70.green;\n              pQVar16[pPVar20[2].offset] = local_70.blue;\n              if (PVar10 != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = local_70.black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                dVar33 = local_70.alpha;\n                if (local_70.alpha_trait == UndefinedPixelTrait) {\nLAB_00085d68:\n                  dVar33 = (double)DAT_0029f710;\n                }\nLAB_000853cb:\n                pQVar16[pPVar20[4].offset] = dVar33;\n              }\n            }\n            local_15c = local_15c + 1;\n            pQVar16 = pQVar16 + pIVar4->number_channels;\n          } while (local_15c < (int)pIVar4->columns);\n        }\n        MVar18 = SyncCacheViewAuthenticPixels(cache_view,exception);\n        if (MVar18 == MagickFalse) {\n          this->status = MagickFalse;\n        }\n        if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n          puVar11 = (uint *)this->progress;\n          uVar19 = *puVar11;\n          uVar22 = puVar11[1];\n          do {\n            LOCK();\n            lVar2 = *(longlong *)puVar11;\n            bVar27 = CONCAT44(uVar22,uVar19) == lVar2;\n            if (bVar27) {\n              *(longlong *)puVar11 = CONCAT44(uVar22 + (0xfffffffe < uVar19),uVar19 + 1);\n            }\n            else {\n              uVar22 = (uint)((ulonglong)lVar2 >> 0x20);\n              uVar19 = (uint)lVar2;\n            }\n            UNLOCK();\n          } while (!bVar27);\n          MVar18 = SetImageProgress(image,"Distort/Image",*this->progress,(ulonglong)image->rows);\n          if (MVar18 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n        }\n      }" if (parenthesized_expression "(pQVar16 == (Quantum *)0x0)" ( (binary_expression "pQVar16 == (Quantum *)0x0" identifier == (cast_expression "(Quantum *)0x0" ( (type_descriptor "Quantum *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (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) ;) }) (else_clause "else {\n        pPVar23 = this->zero;\n        pPVar24 = &local_70;\n        for (iVar21 = 0x14; iVar21 != 0; iVar21 = iVar21 + -1) {\n          pPVar24->storage_class = pPVar23->storage_class;\n          pPVar23 = (PixelInfo *)((int)pPVar23 + (uint)bVar28 * -8 + 4);\n          pPVar24 = (PixelInfo *)((int)pPVar24 + (uint)bVar28 * -8 + 4);\n        }\n        if ((*this->method == AffineDistortion) || (*this->method == RigidAffineDistortion)) {\n          ScaleResampleFilter(ppRVar5[iVar14],dVar3 * *pdVar7,pdVar7[1] * dVar3,pdVar7[3] * dVar3,\n                              pdVar7[4] * dVar3);\n        }\n        if (0 < (int)pIVar4->columns) {\n          local_14c = 1.0;\n          ppRVar1 = ppRVar5 + iVar14;\n          local_15c = 0;\n          do {\n            dVar33 = ((double)(local_15c + this->geometry->x) + (double)DAT_0029f124) * dVar3;\n            DVar17 = *this->method;\n            dVar12 = dVar3 * ((double)(local_140 + this->geometry->y) + (double)DAT_0029f124);\n            local_f4 = dVar12;\n            local_10c = dVar33;\n            switch(DVar17) {\n            case AffineDistortion:\n            case RigidAffineDistortion:\n              local_f4 = dVar12 * pdVar7[4] + dVar33 * pdVar7[3] + pdVar7[5];\n              local_10c = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              break;\n            case PerspectiveDistortion:\n              dVar31 = pdVar7[6];\n              dVar32 = pdVar7[7];\n              dVar30 = dVar12 * dVar32 + dVar33 * dVar31 + 1.0;\n              dVar29 = pdVar7[8] * dVar30;\n              local_14c = 0.0;\n              if (0.0 <= dVar29) {\n                local_14c = 1.0;\n              }\n              dVar13 = ABS(dVar30) + ABS(dVar30);\n              if (ABS(dVar31) <= ABS(dVar32)) {\n                if (dVar13 < ABS(dVar32) * dVar3) {\n                  local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar32);\n                }\n              }\n              else if (dVar13 < ABS(dVar31) * dVar3) {\n                local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar31);\n              }\n              if (local_14c <= 0.0) goto LAB_00085796;\n              dVar29 = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              dVar33 = pdVar7[3] * dVar33 + dVar12 * pdVar7[4] + pdVar7[5];\n              dVar12 = (double)DAT_0029f718 / dVar30;\n              local_10c = dVar29 * dVar12;\n              local_f4 = dVar33 * dVar12;\n              dVar12 = dVar12 * dVar12;\n              ScaleResampleFilter(*ppRVar1,dVar3 * (dVar30 * *pdVar7 - dVar29 * dVar31) * dVar12,\n                                  (pdVar7[1] * dVar30 - dVar32 * dVar29) * dVar12 * dVar3,\n                                  (pdVar7[3] * dVar30 - dVar33 * dVar31) * dVar12 * dVar3,\n                                  (pdVar7[4] * dVar30 - dVar33 * dVar32) * dVar12 * dVar3);\n              break;\n            case BilinearDistortion:\n              dVar13 = dVar33 - pdVar7[3];\n              local_12c = pdVar7[2];\n              dVar29 = (pdVar7[6] * dVar13 - (dVar12 - pdVar7[7]) * local_12c) + pdVar7[8];\n              dVar31 = *pdVar7;\n              dVar30 = pdVar7[4] * dVar13 - (dVar12 - pdVar7[7]) * dVar31;\n              dVar32 = pdVar7[9];\n              if (ABS(dVar32) < DAT_0029f138) {\n                dVar12 = -dVar30 / dVar29;\n              }\n              else {\n                dVar30 = dVar29 * dVar29 - (dVar32 + dVar32) * dVar30;\n                local_14c = 0.0;\n                if (dVar30 < 0.0) goto LAB_00085796;\n                if (dVar30 < 0.0) {\n                  sqrt(dVar30);\n                  dVar32 = pdVar7[9];\n                  dVar31 = *pdVar7;\n                  local_12c = pdVar7[2];\n                }\n                dVar12 = (SQRT(dVar30) - dVar29) / dVar32;\n              }\n              local_10c = (dVar13 - pdVar7[1] * dVar12) / (local_12c * dVar12 + dVar31);\n              if (MVar8 != MagickFalse) {\n                local_14c = 1.0;\n                goto LAB_000852c3;\n              }\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              local_14c = 1.0;\n              goto LAB_00085370;\n            case BilinearReverseDistortion:\n              dVar31 = pdVar7[2] * dVar33;\n              local_10c = pdVar7[3] + dVar31 * dVar12 + dVar12 * pdVar7[1] + *pdVar7 * dVar33;\n              dVar32 = dVar33 * pdVar7[6];\n              local_f4 = dVar12 * dVar32 + dVar12 * pdVar7[5] + dVar33 * pdVar7[4] + pdVar7[7];\n              ScaleResampleFilter(*ppRVar1,(dVar12 * pdVar7[2] + *pdVar7) * dVar3,\n                                  (pdVar7[1] + dVar31) * dVar3,\n                                  (pdVar7[6] * dVar12 + pdVar7[4]) * dVar3,\n                                  (pdVar7[5] + dVar32) * dVar3);\n              break;\n            case PolynomialDistortion:\n              iVar14 = (int)ROUND(pdVar7[1]);\n              if (iVar14 < 1) {\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n              }\n              else {\n                iVar21 = 0;\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n                do {\n                  n = iVar21;\n                  dVar32 = poly_basis_fn(iVar21,dVar33,dVar12);\n                  dVar31 = pdVar7[iVar21 + 2];\n                  local_10c = dVar32 * dVar31 + local_10c;\n                  dVar30 = poly_basis_dx(n,dVar33,dVar12);\n                  local_114 = dVar31 * dVar30 + local_114;\n                  switch(iVar21) {\n                  case 0:\n                  case 1:\n                  case 4:\n                    dVar31 = dVar31 * 0.0;\n                    dVar29 = 0.0;\n                    break;\n                  case 2:\n                    dVar29 = 1.0;\n                    break;\n                  case 3:\n                    dVar31 = dVar31 * dVar33;\n                    dVar29 = dVar33;\n                    break;\n                  case 5:\n                    dVar31 = dVar31 * dVar12;\n                    dVar29 = dVar12;\n                    break;\n                  default:\n                    dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);\n                    dVar31 = dVar31 * dVar29;\n                  }\n                  local_fc = dVar31 + local_fc;\n                  dVar31 = pdVar7[iVar14 + iVar21 + 2];\n                  iVar21 = iVar21 + 1;\n                  local_f4 = dVar32 * dVar31 + local_f4;\n                  local_11c = dVar30 * dVar31 + local_11c;\n                  local_104 = dVar29 * dVar31 + local_104;\n                } while (iVar14 != iVar21);\n              }\n              ScaleResampleFilter(*ppRVar1,local_114 * dVar3,local_fc * dVar3,local_11c * dVar3,\n                                  local_104 * dVar3);\n              break;\n            case ArcDistortion:\n              dVar31 = atan2(dVar12,dVar33);\n              dVar31 = (dVar31 - *pdVar7) / DAT_002b0c28;\n              if (dVar31 - ROUND(dVar31) < ROUND(dVar31) - dVar31) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar33 = hypot(dVar33,dVar12);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[1] / (dVar33 * DAT_002b0c28)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              local_10c = (double)(image->page).x + (dVar31 - ROUND(dVar31)) * pdVar7[1] + pdVar7[4]\n                          + (double)DAT_0029f124;\n              local_f4 = (double)(image->page).y + (pdVar7[2] - dVar33) * pdVar7[3];\n              break;\n            case PolarDistortion:\n              dVar31 = pdVar7[2];\n              dVar32 = pdVar7[3];\n              dVar30 = atan2(dVar33 - dVar31,dVar12 - dVar32);\n              dVar29 = DAT_002b0c28;\n              dVar30 = (dVar30 - (pdVar7[4] + pdVar7[5]) * (double)DAT_0029f124) / DAT_002b0c28;\n              if (dVar30 - ROUND(dVar30) < ROUND(dVar30) - dVar30) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar30 = DAT_002b0c28 * (dVar30 - ROUND(dVar30));\n              dVar33 = hypot(dVar33 - dVar31,dVar12 - dVar32);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[6] / (dVar29 * dVar33)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              local_13c = (double)(ulonglong)image->columns;\n              local_10c = (double)(image->page).x +\n                          (double)(longlong)local_13c * (double)DAT_0029f124 + dVar30 * pdVar7[6];\n              local_f4 = (double)(image->page).y + (dVar33 - pdVar7[1]) * pdVar7[7];\n              break;\n            case DePolarDistortion:\n              dVar33 = (double)DAT_0029f124;\n              sincos((double)(((float)local_15c + DAT_0029f124) * (float)dVar3 * (float)pdVar7[6] +\n                             (float)pdVar7[4]),local_84,&local_8c);\n              dVar12 = (dVar33 + (double)local_140) * dVar3 * pdVar7[7] + pdVar7[1];\n              dVar33 = local_84[0] * dVar12 + pdVar7[2];\n              dVar12 = dVar12 * local_8c + pdVar7[3];\nLAB_00085796:\n              local_10c = dVar33;\n              if (MVar8 != MagickFalse) goto LAB_000852cf;\n              goto joined_r0x000857af;\n            case Cylinder2PlaneDistortion:\n              dVar31 = pdVar7[5];\n              dVar32 = pdVar7[1];\n              dVar33 = (dVar33 - pdVar7[4]) / dVar32;\n              dVar30 = atan(dVar33);\n              dVar29 = cos(dVar30);\n              local_f4 = (dVar12 - dVar31) * dVar29;\n              ScaleResampleFilter(*ppRVar1,(1.0 / (dVar33 * dVar33 + 1.0)) * dVar3,\n                                  dVar3 * (double)DAT_002a7fe8,\n                                  ((-dVar33 * local_f4 * dVar29 * dVar29) / dVar32) * dVar3,\n                                  (local_f4 / (dVar12 - dVar31)) * dVar3);\n              local_10c = dVar30 * dVar32 + pdVar7[2];\n              local_f4 = local_f4 + pdVar7[3];\n              break;\n            case Plane2CylinderDistortion:\n              dVar31 = pdVar7[1];\n              local_14c = (DAT_0029f740 * dVar31 - ABS(dVar33 - pdVar7[4])) / dVar3 +\n                          (double)DAT_0029f124;\n              if (0.0 < local_14c) {\n                dVar33 = (dVar33 - pdVar7[4]) / dVar31;\n                dVar32 = cos(dVar33);\n                dVar32 = (double)DAT_0029f718 / dVar32;\n                dVar33 = tan(dVar33);\n                dVar33 = dVar33 * dVar31;\n                dVar12 = (dVar12 - pdVar7[5]) * dVar32;\n                ScaleResampleFilter(*ppRVar1,dVar32 * dVar32 * dVar3,dVar3 * 0.0,\n                                    ((dVar32 * dVar12) / dVar31) * dVar3,dVar3 * dVar32);\n              }\n              local_10c = dVar33 + pdVar7[2];\n              local_f4 = dVar12 + pdVar7[3];\n              break;\n            case BarrelDistortion:\n            case BarrelInverseDistortion:\n              dVar33 = dVar33 - pdVar7[8];\n              dVar12 = dVar12 - pdVar7[9];\n              dVar32 = dVar12 * dVar12 + dVar33 * dVar33;\n              dVar31 = SQRT(dVar32);\n              if (dVar32 < 0.0) {\n                sqrt(dVar32);\n                DVar17 = *this->method;\n              }\n              dVar32 = pdVar7[7];\n              local_13c = pdVar7[3];\n              if (DAT_0029f138 < dVar31) {\n                dVar30 = pdVar7[1];\n                local_13c = ((*pdVar7 * dVar31 + dVar30) * dVar31 + pdVar7[2]) * dVar31 + local_13c;\n                dVar29 = pdVar7[5];\n                dVar32 = ((pdVar7[4] * dVar31 + dVar29) * dVar31 + pdVar7[6]) * dVar31 + dVar32;\n                dVar30 = ((dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31) * dVar31 +\n                         pdVar7[2]) / dVar31;\n                dVar31 = ((dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31) * dVar31 +\n                         pdVar7[6]) / dVar31;\n                if (DVar17 == BarrelInverseDistortion) {\n                  local_13c = 1.0 / local_13c;\n                  dVar32 = 1.0 / dVar32;\n                  dVar30 = dVar30 * -local_13c * local_13c;\n                  dVar31 = -dVar32 * dVar32 * dVar31;\n                }\n                local_10c = local_13c * dVar33 + pdVar7[8];\n                local_f4 = dVar32 * dVar12 + pdVar7[9];\n                ScaleResampleFilter(*ppRVar1,(dVar30 * dVar33 * dVar33 + local_13c) * dVar3,\n                                    dVar12 * dVar30 * dVar33 * dVar3,\n                                    dVar31 * dVar33 * dVar12 * dVar3,\n                                    (dVar31 * dVar12 * dVar12 + dVar32) * dVar3);\n              }\n              else {\n                if (DVar17 != BarrelDistortion) {\n                  dVar32 = 1.0 / dVar32;\n                  local_13c = 1.0 / local_13c;\n                }\n                ScaleResampleFilter(*ppRVar1,dVar3 * local_13c,dVar3 * (double)DAT_002a7fe8,\n                                    dVar3 * (double)DAT_002a7fe8,dVar32 * dVar3);\n              }\n              break;\n            case ShepardsDistortion:\n              if (sVar9 == 0) {\n                dVar31 = 0.0;\n                dVar30 = 0.0;\n                dVar32 = 0.0;\n              }\n              else {\n                dVar31 = 0.0;\n                dVar32 = 0.0;\n                dVar30 = 0.0;\n                pdVar25 = pdVar6;\n                do {\n                  dVar29 = pow((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7);\n                  if (dVar29 < 1.0) {\n                    dVar29 = 1.0;\n                  }\n                  else {\n                    dVar29 = 1.0 / dVar29;\n                  }\n                  pdVar26 = pdVar25 + 4;\n                  dVar30 = (*pdVar25 - pdVar25[2]) * dVar29 + dVar30;\n                  dVar32 = (pdVar25[1] - pdVar25[3]) * dVar29 + dVar32;\n                  dVar31 = dVar31 + dVar29;\n                  pdVar25 = pdVar26;\n                } while ((double *)((int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20) != pdVar26);\n              }\n              local_f4 = dVar12 + dVar32 / dVar31;\n              local_10c = dVar30 / dVar31 + dVar33;\n            }\n            dVar12 = local_f4;\n            if (MVar8 != MagickFalse) {\nLAB_000852c3:\n              dVar33 = local_10c;\n              if (*this->method != ArcDistortion) {\nLAB_000852cf:\n                local_10c = dVar33 - (double)(image->page).x;\n                dVar12 = dVar12 - (double)(image->page).y;\n              }\n            }\njoined_r0x000857af:\n            if (local_14c <= 0.0) {\n              pPVar23 = this->invalid;\n              pPVar20 = pIVar4->channel_map;\n              pQVar16[pPVar20->offset] = pPVar23->red;\n              pQVar16[pPVar20[1].offset] = pPVar23->green;\n              pQVar16[pPVar20[2].offset] = pPVar23->blue;\n              if (pPVar20[3].traits != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = pPVar23->black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                if (pPVar23->alpha_trait == UndefinedPixelTrait) goto LAB_00085d68;\n                dVar33 = pPVar23->alpha;\n                goto LAB_000853cb;\n              }\n            }\n            else {\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              if (local_14c < 1.0) {\n                pPVar23 = this->invalid;\n                dVar12 = local_70.alpha * local_14c * _DAT_0029f148;\n                dVar31 = pPVar23->alpha * (1.0 - local_14c) * _DAT_0029f148;\n                dVar33 = dVar12 + dVar31;\n                if (dVar33 < 0.0) {\n                  dVar33 = 0.0;\n                  local_70.alpha = 0.0;\n                }\n                else if (dVar33 <= 1.0) {\n                  local_70.alpha = dVar33 * (double)DAT_0029f710;\n                }\n                else {\n                  dVar33 = 1.0;\n                  local_70.alpha = (MagickRealType)DAT_0029f710;\n                }\n                dVar32 = DAT_0029f738;\n                if (DAT_0029f138 <= dVar33) {\n                  dVar32 = (double)DAT_0029f718 / dVar33;\n                }\n                local_70.red = (pPVar23->red * dVar31 + local_70.red * dVar12) * dVar32;\n                local_70.green = (pPVar23->green * dVar31 + local_70.green * dVar12) * dVar32;\n                local_70.blue = (pPVar23->blue * dVar31 + local_70.blue * dVar12) * dVar32;\n                if (pPVar23->colorspace == CMYKColorspace) {\n                  local_70.black = dVar32 * (dVar31 * pPVar23->black + dVar12 * local_70.black);\n                }\n              }\nLAB_00085370:\n              pPVar20 = pIVar4->channel_map;\n              PVar10 = pPVar20[3].traits;\n              pQVar16[pPVar20->offset] = local_70.red;\n              pQVar16[pPVar20[1].offset] = local_70.green;\n              pQVar16[pPVar20[2].offset] = local_70.blue;\n              if (PVar10 != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = local_70.black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                dVar33 = local_70.alpha;\n                if (local_70.alpha_trait == UndefinedPixelTrait) {\nLAB_00085d68:\n                  dVar33 = (double)DAT_0029f710;\n                }\nLAB_000853cb:\n                pQVar16[pPVar20[4].offset] = dVar33;\n              }\n            }\n            local_15c = local_15c + 1;\n            pQVar16 = pQVar16 + pIVar4->number_channels;\n          } while (local_15c < (int)pIVar4->columns);\n        }\n        MVar18 = SyncCacheViewAuthenticPixels(cache_view,exception);\n        if (MVar18 == MagickFalse) {\n          this->status = MagickFalse;\n        }\n        if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n          puVar11 = (uint *)this->progress;\n          uVar19 = *puVar11;\n          uVar22 = puVar11[1];\n          do {\n            LOCK();\n            lVar2 = *(longlong *)puVar11;\n            bVar27 = CONCAT44(uVar22,uVar19) == lVar2;\n            if (bVar27) {\n              *(longlong *)puVar11 = CONCAT44(uVar22 + (0xfffffffe < uVar19),uVar19 + 1);\n            }\n            else {\n              uVar22 = (uint)((ulonglong)lVar2 >> 0x20);\n              uVar19 = (uint)lVar2;\n            }\n            UNLOCK();\n          } while (!bVar27);\n          MVar18 = SetImageProgress(image,"Distort/Image",*this->progress,(ulonglong)image->rows);\n          if (MVar18 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n        }\n      }" else (compound_statement "{\n        pPVar23 = this->zero;\n        pPVar24 = &local_70;\n        for (iVar21 = 0x14; iVar21 != 0; iVar21 = iVar21 + -1) {\n          pPVar24->storage_class = pPVar23->storage_class;\n          pPVar23 = (PixelInfo *)((int)pPVar23 + (uint)bVar28 * -8 + 4);\n          pPVar24 = (PixelInfo *)((int)pPVar24 + (uint)bVar28 * -8 + 4);\n        }\n        if ((*this->method == AffineDistortion) || (*this->method == RigidAffineDistortion)) {\n          ScaleResampleFilter(ppRVar5[iVar14],dVar3 * *pdVar7,pdVar7[1] * dVar3,pdVar7[3] * dVar3,\n                              pdVar7[4] * dVar3);\n        }\n        if (0 < (int)pIVar4->columns) {\n          local_14c = 1.0;\n          ppRVar1 = ppRVar5 + iVar14;\n          local_15c = 0;\n          do {\n            dVar33 = ((double)(local_15c + this->geometry->x) + (double)DAT_0029f124) * dVar3;\n            DVar17 = *this->method;\n            dVar12 = dVar3 * ((double)(local_140 + this->geometry->y) + (double)DAT_0029f124);\n            local_f4 = dVar12;\n            local_10c = dVar33;\n            switch(DVar17) {\n            case AffineDistortion:\n            case RigidAffineDistortion:\n              local_f4 = dVar12 * pdVar7[4] + dVar33 * pdVar7[3] + pdVar7[5];\n              local_10c = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              break;\n            case PerspectiveDistortion:\n              dVar31 = pdVar7[6];\n              dVar32 = pdVar7[7];\n              dVar30 = dVar12 * dVar32 + dVar33 * dVar31 + 1.0;\n              dVar29 = pdVar7[8] * dVar30;\n              local_14c = 0.0;\n              if (0.0 <= dVar29) {\n                local_14c = 1.0;\n              }\n              dVar13 = ABS(dVar30) + ABS(dVar30);\n              if (ABS(dVar31) <= ABS(dVar32)) {\n                if (dVar13 < ABS(dVar32) * dVar3) {\n                  local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar32);\n                }\n              }\n              else if (dVar13 < ABS(dVar31) * dVar3) {\n                local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar31);\n              }\n              if (local_14c <= 0.0) goto LAB_00085796;\n              dVar29 = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              dVar33 = pdVar7[3] * dVar33 + dVar12 * pdVar7[4] + pdVar7[5];\n              dVar12 = (double)DAT_0029f718 / dVar30;\n              local_10c = dVar29 * dVar12;\n              local_f4 = dVar33 * dVar12;\n              dVar12 = dVar12 * dVar12;\n              ScaleResampleFilter(*ppRVar1,dVar3 * (dVar30 * *pdVar7 - dVar29 * dVar31) * dVar12,\n                                  (pdVar7[1] * dVar30 - dVar32 * dVar29) * dVar12 * dVar3,\n                                  (pdVar7[3] * dVar30 - dVar33 * dVar31) * dVar12 * dVar3,\n                                  (pdVar7[4] * dVar30 - dVar33 * dVar32) * dVar12 * dVar3);\n              break;\n            case BilinearDistortion:\n              dVar13 = dVar33 - pdVar7[3];\n              local_12c = pdVar7[2];\n              dVar29 = (pdVar7[6] * dVar13 - (dVar12 - pdVar7[7]) * local_12c) + pdVar7[8];\n              dVar31 = *pdVar7;\n              dVar30 = pdVar7[4] * dVar13 - (dVar12 - pdVar7[7]) * dVar31;\n              dVar32 = pdVar7[9];\n              if (ABS(dVar32) < DAT_0029f138) {\n                dVar12 = -dVar30 / dVar29;\n              }\n              else {\n                dVar30 = dVar29 * dVar29 - (dVar32 + dVar32) * dVar30;\n                local_14c = 0.0;\n                if (dVar30 < 0.0) goto LAB_00085796;\n                if (dVar30 < 0.0) {\n                  sqrt(dVar30);\n                  dVar32 = pdVar7[9];\n                  dVar31 = *pdVar7;\n                  local_12c = pdVar7[2];\n                }\n                dVar12 = (SQRT(dVar30) - dVar29) / dVar32;\n              }\n              local_10c = (dVar13 - pdVar7[1] * dVar12) / (local_12c * dVar12 + dVar31);\n              if (MVar8 != MagickFalse) {\n                local_14c = 1.0;\n                goto LAB_000852c3;\n              }\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              local_14c = 1.0;\n              goto LAB_00085370;\n            case BilinearReverseDistortion:\n              dVar31 = pdVar7[2] * dVar33;\n              local_10c = pdVar7[3] + dVar31 * dVar12 + dVar12 * pdVar7[1] + *pdVar7 * dVar33;\n              dVar32 = dVar33 * pdVar7[6];\n              local_f4 = dVar12 * dVar32 + dVar12 * pdVar7[5] + dVar33 * pdVar7[4] + pdVar7[7];\n              ScaleResampleFilter(*ppRVar1,(dVar12 * pdVar7[2] + *pdVar7) * dVar3,\n                                  (pdVar7[1] + dVar31) * dVar3,\n                                  (pdVar7[6] * dVar12 + pdVar7[4]) * dVar3,\n                                  (pdVar7[5] + dVar32) * dVar3);\n              break;\n            case PolynomialDistortion:\n              iVar14 = (int)ROUND(pdVar7[1]);\n              if (iVar14 < 1) {\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n              }\n              else {\n                iVar21 = 0;\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n                do {\n                  n = iVar21;\n                  dVar32 = poly_basis_fn(iVar21,dVar33,dVar12);\n                  dVar31 = pdVar7[iVar21 + 2];\n                  local_10c = dVar32 * dVar31 + local_10c;\n                  dVar30 = poly_basis_dx(n,dVar33,dVar12);\n                  local_114 = dVar31 * dVar30 + local_114;\n                  switch(iVar21) {\n                  case 0:\n                  case 1:\n                  case 4:\n                    dVar31 = dVar31 * 0.0;\n                    dVar29 = 0.0;\n                    break;\n                  case 2:\n                    dVar29 = 1.0;\n                    break;\n                  case 3:\n                    dVar31 = dVar31 * dVar33;\n                    dVar29 = dVar33;\n                    break;\n                  case 5:\n                    dVar31 = dVar31 * dVar12;\n                    dVar29 = dVar12;\n                    break;\n                  default:\n                    dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);\n                    dVar31 = dVar31 * dVar29;\n                  }\n                  local_fc = dVar31 + local_fc;\n                  dVar31 = pdVar7[iVar14 + iVar21 + 2];\n                  iVar21 = iVar21 + 1;\n                  local_f4 = dVar32 * dVar31 + local_f4;\n                  local_11c = dVar30 * dVar31 + local_11c;\n                  local_104 = dVar29 * dVar31 + local_104;\n                } while (iVar14 != iVar21);\n              }\n              ScaleResampleFilter(*ppRVar1,local_114 * dVar3,local_fc * dVar3,local_11c * dVar3,\n                                  local_104 * dVar3);\n              break;\n            case ArcDistortion:\n              dVar31 = atan2(dVar12,dVar33);\n              dVar31 = (dVar31 - *pdVar7) / DAT_002b0c28;\n              if (dVar31 - ROUND(dVar31) < ROUND(dVar31) - dVar31) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar33 = hypot(dVar33,dVar12);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[1] / (dVar33 * DAT_002b0c28)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              local_10c = (double)(image->page).x + (dVar31 - ROUND(dVar31)) * pdVar7[1] + pdVar7[4]\n                          + (double)DAT_0029f124;\n              local_f4 = (double)(image->page).y + (pdVar7[2] - dVar33) * pdVar7[3];\n              break;\n            case PolarDistortion:\n              dVar31 = pdVar7[2];\n              dVar32 = pdVar7[3];\n              dVar30 = atan2(dVar33 - dVar31,dVar12 - dVar32);\n              dVar29 = DAT_002b0c28;\n              dVar30 = (dVar30 - (pdVar7[4] + pdVar7[5]) * (double)DAT_0029f124) / DAT_002b0c28;\n              if (dVar30 - ROUND(dVar30) < ROUND(dVar30) - dVar30) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar30 = DAT_002b0c28 * (dVar30 - ROUND(dVar30));\n              dVar33 = hypot(dVar33 - dVar31,dVar12 - dVar32);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[6] / (dVar29 * dVar33)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              local_13c = (double)(ulonglong)image->columns;\n              local_10c = (double)(image->page).x +\n                          (double)(longlong)local_13c * (double)DAT_0029f124 + dVar30 * pdVar7[6];\n              local_f4 = (double)(image->page).y + (dVar33 - pdVar7[1]) * pdVar7[7];\n              break;\n            case DePolarDistortion:\n              dVar33 = (double)DAT_0029f124;\n              sincos((double)(((float)local_15c + DAT_0029f124) * (float)dVar3 * (float)pdVar7[6] +\n                             (float)pdVar7[4]),local_84,&local_8c);\n              dVar12 = (dVar33 + (double)local_140) * dVar3 * pdVar7[7] + pdVar7[1];\n              dVar33 = local_84[0] * dVar12 + pdVar7[2];\n              dVar12 = dVar12 * local_8c + pdVar7[3];\nLAB_00085796:\n              local_10c = dVar33;\n              if (MVar8 != MagickFalse) goto LAB_000852cf;\n              goto joined_r0x000857af;\n            case Cylinder2PlaneDistortion:\n              dVar31 = pdVar7[5];\n              dVar32 = pdVar7[1];\n              dVar33 = (dVar33 - pdVar7[4]) / dVar32;\n              dVar30 = atan(dVar33);\n              dVar29 = cos(dVar30);\n              local_f4 = (dVar12 - dVar31) * dVar29;\n              ScaleResampleFilter(*ppRVar1,(1.0 / (dVar33 * dVar33 + 1.0)) * dVar3,\n                                  dVar3 * (double)DAT_002a7fe8,\n                                  ((-dVar33 * local_f4 * dVar29 * dVar29) / dVar32) * dVar3,\n                                  (local_f4 / (dVar12 - dVar31)) * dVar3);\n              local_10c = dVar30 * dVar32 + pdVar7[2];\n              local_f4 = local_f4 + pdVar7[3];\n              break;\n            case Plane2CylinderDistortion:\n              dVar31 = pdVar7[1];\n              local_14c = (DAT_0029f740 * dVar31 - ABS(dVar33 - pdVar7[4])) / dVar3 +\n                          (double)DAT_0029f124;\n              if (0.0 < local_14c) {\n                dVar33 = (dVar33 - pdVar7[4]) / dVar31;\n                dVar32 = cos(dVar33);\n                dVar32 = (double)DAT_0029f718 / dVar32;\n                dVar33 = tan(dVar33);\n                dVar33 = dVar33 * dVar31;\n                dVar12 = (dVar12 - pdVar7[5]) * dVar32;\n                ScaleResampleFilter(*ppRVar1,dVar32 * dVar32 * dVar3,dVar3 * 0.0,\n                                    ((dVar32 * dVar12) / dVar31) * dVar3,dVar3 * dVar32);\n              }\n              local_10c = dVar33 + pdVar7[2];\n              local_f4 = dVar12 + pdVar7[3];\n              break;\n            case BarrelDistortion:\n            case BarrelInverseDistortion:\n              dVar33 = dVar33 - pdVar7[8];\n              dVar12 = dVar12 - pdVar7[9];\n              dVar32 = dVar12 * dVar12 + dVar33 * dVar33;\n              dVar31 = SQRT(dVar32);\n              if (dVar32 < 0.0) {\n                sqrt(dVar32);\n                DVar17 = *this->method;\n              }\n              dVar32 = pdVar7[7];\n              local_13c = pdVar7[3];\n              if (DAT_0029f138 < dVar31) {\n                dVar30 = pdVar7[1];\n                local_13c = ((*pdVar7 * dVar31 + dVar30) * dVar31 + pdVar7[2]) * dVar31 + local_13c;\n                dVar29 = pdVar7[5];\n                dVar32 = ((pdVar7[4] * dVar31 + dVar29) * dVar31 + pdVar7[6]) * dVar31 + dVar32;\n                dVar30 = ((dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31) * dVar31 +\n                         pdVar7[2]) / dVar31;\n                dVar31 = ((dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31) * dVar31 +\n                         pdVar7[6]) / dVar31;\n                if (DVar17 == BarrelInverseDistortion) {\n                  local_13c = 1.0 / local_13c;\n                  dVar32 = 1.0 / dVar32;\n                  dVar30 = dVar30 * -local_13c * local_13c;\n                  dVar31 = -dVar32 * dVar32 * dVar31;\n                }\n                local_10c = local_13c * dVar33 + pdVar7[8];\n                local_f4 = dVar32 * dVar12 + pdVar7[9];\n                ScaleResampleFilter(*ppRVar1,(dVar30 * dVar33 * dVar33 + local_13c) * dVar3,\n                                    dVar12 * dVar30 * dVar33 * dVar3,\n                                    dVar31 * dVar33 * dVar12 * dVar3,\n                                    (dVar31 * dVar12 * dVar12 + dVar32) * dVar3);\n              }\n              else {\n                if (DVar17 != BarrelDistortion) {\n                  dVar32 = 1.0 / dVar32;\n                  local_13c = 1.0 / local_13c;\n                }\n                ScaleResampleFilter(*ppRVar1,dVar3 * local_13c,dVar3 * (double)DAT_002a7fe8,\n                                    dVar3 * (double)DAT_002a7fe8,dVar32 * dVar3);\n              }\n              break;\n            case ShepardsDistortion:\n              if (sVar9 == 0) {\n                dVar31 = 0.0;\n                dVar30 = 0.0;\n                dVar32 = 0.0;\n              }\n              else {\n                dVar31 = 0.0;\n                dVar32 = 0.0;\n                dVar30 = 0.0;\n                pdVar25 = pdVar6;\n                do {\n                  dVar29 = pow((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7);\n                  if (dVar29 < 1.0) {\n                    dVar29 = 1.0;\n                  }\n                  else {\n                    dVar29 = 1.0 / dVar29;\n                  }\n                  pdVar26 = pdVar25 + 4;\n                  dVar30 = (*pdVar25 - pdVar25[2]) * dVar29 + dVar30;\n                  dVar32 = (pdVar25[1] - pdVar25[3]) * dVar29 + dVar32;\n                  dVar31 = dVar31 + dVar29;\n                  pdVar25 = pdVar26;\n                } while ((double *)((int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20) != pdVar26);\n              }\n              local_f4 = dVar12 + dVar32 / dVar31;\n              local_10c = dVar30 / dVar31 + dVar33;\n            }\n            dVar12 = local_f4;\n            if (MVar8 != MagickFalse) {\nLAB_000852c3:\n              dVar33 = local_10c;\n              if (*this->method != ArcDistortion) {\nLAB_000852cf:\n                local_10c = dVar33 - (double)(image->page).x;\n                dVar12 = dVar12 - (double)(image->page).y;\n              }\n            }\njoined_r0x000857af:\n            if (local_14c <= 0.0) {\n              pPVar23 = this->invalid;\n              pPVar20 = pIVar4->channel_map;\n              pQVar16[pPVar20->offset] = pPVar23->red;\n              pQVar16[pPVar20[1].offset] = pPVar23->green;\n              pQVar16[pPVar20[2].offset] = pPVar23->blue;\n              if (pPVar20[3].traits != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = pPVar23->black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                if (pPVar23->alpha_trait == UndefinedPixelTrait) goto LAB_00085d68;\n                dVar33 = pPVar23->alpha;\n                goto LAB_000853cb;\n              }\n            }\n            else {\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              if (local_14c < 1.0) {\n                pPVar23 = this->invalid;\n                dVar12 = local_70.alpha * local_14c * _DAT_0029f148;\n                dVar31 = pPVar23->alpha * (1.0 - local_14c) * _DAT_0029f148;\n                dVar33 = dVar12 + dVar31;\n                if (dVar33 < 0.0) {\n                  dVar33 = 0.0;\n                  local_70.alpha = 0.0;\n                }\n                else if (dVar33 <= 1.0) {\n                  local_70.alpha = dVar33 * (double)DAT_0029f710;\n                }\n                else {\n                  dVar33 = 1.0;\n                  local_70.alpha = (MagickRealType)DAT_0029f710;\n                }\n                dVar32 = DAT_0029f738;\n                if (DAT_0029f138 <= dVar33) {\n                  dVar32 = (double)DAT_0029f718 / dVar33;\n                }\n                local_70.red = (pPVar23->red * dVar31 + local_70.red * dVar12) * dVar32;\n                local_70.green = (pPVar23->green * dVar31 + local_70.green * dVar12) * dVar32;\n                local_70.blue = (pPVar23->blue * dVar31 + local_70.blue * dVar12) * dVar32;\n                if (pPVar23->colorspace == CMYKColorspace) {\n                  local_70.black = dVar32 * (dVar31 * pPVar23->black + dVar12 * local_70.black);\n                }\n              }\nLAB_00085370:\n              pPVar20 = pIVar4->channel_map;\n              PVar10 = pPVar20[3].traits;\n              pQVar16[pPVar20->offset] = local_70.red;\n              pQVar16[pPVar20[1].offset] = local_70.green;\n              pQVar16[pPVar20[2].offset] = local_70.blue;\n              if (PVar10 != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = local_70.black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                dVar33 = local_70.alpha;\n                if (local_70.alpha_trait == UndefinedPixelTrait) {\nLAB_00085d68:\n                  dVar33 = (double)DAT_0029f710;\n                }\nLAB_000853cb:\n                pQVar16[pPVar20[4].offset] = dVar33;\n              }\n            }\n            local_15c = local_15c + 1;\n            pQVar16 = pQVar16 + pIVar4->number_channels;\n          } while (local_15c < (int)pIVar4->columns);\n        }\n        MVar18 = SyncCacheViewAuthenticPixels(cache_view,exception);\n        if (MVar18 == MagickFalse) {\n          this->status = MagickFalse;\n        }\n        if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n          puVar11 = (uint *)this->progress;\n          uVar19 = *puVar11;\n          uVar22 = puVar11[1];\n          do {\n            LOCK();\n            lVar2 = *(longlong *)puVar11;\n            bVar27 = CONCAT44(uVar22,uVar19) == lVar2;\n            if (bVar27) {\n              *(longlong *)puVar11 = CONCAT44(uVar22 + (0xfffffffe < uVar19),uVar19 + 1);\n            }\n            else {\n              uVar22 = (uint)((ulonglong)lVar2 >> 0x20);\n              uVar19 = (uint)lVar2;\n            }\n            UNLOCK();\n          } while (!bVar27);\n          MVar18 = SetImageProgress(image,"Distort/Image",*this->progress,(ulonglong)image->rows);\n          if (MVar18 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n        }\n      }" { (expression_statement "pPVar23 = this->zero;" (assignment_expression "pPVar23 = this->zero" identifier = (field_expression "this->zero" identifier -> field_identifier)) ;) (expression_statement "pPVar24 = &local_70;" (assignment_expression "pPVar24 = &local_70" identifier = (pointer_expression "&local_70" & identifier)) ;) (for_statement "for (iVar21 = 0x14; iVar21 != 0; iVar21 = iVar21 + -1) {\n          pPVar24->storage_class = pPVar23->storage_class;\n          pPVar23 = (PixelInfo *)((int)pPVar23 + (uint)bVar28 * -8 + 4);\n          pPVar24 = (PixelInfo *)((int)pPVar24 + (uint)bVar28 * -8 + 4);\n        }" for ( (assignment_expression "iVar21 = 0x14" identifier = number_literal) ; (binary_expression "iVar21 != 0" identifier != number_literal) ; (assignment_expression "iVar21 = iVar21 + -1" identifier = (binary_expression "iVar21 + -1" identifier + number_literal)) ) (compound_statement "{\n          pPVar24->storage_class = pPVar23->storage_class;\n          pPVar23 = (PixelInfo *)((int)pPVar23 + (uint)bVar28 * -8 + 4);\n          pPVar24 = (PixelInfo *)((int)pPVar24 + (uint)bVar28 * -8 + 4);\n        }" { (expression_statement "pPVar24->storage_class = pPVar23->storage_class;" (assignment_expression "pPVar24->storage_class = pPVar23->storage_class" (field_expression "pPVar24->storage_class" identifier -> field_identifier) = (field_expression "pPVar23->storage_class" identifier -> field_identifier)) ;) (expression_statement "pPVar23 = (PixelInfo *)((int)pPVar23 + (uint)bVar28 * -8 + 4);" (assignment_expression "pPVar23 = (PixelInfo *)((int)pPVar23 + (uint)bVar28 * -8 + 4)" identifier = (cast_expression "(PixelInfo *)((int)pPVar23 + (uint)bVar28 * -8 + 4)" ( (type_descriptor "PixelInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pPVar23 + (uint)bVar28 * -8 + 4)" ( (binary_expression "(int)pPVar23 + (uint)bVar28 * -8 + 4" (binary_expression "(int)pPVar23 + (uint)bVar28 * -8" (cast_expression "(int)pPVar23" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar28 * -8" (cast_expression "(uint)bVar28" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) (expression_statement "pPVar24 = (PixelInfo *)((int)pPVar24 + (uint)bVar28 * -8 + 4);" (assignment_expression "pPVar24 = (PixelInfo *)((int)pPVar24 + (uint)bVar28 * -8 + 4)" identifier = (cast_expression "(PixelInfo *)((int)pPVar24 + (uint)bVar28 * -8 + 4)" ( (type_descriptor "PixelInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pPVar24 + (uint)bVar28 * -8 + 4)" ( (binary_expression "(int)pPVar24 + (uint)bVar28 * -8 + 4" (binary_expression "(int)pPVar24 + (uint)bVar28 * -8" (cast_expression "(int)pPVar24" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar28 * -8" (cast_expression "(uint)bVar28" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) (if_statement "if ((*this->method == AffineDistortion) || (*this->method == RigidAffineDistortion)) {\n          ScaleResampleFilter(ppRVar5[iVar14],dVar3 * *pdVar7,pdVar7[1] * dVar3,pdVar7[3] * dVar3,\n                              pdVar7[4] * dVar3);\n        }" if (parenthesized_expression "((*this->method == AffineDistortion) || (*this->method == RigidAffineDistortion))" ( (binary_expression "(*this->method == AffineDistortion) || (*this->method == RigidAffineDistortion)" (parenthesized_expression "(*this->method == AffineDistortion)" ( (binary_expression "*this->method == AffineDistortion" (pointer_expression "*this->method" * (field_expression "this->method" identifier -> field_identifier)) == identifier) )) || (parenthesized_expression "(*this->method == RigidAffineDistortion)" ( (binary_expression "*this->method == RigidAffineDistortion" (pointer_expression "*this->method" * (field_expression "this->method" identifier -> field_identifier)) == identifier) ))) )) (compound_statement "{\n          ScaleResampleFilter(ppRVar5[iVar14],dVar3 * *pdVar7,pdVar7[1] * dVar3,pdVar7[3] * dVar3,\n                              pdVar7[4] * dVar3);\n        }" { (expression_statement "ScaleResampleFilter(ppRVar5[iVar14],dVar3 * *pdVar7,pdVar7[1] * dVar3,pdVar7[3] * dVar3,\n                              pdVar7[4] * dVar3);" (call_expression "ScaleResampleFilter(ppRVar5[iVar14],dVar3 * *pdVar7,pdVar7[1] * dVar3,pdVar7[3] * dVar3,\n                              pdVar7[4] * dVar3)" identifier (argument_list "(ppRVar5[iVar14],dVar3 * *pdVar7,pdVar7[1] * dVar3,pdVar7[3] * dVar3,\n                              pdVar7[4] * dVar3)" ( (subscript_expression "ppRVar5[iVar14]" identifier [ identifier ]) , (binary_expression "dVar3 * *pdVar7" identifier * (pointer_expression "*pdVar7" * identifier)) , (binary_expression "pdVar7[1] * dVar3" (subscript_expression "pdVar7[1]" identifier [ number_literal ]) * identifier) , (binary_expression "pdVar7[3] * dVar3" (subscript_expression "pdVar7[3]" identifier [ number_literal ]) * identifier) , (binary_expression "pdVar7[4] * dVar3" (subscript_expression "pdVar7[4]" identifier [ number_literal ]) * identifier) ))) ;) })) (if_statement "if (0 < (int)pIVar4->columns) {\n          local_14c = 1.0;\n          ppRVar1 = ppRVar5 + iVar14;\n          local_15c = 0;\n          do {\n            dVar33 = ((double)(local_15c + this->geometry->x) + (double)DAT_0029f124) * dVar3;\n            DVar17 = *this->method;\n            dVar12 = dVar3 * ((double)(local_140 + this->geometry->y) + (double)DAT_0029f124);\n            local_f4 = dVar12;\n            local_10c = dVar33;\n            switch(DVar17) {\n            case AffineDistortion:\n            case RigidAffineDistortion:\n              local_f4 = dVar12 * pdVar7[4] + dVar33 * pdVar7[3] + pdVar7[5];\n              local_10c = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              break;\n            case PerspectiveDistortion:\n              dVar31 = pdVar7[6];\n              dVar32 = pdVar7[7];\n              dVar30 = dVar12 * dVar32 + dVar33 * dVar31 + 1.0;\n              dVar29 = pdVar7[8] * dVar30;\n              local_14c = 0.0;\n              if (0.0 <= dVar29) {\n                local_14c = 1.0;\n              }\n              dVar13 = ABS(dVar30) + ABS(dVar30);\n              if (ABS(dVar31) <= ABS(dVar32)) {\n                if (dVar13 < ABS(dVar32) * dVar3) {\n                  local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar32);\n                }\n              }\n              else if (dVar13 < ABS(dVar31) * dVar3) {\n                local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar31);\n              }\n              if (local_14c <= 0.0) goto LAB_00085796;\n              dVar29 = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              dVar33 = pdVar7[3] * dVar33 + dVar12 * pdVar7[4] + pdVar7[5];\n              dVar12 = (double)DAT_0029f718 / dVar30;\n              local_10c = dVar29 * dVar12;\n              local_f4 = dVar33 * dVar12;\n              dVar12 = dVar12 * dVar12;\n              ScaleResampleFilter(*ppRVar1,dVar3 * (dVar30 * *pdVar7 - dVar29 * dVar31) * dVar12,\n                                  (pdVar7[1] * dVar30 - dVar32 * dVar29) * dVar12 * dVar3,\n                                  (pdVar7[3] * dVar30 - dVar33 * dVar31) * dVar12 * dVar3,\n                                  (pdVar7[4] * dVar30 - dVar33 * dVar32) * dVar12 * dVar3);\n              break;\n            case BilinearDistortion:\n              dVar13 = dVar33 - pdVar7[3];\n              local_12c = pdVar7[2];\n              dVar29 = (pdVar7[6] * dVar13 - (dVar12 - pdVar7[7]) * local_12c) + pdVar7[8];\n              dVar31 = *pdVar7;\n              dVar30 = pdVar7[4] * dVar13 - (dVar12 - pdVar7[7]) * dVar31;\n              dVar32 = pdVar7[9];\n              if (ABS(dVar32) < DAT_0029f138) {\n                dVar12 = -dVar30 / dVar29;\n              }\n              else {\n                dVar30 = dVar29 * dVar29 - (dVar32 + dVar32) * dVar30;\n                local_14c = 0.0;\n                if (dVar30 < 0.0) goto LAB_00085796;\n                if (dVar30 < 0.0) {\n                  sqrt(dVar30);\n                  dVar32 = pdVar7[9];\n                  dVar31 = *pdVar7;\n                  local_12c = pdVar7[2];\n                }\n                dVar12 = (SQRT(dVar30) - dVar29) / dVar32;\n              }\n              local_10c = (dVar13 - pdVar7[1] * dVar12) / (local_12c * dVar12 + dVar31);\n              if (MVar8 != MagickFalse) {\n                local_14c = 1.0;\n                goto LAB_000852c3;\n              }\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              local_14c = 1.0;\n              goto LAB_00085370;\n            case BilinearReverseDistortion:\n              dVar31 = pdVar7[2] * dVar33;\n              local_10c = pdVar7[3] + dVar31 * dVar12 + dVar12 * pdVar7[1] + *pdVar7 * dVar33;\n              dVar32 = dVar33 * pdVar7[6];\n              local_f4 = dVar12 * dVar32 + dVar12 * pdVar7[5] + dVar33 * pdVar7[4] + pdVar7[7];\n              ScaleResampleFilter(*ppRVar1,(dVar12 * pdVar7[2] + *pdVar7) * dVar3,\n                                  (pdVar7[1] + dVar31) * dVar3,\n                                  (pdVar7[6] * dVar12 + pdVar7[4]) * dVar3,\n                                  (pdVar7[5] + dVar32) * dVar3);\n              break;\n            case PolynomialDistortion:\n              iVar14 = (int)ROUND(pdVar7[1]);\n              if (iVar14 < 1) {\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n              }\n              else {\n                iVar21 = 0;\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n                do {\n                  n = iVar21;\n                  dVar32 = poly_basis_fn(iVar21,dVar33,dVar12);\n                  dVar31 = pdVar7[iVar21 + 2];\n                  local_10c = dVar32 * dVar31 + local_10c;\n                  dVar30 = poly_basis_dx(n,dVar33,dVar12);\n                  local_114 = dVar31 * dVar30 + local_114;\n                  switch(iVar21) {\n                  case 0:\n                  case 1:\n                  case 4:\n                    dVar31 = dVar31 * 0.0;\n                    dVar29 = 0.0;\n                    break;\n                  case 2:\n                    dVar29 = 1.0;\n                    break;\n                  case 3:\n                    dVar31 = dVar31 * dVar33;\n                    dVar29 = dVar33;\n                    break;\n                  case 5:\n                    dVar31 = dVar31 * dVar12;\n                    dVar29 = dVar12;\n                    break;\n                  default:\n                    dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);\n                    dVar31 = dVar31 * dVar29;\n                  }\n                  local_fc = dVar31 + local_fc;\n                  dVar31 = pdVar7[iVar14 + iVar21 + 2];\n                  iVar21 = iVar21 + 1;\n                  local_f4 = dVar32 * dVar31 + local_f4;\n                  local_11c = dVar30 * dVar31 + local_11c;\n                  local_104 = dVar29 * dVar31 + local_104;\n                } while (iVar14 != iVar21);\n              }\n              ScaleResampleFilter(*ppRVar1,local_114 * dVar3,local_fc * dVar3,local_11c * dVar3,\n                                  local_104 * dVar3);\n              break;\n            case ArcDistortion:\n              dVar31 = atan2(dVar12,dVar33);\n              dVar31 = (dVar31 - *pdVar7) / DAT_002b0c28;\n              if (dVar31 - ROUND(dVar31) < ROUND(dVar31) - dVar31) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar33 = hypot(dVar33,dVar12);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[1] / (dVar33 * DAT_002b0c28)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              local_10c = (double)(image->page).x + (dVar31 - ROUND(dVar31)) * pdVar7[1] + pdVar7[4]\n                          + (double)DAT_0029f124;\n              local_f4 = (double)(image->page).y + (pdVar7[2] - dVar33) * pdVar7[3];\n              break;\n            case PolarDistortion:\n              dVar31 = pdVar7[2];\n              dVar32 = pdVar7[3];\n              dVar30 = atan2(dVar33 - dVar31,dVar12 - dVar32);\n              dVar29 = DAT_002b0c28;\n              dVar30 = (dVar30 - (pdVar7[4] + pdVar7[5]) * (double)DAT_0029f124) / DAT_002b0c28;\n              if (dVar30 - ROUND(dVar30) < ROUND(dVar30) - dVar30) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar30 = DAT_002b0c28 * (dVar30 - ROUND(dVar30));\n              dVar33 = hypot(dVar33 - dVar31,dVar12 - dVar32);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[6] / (dVar29 * dVar33)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              local_13c = (double)(ulonglong)image->columns;\n              local_10c = (double)(image->page).x +\n                          (double)(longlong)local_13c * (double)DAT_0029f124 + dVar30 * pdVar7[6];\n              local_f4 = (double)(image->page).y + (dVar33 - pdVar7[1]) * pdVar7[7];\n              break;\n            case DePolarDistortion:\n              dVar33 = (double)DAT_0029f124;\n              sincos((double)(((float)local_15c + DAT_0029f124) * (float)dVar3 * (float)pdVar7[6] +\n                             (float)pdVar7[4]),local_84,&local_8c);\n              dVar12 = (dVar33 + (double)local_140) * dVar3 * pdVar7[7] + pdVar7[1];\n              dVar33 = local_84[0] * dVar12 + pdVar7[2];\n              dVar12 = dVar12 * local_8c + pdVar7[3];\nLAB_00085796:\n              local_10c = dVar33;\n              if (MVar8 != MagickFalse) goto LAB_000852cf;\n              goto joined_r0x000857af;\n            case Cylinder2PlaneDistortion:\n              dVar31 = pdVar7[5];\n              dVar32 = pdVar7[1];\n              dVar33 = (dVar33 - pdVar7[4]) / dVar32;\n              dVar30 = atan(dVar33);\n              dVar29 = cos(dVar30);\n              local_f4 = (dVar12 - dVar31) * dVar29;\n              ScaleResampleFilter(*ppRVar1,(1.0 / (dVar33 * dVar33 + 1.0)) * dVar3,\n                                  dVar3 * (double)DAT_002a7fe8,\n                                  ((-dVar33 * local_f4 * dVar29 * dVar29) / dVar32) * dVar3,\n                                  (local_f4 / (dVar12 - dVar31)) * dVar3);\n              local_10c = dVar30 * dVar32 + pdVar7[2];\n              local_f4 = local_f4 + pdVar7[3];\n              break;\n            case Plane2CylinderDistortion:\n              dVar31 = pdVar7[1];\n              local_14c = (DAT_0029f740 * dVar31 - ABS(dVar33 - pdVar7[4])) / dVar3 +\n                          (double)DAT_0029f124;\n              if (0.0 < local_14c) {\n                dVar33 = (dVar33 - pdVar7[4]) / dVar31;\n                dVar32 = cos(dVar33);\n                dVar32 = (double)DAT_0029f718 / dVar32;\n                dVar33 = tan(dVar33);\n                dVar33 = dVar33 * dVar31;\n                dVar12 = (dVar12 - pdVar7[5]) * dVar32;\n                ScaleResampleFilter(*ppRVar1,dVar32 * dVar32 * dVar3,dVar3 * 0.0,\n                                    ((dVar32 * dVar12) / dVar31) * dVar3,dVar3 * dVar32);\n              }\n              local_10c = dVar33 + pdVar7[2];\n              local_f4 = dVar12 + pdVar7[3];\n              break;\n            case BarrelDistortion:\n            case BarrelInverseDistortion:\n              dVar33 = dVar33 - pdVar7[8];\n              dVar12 = dVar12 - pdVar7[9];\n              dVar32 = dVar12 * dVar12 + dVar33 * dVar33;\n              dVar31 = SQRT(dVar32);\n              if (dVar32 < 0.0) {\n                sqrt(dVar32);\n                DVar17 = *this->method;\n              }\n              dVar32 = pdVar7[7];\n              local_13c = pdVar7[3];\n              if (DAT_0029f138 < dVar31) {\n                dVar30 = pdVar7[1];\n                local_13c = ((*pdVar7 * dVar31 + dVar30) * dVar31 + pdVar7[2]) * dVar31 + local_13c;\n                dVar29 = pdVar7[5];\n                dVar32 = ((pdVar7[4] * dVar31 + dVar29) * dVar31 + pdVar7[6]) * dVar31 + dVar32;\n                dVar30 = ((dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31) * dVar31 +\n                         pdVar7[2]) / dVar31;\n                dVar31 = ((dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31) * dVar31 +\n                         pdVar7[6]) / dVar31;\n                if (DVar17 == BarrelInverseDistortion) {\n                  local_13c = 1.0 / local_13c;\n                  dVar32 = 1.0 / dVar32;\n                  dVar30 = dVar30 * -local_13c * local_13c;\n                  dVar31 = -dVar32 * dVar32 * dVar31;\n                }\n                local_10c = local_13c * dVar33 + pdVar7[8];\n                local_f4 = dVar32 * dVar12 + pdVar7[9];\n                ScaleResampleFilter(*ppRVar1,(dVar30 * dVar33 * dVar33 + local_13c) * dVar3,\n                                    dVar12 * dVar30 * dVar33 * dVar3,\n                                    dVar31 * dVar33 * dVar12 * dVar3,\n                                    (dVar31 * dVar12 * dVar12 + dVar32) * dVar3);\n              }\n              else {\n                if (DVar17 != BarrelDistortion) {\n                  dVar32 = 1.0 / dVar32;\n                  local_13c = 1.0 / local_13c;\n                }\n                ScaleResampleFilter(*ppRVar1,dVar3 * local_13c,dVar3 * (double)DAT_002a7fe8,\n                                    dVar3 * (double)DAT_002a7fe8,dVar32 * dVar3);\n              }\n              break;\n            case ShepardsDistortion:\n              if (sVar9 == 0) {\n                dVar31 = 0.0;\n                dVar30 = 0.0;\n                dVar32 = 0.0;\n              }\n              else {\n                dVar31 = 0.0;\n                dVar32 = 0.0;\n                dVar30 = 0.0;\n                pdVar25 = pdVar6;\n                do {\n                  dVar29 = pow((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7);\n                  if (dVar29 < 1.0) {\n                    dVar29 = 1.0;\n                  }\n                  else {\n                    dVar29 = 1.0 / dVar29;\n                  }\n                  pdVar26 = pdVar25 + 4;\n                  dVar30 = (*pdVar25 - pdVar25[2]) * dVar29 + dVar30;\n                  dVar32 = (pdVar25[1] - pdVar25[3]) * dVar29 + dVar32;\n                  dVar31 = dVar31 + dVar29;\n                  pdVar25 = pdVar26;\n                } while ((double *)((int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20) != pdVar26);\n              }\n              local_f4 = dVar12 + dVar32 / dVar31;\n              local_10c = dVar30 / dVar31 + dVar33;\n            }\n            dVar12 = local_f4;\n            if (MVar8 != MagickFalse) {\nLAB_000852c3:\n              dVar33 = local_10c;\n              if (*this->method != ArcDistortion) {\nLAB_000852cf:\n                local_10c = dVar33 - (double)(image->page).x;\n                dVar12 = dVar12 - (double)(image->page).y;\n              }\n            }\njoined_r0x000857af:\n            if (local_14c <= 0.0) {\n              pPVar23 = this->invalid;\n              pPVar20 = pIVar4->channel_map;\n              pQVar16[pPVar20->offset] = pPVar23->red;\n              pQVar16[pPVar20[1].offset] = pPVar23->green;\n              pQVar16[pPVar20[2].offset] = pPVar23->blue;\n              if (pPVar20[3].traits != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = pPVar23->black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                if (pPVar23->alpha_trait == UndefinedPixelTrait) goto LAB_00085d68;\n                dVar33 = pPVar23->alpha;\n                goto LAB_000853cb;\n              }\n            }\n            else {\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              if (local_14c < 1.0) {\n                pPVar23 = this->invalid;\n                dVar12 = local_70.alpha * local_14c * _DAT_0029f148;\n                dVar31 = pPVar23->alpha * (1.0 - local_14c) * _DAT_0029f148;\n                dVar33 = dVar12 + dVar31;\n                if (dVar33 < 0.0) {\n                  dVar33 = 0.0;\n                  local_70.alpha = 0.0;\n                }\n                else if (dVar33 <= 1.0) {\n                  local_70.alpha = dVar33 * (double)DAT_0029f710;\n                }\n                else {\n                  dVar33 = 1.0;\n                  local_70.alpha = (MagickRealType)DAT_0029f710;\n                }\n                dVar32 = DAT_0029f738;\n                if (DAT_0029f138 <= dVar33) {\n                  dVar32 = (double)DAT_0029f718 / dVar33;\n                }\n                local_70.red = (pPVar23->red * dVar31 + local_70.red * dVar12) * dVar32;\n                local_70.green = (pPVar23->green * dVar31 + local_70.green * dVar12) * dVar32;\n                local_70.blue = (pPVar23->blue * dVar31 + local_70.blue * dVar12) * dVar32;\n                if (pPVar23->colorspace == CMYKColorspace) {\n                  local_70.black = dVar32 * (dVar31 * pPVar23->black + dVar12 * local_70.black);\n                }\n              }\nLAB_00085370:\n              pPVar20 = pIVar4->channel_map;\n              PVar10 = pPVar20[3].traits;\n              pQVar16[pPVar20->offset] = local_70.red;\n              pQVar16[pPVar20[1].offset] = local_70.green;\n              pQVar16[pPVar20[2].offset] = local_70.blue;\n              if (PVar10 != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = local_70.black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                dVar33 = local_70.alpha;\n                if (local_70.alpha_trait == UndefinedPixelTrait) {\nLAB_00085d68:\n                  dVar33 = (double)DAT_0029f710;\n                }\nLAB_000853cb:\n                pQVar16[pPVar20[4].offset] = dVar33;\n              }\n            }\n            local_15c = local_15c + 1;\n            pQVar16 = pQVar16 + pIVar4->number_channels;\n          } while (local_15c < (int)pIVar4->columns);\n        }" if (parenthesized_expression "(0 < (int)pIVar4->columns)" ( (binary_expression "0 < (int)pIVar4->columns" number_literal < (cast_expression "(int)pIVar4->columns" ( (type_descriptor "int" primitive_type) ) (field_expression "pIVar4->columns" identifier -> field_identifier))) )) (compound_statement "{\n          local_14c = 1.0;\n          ppRVar1 = ppRVar5 + iVar14;\n          local_15c = 0;\n          do {\n            dVar33 = ((double)(local_15c + this->geometry->x) + (double)DAT_0029f124) * dVar3;\n            DVar17 = *this->method;\n            dVar12 = dVar3 * ((double)(local_140 + this->geometry->y) + (double)DAT_0029f124);\n            local_f4 = dVar12;\n            local_10c = dVar33;\n            switch(DVar17) {\n            case AffineDistortion:\n            case RigidAffineDistortion:\n              local_f4 = dVar12 * pdVar7[4] + dVar33 * pdVar7[3] + pdVar7[5];\n              local_10c = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              break;\n            case PerspectiveDistortion:\n              dVar31 = pdVar7[6];\n              dVar32 = pdVar7[7];\n              dVar30 = dVar12 * dVar32 + dVar33 * dVar31 + 1.0;\n              dVar29 = pdVar7[8] * dVar30;\n              local_14c = 0.0;\n              if (0.0 <= dVar29) {\n                local_14c = 1.0;\n              }\n              dVar13 = ABS(dVar30) + ABS(dVar30);\n              if (ABS(dVar31) <= ABS(dVar32)) {\n                if (dVar13 < ABS(dVar32) * dVar3) {\n                  local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar32);\n                }\n              }\n              else if (dVar13 < ABS(dVar31) * dVar3) {\n                local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar31);\n              }\n              if (local_14c <= 0.0) goto LAB_00085796;\n              dVar29 = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              dVar33 = pdVar7[3] * dVar33 + dVar12 * pdVar7[4] + pdVar7[5];\n              dVar12 = (double)DAT_0029f718 / dVar30;\n              local_10c = dVar29 * dVar12;\n              local_f4 = dVar33 * dVar12;\n              dVar12 = dVar12 * dVar12;\n              ScaleResampleFilter(*ppRVar1,dVar3 * (dVar30 * *pdVar7 - dVar29 * dVar31) * dVar12,\n                                  (pdVar7[1] * dVar30 - dVar32 * dVar29) * dVar12 * dVar3,\n                                  (pdVar7[3] * dVar30 - dVar33 * dVar31) * dVar12 * dVar3,\n                                  (pdVar7[4] * dVar30 - dVar33 * dVar32) * dVar12 * dVar3);\n              break;\n            case BilinearDistortion:\n              dVar13 = dVar33 - pdVar7[3];\n              local_12c = pdVar7[2];\n              dVar29 = (pdVar7[6] * dVar13 - (dVar12 - pdVar7[7]) * local_12c) + pdVar7[8];\n              dVar31 = *pdVar7;\n              dVar30 = pdVar7[4] * dVar13 - (dVar12 - pdVar7[7]) * dVar31;\n              dVar32 = pdVar7[9];\n              if (ABS(dVar32) < DAT_0029f138) {\n                dVar12 = -dVar30 / dVar29;\n              }\n              else {\n                dVar30 = dVar29 * dVar29 - (dVar32 + dVar32) * dVar30;\n                local_14c = 0.0;\n                if (dVar30 < 0.0) goto LAB_00085796;\n                if (dVar30 < 0.0) {\n                  sqrt(dVar30);\n                  dVar32 = pdVar7[9];\n                  dVar31 = *pdVar7;\n                  local_12c = pdVar7[2];\n                }\n                dVar12 = (SQRT(dVar30) - dVar29) / dVar32;\n              }\n              local_10c = (dVar13 - pdVar7[1] * dVar12) / (local_12c * dVar12 + dVar31);\n              if (MVar8 != MagickFalse) {\n                local_14c = 1.0;\n                goto LAB_000852c3;\n              }\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              local_14c = 1.0;\n              goto LAB_00085370;\n            case BilinearReverseDistortion:\n              dVar31 = pdVar7[2] * dVar33;\n              local_10c = pdVar7[3] + dVar31 * dVar12 + dVar12 * pdVar7[1] + *pdVar7 * dVar33;\n              dVar32 = dVar33 * pdVar7[6];\n              local_f4 = dVar12 * dVar32 + dVar12 * pdVar7[5] + dVar33 * pdVar7[4] + pdVar7[7];\n              ScaleResampleFilter(*ppRVar1,(dVar12 * pdVar7[2] + *pdVar7) * dVar3,\n                                  (pdVar7[1] + dVar31) * dVar3,\n                                  (pdVar7[6] * dVar12 + pdVar7[4]) * dVar3,\n                                  (pdVar7[5] + dVar32) * dVar3);\n              break;\n            case PolynomialDistortion:\n              iVar14 = (int)ROUND(pdVar7[1]);\n              if (iVar14 < 1) {\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n              }\n              else {\n                iVar21 = 0;\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n                do {\n                  n = iVar21;\n                  dVar32 = poly_basis_fn(iVar21,dVar33,dVar12);\n                  dVar31 = pdVar7[iVar21 + 2];\n                  local_10c = dVar32 * dVar31 + local_10c;\n                  dVar30 = poly_basis_dx(n,dVar33,dVar12);\n                  local_114 = dVar31 * dVar30 + local_114;\n                  switch(iVar21) {\n                  case 0:\n                  case 1:\n                  case 4:\n                    dVar31 = dVar31 * 0.0;\n                    dVar29 = 0.0;\n                    break;\n                  case 2:\n                    dVar29 = 1.0;\n                    break;\n                  case 3:\n                    dVar31 = dVar31 * dVar33;\n                    dVar29 = dVar33;\n                    break;\n                  case 5:\n                    dVar31 = dVar31 * dVar12;\n                    dVar29 = dVar12;\n                    break;\n                  default:\n                    dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);\n                    dVar31 = dVar31 * dVar29;\n                  }\n                  local_fc = dVar31 + local_fc;\n                  dVar31 = pdVar7[iVar14 + iVar21 + 2];\n                  iVar21 = iVar21 + 1;\n                  local_f4 = dVar32 * dVar31 + local_f4;\n                  local_11c = dVar30 * dVar31 + local_11c;\n                  local_104 = dVar29 * dVar31 + local_104;\n                } while (iVar14 != iVar21);\n              }\n              ScaleResampleFilter(*ppRVar1,local_114 * dVar3,local_fc * dVar3,local_11c * dVar3,\n                                  local_104 * dVar3);\n              break;\n            case ArcDistortion:\n              dVar31 = atan2(dVar12,dVar33);\n              dVar31 = (dVar31 - *pdVar7) / DAT_002b0c28;\n              if (dVar31 - ROUND(dVar31) < ROUND(dVar31) - dVar31) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar33 = hypot(dVar33,dVar12);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[1] / (dVar33 * DAT_002b0c28)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              local_10c = (double)(image->page).x + (dVar31 - ROUND(dVar31)) * pdVar7[1] + pdVar7[4]\n                          + (double)DAT_0029f124;\n              local_f4 = (double)(image->page).y + (pdVar7[2] - dVar33) * pdVar7[3];\n              break;\n            case PolarDistortion:\n              dVar31 = pdVar7[2];\n              dVar32 = pdVar7[3];\n              dVar30 = atan2(dVar33 - dVar31,dVar12 - dVar32);\n              dVar29 = DAT_002b0c28;\n              dVar30 = (dVar30 - (pdVar7[4] + pdVar7[5]) * (double)DAT_0029f124) / DAT_002b0c28;\n              if (dVar30 - ROUND(dVar30) < ROUND(dVar30) - dVar30) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar30 = DAT_002b0c28 * (dVar30 - ROUND(dVar30));\n              dVar33 = hypot(dVar33 - dVar31,dVar12 - dVar32);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[6] / (dVar29 * dVar33)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              local_13c = (double)(ulonglong)image->columns;\n              local_10c = (double)(image->page).x +\n                          (double)(longlong)local_13c * (double)DAT_0029f124 + dVar30 * pdVar7[6];\n              local_f4 = (double)(image->page).y + (dVar33 - pdVar7[1]) * pdVar7[7];\n              break;\n            case DePolarDistortion:\n              dVar33 = (double)DAT_0029f124;\n              sincos((double)(((float)local_15c + DAT_0029f124) * (float)dVar3 * (float)pdVar7[6] +\n                             (float)pdVar7[4]),local_84,&local_8c);\n              dVar12 = (dVar33 + (double)local_140) * dVar3 * pdVar7[7] + pdVar7[1];\n              dVar33 = local_84[0] * dVar12 + pdVar7[2];\n              dVar12 = dVar12 * local_8c + pdVar7[3];\nLAB_00085796:\n              local_10c = dVar33;\n              if (MVar8 != MagickFalse) goto LAB_000852cf;\n              goto joined_r0x000857af;\n            case Cylinder2PlaneDistortion:\n              dVar31 = pdVar7[5];\n              dVar32 = pdVar7[1];\n              dVar33 = (dVar33 - pdVar7[4]) / dVar32;\n              dVar30 = atan(dVar33);\n              dVar29 = cos(dVar30);\n              local_f4 = (dVar12 - dVar31) * dVar29;\n              ScaleResampleFilter(*ppRVar1,(1.0 / (dVar33 * dVar33 + 1.0)) * dVar3,\n                                  dVar3 * (double)DAT_002a7fe8,\n                                  ((-dVar33 * local_f4 * dVar29 * dVar29) / dVar32) * dVar3,\n                                  (local_f4 / (dVar12 - dVar31)) * dVar3);\n              local_10c = dVar30 * dVar32 + pdVar7[2];\n              local_f4 = local_f4 + pdVar7[3];\n              break;\n            case Plane2CylinderDistortion:\n              dVar31 = pdVar7[1];\n              local_14c = (DAT_0029f740 * dVar31 - ABS(dVar33 - pdVar7[4])) / dVar3 +\n                          (double)DAT_0029f124;\n              if (0.0 < local_14c) {\n                dVar33 = (dVar33 - pdVar7[4]) / dVar31;\n                dVar32 = cos(dVar33);\n                dVar32 = (double)DAT_0029f718 / dVar32;\n                dVar33 = tan(dVar33);\n                dVar33 = dVar33 * dVar31;\n                dVar12 = (dVar12 - pdVar7[5]) * dVar32;\n                ScaleResampleFilter(*ppRVar1,dVar32 * dVar32 * dVar3,dVar3 * 0.0,\n                                    ((dVar32 * dVar12) / dVar31) * dVar3,dVar3 * dVar32);\n              }\n              local_10c = dVar33 + pdVar7[2];\n              local_f4 = dVar12 + pdVar7[3];\n              break;\n            case BarrelDistortion:\n            case BarrelInverseDistortion:\n              dVar33 = dVar33 - pdVar7[8];\n              dVar12 = dVar12 - pdVar7[9];\n              dVar32 = dVar12 * dVar12 + dVar33 * dVar33;\n              dVar31 = SQRT(dVar32);\n              if (dVar32 < 0.0) {\n                sqrt(dVar32);\n                DVar17 = *this->method;\n              }\n              dVar32 = pdVar7[7];\n              local_13c = pdVar7[3];\n              if (DAT_0029f138 < dVar31) {\n                dVar30 = pdVar7[1];\n                local_13c = ((*pdVar7 * dVar31 + dVar30) * dVar31 + pdVar7[2]) * dVar31 + local_13c;\n                dVar29 = pdVar7[5];\n                dVar32 = ((pdVar7[4] * dVar31 + dVar29) * dVar31 + pdVar7[6]) * dVar31 + dVar32;\n                dVar30 = ((dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31) * dVar31 +\n                         pdVar7[2]) / dVar31;\n                dVar31 = ((dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31) * dVar31 +\n                         pdVar7[6]) / dVar31;\n                if (DVar17 == BarrelInverseDistortion) {\n                  local_13c = 1.0 / local_13c;\n                  dVar32 = 1.0 / dVar32;\n                  dVar30 = dVar30 * -local_13c * local_13c;\n                  dVar31 = -dVar32 * dVar32 * dVar31;\n                }\n                local_10c = local_13c * dVar33 + pdVar7[8];\n                local_f4 = dVar32 * dVar12 + pdVar7[9];\n                ScaleResampleFilter(*ppRVar1,(dVar30 * dVar33 * dVar33 + local_13c) * dVar3,\n                                    dVar12 * dVar30 * dVar33 * dVar3,\n                                    dVar31 * dVar33 * dVar12 * dVar3,\n                                    (dVar31 * dVar12 * dVar12 + dVar32) * dVar3);\n              }\n              else {\n                if (DVar17 != BarrelDistortion) {\n                  dVar32 = 1.0 / dVar32;\n                  local_13c = 1.0 / local_13c;\n                }\n                ScaleResampleFilter(*ppRVar1,dVar3 * local_13c,dVar3 * (double)DAT_002a7fe8,\n                                    dVar3 * (double)DAT_002a7fe8,dVar32 * dVar3);\n              }\n              break;\n            case ShepardsDistortion:\n              if (sVar9 == 0) {\n                dVar31 = 0.0;\n                dVar30 = 0.0;\n                dVar32 = 0.0;\n              }\n              else {\n                dVar31 = 0.0;\n                dVar32 = 0.0;\n                dVar30 = 0.0;\n                pdVar25 = pdVar6;\n                do {\n                  dVar29 = pow((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7);\n                  if (dVar29 < 1.0) {\n                    dVar29 = 1.0;\n                  }\n                  else {\n                    dVar29 = 1.0 / dVar29;\n                  }\n                  pdVar26 = pdVar25 + 4;\n                  dVar30 = (*pdVar25 - pdVar25[2]) * dVar29 + dVar30;\n                  dVar32 = (pdVar25[1] - pdVar25[3]) * dVar29 + dVar32;\n                  dVar31 = dVar31 + dVar29;\n                  pdVar25 = pdVar26;\n                } while ((double *)((int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20) != pdVar26);\n              }\n              local_f4 = dVar12 + dVar32 / dVar31;\n              local_10c = dVar30 / dVar31 + dVar33;\n            }\n            dVar12 = local_f4;\n            if (MVar8 != MagickFalse) {\nLAB_000852c3:\n              dVar33 = local_10c;\n              if (*this->method != ArcDistortion) {\nLAB_000852cf:\n                local_10c = dVar33 - (double)(image->page).x;\n                dVar12 = dVar12 - (double)(image->page).y;\n              }\n            }\njoined_r0x000857af:\n            if (local_14c <= 0.0) {\n              pPVar23 = this->invalid;\n              pPVar20 = pIVar4->channel_map;\n              pQVar16[pPVar20->offset] = pPVar23->red;\n              pQVar16[pPVar20[1].offset] = pPVar23->green;\n              pQVar16[pPVar20[2].offset] = pPVar23->blue;\n              if (pPVar20[3].traits != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = pPVar23->black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                if (pPVar23->alpha_trait == UndefinedPixelTrait) goto LAB_00085d68;\n                dVar33 = pPVar23->alpha;\n                goto LAB_000853cb;\n              }\n            }\n            else {\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              if (local_14c < 1.0) {\n                pPVar23 = this->invalid;\n                dVar12 = local_70.alpha * local_14c * _DAT_0029f148;\n                dVar31 = pPVar23->alpha * (1.0 - local_14c) * _DAT_0029f148;\n                dVar33 = dVar12 + dVar31;\n                if (dVar33 < 0.0) {\n                  dVar33 = 0.0;\n                  local_70.alpha = 0.0;\n                }\n                else if (dVar33 <= 1.0) {\n                  local_70.alpha = dVar33 * (double)DAT_0029f710;\n                }\n                else {\n                  dVar33 = 1.0;\n                  local_70.alpha = (MagickRealType)DAT_0029f710;\n                }\n                dVar32 = DAT_0029f738;\n                if (DAT_0029f138 <= dVar33) {\n                  dVar32 = (double)DAT_0029f718 / dVar33;\n                }\n                local_70.red = (pPVar23->red * dVar31 + local_70.red * dVar12) * dVar32;\n                local_70.green = (pPVar23->green * dVar31 + local_70.green * dVar12) * dVar32;\n                local_70.blue = (pPVar23->blue * dVar31 + local_70.blue * dVar12) * dVar32;\n                if (pPVar23->colorspace == CMYKColorspace) {\n                  local_70.black = dVar32 * (dVar31 * pPVar23->black + dVar12 * local_70.black);\n                }\n              }\nLAB_00085370:\n              pPVar20 = pIVar4->channel_map;\n              PVar10 = pPVar20[3].traits;\n              pQVar16[pPVar20->offset] = local_70.red;\n              pQVar16[pPVar20[1].offset] = local_70.green;\n              pQVar16[pPVar20[2].offset] = local_70.blue;\n              if (PVar10 != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = local_70.black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                dVar33 = local_70.alpha;\n                if (local_70.alpha_trait == UndefinedPixelTrait) {\nLAB_00085d68:\n                  dVar33 = (double)DAT_0029f710;\n                }\nLAB_000853cb:\n                pQVar16[pPVar20[4].offset] = dVar33;\n              }\n            }\n            local_15c = local_15c + 1;\n            pQVar16 = pQVar16 + pIVar4->number_channels;\n          } while (local_15c < (int)pIVar4->columns);\n        }" { (expression_statement "local_14c = 1.0;" (assignment_expression "local_14c = 1.0" identifier = number_literal) ;) (expression_statement "ppRVar1 = ppRVar5 + iVar14;" (assignment_expression "ppRVar1 = ppRVar5 + iVar14" identifier = (binary_expression "ppRVar5 + iVar14" identifier + identifier)) ;) (expression_statement "local_15c = 0;" (assignment_expression "local_15c = 0" identifier = number_literal) ;) (do_statement "do {\n            dVar33 = ((double)(local_15c + this->geometry->x) + (double)DAT_0029f124) * dVar3;\n            DVar17 = *this->method;\n            dVar12 = dVar3 * ((double)(local_140 + this->geometry->y) + (double)DAT_0029f124);\n            local_f4 = dVar12;\n            local_10c = dVar33;\n            switch(DVar17) {\n            case AffineDistortion:\n            case RigidAffineDistortion:\n              local_f4 = dVar12 * pdVar7[4] + dVar33 * pdVar7[3] + pdVar7[5];\n              local_10c = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              break;\n            case PerspectiveDistortion:\n              dVar31 = pdVar7[6];\n              dVar32 = pdVar7[7];\n              dVar30 = dVar12 * dVar32 + dVar33 * dVar31 + 1.0;\n              dVar29 = pdVar7[8] * dVar30;\n              local_14c = 0.0;\n              if (0.0 <= dVar29) {\n                local_14c = 1.0;\n              }\n              dVar13 = ABS(dVar30) + ABS(dVar30);\n              if (ABS(dVar31) <= ABS(dVar32)) {\n                if (dVar13 < ABS(dVar32) * dVar3) {\n                  local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar32);\n                }\n              }\n              else if (dVar13 < ABS(dVar31) * dVar3) {\n                local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar31);\n              }\n              if (local_14c <= 0.0) goto LAB_00085796;\n              dVar29 = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              dVar33 = pdVar7[3] * dVar33 + dVar12 * pdVar7[4] + pdVar7[5];\n              dVar12 = (double)DAT_0029f718 / dVar30;\n              local_10c = dVar29 * dVar12;\n              local_f4 = dVar33 * dVar12;\n              dVar12 = dVar12 * dVar12;\n              ScaleResampleFilter(*ppRVar1,dVar3 * (dVar30 * *pdVar7 - dVar29 * dVar31) * dVar12,\n                                  (pdVar7[1] * dVar30 - dVar32 * dVar29) * dVar12 * dVar3,\n                                  (pdVar7[3] * dVar30 - dVar33 * dVar31) * dVar12 * dVar3,\n                                  (pdVar7[4] * dVar30 - dVar33 * dVar32) * dVar12 * dVar3);\n              break;\n            case BilinearDistortion:\n              dVar13 = dVar33 - pdVar7[3];\n              local_12c = pdVar7[2];\n              dVar29 = (pdVar7[6] * dVar13 - (dVar12 - pdVar7[7]) * local_12c) + pdVar7[8];\n              dVar31 = *pdVar7;\n              dVar30 = pdVar7[4] * dVar13 - (dVar12 - pdVar7[7]) * dVar31;\n              dVar32 = pdVar7[9];\n              if (ABS(dVar32) < DAT_0029f138) {\n                dVar12 = -dVar30 / dVar29;\n              }\n              else {\n                dVar30 = dVar29 * dVar29 - (dVar32 + dVar32) * dVar30;\n                local_14c = 0.0;\n                if (dVar30 < 0.0) goto LAB_00085796;\n                if (dVar30 < 0.0) {\n                  sqrt(dVar30);\n                  dVar32 = pdVar7[9];\n                  dVar31 = *pdVar7;\n                  local_12c = pdVar7[2];\n                }\n                dVar12 = (SQRT(dVar30) - dVar29) / dVar32;\n              }\n              local_10c = (dVar13 - pdVar7[1] * dVar12) / (local_12c * dVar12 + dVar31);\n              if (MVar8 != MagickFalse) {\n                local_14c = 1.0;\n                goto LAB_000852c3;\n              }\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              local_14c = 1.0;\n              goto LAB_00085370;\n            case BilinearReverseDistortion:\n              dVar31 = pdVar7[2] * dVar33;\n              local_10c = pdVar7[3] + dVar31 * dVar12 + dVar12 * pdVar7[1] + *pdVar7 * dVar33;\n              dVar32 = dVar33 * pdVar7[6];\n              local_f4 = dVar12 * dVar32 + dVar12 * pdVar7[5] + dVar33 * pdVar7[4] + pdVar7[7];\n              ScaleResampleFilter(*ppRVar1,(dVar12 * pdVar7[2] + *pdVar7) * dVar3,\n                                  (pdVar7[1] + dVar31) * dVar3,\n                                  (pdVar7[6] * dVar12 + pdVar7[4]) * dVar3,\n                                  (pdVar7[5] + dVar32) * dVar3);\n              break;\n            case PolynomialDistortion:\n              iVar14 = (int)ROUND(pdVar7[1]);\n              if (iVar14 < 1) {\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n              }\n              else {\n                iVar21 = 0;\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n                do {\n                  n = iVar21;\n                  dVar32 = poly_basis_fn(iVar21,dVar33,dVar12);\n                  dVar31 = pdVar7[iVar21 + 2];\n                  local_10c = dVar32 * dVar31 + local_10c;\n                  dVar30 = poly_basis_dx(n,dVar33,dVar12);\n                  local_114 = dVar31 * dVar30 + local_114;\n                  switch(iVar21) {\n                  case 0:\n                  case 1:\n                  case 4:\n                    dVar31 = dVar31 * 0.0;\n                    dVar29 = 0.0;\n                    break;\n                  case 2:\n                    dVar29 = 1.0;\n                    break;\n                  case 3:\n                    dVar31 = dVar31 * dVar33;\n                    dVar29 = dVar33;\n                    break;\n                  case 5:\n                    dVar31 = dVar31 * dVar12;\n                    dVar29 = dVar12;\n                    break;\n                  default:\n                    dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);\n                    dVar31 = dVar31 * dVar29;\n                  }\n                  local_fc = dVar31 + local_fc;\n                  dVar31 = pdVar7[iVar14 + iVar21 + 2];\n                  iVar21 = iVar21 + 1;\n                  local_f4 = dVar32 * dVar31 + local_f4;\n                  local_11c = dVar30 * dVar31 + local_11c;\n                  local_104 = dVar29 * dVar31 + local_104;\n                } while (iVar14 != iVar21);\n              }\n              ScaleResampleFilter(*ppRVar1,local_114 * dVar3,local_fc * dVar3,local_11c * dVar3,\n                                  local_104 * dVar3);\n              break;\n            case ArcDistortion:\n              dVar31 = atan2(dVar12,dVar33);\n              dVar31 = (dVar31 - *pdVar7) / DAT_002b0c28;\n              if (dVar31 - ROUND(dVar31) < ROUND(dVar31) - dVar31) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar33 = hypot(dVar33,dVar12);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[1] / (dVar33 * DAT_002b0c28)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              local_10c = (double)(image->page).x + (dVar31 - ROUND(dVar31)) * pdVar7[1] + pdVar7[4]\n                          + (double)DAT_0029f124;\n              local_f4 = (double)(image->page).y + (pdVar7[2] - dVar33) * pdVar7[3];\n              break;\n            case PolarDistortion:\n              dVar31 = pdVar7[2];\n              dVar32 = pdVar7[3];\n              dVar30 = atan2(dVar33 - dVar31,dVar12 - dVar32);\n              dVar29 = DAT_002b0c28;\n              dVar30 = (dVar30 - (pdVar7[4] + pdVar7[5]) * (double)DAT_0029f124) / DAT_002b0c28;\n              if (dVar30 - ROUND(dVar30) < ROUND(dVar30) - dVar30) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar30 = DAT_002b0c28 * (dVar30 - ROUND(dVar30));\n              dVar33 = hypot(dVar33 - dVar31,dVar12 - dVar32);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[6] / (dVar29 * dVar33)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              local_13c = (double)(ulonglong)image->columns;\n              local_10c = (double)(image->page).x +\n                          (double)(longlong)local_13c * (double)DAT_0029f124 + dVar30 * pdVar7[6];\n              local_f4 = (double)(image->page).y + (dVar33 - pdVar7[1]) * pdVar7[7];\n              break;\n            case DePolarDistortion:\n              dVar33 = (double)DAT_0029f124;\n              sincos((double)(((float)local_15c + DAT_0029f124) * (float)dVar3 * (float)pdVar7[6] +\n                             (float)pdVar7[4]),local_84,&local_8c);\n              dVar12 = (dVar33 + (double)local_140) * dVar3 * pdVar7[7] + pdVar7[1];\n              dVar33 = local_84[0] * dVar12 + pdVar7[2];\n              dVar12 = dVar12 * local_8c + pdVar7[3];\nLAB_00085796:\n              local_10c = dVar33;\n              if (MVar8 != MagickFalse) goto LAB_000852cf;\n              goto joined_r0x000857af;\n            case Cylinder2PlaneDistortion:\n              dVar31 = pdVar7[5];\n              dVar32 = pdVar7[1];\n              dVar33 = (dVar33 - pdVar7[4]) / dVar32;\n              dVar30 = atan(dVar33);\n              dVar29 = cos(dVar30);\n              local_f4 = (dVar12 - dVar31) * dVar29;\n              ScaleResampleFilter(*ppRVar1,(1.0 / (dVar33 * dVar33 + 1.0)) * dVar3,\n                                  dVar3 * (double)DAT_002a7fe8,\n                                  ((-dVar33 * local_f4 * dVar29 * dVar29) / dVar32) * dVar3,\n                                  (local_f4 / (dVar12 - dVar31)) * dVar3);\n              local_10c = dVar30 * dVar32 + pdVar7[2];\n              local_f4 = local_f4 + pdVar7[3];\n              break;\n            case Plane2CylinderDistortion:\n              dVar31 = pdVar7[1];\n              local_14c = (DAT_0029f740 * dVar31 - ABS(dVar33 - pdVar7[4])) / dVar3 +\n                          (double)DAT_0029f124;\n              if (0.0 < local_14c) {\n                dVar33 = (dVar33 - pdVar7[4]) / dVar31;\n                dVar32 = cos(dVar33);\n                dVar32 = (double)DAT_0029f718 / dVar32;\n                dVar33 = tan(dVar33);\n                dVar33 = dVar33 * dVar31;\n                dVar12 = (dVar12 - pdVar7[5]) * dVar32;\n                ScaleResampleFilter(*ppRVar1,dVar32 * dVar32 * dVar3,dVar3 * 0.0,\n                                    ((dVar32 * dVar12) / dVar31) * dVar3,dVar3 * dVar32);\n              }\n              local_10c = dVar33 + pdVar7[2];\n              local_f4 = dVar12 + pdVar7[3];\n              break;\n            case BarrelDistortion:\n            case BarrelInverseDistortion:\n              dVar33 = dVar33 - pdVar7[8];\n              dVar12 = dVar12 - pdVar7[9];\n              dVar32 = dVar12 * dVar12 + dVar33 * dVar33;\n              dVar31 = SQRT(dVar32);\n              if (dVar32 < 0.0) {\n                sqrt(dVar32);\n                DVar17 = *this->method;\n              }\n              dVar32 = pdVar7[7];\n              local_13c = pdVar7[3];\n              if (DAT_0029f138 < dVar31) {\n                dVar30 = pdVar7[1];\n                local_13c = ((*pdVar7 * dVar31 + dVar30) * dVar31 + pdVar7[2]) * dVar31 + local_13c;\n                dVar29 = pdVar7[5];\n                dVar32 = ((pdVar7[4] * dVar31 + dVar29) * dVar31 + pdVar7[6]) * dVar31 + dVar32;\n                dVar30 = ((dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31) * dVar31 +\n                         pdVar7[2]) / dVar31;\n                dVar31 = ((dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31) * dVar31 +\n                         pdVar7[6]) / dVar31;\n                if (DVar17 == BarrelInverseDistortion) {\n                  local_13c = 1.0 / local_13c;\n                  dVar32 = 1.0 / dVar32;\n                  dVar30 = dVar30 * -local_13c * local_13c;\n                  dVar31 = -dVar32 * dVar32 * dVar31;\n                }\n                local_10c = local_13c * dVar33 + pdVar7[8];\n                local_f4 = dVar32 * dVar12 + pdVar7[9];\n                ScaleResampleFilter(*ppRVar1,(dVar30 * dVar33 * dVar33 + local_13c) * dVar3,\n                                    dVar12 * dVar30 * dVar33 * dVar3,\n                                    dVar31 * dVar33 * dVar12 * dVar3,\n                                    (dVar31 * dVar12 * dVar12 + dVar32) * dVar3);\n              }\n              else {\n                if (DVar17 != BarrelDistortion) {\n                  dVar32 = 1.0 / dVar32;\n                  local_13c = 1.0 / local_13c;\n                }\n                ScaleResampleFilter(*ppRVar1,dVar3 * local_13c,dVar3 * (double)DAT_002a7fe8,\n                                    dVar3 * (double)DAT_002a7fe8,dVar32 * dVar3);\n              }\n              break;\n            case ShepardsDistortion:\n              if (sVar9 == 0) {\n                dVar31 = 0.0;\n                dVar30 = 0.0;\n                dVar32 = 0.0;\n              }\n              else {\n                dVar31 = 0.0;\n                dVar32 = 0.0;\n                dVar30 = 0.0;\n                pdVar25 = pdVar6;\n                do {\n                  dVar29 = pow((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7);\n                  if (dVar29 < 1.0) {\n                    dVar29 = 1.0;\n                  }\n                  else {\n                    dVar29 = 1.0 / dVar29;\n                  }\n                  pdVar26 = pdVar25 + 4;\n                  dVar30 = (*pdVar25 - pdVar25[2]) * dVar29 + dVar30;\n                  dVar32 = (pdVar25[1] - pdVar25[3]) * dVar29 + dVar32;\n                  dVar31 = dVar31 + dVar29;\n                  pdVar25 = pdVar26;\n                } while ((double *)((int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20) != pdVar26);\n              }\n              local_f4 = dVar12 + dVar32 / dVar31;\n              local_10c = dVar30 / dVar31 + dVar33;\n            }\n            dVar12 = local_f4;\n            if (MVar8 != MagickFalse) {\nLAB_000852c3:\n              dVar33 = local_10c;\n              if (*this->method != ArcDistortion) {\nLAB_000852cf:\n                local_10c = dVar33 - (double)(image->page).x;\n                dVar12 = dVar12 - (double)(image->page).y;\n              }\n            }\njoined_r0x000857af:\n            if (local_14c <= 0.0) {\n              pPVar23 = this->invalid;\n              pPVar20 = pIVar4->channel_map;\n              pQVar16[pPVar20->offset] = pPVar23->red;\n              pQVar16[pPVar20[1].offset] = pPVar23->green;\n              pQVar16[pPVar20[2].offset] = pPVar23->blue;\n              if (pPVar20[3].traits != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = pPVar23->black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                if (pPVar23->alpha_trait == UndefinedPixelTrait) goto LAB_00085d68;\n                dVar33 = pPVar23->alpha;\n                goto LAB_000853cb;\n              }\n            }\n            else {\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              if (local_14c < 1.0) {\n                pPVar23 = this->invalid;\n                dVar12 = local_70.alpha * local_14c * _DAT_0029f148;\n                dVar31 = pPVar23->alpha * (1.0 - local_14c) * _DAT_0029f148;\n                dVar33 = dVar12 + dVar31;\n                if (dVar33 < 0.0) {\n                  dVar33 = 0.0;\n                  local_70.alpha = 0.0;\n                }\n                else if (dVar33 <= 1.0) {\n                  local_70.alpha = dVar33 * (double)DAT_0029f710;\n                }\n                else {\n                  dVar33 = 1.0;\n                  local_70.alpha = (MagickRealType)DAT_0029f710;\n                }\n                dVar32 = DAT_0029f738;\n                if (DAT_0029f138 <= dVar33) {\n                  dVar32 = (double)DAT_0029f718 / dVar33;\n                }\n                local_70.red = (pPVar23->red * dVar31 + local_70.red * dVar12) * dVar32;\n                local_70.green = (pPVar23->green * dVar31 + local_70.green * dVar12) * dVar32;\n                local_70.blue = (pPVar23->blue * dVar31 + local_70.blue * dVar12) * dVar32;\n                if (pPVar23->colorspace == CMYKColorspace) {\n                  local_70.black = dVar32 * (dVar31 * pPVar23->black + dVar12 * local_70.black);\n                }\n              }\nLAB_00085370:\n              pPVar20 = pIVar4->channel_map;\n              PVar10 = pPVar20[3].traits;\n              pQVar16[pPVar20->offset] = local_70.red;\n              pQVar16[pPVar20[1].offset] = local_70.green;\n              pQVar16[pPVar20[2].offset] = local_70.blue;\n              if (PVar10 != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = local_70.black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                dVar33 = local_70.alpha;\n                if (local_70.alpha_trait == UndefinedPixelTrait) {\nLAB_00085d68:\n                  dVar33 = (double)DAT_0029f710;\n                }\nLAB_000853cb:\n                pQVar16[pPVar20[4].offset] = dVar33;\n              }\n            }\n            local_15c = local_15c + 1;\n            pQVar16 = pQVar16 + pIVar4->number_channels;\n          } while (local_15c < (int)pIVar4->columns);" do (compound_statement "{\n            dVar33 = ((double)(local_15c + this->geometry->x) + (double)DAT_0029f124) * dVar3;\n            DVar17 = *this->method;\n            dVar12 = dVar3 * ((double)(local_140 + this->geometry->y) + (double)DAT_0029f124);\n            local_f4 = dVar12;\n            local_10c = dVar33;\n            switch(DVar17) {\n            case AffineDistortion:\n            case RigidAffineDistortion:\n              local_f4 = dVar12 * pdVar7[4] + dVar33 * pdVar7[3] + pdVar7[5];\n              local_10c = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              break;\n            case PerspectiveDistortion:\n              dVar31 = pdVar7[6];\n              dVar32 = pdVar7[7];\n              dVar30 = dVar12 * dVar32 + dVar33 * dVar31 + 1.0;\n              dVar29 = pdVar7[8] * dVar30;\n              local_14c = 0.0;\n              if (0.0 <= dVar29) {\n                local_14c = 1.0;\n              }\n              dVar13 = ABS(dVar30) + ABS(dVar30);\n              if (ABS(dVar31) <= ABS(dVar32)) {\n                if (dVar13 < ABS(dVar32) * dVar3) {\n                  local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar32);\n                }\n              }\n              else if (dVar13 < ABS(dVar31) * dVar3) {\n                local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar31);\n              }\n              if (local_14c <= 0.0) goto LAB_00085796;\n              dVar29 = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              dVar33 = pdVar7[3] * dVar33 + dVar12 * pdVar7[4] + pdVar7[5];\n              dVar12 = (double)DAT_0029f718 / dVar30;\n              local_10c = dVar29 * dVar12;\n              local_f4 = dVar33 * dVar12;\n              dVar12 = dVar12 * dVar12;\n              ScaleResampleFilter(*ppRVar1,dVar3 * (dVar30 * *pdVar7 - dVar29 * dVar31) * dVar12,\n                                  (pdVar7[1] * dVar30 - dVar32 * dVar29) * dVar12 * dVar3,\n                                  (pdVar7[3] * dVar30 - dVar33 * dVar31) * dVar12 * dVar3,\n                                  (pdVar7[4] * dVar30 - dVar33 * dVar32) * dVar12 * dVar3);\n              break;\n            case BilinearDistortion:\n              dVar13 = dVar33 - pdVar7[3];\n              local_12c = pdVar7[2];\n              dVar29 = (pdVar7[6] * dVar13 - (dVar12 - pdVar7[7]) * local_12c) + pdVar7[8];\n              dVar31 = *pdVar7;\n              dVar30 = pdVar7[4] * dVar13 - (dVar12 - pdVar7[7]) * dVar31;\n              dVar32 = pdVar7[9];\n              if (ABS(dVar32) < DAT_0029f138) {\n                dVar12 = -dVar30 / dVar29;\n              }\n              else {\n                dVar30 = dVar29 * dVar29 - (dVar32 + dVar32) * dVar30;\n                local_14c = 0.0;\n                if (dVar30 < 0.0) goto LAB_00085796;\n                if (dVar30 < 0.0) {\n                  sqrt(dVar30);\n                  dVar32 = pdVar7[9];\n                  dVar31 = *pdVar7;\n                  local_12c = pdVar7[2];\n                }\n                dVar12 = (SQRT(dVar30) - dVar29) / dVar32;\n              }\n              local_10c = (dVar13 - pdVar7[1] * dVar12) / (local_12c * dVar12 + dVar31);\n              if (MVar8 != MagickFalse) {\n                local_14c = 1.0;\n                goto LAB_000852c3;\n              }\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              local_14c = 1.0;\n              goto LAB_00085370;\n            case BilinearReverseDistortion:\n              dVar31 = pdVar7[2] * dVar33;\n              local_10c = pdVar7[3] + dVar31 * dVar12 + dVar12 * pdVar7[1] + *pdVar7 * dVar33;\n              dVar32 = dVar33 * pdVar7[6];\n              local_f4 = dVar12 * dVar32 + dVar12 * pdVar7[5] + dVar33 * pdVar7[4] + pdVar7[7];\n              ScaleResampleFilter(*ppRVar1,(dVar12 * pdVar7[2] + *pdVar7) * dVar3,\n                                  (pdVar7[1] + dVar31) * dVar3,\n                                  (pdVar7[6] * dVar12 + pdVar7[4]) * dVar3,\n                                  (pdVar7[5] + dVar32) * dVar3);\n              break;\n            case PolynomialDistortion:\n              iVar14 = (int)ROUND(pdVar7[1]);\n              if (iVar14 < 1) {\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n              }\n              else {\n                iVar21 = 0;\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n                do {\n                  n = iVar21;\n                  dVar32 = poly_basis_fn(iVar21,dVar33,dVar12);\n                  dVar31 = pdVar7[iVar21 + 2];\n                  local_10c = dVar32 * dVar31 + local_10c;\n                  dVar30 = poly_basis_dx(n,dVar33,dVar12);\n                  local_114 = dVar31 * dVar30 + local_114;\n                  switch(iVar21) {\n                  case 0:\n                  case 1:\n                  case 4:\n                    dVar31 = dVar31 * 0.0;\n                    dVar29 = 0.0;\n                    break;\n                  case 2:\n                    dVar29 = 1.0;\n                    break;\n                  case 3:\n                    dVar31 = dVar31 * dVar33;\n                    dVar29 = dVar33;\n                    break;\n                  case 5:\n                    dVar31 = dVar31 * dVar12;\n                    dVar29 = dVar12;\n                    break;\n                  default:\n                    dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);\n                    dVar31 = dVar31 * dVar29;\n                  }\n                  local_fc = dVar31 + local_fc;\n                  dVar31 = pdVar7[iVar14 + iVar21 + 2];\n                  iVar21 = iVar21 + 1;\n                  local_f4 = dVar32 * dVar31 + local_f4;\n                  local_11c = dVar30 * dVar31 + local_11c;\n                  local_104 = dVar29 * dVar31 + local_104;\n                } while (iVar14 != iVar21);\n              }\n              ScaleResampleFilter(*ppRVar1,local_114 * dVar3,local_fc * dVar3,local_11c * dVar3,\n                                  local_104 * dVar3);\n              break;\n            case ArcDistortion:\n              dVar31 = atan2(dVar12,dVar33);\n              dVar31 = (dVar31 - *pdVar7) / DAT_002b0c28;\n              if (dVar31 - ROUND(dVar31) < ROUND(dVar31) - dVar31) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar33 = hypot(dVar33,dVar12);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[1] / (dVar33 * DAT_002b0c28)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              local_10c = (double)(image->page).x + (dVar31 - ROUND(dVar31)) * pdVar7[1] + pdVar7[4]\n                          + (double)DAT_0029f124;\n              local_f4 = (double)(image->page).y + (pdVar7[2] - dVar33) * pdVar7[3];\n              break;\n            case PolarDistortion:\n              dVar31 = pdVar7[2];\n              dVar32 = pdVar7[3];\n              dVar30 = atan2(dVar33 - dVar31,dVar12 - dVar32);\n              dVar29 = DAT_002b0c28;\n              dVar30 = (dVar30 - (pdVar7[4] + pdVar7[5]) * (double)DAT_0029f124) / DAT_002b0c28;\n              if (dVar30 - ROUND(dVar30) < ROUND(dVar30) - dVar30) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar30 = DAT_002b0c28 * (dVar30 - ROUND(dVar30));\n              dVar33 = hypot(dVar33 - dVar31,dVar12 - dVar32);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[6] / (dVar29 * dVar33)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              local_13c = (double)(ulonglong)image->columns;\n              local_10c = (double)(image->page).x +\n                          (double)(longlong)local_13c * (double)DAT_0029f124 + dVar30 * pdVar7[6];\n              local_f4 = (double)(image->page).y + (dVar33 - pdVar7[1]) * pdVar7[7];\n              break;\n            case DePolarDistortion:\n              dVar33 = (double)DAT_0029f124;\n              sincos((double)(((float)local_15c + DAT_0029f124) * (float)dVar3 * (float)pdVar7[6] +\n                             (float)pdVar7[4]),local_84,&local_8c);\n              dVar12 = (dVar33 + (double)local_140) * dVar3 * pdVar7[7] + pdVar7[1];\n              dVar33 = local_84[0] * dVar12 + pdVar7[2];\n              dVar12 = dVar12 * local_8c + pdVar7[3];\nLAB_00085796:\n              local_10c = dVar33;\n              if (MVar8 != MagickFalse) goto LAB_000852cf;\n              goto joined_r0x000857af;\n            case Cylinder2PlaneDistortion:\n              dVar31 = pdVar7[5];\n              dVar32 = pdVar7[1];\n              dVar33 = (dVar33 - pdVar7[4]) / dVar32;\n              dVar30 = atan(dVar33);\n              dVar29 = cos(dVar30);\n              local_f4 = (dVar12 - dVar31) * dVar29;\n              ScaleResampleFilter(*ppRVar1,(1.0 / (dVar33 * dVar33 + 1.0)) * dVar3,\n                                  dVar3 * (double)DAT_002a7fe8,\n                                  ((-dVar33 * local_f4 * dVar29 * dVar29) / dVar32) * dVar3,\n                                  (local_f4 / (dVar12 - dVar31)) * dVar3);\n              local_10c = dVar30 * dVar32 + pdVar7[2];\n              local_f4 = local_f4 + pdVar7[3];\n              break;\n            case Plane2CylinderDistortion:\n              dVar31 = pdVar7[1];\n              local_14c = (DAT_0029f740 * dVar31 - ABS(dVar33 - pdVar7[4])) / dVar3 +\n                          (double)DAT_0029f124;\n              if (0.0 < local_14c) {\n                dVar33 = (dVar33 - pdVar7[4]) / dVar31;\n                dVar32 = cos(dVar33);\n                dVar32 = (double)DAT_0029f718 / dVar32;\n                dVar33 = tan(dVar33);\n                dVar33 = dVar33 * dVar31;\n                dVar12 = (dVar12 - pdVar7[5]) * dVar32;\n                ScaleResampleFilter(*ppRVar1,dVar32 * dVar32 * dVar3,dVar3 * 0.0,\n                                    ((dVar32 * dVar12) / dVar31) * dVar3,dVar3 * dVar32);\n              }\n              local_10c = dVar33 + pdVar7[2];\n              local_f4 = dVar12 + pdVar7[3];\n              break;\n            case BarrelDistortion:\n            case BarrelInverseDistortion:\n              dVar33 = dVar33 - pdVar7[8];\n              dVar12 = dVar12 - pdVar7[9];\n              dVar32 = dVar12 * dVar12 + dVar33 * dVar33;\n              dVar31 = SQRT(dVar32);\n              if (dVar32 < 0.0) {\n                sqrt(dVar32);\n                DVar17 = *this->method;\n              }\n              dVar32 = pdVar7[7];\n              local_13c = pdVar7[3];\n              if (DAT_0029f138 < dVar31) {\n                dVar30 = pdVar7[1];\n                local_13c = ((*pdVar7 * dVar31 + dVar30) * dVar31 + pdVar7[2]) * dVar31 + local_13c;\n                dVar29 = pdVar7[5];\n                dVar32 = ((pdVar7[4] * dVar31 + dVar29) * dVar31 + pdVar7[6]) * dVar31 + dVar32;\n                dVar30 = ((dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31) * dVar31 +\n                         pdVar7[2]) / dVar31;\n                dVar31 = ((dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31) * dVar31 +\n                         pdVar7[6]) / dVar31;\n                if (DVar17 == BarrelInverseDistortion) {\n                  local_13c = 1.0 / local_13c;\n                  dVar32 = 1.0 / dVar32;\n                  dVar30 = dVar30 * -local_13c * local_13c;\n                  dVar31 = -dVar32 * dVar32 * dVar31;\n                }\n                local_10c = local_13c * dVar33 + pdVar7[8];\n                local_f4 = dVar32 * dVar12 + pdVar7[9];\n                ScaleResampleFilter(*ppRVar1,(dVar30 * dVar33 * dVar33 + local_13c) * dVar3,\n                                    dVar12 * dVar30 * dVar33 * dVar3,\n                                    dVar31 * dVar33 * dVar12 * dVar3,\n                                    (dVar31 * dVar12 * dVar12 + dVar32) * dVar3);\n              }\n              else {\n                if (DVar17 != BarrelDistortion) {\n                  dVar32 = 1.0 / dVar32;\n                  local_13c = 1.0 / local_13c;\n                }\n                ScaleResampleFilter(*ppRVar1,dVar3 * local_13c,dVar3 * (double)DAT_002a7fe8,\n                                    dVar3 * (double)DAT_002a7fe8,dVar32 * dVar3);\n              }\n              break;\n            case ShepardsDistortion:\n              if (sVar9 == 0) {\n                dVar31 = 0.0;\n                dVar30 = 0.0;\n                dVar32 = 0.0;\n              }\n              else {\n                dVar31 = 0.0;\n                dVar32 = 0.0;\n                dVar30 = 0.0;\n                pdVar25 = pdVar6;\n                do {\n                  dVar29 = pow((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7);\n                  if (dVar29 < 1.0) {\n                    dVar29 = 1.0;\n                  }\n                  else {\n                    dVar29 = 1.0 / dVar29;\n                  }\n                  pdVar26 = pdVar25 + 4;\n                  dVar30 = (*pdVar25 - pdVar25[2]) * dVar29 + dVar30;\n                  dVar32 = (pdVar25[1] - pdVar25[3]) * dVar29 + dVar32;\n                  dVar31 = dVar31 + dVar29;\n                  pdVar25 = pdVar26;\n                } while ((double *)((int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20) != pdVar26);\n              }\n              local_f4 = dVar12 + dVar32 / dVar31;\n              local_10c = dVar30 / dVar31 + dVar33;\n            }\n            dVar12 = local_f4;\n            if (MVar8 != MagickFalse) {\nLAB_000852c3:\n              dVar33 = local_10c;\n              if (*this->method != ArcDistortion) {\nLAB_000852cf:\n                local_10c = dVar33 - (double)(image->page).x;\n                dVar12 = dVar12 - (double)(image->page).y;\n              }\n            }\njoined_r0x000857af:\n            if (local_14c <= 0.0) {\n              pPVar23 = this->invalid;\n              pPVar20 = pIVar4->channel_map;\n              pQVar16[pPVar20->offset] = pPVar23->red;\n              pQVar16[pPVar20[1].offset] = pPVar23->green;\n              pQVar16[pPVar20[2].offset] = pPVar23->blue;\n              if (pPVar20[3].traits != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = pPVar23->black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                if (pPVar23->alpha_trait == UndefinedPixelTrait) goto LAB_00085d68;\n                dVar33 = pPVar23->alpha;\n                goto LAB_000853cb;\n              }\n            }\n            else {\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              if (local_14c < 1.0) {\n                pPVar23 = this->invalid;\n                dVar12 = local_70.alpha * local_14c * _DAT_0029f148;\n                dVar31 = pPVar23->alpha * (1.0 - local_14c) * _DAT_0029f148;\n                dVar33 = dVar12 + dVar31;\n                if (dVar33 < 0.0) {\n                  dVar33 = 0.0;\n                  local_70.alpha = 0.0;\n                }\n                else if (dVar33 <= 1.0) {\n                  local_70.alpha = dVar33 * (double)DAT_0029f710;\n                }\n                else {\n                  dVar33 = 1.0;\n                  local_70.alpha = (MagickRealType)DAT_0029f710;\n                }\n                dVar32 = DAT_0029f738;\n                if (DAT_0029f138 <= dVar33) {\n                  dVar32 = (double)DAT_0029f718 / dVar33;\n                }\n                local_70.red = (pPVar23->red * dVar31 + local_70.red * dVar12) * dVar32;\n                local_70.green = (pPVar23->green * dVar31 + local_70.green * dVar12) * dVar32;\n                local_70.blue = (pPVar23->blue * dVar31 + local_70.blue * dVar12) * dVar32;\n                if (pPVar23->colorspace == CMYKColorspace) {\n                  local_70.black = dVar32 * (dVar31 * pPVar23->black + dVar12 * local_70.black);\n                }\n              }\nLAB_00085370:\n              pPVar20 = pIVar4->channel_map;\n              PVar10 = pPVar20[3].traits;\n              pQVar16[pPVar20->offset] = local_70.red;\n              pQVar16[pPVar20[1].offset] = local_70.green;\n              pQVar16[pPVar20[2].offset] = local_70.blue;\n              if (PVar10 != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = local_70.black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                dVar33 = local_70.alpha;\n                if (local_70.alpha_trait == UndefinedPixelTrait) {\nLAB_00085d68:\n                  dVar33 = (double)DAT_0029f710;\n                }\nLAB_000853cb:\n                pQVar16[pPVar20[4].offset] = dVar33;\n              }\n            }\n            local_15c = local_15c + 1;\n            pQVar16 = pQVar16 + pIVar4->number_channels;\n          }" { (expression_statement "dVar33 = ((double)(local_15c + this->geometry->x) + (double)DAT_0029f124) * dVar3;" (assignment_expression "dVar33 = ((double)(local_15c + this->geometry->x) + (double)DAT_0029f124) * dVar3" identifier = (binary_expression "((double)(local_15c + this->geometry->x) + (double)DAT_0029f124) * dVar3" (parenthesized_expression "((double)(local_15c + this->geometry->x) + (double)DAT_0029f124)" ( (binary_expression "(double)(local_15c + this->geometry->x) + (double)DAT_0029f124" (cast_expression "(double)(local_15c + this->geometry->x)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "(local_15c + this->geometry->x)" ( (binary_expression "local_15c + this->geometry->x" identifier + (field_expression "this->geometry->x" (field_expression "this->geometry" identifier -> field_identifier) -> field_identifier)) ))) + (cast_expression "(double)DAT_0029f124" ( (type_descriptor "double" primitive_type) ) identifier)) )) * identifier)) ;) (expression_statement "DVar17 = *this->method;" (assignment_expression "DVar17 = *this->method" identifier = (pointer_expression "*this->method" * (field_expression "this->method" identifier -> field_identifier))) ;) (expression_statement "dVar12 = dVar3 * ((double)(local_140 + this->geometry->y) + (double)DAT_0029f124);" (assignment_expression "dVar12 = dVar3 * ((double)(local_140 + this->geometry->y) + (double)DAT_0029f124)" identifier = (binary_expression "dVar3 * ((double)(local_140 + this->geometry->y) + (double)DAT_0029f124)" identifier * (parenthesized_expression "((double)(local_140 + this->geometry->y) + (double)DAT_0029f124)" ( (binary_expression "(double)(local_140 + this->geometry->y) + (double)DAT_0029f124" (cast_expression "(double)(local_140 + this->geometry->y)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "(local_140 + this->geometry->y)" ( (binary_expression "local_140 + this->geometry->y" identifier + (field_expression "this->geometry->y" (field_expression "this->geometry" identifier -> field_identifier) -> field_identifier)) ))) + (cast_expression "(double)DAT_0029f124" ( (type_descriptor "double" primitive_type) ) identifier)) )))) ;) (expression_statement "local_f4 = dVar12;" (assignment_expression "local_f4 = dVar12" identifier = identifier) ;) (expression_statement "local_10c = dVar33;" (assignment_expression "local_10c = dVar33" identifier = identifier) ;) (switch_statement "switch(DVar17) {\n            case AffineDistortion:\n            case RigidAffineDistortion:\n              local_f4 = dVar12 * pdVar7[4] + dVar33 * pdVar7[3] + pdVar7[5];\n              local_10c = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              break;\n            case PerspectiveDistortion:\n              dVar31 = pdVar7[6];\n              dVar32 = pdVar7[7];\n              dVar30 = dVar12 * dVar32 + dVar33 * dVar31 + 1.0;\n              dVar29 = pdVar7[8] * dVar30;\n              local_14c = 0.0;\n              if (0.0 <= dVar29) {\n                local_14c = 1.0;\n              }\n              dVar13 = ABS(dVar30) + ABS(dVar30);\n              if (ABS(dVar31) <= ABS(dVar32)) {\n                if (dVar13 < ABS(dVar32) * dVar3) {\n                  local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar32);\n                }\n              }\n              else if (dVar13 < ABS(dVar31) * dVar3) {\n                local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar31);\n              }\n              if (local_14c <= 0.0) goto LAB_00085796;\n              dVar29 = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              dVar33 = pdVar7[3] * dVar33 + dVar12 * pdVar7[4] + pdVar7[5];\n              dVar12 = (double)DAT_0029f718 / dVar30;\n              local_10c = dVar29 * dVar12;\n              local_f4 = dVar33 * dVar12;\n              dVar12 = dVar12 * dVar12;\n              ScaleResampleFilter(*ppRVar1,dVar3 * (dVar30 * *pdVar7 - dVar29 * dVar31) * dVar12,\n                                  (pdVar7[1] * dVar30 - dVar32 * dVar29) * dVar12 * dVar3,\n                                  (pdVar7[3] * dVar30 - dVar33 * dVar31) * dVar12 * dVar3,\n                                  (pdVar7[4] * dVar30 - dVar33 * dVar32) * dVar12 * dVar3);\n              break;\n            case BilinearDistortion:\n              dVar13 = dVar33 - pdVar7[3];\n              local_12c = pdVar7[2];\n              dVar29 = (pdVar7[6] * dVar13 - (dVar12 - pdVar7[7]) * local_12c) + pdVar7[8];\n              dVar31 = *pdVar7;\n              dVar30 = pdVar7[4] * dVar13 - (dVar12 - pdVar7[7]) * dVar31;\n              dVar32 = pdVar7[9];\n              if (ABS(dVar32) < DAT_0029f138) {\n                dVar12 = -dVar30 / dVar29;\n              }\n              else {\n                dVar30 = dVar29 * dVar29 - (dVar32 + dVar32) * dVar30;\n                local_14c = 0.0;\n                if (dVar30 < 0.0) goto LAB_00085796;\n                if (dVar30 < 0.0) {\n                  sqrt(dVar30);\n                  dVar32 = pdVar7[9];\n                  dVar31 = *pdVar7;\n                  local_12c = pdVar7[2];\n                }\n                dVar12 = (SQRT(dVar30) - dVar29) / dVar32;\n              }\n              local_10c = (dVar13 - pdVar7[1] * dVar12) / (local_12c * dVar12 + dVar31);\n              if (MVar8 != MagickFalse) {\n                local_14c = 1.0;\n                goto LAB_000852c3;\n              }\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              local_14c = 1.0;\n              goto LAB_00085370;\n            case BilinearReverseDistortion:\n              dVar31 = pdVar7[2] * dVar33;\n              local_10c = pdVar7[3] + dVar31 * dVar12 + dVar12 * pdVar7[1] + *pdVar7 * dVar33;\n              dVar32 = dVar33 * pdVar7[6];\n              local_f4 = dVar12 * dVar32 + dVar12 * pdVar7[5] + dVar33 * pdVar7[4] + pdVar7[7];\n              ScaleResampleFilter(*ppRVar1,(dVar12 * pdVar7[2] + *pdVar7) * dVar3,\n                                  (pdVar7[1] + dVar31) * dVar3,\n                                  (pdVar7[6] * dVar12 + pdVar7[4]) * dVar3,\n                                  (pdVar7[5] + dVar32) * dVar3);\n              break;\n            case PolynomialDistortion:\n              iVar14 = (int)ROUND(pdVar7[1]);\n              if (iVar14 < 1) {\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n              }\n              else {\n                iVar21 = 0;\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n                do {\n                  n = iVar21;\n                  dVar32 = poly_basis_fn(iVar21,dVar33,dVar12);\n                  dVar31 = pdVar7[iVar21 + 2];\n                  local_10c = dVar32 * dVar31 + local_10c;\n                  dVar30 = poly_basis_dx(n,dVar33,dVar12);\n                  local_114 = dVar31 * dVar30 + local_114;\n                  switch(iVar21) {\n                  case 0:\n                  case 1:\n                  case 4:\n                    dVar31 = dVar31 * 0.0;\n                    dVar29 = 0.0;\n                    break;\n                  case 2:\n                    dVar29 = 1.0;\n                    break;\n                  case 3:\n                    dVar31 = dVar31 * dVar33;\n                    dVar29 = dVar33;\n                    break;\n                  case 5:\n                    dVar31 = dVar31 * dVar12;\n                    dVar29 = dVar12;\n                    break;\n                  default:\n                    dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);\n                    dVar31 = dVar31 * dVar29;\n                  }\n                  local_fc = dVar31 + local_fc;\n                  dVar31 = pdVar7[iVar14 + iVar21 + 2];\n                  iVar21 = iVar21 + 1;\n                  local_f4 = dVar32 * dVar31 + local_f4;\n                  local_11c = dVar30 * dVar31 + local_11c;\n                  local_104 = dVar29 * dVar31 + local_104;\n                } while (iVar14 != iVar21);\n              }\n              ScaleResampleFilter(*ppRVar1,local_114 * dVar3,local_fc * dVar3,local_11c * dVar3,\n                                  local_104 * dVar3);\n              break;\n            case ArcDistortion:\n              dVar31 = atan2(dVar12,dVar33);\n              dVar31 = (dVar31 - *pdVar7) / DAT_002b0c28;\n              if (dVar31 - ROUND(dVar31) < ROUND(dVar31) - dVar31) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar33 = hypot(dVar33,dVar12);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[1] / (dVar33 * DAT_002b0c28)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              local_10c = (double)(image->page).x + (dVar31 - ROUND(dVar31)) * pdVar7[1] + pdVar7[4]\n                          + (double)DAT_0029f124;\n              local_f4 = (double)(image->page).y + (pdVar7[2] - dVar33) * pdVar7[3];\n              break;\n            case PolarDistortion:\n              dVar31 = pdVar7[2];\n              dVar32 = pdVar7[3];\n              dVar30 = atan2(dVar33 - dVar31,dVar12 - dVar32);\n              dVar29 = DAT_002b0c28;\n              dVar30 = (dVar30 - (pdVar7[4] + pdVar7[5]) * (double)DAT_0029f124) / DAT_002b0c28;\n              if (dVar30 - ROUND(dVar30) < ROUND(dVar30) - dVar30) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar30 = DAT_002b0c28 * (dVar30 - ROUND(dVar30));\n              dVar33 = hypot(dVar33 - dVar31,dVar12 - dVar32);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[6] / (dVar29 * dVar33)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              local_13c = (double)(ulonglong)image->columns;\n              local_10c = (double)(image->page).x +\n                          (double)(longlong)local_13c * (double)DAT_0029f124 + dVar30 * pdVar7[6];\n              local_f4 = (double)(image->page).y + (dVar33 - pdVar7[1]) * pdVar7[7];\n              break;\n            case DePolarDistortion:\n              dVar33 = (double)DAT_0029f124;\n              sincos((double)(((float)local_15c + DAT_0029f124) * (float)dVar3 * (float)pdVar7[6] +\n                             (float)pdVar7[4]),local_84,&local_8c);\n              dVar12 = (dVar33 + (double)local_140) * dVar3 * pdVar7[7] + pdVar7[1];\n              dVar33 = local_84[0] * dVar12 + pdVar7[2];\n              dVar12 = dVar12 * local_8c + pdVar7[3];\nLAB_00085796:\n              local_10c = dVar33;\n              if (MVar8 != MagickFalse) goto LAB_000852cf;\n              goto joined_r0x000857af;\n            case Cylinder2PlaneDistortion:\n              dVar31 = pdVar7[5];\n              dVar32 = pdVar7[1];\n              dVar33 = (dVar33 - pdVar7[4]) / dVar32;\n              dVar30 = atan(dVar33);\n              dVar29 = cos(dVar30);\n              local_f4 = (dVar12 - dVar31) * dVar29;\n              ScaleResampleFilter(*ppRVar1,(1.0 / (dVar33 * dVar33 + 1.0)) * dVar3,\n                                  dVar3 * (double)DAT_002a7fe8,\n                                  ((-dVar33 * local_f4 * dVar29 * dVar29) / dVar32) * dVar3,\n                                  (local_f4 / (dVar12 - dVar31)) * dVar3);\n              local_10c = dVar30 * dVar32 + pdVar7[2];\n              local_f4 = local_f4 + pdVar7[3];\n              break;\n            case Plane2CylinderDistortion:\n              dVar31 = pdVar7[1];\n              local_14c = (DAT_0029f740 * dVar31 - ABS(dVar33 - pdVar7[4])) / dVar3 +\n                          (double)DAT_0029f124;\n              if (0.0 < local_14c) {\n                dVar33 = (dVar33 - pdVar7[4]) / dVar31;\n                dVar32 = cos(dVar33);\n                dVar32 = (double)DAT_0029f718 / dVar32;\n                dVar33 = tan(dVar33);\n                dVar33 = dVar33 * dVar31;\n                dVar12 = (dVar12 - pdVar7[5]) * dVar32;\n                ScaleResampleFilter(*ppRVar1,dVar32 * dVar32 * dVar3,dVar3 * 0.0,\n                                    ((dVar32 * dVar12) / dVar31) * dVar3,dVar3 * dVar32);\n              }\n              local_10c = dVar33 + pdVar7[2];\n              local_f4 = dVar12 + pdVar7[3];\n              break;\n            case BarrelDistortion:\n            case BarrelInverseDistortion:\n              dVar33 = dVar33 - pdVar7[8];\n              dVar12 = dVar12 - pdVar7[9];\n              dVar32 = dVar12 * dVar12 + dVar33 * dVar33;\n              dVar31 = SQRT(dVar32);\n              if (dVar32 < 0.0) {\n                sqrt(dVar32);\n                DVar17 = *this->method;\n              }\n              dVar32 = pdVar7[7];\n              local_13c = pdVar7[3];\n              if (DAT_0029f138 < dVar31) {\n                dVar30 = pdVar7[1];\n                local_13c = ((*pdVar7 * dVar31 + dVar30) * dVar31 + pdVar7[2]) * dVar31 + local_13c;\n                dVar29 = pdVar7[5];\n                dVar32 = ((pdVar7[4] * dVar31 + dVar29) * dVar31 + pdVar7[6]) * dVar31 + dVar32;\n                dVar30 = ((dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31) * dVar31 +\n                         pdVar7[2]) / dVar31;\n                dVar31 = ((dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31) * dVar31 +\n                         pdVar7[6]) / dVar31;\n                if (DVar17 == BarrelInverseDistortion) {\n                  local_13c = 1.0 / local_13c;\n                  dVar32 = 1.0 / dVar32;\n                  dVar30 = dVar30 * -local_13c * local_13c;\n                  dVar31 = -dVar32 * dVar32 * dVar31;\n                }\n                local_10c = local_13c * dVar33 + pdVar7[8];\n                local_f4 = dVar32 * dVar12 + pdVar7[9];\n                ScaleResampleFilter(*ppRVar1,(dVar30 * dVar33 * dVar33 + local_13c) * dVar3,\n                                    dVar12 * dVar30 * dVar33 * dVar3,\n                                    dVar31 * dVar33 * dVar12 * dVar3,\n                                    (dVar31 * dVar12 * dVar12 + dVar32) * dVar3);\n              }\n              else {\n                if (DVar17 != BarrelDistortion) {\n                  dVar32 = 1.0 / dVar32;\n                  local_13c = 1.0 / local_13c;\n                }\n                ScaleResampleFilter(*ppRVar1,dVar3 * local_13c,dVar3 * (double)DAT_002a7fe8,\n                                    dVar3 * (double)DAT_002a7fe8,dVar32 * dVar3);\n              }\n              break;\n            case ShepardsDistortion:\n              if (sVar9 == 0) {\n                dVar31 = 0.0;\n                dVar30 = 0.0;\n                dVar32 = 0.0;\n              }\n              else {\n                dVar31 = 0.0;\n                dVar32 = 0.0;\n                dVar30 = 0.0;\n                pdVar25 = pdVar6;\n                do {\n                  dVar29 = pow((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7);\n                  if (dVar29 < 1.0) {\n                    dVar29 = 1.0;\n                  }\n                  else {\n                    dVar29 = 1.0 / dVar29;\n                  }\n                  pdVar26 = pdVar25 + 4;\n                  dVar30 = (*pdVar25 - pdVar25[2]) * dVar29 + dVar30;\n                  dVar32 = (pdVar25[1] - pdVar25[3]) * dVar29 + dVar32;\n                  dVar31 = dVar31 + dVar29;\n                  pdVar25 = pdVar26;\n                } while ((double *)((int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20) != pdVar26);\n              }\n              local_f4 = dVar12 + dVar32 / dVar31;\n              local_10c = dVar30 / dVar31 + dVar33;\n            }" switch (parenthesized_expression "(DVar17)" ( identifier )) (compound_statement "{\n            case AffineDistortion:\n            case RigidAffineDistortion:\n              local_f4 = dVar12 * pdVar7[4] + dVar33 * pdVar7[3] + pdVar7[5];\n              local_10c = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              break;\n            case PerspectiveDistortion:\n              dVar31 = pdVar7[6];\n              dVar32 = pdVar7[7];\n              dVar30 = dVar12 * dVar32 + dVar33 * dVar31 + 1.0;\n              dVar29 = pdVar7[8] * dVar30;\n              local_14c = 0.0;\n              if (0.0 <= dVar29) {\n                local_14c = 1.0;\n              }\n              dVar13 = ABS(dVar30) + ABS(dVar30);\n              if (ABS(dVar31) <= ABS(dVar32)) {\n                if (dVar13 < ABS(dVar32) * dVar3) {\n                  local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar32);\n                }\n              }\n              else if (dVar13 < ABS(dVar31) * dVar3) {\n                local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar31);\n              }\n              if (local_14c <= 0.0) goto LAB_00085796;\n              dVar29 = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              dVar33 = pdVar7[3] * dVar33 + dVar12 * pdVar7[4] + pdVar7[5];\n              dVar12 = (double)DAT_0029f718 / dVar30;\n              local_10c = dVar29 * dVar12;\n              local_f4 = dVar33 * dVar12;\n              dVar12 = dVar12 * dVar12;\n              ScaleResampleFilter(*ppRVar1,dVar3 * (dVar30 * *pdVar7 - dVar29 * dVar31) * dVar12,\n                                  (pdVar7[1] * dVar30 - dVar32 * dVar29) * dVar12 * dVar3,\n                                  (pdVar7[3] * dVar30 - dVar33 * dVar31) * dVar12 * dVar3,\n                                  (pdVar7[4] * dVar30 - dVar33 * dVar32) * dVar12 * dVar3);\n              break;\n            case BilinearDistortion:\n              dVar13 = dVar33 - pdVar7[3];\n              local_12c = pdVar7[2];\n              dVar29 = (pdVar7[6] * dVar13 - (dVar12 - pdVar7[7]) * local_12c) + pdVar7[8];\n              dVar31 = *pdVar7;\n              dVar30 = pdVar7[4] * dVar13 - (dVar12 - pdVar7[7]) * dVar31;\n              dVar32 = pdVar7[9];\n              if (ABS(dVar32) < DAT_0029f138) {\n                dVar12 = -dVar30 / dVar29;\n              }\n              else {\n                dVar30 = dVar29 * dVar29 - (dVar32 + dVar32) * dVar30;\n                local_14c = 0.0;\n                if (dVar30 < 0.0) goto LAB_00085796;\n                if (dVar30 < 0.0) {\n                  sqrt(dVar30);\n                  dVar32 = pdVar7[9];\n                  dVar31 = *pdVar7;\n                  local_12c = pdVar7[2];\n                }\n                dVar12 = (SQRT(dVar30) - dVar29) / dVar32;\n              }\n              local_10c = (dVar13 - pdVar7[1] * dVar12) / (local_12c * dVar12 + dVar31);\n              if (MVar8 != MagickFalse) {\n                local_14c = 1.0;\n                goto LAB_000852c3;\n              }\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              local_14c = 1.0;\n              goto LAB_00085370;\n            case BilinearReverseDistortion:\n              dVar31 = pdVar7[2] * dVar33;\n              local_10c = pdVar7[3] + dVar31 * dVar12 + dVar12 * pdVar7[1] + *pdVar7 * dVar33;\n              dVar32 = dVar33 * pdVar7[6];\n              local_f4 = dVar12 * dVar32 + dVar12 * pdVar7[5] + dVar33 * pdVar7[4] + pdVar7[7];\n              ScaleResampleFilter(*ppRVar1,(dVar12 * pdVar7[2] + *pdVar7) * dVar3,\n                                  (pdVar7[1] + dVar31) * dVar3,\n                                  (pdVar7[6] * dVar12 + pdVar7[4]) * dVar3,\n                                  (pdVar7[5] + dVar32) * dVar3);\n              break;\n            case PolynomialDistortion:\n              iVar14 = (int)ROUND(pdVar7[1]);\n              if (iVar14 < 1) {\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n              }\n              else {\n                iVar21 = 0;\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n                do {\n                  n = iVar21;\n                  dVar32 = poly_basis_fn(iVar21,dVar33,dVar12);\n                  dVar31 = pdVar7[iVar21 + 2];\n                  local_10c = dVar32 * dVar31 + local_10c;\n                  dVar30 = poly_basis_dx(n,dVar33,dVar12);\n                  local_114 = dVar31 * dVar30 + local_114;\n                  switch(iVar21) {\n                  case 0:\n                  case 1:\n                  case 4:\n                    dVar31 = dVar31 * 0.0;\n                    dVar29 = 0.0;\n                    break;\n                  case 2:\n                    dVar29 = 1.0;\n                    break;\n                  case 3:\n                    dVar31 = dVar31 * dVar33;\n                    dVar29 = dVar33;\n                    break;\n                  case 5:\n                    dVar31 = dVar31 * dVar12;\n                    dVar29 = dVar12;\n                    break;\n                  default:\n                    dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);\n                    dVar31 = dVar31 * dVar29;\n                  }\n                  local_fc = dVar31 + local_fc;\n                  dVar31 = pdVar7[iVar14 + iVar21 + 2];\n                  iVar21 = iVar21 + 1;\n                  local_f4 = dVar32 * dVar31 + local_f4;\n                  local_11c = dVar30 * dVar31 + local_11c;\n                  local_104 = dVar29 * dVar31 + local_104;\n                } while (iVar14 != iVar21);\n              }\n              ScaleResampleFilter(*ppRVar1,local_114 * dVar3,local_fc * dVar3,local_11c * dVar3,\n                                  local_104 * dVar3);\n              break;\n            case ArcDistortion:\n              dVar31 = atan2(dVar12,dVar33);\n              dVar31 = (dVar31 - *pdVar7) / DAT_002b0c28;\n              if (dVar31 - ROUND(dVar31) < ROUND(dVar31) - dVar31) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar33 = hypot(dVar33,dVar12);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[1] / (dVar33 * DAT_002b0c28)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              local_10c = (double)(image->page).x + (dVar31 - ROUND(dVar31)) * pdVar7[1] + pdVar7[4]\n                          + (double)DAT_0029f124;\n              local_f4 = (double)(image->page).y + (pdVar7[2] - dVar33) * pdVar7[3];\n              break;\n            case PolarDistortion:\n              dVar31 = pdVar7[2];\n              dVar32 = pdVar7[3];\n              dVar30 = atan2(dVar33 - dVar31,dVar12 - dVar32);\n              dVar29 = DAT_002b0c28;\n              dVar30 = (dVar30 - (pdVar7[4] + pdVar7[5]) * (double)DAT_0029f124) / DAT_002b0c28;\n              if (dVar30 - ROUND(dVar30) < ROUND(dVar30) - dVar30) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar30 = DAT_002b0c28 * (dVar30 - ROUND(dVar30));\n              dVar33 = hypot(dVar33 - dVar31,dVar12 - dVar32);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[6] / (dVar29 * dVar33)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              local_13c = (double)(ulonglong)image->columns;\n              local_10c = (double)(image->page).x +\n                          (double)(longlong)local_13c * (double)DAT_0029f124 + dVar30 * pdVar7[6];\n              local_f4 = (double)(image->page).y + (dVar33 - pdVar7[1]) * pdVar7[7];\n              break;\n            case DePolarDistortion:\n              dVar33 = (double)DAT_0029f124;\n              sincos((double)(((float)local_15c + DAT_0029f124) * (float)dVar3 * (float)pdVar7[6] +\n                             (float)pdVar7[4]),local_84,&local_8c);\n              dVar12 = (dVar33 + (double)local_140) * dVar3 * pdVar7[7] + pdVar7[1];\n              dVar33 = local_84[0] * dVar12 + pdVar7[2];\n              dVar12 = dVar12 * local_8c + pdVar7[3];\nLAB_00085796:\n              local_10c = dVar33;\n              if (MVar8 != MagickFalse) goto LAB_000852cf;\n              goto joined_r0x000857af;\n            case Cylinder2PlaneDistortion:\n              dVar31 = pdVar7[5];\n              dVar32 = pdVar7[1];\n              dVar33 = (dVar33 - pdVar7[4]) / dVar32;\n              dVar30 = atan(dVar33);\n              dVar29 = cos(dVar30);\n              local_f4 = (dVar12 - dVar31) * dVar29;\n              ScaleResampleFilter(*ppRVar1,(1.0 / (dVar33 * dVar33 + 1.0)) * dVar3,\n                                  dVar3 * (double)DAT_002a7fe8,\n                                  ((-dVar33 * local_f4 * dVar29 * dVar29) / dVar32) * dVar3,\n                                  (local_f4 / (dVar12 - dVar31)) * dVar3);\n              local_10c = dVar30 * dVar32 + pdVar7[2];\n              local_f4 = local_f4 + pdVar7[3];\n              break;\n            case Plane2CylinderDistortion:\n              dVar31 = pdVar7[1];\n              local_14c = (DAT_0029f740 * dVar31 - ABS(dVar33 - pdVar7[4])) / dVar3 +\n                          (double)DAT_0029f124;\n              if (0.0 < local_14c) {\n                dVar33 = (dVar33 - pdVar7[4]) / dVar31;\n                dVar32 = cos(dVar33);\n                dVar32 = (double)DAT_0029f718 / dVar32;\n                dVar33 = tan(dVar33);\n                dVar33 = dVar33 * dVar31;\n                dVar12 = (dVar12 - pdVar7[5]) * dVar32;\n                ScaleResampleFilter(*ppRVar1,dVar32 * dVar32 * dVar3,dVar3 * 0.0,\n                                    ((dVar32 * dVar12) / dVar31) * dVar3,dVar3 * dVar32);\n              }\n              local_10c = dVar33 + pdVar7[2];\n              local_f4 = dVar12 + pdVar7[3];\n              break;\n            case BarrelDistortion:\n            case BarrelInverseDistortion:\n              dVar33 = dVar33 - pdVar7[8];\n              dVar12 = dVar12 - pdVar7[9];\n              dVar32 = dVar12 * dVar12 + dVar33 * dVar33;\n              dVar31 = SQRT(dVar32);\n              if (dVar32 < 0.0) {\n                sqrt(dVar32);\n                DVar17 = *this->method;\n              }\n              dVar32 = pdVar7[7];\n              local_13c = pdVar7[3];\n              if (DAT_0029f138 < dVar31) {\n                dVar30 = pdVar7[1];\n                local_13c = ((*pdVar7 * dVar31 + dVar30) * dVar31 + pdVar7[2]) * dVar31 + local_13c;\n                dVar29 = pdVar7[5];\n                dVar32 = ((pdVar7[4] * dVar31 + dVar29) * dVar31 + pdVar7[6]) * dVar31 + dVar32;\n                dVar30 = ((dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31) * dVar31 +\n                         pdVar7[2]) / dVar31;\n                dVar31 = ((dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31) * dVar31 +\n                         pdVar7[6]) / dVar31;\n                if (DVar17 == BarrelInverseDistortion) {\n                  local_13c = 1.0 / local_13c;\n                  dVar32 = 1.0 / dVar32;\n                  dVar30 = dVar30 * -local_13c * local_13c;\n                  dVar31 = -dVar32 * dVar32 * dVar31;\n                }\n                local_10c = local_13c * dVar33 + pdVar7[8];\n                local_f4 = dVar32 * dVar12 + pdVar7[9];\n                ScaleResampleFilter(*ppRVar1,(dVar30 * dVar33 * dVar33 + local_13c) * dVar3,\n                                    dVar12 * dVar30 * dVar33 * dVar3,\n                                    dVar31 * dVar33 * dVar12 * dVar3,\n                                    (dVar31 * dVar12 * dVar12 + dVar32) * dVar3);\n              }\n              else {\n                if (DVar17 != BarrelDistortion) {\n                  dVar32 = 1.0 / dVar32;\n                  local_13c = 1.0 / local_13c;\n                }\n                ScaleResampleFilter(*ppRVar1,dVar3 * local_13c,dVar3 * (double)DAT_002a7fe8,\n                                    dVar3 * (double)DAT_002a7fe8,dVar32 * dVar3);\n              }\n              break;\n            case ShepardsDistortion:\n              if (sVar9 == 0) {\n                dVar31 = 0.0;\n                dVar30 = 0.0;\n                dVar32 = 0.0;\n              }\n              else {\n                dVar31 = 0.0;\n                dVar32 = 0.0;\n                dVar30 = 0.0;\n                pdVar25 = pdVar6;\n                do {\n                  dVar29 = pow((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7);\n                  if (dVar29 < 1.0) {\n                    dVar29 = 1.0;\n                  }\n                  else {\n                    dVar29 = 1.0 / dVar29;\n                  }\n                  pdVar26 = pdVar25 + 4;\n                  dVar30 = (*pdVar25 - pdVar25[2]) * dVar29 + dVar30;\n                  dVar32 = (pdVar25[1] - pdVar25[3]) * dVar29 + dVar32;\n                  dVar31 = dVar31 + dVar29;\n                  pdVar25 = pdVar26;\n                } while ((double *)((int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20) != pdVar26);\n              }\n              local_f4 = dVar12 + dVar32 / dVar31;\n              local_10c = dVar30 / dVar31 + dVar33;\n            }" { (case_statement "case AffineDistortion:" case identifier :) (case_statement "case RigidAffineDistortion:\n              local_f4 = dVar12 * pdVar7[4] + dVar33 * pdVar7[3] + pdVar7[5];\n              local_10c = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              break;" case identifier : (expression_statement "local_f4 = dVar12 * pdVar7[4] + dVar33 * pdVar7[3] + pdVar7[5];" (assignment_expression "local_f4 = dVar12 * pdVar7[4] + dVar33 * pdVar7[3] + pdVar7[5]" identifier = (binary_expression "dVar12 * pdVar7[4] + dVar33 * pdVar7[3] + pdVar7[5]" (binary_expression "dVar12 * pdVar7[4] + dVar33 * pdVar7[3]" (binary_expression "dVar12 * pdVar7[4]" identifier * (subscript_expression "pdVar7[4]" identifier [ number_literal ])) + (binary_expression "dVar33 * pdVar7[3]" identifier * (subscript_expression "pdVar7[3]" identifier [ number_literal ]))) + (subscript_expression "pdVar7[5]" identifier [ number_literal ]))) ;) (expression_statement "local_10c = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];" (assignment_expression "local_10c = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2]" identifier = (binary_expression "pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2]" (binary_expression "pdVar7[1] * dVar12 + *pdVar7 * dVar33" (binary_expression "pdVar7[1] * dVar12" (subscript_expression "pdVar7[1]" identifier [ number_literal ]) * identifier) + (binary_expression "*pdVar7 * dVar33" (pointer_expression "*pdVar7" * identifier) * identifier)) + (subscript_expression "pdVar7[2]" identifier [ number_literal ]))) ;) (break_statement "break;" break ;)) (case_statement "case PerspectiveDistortion:\n              dVar31 = pdVar7[6];\n              dVar32 = pdVar7[7];\n              dVar30 = dVar12 * dVar32 + dVar33 * dVar31 + 1.0;\n              dVar29 = pdVar7[8] * dVar30;\n              local_14c = 0.0;\n              if (0.0 <= dVar29) {\n                local_14c = 1.0;\n              }\n              dVar13 = ABS(dVar30) + ABS(dVar30);\n              if (ABS(dVar31) <= ABS(dVar32)) {\n                if (dVar13 < ABS(dVar32) * dVar3) {\n                  local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar32);\n                }\n              }\n              else if (dVar13 < ABS(dVar31) * dVar3) {\n                local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar31);\n              }\n              if (local_14c <= 0.0) goto LAB_00085796;\n              dVar29 = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];\n              dVar33 = pdVar7[3] * dVar33 + dVar12 * pdVar7[4] + pdVar7[5];\n              dVar12 = (double)DAT_0029f718 / dVar30;\n              local_10c = dVar29 * dVar12;\n              local_f4 = dVar33 * dVar12;\n              dVar12 = dVar12 * dVar12;\n              ScaleResampleFilter(*ppRVar1,dVar3 * (dVar30 * *pdVar7 - dVar29 * dVar31) * dVar12,\n                                  (pdVar7[1] * dVar30 - dVar32 * dVar29) * dVar12 * dVar3,\n                                  (pdVar7[3] * dVar30 - dVar33 * dVar31) * dVar12 * dVar3,\n                                  (pdVar7[4] * dVar30 - dVar33 * dVar32) * dVar12 * dVar3);\n              break;" case identifier : (expression_statement "dVar31 = pdVar7[6];" (assignment_expression "dVar31 = pdVar7[6]" identifier = (subscript_expression "pdVar7[6]" identifier [ number_literal ])) ;) (expression_statement "dVar32 = pdVar7[7];" (assignment_expression "dVar32 = pdVar7[7]" identifier = (subscript_expression "pdVar7[7]" identifier [ number_literal ])) ;) (expression_statement "dVar30 = dVar12 * dVar32 + dVar33 * dVar31 + 1.0;" (assignment_expression "dVar30 = dVar12 * dVar32 + dVar33 * dVar31 + 1.0" identifier = (binary_expression "dVar12 * dVar32 + dVar33 * dVar31 + 1.0" (binary_expression "dVar12 * dVar32 + dVar33 * dVar31" (binary_expression "dVar12 * dVar32" identifier * identifier) + (binary_expression "dVar33 * dVar31" identifier * identifier)) + number_literal)) ;) (expression_statement "dVar29 = pdVar7[8] * dVar30;" (assignment_expression "dVar29 = pdVar7[8] * dVar30" identifier = (binary_expression "pdVar7[8] * dVar30" (subscript_expression "pdVar7[8]" identifier [ number_literal ]) * identifier)) ;) (expression_statement "local_14c = 0.0;" (assignment_expression "local_14c = 0.0" identifier = number_literal) ;) (if_statement "if (0.0 <= dVar29) {\n                local_14c = 1.0;\n              }" if (parenthesized_expression "(0.0 <= dVar29)" ( (binary_expression "0.0 <= dVar29" number_literal <= identifier) )) (compound_statement "{\n                local_14c = 1.0;\n              }" { (expression_statement "local_14c = 1.0;" (assignment_expression "local_14c = 1.0" identifier = number_literal) ;) })) (expression_statement "dVar13 = ABS(dVar30) + ABS(dVar30);" (assignment_expression "dVar13 = ABS(dVar30) + ABS(dVar30)" identifier = (binary_expression "ABS(dVar30) + ABS(dVar30)" (call_expression "ABS(dVar30)" identifier (argument_list "(dVar30)" ( identifier ))) + (call_expression "ABS(dVar30)" identifier (argument_list "(dVar30)" ( identifier ))))) ;) (if_statement "if (ABS(dVar31) <= ABS(dVar32)) {\n                if (dVar13 < ABS(dVar32) * dVar3) {\n                  local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar32);\n                }\n              }\n              else if (dVar13 < ABS(dVar31) * dVar3) {\n                local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar31);\n              }" if (parenthesized_expression "(ABS(dVar31) <= ABS(dVar32))" ( (binary_expression "ABS(dVar31) <= ABS(dVar32)" (call_expression "ABS(dVar31)" identifier (argument_list "(dVar31)" ( identifier ))) <= (call_expression "ABS(dVar32)" identifier (argument_list "(dVar32)" ( identifier )))) )) (compound_statement "{\n                if (dVar13 < ABS(dVar32) * dVar3) {\n                  local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar32);\n                }\n              }" { (if_statement "if (dVar13 < ABS(dVar32) * dVar3) {\n                  local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar32);\n                }" if (parenthesized_expression "(dVar13 < ABS(dVar32) * dVar3)" ( (binary_expression "dVar13 < ABS(dVar32) * dVar3" identifier < (binary_expression "ABS(dVar32) * dVar3" (call_expression "ABS(dVar32)" identifier (argument_list "(dVar32)" ( identifier ))) * identifier)) )) (compound_statement "{\n                  local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar32);\n                }" { (expression_statement "local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar32);" (assignment_expression "local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar32)" identifier = (binary_expression "(double)DAT_0029f124 - dVar29 / (dVar3 * dVar32)" (cast_expression "(double)DAT_0029f124" ( (type_descriptor "double" primitive_type) ) identifier) - (binary_expression "dVar29 / (dVar3 * dVar32)" identifier / (parenthesized_expression "(dVar3 * dVar32)" ( (binary_expression "dVar3 * dVar32" identifier * identifier) ))))) ;) })) }) (else_clause "else if (dVar13 < ABS(dVar31) * dVar3) {\n                local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar31);\n              }" else (if_statement "if (dVar13 < ABS(dVar31) * dVar3) {\n                local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar31);\n              }" if (parenthesized_expression "(dVar13 < ABS(dVar31) * dVar3)" ( (binary_expression "dVar13 < ABS(dVar31) * dVar3" identifier < (binary_expression "ABS(dVar31) * dVar3" (call_expression "ABS(dVar31)" identifier (argument_list "(dVar31)" ( identifier ))) * identifier)) )) (compound_statement "{\n                local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar31);\n              }" { (expression_statement "local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar31);" (assignment_expression "local_14c = (double)DAT_0029f124 - dVar29 / (dVar3 * dVar31)" identifier = (binary_expression "(double)DAT_0029f124 - dVar29 / (dVar3 * dVar31)" (cast_expression "(double)DAT_0029f124" ( (type_descriptor "double" primitive_type) ) identifier) - (binary_expression "dVar29 / (dVar3 * dVar31)" identifier / (parenthesized_expression "(dVar3 * dVar31)" ( (binary_expression "dVar3 * dVar31" identifier * identifier) ))))) ;) })))) (if_statement "if (local_14c <= 0.0) goto LAB_00085796;" if (parenthesized_expression "(local_14c <= 0.0)" ( (binary_expression "local_14c <= 0.0" identifier <= number_literal) )) (goto_statement "goto LAB_00085796;" goto statement_identifier ;)) (expression_statement "dVar29 = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2];" (assignment_expression "dVar29 = pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2]" identifier = (binary_expression "pdVar7[1] * dVar12 + *pdVar7 * dVar33 + pdVar7[2]" (binary_expression "pdVar7[1] * dVar12 + *pdVar7 * dVar33" (binary_expression "pdVar7[1] * dVar12" (subscript_expression "pdVar7[1]" identifier [ number_literal ]) * identifier) + (binary_expression "*pdVar7 * dVar33" (pointer_expression "*pdVar7" * identifier) * identifier)) + (subscript_expression "pdVar7[2]" identifier [ number_literal ]))) ;) (expression_statement "dVar33 = pdVar7[3] * dVar33 + dVar12 * pdVar7[4] + pdVar7[5];" (assignment_expression "dVar33 = pdVar7[3] * dVar33 + dVar12 * pdVar7[4] + pdVar7[5]" identifier = (binary_expression "pdVar7[3] * dVar33 + dVar12 * pdVar7[4] + pdVar7[5]" (binary_expression "pdVar7[3] * dVar33 + dVar12 * pdVar7[4]" (binary_expression "pdVar7[3] * dVar33" (subscript_expression "pdVar7[3]" identifier [ number_literal ]) * identifier) + (binary_expression "dVar12 * pdVar7[4]" identifier * (subscript_expression "pdVar7[4]" identifier [ number_literal ]))) + (subscript_expression "pdVar7[5]" identifier [ number_literal ]))) ;) (expression_statement "dVar12 = (double)DAT_0029f718 / dVar30;" (assignment_expression "dVar12 = (double)DAT_0029f718 / dVar30" identifier = (binary_expression "(double)DAT_0029f718 / dVar30" (cast_expression "(double)DAT_0029f718" ( (type_descriptor "double" primitive_type) ) identifier) / identifier)) ;) (expression_statement "local_10c = dVar29 * dVar12;" (assignment_expression "local_10c = dVar29 * dVar12" identifier = (binary_expression "dVar29 * dVar12" identifier * identifier)) ;) (expression_statement "local_f4 = dVar33 * dVar12;" (assignment_expression "local_f4 = dVar33 * dVar12" identifier = (binary_expression "dVar33 * dVar12" identifier * identifier)) ;) (expression_statement "dVar12 = dVar12 * dVar12;" (assignment_expression "dVar12 = dVar12 * dVar12" identifier = (binary_expression "dVar12 * dVar12" identifier * identifier)) ;) (expression_statement "ScaleResampleFilter(*ppRVar1,dVar3 * (dVar30 * *pdVar7 - dVar29 * dVar31) * dVar12,\n                                  (pdVar7[1] * dVar30 - dVar32 * dVar29) * dVar12 * dVar3,\n                                  (pdVar7[3] * dVar30 - dVar33 * dVar31) * dVar12 * dVar3,\n                                  (pdVar7[4] * dVar30 - dVar33 * dVar32) * dVar12 * dVar3);" (call_expression "ScaleResampleFilter(*ppRVar1,dVar3 * (dVar30 * *pdVar7 - dVar29 * dVar31) * dVar12,\n                                  (pdVar7[1] * dVar30 - dVar32 * dVar29) * dVar12 * dVar3,\n                                  (pdVar7[3] * dVar30 - dVar33 * dVar31) * dVar12 * dVar3,\n                                  (pdVar7[4] * dVar30 - dVar33 * dVar32) * dVar12 * dVar3)" identifier (argument_list "(*ppRVar1,dVar3 * (dVar30 * *pdVar7 - dVar29 * dVar31) * dVar12,\n                                  (pdVar7[1] * dVar30 - dVar32 * dVar29) * dVar12 * dVar3,\n                                  (pdVar7[3] * dVar30 - dVar33 * dVar31) * dVar12 * dVar3,\n                                  (pdVar7[4] * dVar30 - dVar33 * dVar32) * dVar12 * dVar3)" ( (pointer_expression "*ppRVar1" * identifier) , (binary_expression "dVar3 * (dVar30 * *pdVar7 - dVar29 * dVar31) * dVar12" (binary_expression "dVar3 * (dVar30 * *pdVar7 - dVar29 * dVar31)" identifier * (parenthesized_expression "(dVar30 * *pdVar7 - dVar29 * dVar31)" ( (binary_expression "dVar30 * *pdVar7 - dVar29 * dVar31" (binary_expression "dVar30 * *pdVar7" identifier * (pointer_expression "*pdVar7" * identifier)) - (binary_expression "dVar29 * dVar31" identifier * identifier)) ))) * identifier) , (binary_expression "(pdVar7[1] * dVar30 - dVar32 * dVar29) * dVar12 * dVar3" (binary_expression "(pdVar7[1] * dVar30 - dVar32 * dVar29) * dVar12" (parenthesized_expression "(pdVar7[1] * dVar30 - dVar32 * dVar29)" ( (binary_expression "pdVar7[1] * dVar30 - dVar32 * dVar29" (binary_expression "pdVar7[1] * dVar30" (subscript_expression "pdVar7[1]" identifier [ number_literal ]) * identifier) - (binary_expression "dVar32 * dVar29" identifier * identifier)) )) * identifier) * identifier) , (binary_expression "(pdVar7[3] * dVar30 - dVar33 * dVar31) * dVar12 * dVar3" (binary_expression "(pdVar7[3] * dVar30 - dVar33 * dVar31) * dVar12" (parenthesized_expression "(pdVar7[3] * dVar30 - dVar33 * dVar31)" ( (binary_expression "pdVar7[3] * dVar30 - dVar33 * dVar31" (binary_expression "pdVar7[3] * dVar30" (subscript_expression "pdVar7[3]" identifier [ number_literal ]) * identifier) - (binary_expression "dVar33 * dVar31" identifier * identifier)) )) * identifier) * identifier) , (binary_expression "(pdVar7[4] * dVar30 - dVar33 * dVar32) * dVar12 * dVar3" (binary_expression "(pdVar7[4] * dVar30 - dVar33 * dVar32) * dVar12" (parenthesized_expression "(pdVar7[4] * dVar30 - dVar33 * dVar32)" ( (binary_expression "pdVar7[4] * dVar30 - dVar33 * dVar32" (binary_expression "pdVar7[4] * dVar30" (subscript_expression "pdVar7[4]" identifier [ number_literal ]) * identifier) - (binary_expression "dVar33 * dVar32" identifier * identifier)) )) * identifier) * identifier) ))) ;) (break_statement "break;" break ;)) (case_statement "case BilinearDistortion:\n              dVar13 = dVar33 - pdVar7[3];\n              local_12c = pdVar7[2];\n              dVar29 = (pdVar7[6] * dVar13 - (dVar12 - pdVar7[7]) * local_12c) + pdVar7[8];\n              dVar31 = *pdVar7;\n              dVar30 = pdVar7[4] * dVar13 - (dVar12 - pdVar7[7]) * dVar31;\n              dVar32 = pdVar7[9];\n              if (ABS(dVar32) < DAT_0029f138) {\n                dVar12 = -dVar30 / dVar29;\n              }\n              else {\n                dVar30 = dVar29 * dVar29 - (dVar32 + dVar32) * dVar30;\n                local_14c = 0.0;\n                if (dVar30 < 0.0) goto LAB_00085796;\n                if (dVar30 < 0.0) {\n                  sqrt(dVar30);\n                  dVar32 = pdVar7[9];\n                  dVar31 = *pdVar7;\n                  local_12c = pdVar7[2];\n                }\n                dVar12 = (SQRT(dVar30) - dVar29) / dVar32;\n              }\n              local_10c = (dVar13 - pdVar7[1] * dVar12) / (local_12c * dVar12 + dVar31);\n              if (MVar8 != MagickFalse) {\n                local_14c = 1.0;\n                goto LAB_000852c3;\n              }\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              local_14c = 1.0;\n              goto LAB_00085370;" case identifier : (expression_statement "dVar13 = dVar33 - pdVar7[3];" (assignment_expression "dVar13 = dVar33 - pdVar7[3]" identifier = (binary_expression "dVar33 - pdVar7[3]" identifier - (subscript_expression "pdVar7[3]" identifier [ number_literal ]))) ;) (expression_statement "local_12c = pdVar7[2];" (assignment_expression "local_12c = pdVar7[2]" identifier = (subscript_expression "pdVar7[2]" identifier [ number_literal ])) ;) (expression_statement "dVar29 = (pdVar7[6] * dVar13 - (dVar12 - pdVar7[7]) * local_12c) + pdVar7[8];" (assignment_expression "dVar29 = (pdVar7[6] * dVar13 - (dVar12 - pdVar7[7]) * local_12c) + pdVar7[8]" identifier = (binary_expression "(pdVar7[6] * dVar13 - (dVar12 - pdVar7[7]) * local_12c) + pdVar7[8]" (parenthesized_expression "(pdVar7[6] * dVar13 - (dVar12 - pdVar7[7]) * local_12c)" ( (binary_expression "pdVar7[6] * dVar13 - (dVar12 - pdVar7[7]) * local_12c" (binary_expression "pdVar7[6] * dVar13" (subscript_expression "pdVar7[6]" identifier [ number_literal ]) * identifier) - (binary_expression "(dVar12 - pdVar7[7]) * local_12c" (parenthesized_expression "(dVar12 - pdVar7[7])" ( (binary_expression "dVar12 - pdVar7[7]" identifier - (subscript_expression "pdVar7[7]" identifier [ number_literal ])) )) * identifier)) )) + (subscript_expression "pdVar7[8]" identifier [ number_literal ]))) ;) (expression_statement "dVar31 = *pdVar7;" (assignment_expression "dVar31 = *pdVar7" identifier = (pointer_expression "*pdVar7" * identifier)) ;) (expression_statement "dVar30 = pdVar7[4] * dVar13 - (dVar12 - pdVar7[7]) * dVar31;" (assignment_expression "dVar30 = pdVar7[4] * dVar13 - (dVar12 - pdVar7[7]) * dVar31" identifier = (binary_expression "pdVar7[4] * dVar13 - (dVar12 - pdVar7[7]) * dVar31" (binary_expression "pdVar7[4] * dVar13" (subscript_expression "pdVar7[4]" identifier [ number_literal ]) * identifier) - (binary_expression "(dVar12 - pdVar7[7]) * dVar31" (parenthesized_expression "(dVar12 - pdVar7[7])" ( (binary_expression "dVar12 - pdVar7[7]" identifier - (subscript_expression "pdVar7[7]" identifier [ number_literal ])) )) * identifier))) ;) (expression_statement "dVar32 = pdVar7[9];" (assignment_expression "dVar32 = pdVar7[9]" identifier = (subscript_expression "pdVar7[9]" identifier [ number_literal ])) ;) (if_statement "if (ABS(dVar32) < DAT_0029f138) {\n                dVar12 = -dVar30 / dVar29;\n              }\n              else {\n                dVar30 = dVar29 * dVar29 - (dVar32 + dVar32) * dVar30;\n                local_14c = 0.0;\n                if (dVar30 < 0.0) goto LAB_00085796;\n                if (dVar30 < 0.0) {\n                  sqrt(dVar30);\n                  dVar32 = pdVar7[9];\n                  dVar31 = *pdVar7;\n                  local_12c = pdVar7[2];\n                }\n                dVar12 = (SQRT(dVar30) - dVar29) / dVar32;\n              }" if (parenthesized_expression "(ABS(dVar32) < DAT_0029f138)" ( (binary_expression "ABS(dVar32) < DAT_0029f138" (call_expression "ABS(dVar32)" identifier (argument_list "(dVar32)" ( identifier ))) < identifier) )) (compound_statement "{\n                dVar12 = -dVar30 / dVar29;\n              }" { (expression_statement "dVar12 = -dVar30 / dVar29;" (assignment_expression "dVar12 = -dVar30 / dVar29" identifier = (binary_expression "-dVar30 / dVar29" (unary_expression "-dVar30" - identifier) / identifier)) ;) }) (else_clause "else {\n                dVar30 = dVar29 * dVar29 - (dVar32 + dVar32) * dVar30;\n                local_14c = 0.0;\n                if (dVar30 < 0.0) goto LAB_00085796;\n                if (dVar30 < 0.0) {\n                  sqrt(dVar30);\n                  dVar32 = pdVar7[9];\n                  dVar31 = *pdVar7;\n                  local_12c = pdVar7[2];\n                }\n                dVar12 = (SQRT(dVar30) - dVar29) / dVar32;\n              }" else (compound_statement "{\n                dVar30 = dVar29 * dVar29 - (dVar32 + dVar32) * dVar30;\n                local_14c = 0.0;\n                if (dVar30 < 0.0) goto LAB_00085796;\n                if (dVar30 < 0.0) {\n                  sqrt(dVar30);\n                  dVar32 = pdVar7[9];\n                  dVar31 = *pdVar7;\n                  local_12c = pdVar7[2];\n                }\n                dVar12 = (SQRT(dVar30) - dVar29) / dVar32;\n              }" { (expression_statement "dVar30 = dVar29 * dVar29 - (dVar32 + dVar32) * dVar30;" (assignment_expression "dVar30 = dVar29 * dVar29 - (dVar32 + dVar32) * dVar30" identifier = (binary_expression "dVar29 * dVar29 - (dVar32 + dVar32) * dVar30" (binary_expression "dVar29 * dVar29" identifier * identifier) - (binary_expression "(dVar32 + dVar32) * dVar30" (parenthesized_expression "(dVar32 + dVar32)" ( (binary_expression "dVar32 + dVar32" identifier + identifier) )) * identifier))) ;) (expression_statement "local_14c = 0.0;" (assignment_expression "local_14c = 0.0" identifier = number_literal) ;) (if_statement "if (dVar30 < 0.0) goto LAB_00085796;" if (parenthesized_expression "(dVar30 < 0.0)" ( (binary_expression "dVar30 < 0.0" identifier < number_literal) )) (goto_statement "goto LAB_00085796;" goto statement_identifier ;)) (if_statement "if (dVar30 < 0.0) {\n                  sqrt(dVar30);\n                  dVar32 = pdVar7[9];\n                  dVar31 = *pdVar7;\n                  local_12c = pdVar7[2];\n                }" if (parenthesized_expression "(dVar30 < 0.0)" ( (binary_expression "dVar30 < 0.0" identifier < number_literal) )) (compound_statement "{\n                  sqrt(dVar30);\n                  dVar32 = pdVar7[9];\n                  dVar31 = *pdVar7;\n                  local_12c = pdVar7[2];\n                }" { (expression_statement "sqrt(dVar30);" (call_expression "sqrt(dVar30)" identifier (argument_list "(dVar30)" ( identifier ))) ;) (expression_statement "dVar32 = pdVar7[9];" (assignment_expression "dVar32 = pdVar7[9]" identifier = (subscript_expression "pdVar7[9]" identifier [ number_literal ])) ;) (expression_statement "dVar31 = *pdVar7;" (assignment_expression "dVar31 = *pdVar7" identifier = (pointer_expression "*pdVar7" * identifier)) ;) (expression_statement "local_12c = pdVar7[2];" (assignment_expression "local_12c = pdVar7[2]" identifier = (subscript_expression "pdVar7[2]" identifier [ number_literal ])) ;) })) (expression_statement "dVar12 = (SQRT(dVar30) - dVar29) / dVar32;" (assignment_expression "dVar12 = (SQRT(dVar30) - dVar29) / dVar32" identifier = (binary_expression "(SQRT(dVar30) - dVar29) / dVar32" (parenthesized_expression "(SQRT(dVar30) - dVar29)" ( (binary_expression "SQRT(dVar30) - dVar29" (call_expression "SQRT(dVar30)" identifier (argument_list "(dVar30)" ( identifier ))) - identifier) )) / identifier)) ;) }))) (expression_statement "local_10c = (dVar13 - pdVar7[1] * dVar12) / (local_12c * dVar12 + dVar31);" (assignment_expression "local_10c = (dVar13 - pdVar7[1] * dVar12) / (local_12c * dVar12 + dVar31)" identifier = (binary_expression "(dVar13 - pdVar7[1] * dVar12) / (local_12c * dVar12 + dVar31)" (parenthesized_expression "(dVar13 - pdVar7[1] * dVar12)" ( (binary_expression "dVar13 - pdVar7[1] * dVar12" identifier - (binary_expression "pdVar7[1] * dVar12" (subscript_expression "pdVar7[1]" identifier [ number_literal ]) * identifier)) )) / (parenthesized_expression "(local_12c * dVar12 + dVar31)" ( (binary_expression "local_12c * dVar12 + dVar31" (binary_expression "local_12c * dVar12" identifier * identifier) + identifier) )))) ;) (if_statement "if (MVar8 != MagickFalse) {\n                local_14c = 1.0;\n                goto LAB_000852c3;\n              }" if (parenthesized_expression "(MVar8 != MagickFalse)" ( (binary_expression "MVar8 != MagickFalse" identifier != identifier) )) (compound_statement "{\n                local_14c = 1.0;\n                goto LAB_000852c3;\n              }" { (expression_statement "local_14c = 1.0;" (assignment_expression "local_14c = 1.0" identifier = number_literal) ;) (goto_statement "goto LAB_000852c3;" goto statement_identifier ;) })) (expression_statement "ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);" (call_expression "ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception)" identifier (argument_list "(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception)" ( (pointer_expression "*ppRVar1" * identifier) , (binary_expression "local_10c - (double)DAT_0029f124" identifier - (cast_expression "(double)DAT_0029f124" ( (type_descriptor "double" primitive_type) ) identifier)) , (binary_expression "dVar12 - (double)DAT_0029f124" identifier - (cast_expression "(double)DAT_0029f124" ( (type_descriptor "double" primitive_type) ) identifier)) , (pointer_expression "&local_70" & identifier) , identifier ))) ;) (expression_statement "local_14c = 1.0;" (assignment_expression "local_14c = 1.0" identifier = number_literal) ;) (goto_statement "goto LAB_00085370;" goto statement_identifier ;)) (case_statement "case BilinearReverseDistortion:\n              dVar31 = pdVar7[2] * dVar33;\n              local_10c = pdVar7[3] + dVar31 * dVar12 + dVar12 * pdVar7[1] + *pdVar7 * dVar33;\n              dVar32 = dVar33 * pdVar7[6];\n              local_f4 = dVar12 * dVar32 + dVar12 * pdVar7[5] + dVar33 * pdVar7[4] + pdVar7[7];\n              ScaleResampleFilter(*ppRVar1,(dVar12 * pdVar7[2] + *pdVar7) * dVar3,\n                                  (pdVar7[1] + dVar31) * dVar3,\n                                  (pdVar7[6] * dVar12 + pdVar7[4]) * dVar3,\n                                  (pdVar7[5] + dVar32) * dVar3);\n              break;" case identifier : (expression_statement "dVar31 = pdVar7[2] * dVar33;" (assignment_expression "dVar31 = pdVar7[2] * dVar33" identifier = (binary_expression "pdVar7[2] * dVar33" (subscript_expression "pdVar7[2]" identifier [ number_literal ]) * identifier)) ;) (expression_statement "local_10c = pdVar7[3] + dVar31 * dVar12 + dVar12 * pdVar7[1] + *pdVar7 * dVar33;" (assignment_expression "local_10c = pdVar7[3] + dVar31 * dVar12 + dVar12 * pdVar7[1] + *pdVar7 * dVar33" identifier = (binary_expression "pdVar7[3] + dVar31 * dVar12 + dVar12 * pdVar7[1] + *pdVar7 * dVar33" (binary_expression "pdVar7[3] + dVar31 * dVar12 + dVar12 * pdVar7[1]" (binary_expression "pdVar7[3] + dVar31 * dVar12" (subscript_expression "pdVar7[3]" identifier [ number_literal ]) + (binary_expression "dVar31 * dVar12" identifier * identifier)) + (binary_expression "dVar12 * pdVar7[1]" identifier * (subscript_expression "pdVar7[1]" identifier [ number_literal ]))) + (binary_expression "*pdVar7 * dVar33" (pointer_expression "*pdVar7" * identifier) * identifier))) ;) (expression_statement "dVar32 = dVar33 * pdVar7[6];" (assignment_expression "dVar32 = dVar33 * pdVar7[6]" identifier = (binary_expression "dVar33 * pdVar7[6]" identifier * (subscript_expression "pdVar7[6]" identifier [ number_literal ]))) ;) (expression_statement "local_f4 = dVar12 * dVar32 + dVar12 * pdVar7[5] + dVar33 * pdVar7[4] + pdVar7[7];" (assignment_expression "local_f4 = dVar12 * dVar32 + dVar12 * pdVar7[5] + dVar33 * pdVar7[4] + pdVar7[7]" identifier = (binary_expression "dVar12 * dVar32 + dVar12 * pdVar7[5] + dVar33 * pdVar7[4] + pdVar7[7]" (binary_expression "dVar12 * dVar32 + dVar12 * pdVar7[5] + dVar33 * pdVar7[4]" (binary_expression "dVar12 * dVar32 + dVar12 * pdVar7[5]" (binary_expression "dVar12 * dVar32" identifier * identifier) + (binary_expression "dVar12 * pdVar7[5]" identifier * (subscript_expression "pdVar7[5]" identifier [ number_literal ]))) + (binary_expression "dVar33 * pdVar7[4]" identifier * (subscript_expression "pdVar7[4]" identifier [ number_literal ]))) + (subscript_expression "pdVar7[7]" identifier [ number_literal ]))) ;) (expression_statement "ScaleResampleFilter(*ppRVar1,(dVar12 * pdVar7[2] + *pdVar7) * dVar3,\n                                  (pdVar7[1] + dVar31) * dVar3,\n                                  (pdVar7[6] * dVar12 + pdVar7[4]) * dVar3,\n                                  (pdVar7[5] + dVar32) * dVar3);" (call_expression "ScaleResampleFilter(*ppRVar1,(dVar12 * pdVar7[2] + *pdVar7) * dVar3,\n                                  (pdVar7[1] + dVar31) * dVar3,\n                                  (pdVar7[6] * dVar12 + pdVar7[4]) * dVar3,\n                                  (pdVar7[5] + dVar32) * dVar3)" identifier (argument_list "(*ppRVar1,(dVar12 * pdVar7[2] + *pdVar7) * dVar3,\n                                  (pdVar7[1] + dVar31) * dVar3,\n                                  (pdVar7[6] * dVar12 + pdVar7[4]) * dVar3,\n                                  (pdVar7[5] + dVar32) * dVar3)" ( (pointer_expression "*ppRVar1" * identifier) , (binary_expression "(dVar12 * pdVar7[2] + *pdVar7) * dVar3" (parenthesized_expression "(dVar12 * pdVar7[2] + *pdVar7)" ( (binary_expression "dVar12 * pdVar7[2] + *pdVar7" (binary_expression "dVar12 * pdVar7[2]" identifier * (subscript_expression "pdVar7[2]" identifier [ number_literal ])) + (pointer_expression "*pdVar7" * identifier)) )) * identifier) , (binary_expression "(pdVar7[1] + dVar31) * dVar3" (parenthesized_expression "(pdVar7[1] + dVar31)" ( (binary_expression "pdVar7[1] + dVar31" (subscript_expression "pdVar7[1]" identifier [ number_literal ]) + identifier) )) * identifier) , (binary_expression "(pdVar7[6] * dVar12 + pdVar7[4]) * dVar3" (parenthesized_expression "(pdVar7[6] * dVar12 + pdVar7[4])" ( (binary_expression "pdVar7[6] * dVar12 + pdVar7[4]" (binary_expression "pdVar7[6] * dVar12" (subscript_expression "pdVar7[6]" identifier [ number_literal ]) * identifier) + (subscript_expression "pdVar7[4]" identifier [ number_literal ])) )) * identifier) , (binary_expression "(pdVar7[5] + dVar32) * dVar3" (parenthesized_expression "(pdVar7[5] + dVar32)" ( (binary_expression "pdVar7[5] + dVar32" (subscript_expression "pdVar7[5]" identifier [ number_literal ]) + identifier) )) * identifier) ))) ;) (break_statement "break;" break ;)) (case_statement "case PolynomialDistortion:\n              iVar14 = (int)ROUND(pdVar7[1]);\n              if (iVar14 < 1) {\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n              }\n              else {\n                iVar21 = 0;\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n                do {\n                  n = iVar21;\n                  dVar32 = poly_basis_fn(iVar21,dVar33,dVar12);\n                  dVar31 = pdVar7[iVar21 + 2];\n                  local_10c = dVar32 * dVar31 + local_10c;\n                  dVar30 = poly_basis_dx(n,dVar33,dVar12);\n                  local_114 = dVar31 * dVar30 + local_114;\n                  switch(iVar21) {\n                  case 0:\n                  case 1:\n                  case 4:\n                    dVar31 = dVar31 * 0.0;\n                    dVar29 = 0.0;\n                    break;\n                  case 2:\n                    dVar29 = 1.0;\n                    break;\n                  case 3:\n                    dVar31 = dVar31 * dVar33;\n                    dVar29 = dVar33;\n                    break;\n                  case 5:\n                    dVar31 = dVar31 * dVar12;\n                    dVar29 = dVar12;\n                    break;\n                  default:\n                    dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);\n                    dVar31 = dVar31 * dVar29;\n                  }\n                  local_fc = dVar31 + local_fc;\n                  dVar31 = pdVar7[iVar14 + iVar21 + 2];\n                  iVar21 = iVar21 + 1;\n                  local_f4 = dVar32 * dVar31 + local_f4;\n                  local_11c = dVar30 * dVar31 + local_11c;\n                  local_104 = dVar29 * dVar31 + local_104;\n                } while (iVar14 != iVar21);\n              }\n              ScaleResampleFilter(*ppRVar1,local_114 * dVar3,local_fc * dVar3,local_11c * dVar3,\n                                  local_104 * dVar3);\n              break;" case identifier : (expression_statement "iVar14 = (int)ROUND(pdVar7[1]);" (assignment_expression "iVar14 = (int)ROUND(pdVar7[1])" identifier = (cast_expression "(int)ROUND(pdVar7[1])" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND(pdVar7[1])" identifier (argument_list "(pdVar7[1])" ( (subscript_expression "pdVar7[1]" identifier [ number_literal ]) ))))) ;) (if_statement "if (iVar14 < 1) {\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n              }\n              else {\n                iVar21 = 0;\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n                do {\n                  n = iVar21;\n                  dVar32 = poly_basis_fn(iVar21,dVar33,dVar12);\n                  dVar31 = pdVar7[iVar21 + 2];\n                  local_10c = dVar32 * dVar31 + local_10c;\n                  dVar30 = poly_basis_dx(n,dVar33,dVar12);\n                  local_114 = dVar31 * dVar30 + local_114;\n                  switch(iVar21) {\n                  case 0:\n                  case 1:\n                  case 4:\n                    dVar31 = dVar31 * 0.0;\n                    dVar29 = 0.0;\n                    break;\n                  case 2:\n                    dVar29 = 1.0;\n                    break;\n                  case 3:\n                    dVar31 = dVar31 * dVar33;\n                    dVar29 = dVar33;\n                    break;\n                  case 5:\n                    dVar31 = dVar31 * dVar12;\n                    dVar29 = dVar12;\n                    break;\n                  default:\n                    dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);\n                    dVar31 = dVar31 * dVar29;\n                  }\n                  local_fc = dVar31 + local_fc;\n                  dVar31 = pdVar7[iVar14 + iVar21 + 2];\n                  iVar21 = iVar21 + 1;\n                  local_f4 = dVar32 * dVar31 + local_f4;\n                  local_11c = dVar30 * dVar31 + local_11c;\n                  local_104 = dVar29 * dVar31 + local_104;\n                } while (iVar14 != iVar21);\n              }" if (parenthesized_expression "(iVar14 < 1)" ( (binary_expression "iVar14 < 1" identifier < number_literal) )) (compound_statement "{\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n              }" { (expression_statement "local_10c = 0.0;" (assignment_expression "local_10c = 0.0" identifier = number_literal) ;) (expression_statement "local_f4 = 0.0;" (assignment_expression "local_f4 = 0.0" identifier = number_literal) ;) (expression_statement "local_11c = 0.0;" (assignment_expression "local_11c = 0.0" identifier = number_literal) ;) (expression_statement "local_104 = 0.0;" (assignment_expression "local_104 = 0.0" identifier = number_literal) ;) (expression_statement "local_114 = 0.0;" (assignment_expression "local_114 = 0.0" identifier = number_literal) ;) (expression_statement "local_fc = 0.0;" (assignment_expression "local_fc = 0.0" identifier = number_literal) ;) }) (else_clause "else {\n                iVar21 = 0;\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n                do {\n                  n = iVar21;\n                  dVar32 = poly_basis_fn(iVar21,dVar33,dVar12);\n                  dVar31 = pdVar7[iVar21 + 2];\n                  local_10c = dVar32 * dVar31 + local_10c;\n                  dVar30 = poly_basis_dx(n,dVar33,dVar12);\n                  local_114 = dVar31 * dVar30 + local_114;\n                  switch(iVar21) {\n                  case 0:\n                  case 1:\n                  case 4:\n                    dVar31 = dVar31 * 0.0;\n                    dVar29 = 0.0;\n                    break;\n                  case 2:\n                    dVar29 = 1.0;\n                    break;\n                  case 3:\n                    dVar31 = dVar31 * dVar33;\n                    dVar29 = dVar33;\n                    break;\n                  case 5:\n                    dVar31 = dVar31 * dVar12;\n                    dVar29 = dVar12;\n                    break;\n                  default:\n                    dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);\n                    dVar31 = dVar31 * dVar29;\n                  }\n                  local_fc = dVar31 + local_fc;\n                  dVar31 = pdVar7[iVar14 + iVar21 + 2];\n                  iVar21 = iVar21 + 1;\n                  local_f4 = dVar32 * dVar31 + local_f4;\n                  local_11c = dVar30 * dVar31 + local_11c;\n                  local_104 = dVar29 * dVar31 + local_104;\n                } while (iVar14 != iVar21);\n              }" else (compound_statement "{\n                iVar21 = 0;\n                local_10c = 0.0;\n                local_f4 = 0.0;\n                local_11c = 0.0;\n                local_104 = 0.0;\n                local_114 = 0.0;\n                local_fc = 0.0;\n                do {\n                  n = iVar21;\n                  dVar32 = poly_basis_fn(iVar21,dVar33,dVar12);\n                  dVar31 = pdVar7[iVar21 + 2];\n                  local_10c = dVar32 * dVar31 + local_10c;\n                  dVar30 = poly_basis_dx(n,dVar33,dVar12);\n                  local_114 = dVar31 * dVar30 + local_114;\n                  switch(iVar21) {\n                  case 0:\n                  case 1:\n                  case 4:\n                    dVar31 = dVar31 * 0.0;\n                    dVar29 = 0.0;\n                    break;\n                  case 2:\n                    dVar29 = 1.0;\n                    break;\n                  case 3:\n                    dVar31 = dVar31 * dVar33;\n                    dVar29 = dVar33;\n                    break;\n                  case 5:\n                    dVar31 = dVar31 * dVar12;\n                    dVar29 = dVar12;\n                    break;\n                  default:\n                    dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);\n                    dVar31 = dVar31 * dVar29;\n                  }\n                  local_fc = dVar31 + local_fc;\n                  dVar31 = pdVar7[iVar14 + iVar21 + 2];\n                  iVar21 = iVar21 + 1;\n                  local_f4 = dVar32 * dVar31 + local_f4;\n                  local_11c = dVar30 * dVar31 + local_11c;\n                  local_104 = dVar29 * dVar31 + local_104;\n                } while (iVar14 != iVar21);\n              }" { (expression_statement "iVar21 = 0;" (assignment_expression "iVar21 = 0" identifier = number_literal) ;) (expression_statement "local_10c = 0.0;" (assignment_expression "local_10c = 0.0" identifier = number_literal) ;) (expression_statement "local_f4 = 0.0;" (assignment_expression "local_f4 = 0.0" identifier = number_literal) ;) (expression_statement "local_11c = 0.0;" (assignment_expression "local_11c = 0.0" identifier = number_literal) ;) (expression_statement "local_104 = 0.0;" (assignment_expression "local_104 = 0.0" identifier = number_literal) ;) (expression_statement "local_114 = 0.0;" (assignment_expression "local_114 = 0.0" identifier = number_literal) ;) (expression_statement "local_fc = 0.0;" (assignment_expression "local_fc = 0.0" identifier = number_literal) ;) (do_statement "do {\n                  n = iVar21;\n                  dVar32 = poly_basis_fn(iVar21,dVar33,dVar12);\n                  dVar31 = pdVar7[iVar21 + 2];\n                  local_10c = dVar32 * dVar31 + local_10c;\n                  dVar30 = poly_basis_dx(n,dVar33,dVar12);\n                  local_114 = dVar31 * dVar30 + local_114;\n                  switch(iVar21) {\n                  case 0:\n                  case 1:\n                  case 4:\n                    dVar31 = dVar31 * 0.0;\n                    dVar29 = 0.0;\n                    break;\n                  case 2:\n                    dVar29 = 1.0;\n                    break;\n                  case 3:\n                    dVar31 = dVar31 * dVar33;\n                    dVar29 = dVar33;\n                    break;\n                  case 5:\n                    dVar31 = dVar31 * dVar12;\n                    dVar29 = dVar12;\n                    break;\n                  default:\n                    dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);\n                    dVar31 = dVar31 * dVar29;\n                  }\n                  local_fc = dVar31 + local_fc;\n                  dVar31 = pdVar7[iVar14 + iVar21 + 2];\n                  iVar21 = iVar21 + 1;\n                  local_f4 = dVar32 * dVar31 + local_f4;\n                  local_11c = dVar30 * dVar31 + local_11c;\n                  local_104 = dVar29 * dVar31 + local_104;\n                } while (iVar14 != iVar21);" do (compound_statement "{\n                  n = iVar21;\n                  dVar32 = poly_basis_fn(iVar21,dVar33,dVar12);\n                  dVar31 = pdVar7[iVar21 + 2];\n                  local_10c = dVar32 * dVar31 + local_10c;\n                  dVar30 = poly_basis_dx(n,dVar33,dVar12);\n                  local_114 = dVar31 * dVar30 + local_114;\n                  switch(iVar21) {\n                  case 0:\n                  case 1:\n                  case 4:\n                    dVar31 = dVar31 * 0.0;\n                    dVar29 = 0.0;\n                    break;\n                  case 2:\n                    dVar29 = 1.0;\n                    break;\n                  case 3:\n                    dVar31 = dVar31 * dVar33;\n                    dVar29 = dVar33;\n                    break;\n                  case 5:\n                    dVar31 = dVar31 * dVar12;\n                    dVar29 = dVar12;\n                    break;\n                  default:\n                    dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);\n                    dVar31 = dVar31 * dVar29;\n                  }\n                  local_fc = dVar31 + local_fc;\n                  dVar31 = pdVar7[iVar14 + iVar21 + 2];\n                  iVar21 = iVar21 + 1;\n                  local_f4 = dVar32 * dVar31 + local_f4;\n                  local_11c = dVar30 * dVar31 + local_11c;\n                  local_104 = dVar29 * dVar31 + local_104;\n                }" { (expression_statement "n = iVar21;" (assignment_expression "n = iVar21" identifier = identifier) ;) (expression_statement "dVar32 = poly_basis_fn(iVar21,dVar33,dVar12);" (assignment_expression "dVar32 = poly_basis_fn(iVar21,dVar33,dVar12)" identifier = (call_expression "poly_basis_fn(iVar21,dVar33,dVar12)" identifier (argument_list "(iVar21,dVar33,dVar12)" ( identifier , identifier , identifier )))) ;) (expression_statement "dVar31 = pdVar7[iVar21 + 2];" (assignment_expression "dVar31 = pdVar7[iVar21 + 2]" identifier = (subscript_expression "pdVar7[iVar21 + 2]" identifier [ (binary_expression "iVar21 + 2" identifier + number_literal) ])) ;) (expression_statement "local_10c = dVar32 * dVar31 + local_10c;" (assignment_expression "local_10c = dVar32 * dVar31 + local_10c" identifier = (binary_expression "dVar32 * dVar31 + local_10c" (binary_expression "dVar32 * dVar31" identifier * identifier) + identifier)) ;) (expression_statement "dVar30 = poly_basis_dx(n,dVar33,dVar12);" (assignment_expression "dVar30 = poly_basis_dx(n,dVar33,dVar12)" identifier = (call_expression "poly_basis_dx(n,dVar33,dVar12)" identifier (argument_list "(n,dVar33,dVar12)" ( identifier , identifier , identifier )))) ;) (expression_statement "local_114 = dVar31 * dVar30 + local_114;" (assignment_expression "local_114 = dVar31 * dVar30 + local_114" identifier = (binary_expression "dVar31 * dVar30 + local_114" (binary_expression "dVar31 * dVar30" identifier * identifier) + identifier)) ;) (switch_statement "switch(iVar21) {\n                  case 0:\n                  case 1:\n                  case 4:\n                    dVar31 = dVar31 * 0.0;\n                    dVar29 = 0.0;\n                    break;\n                  case 2:\n                    dVar29 = 1.0;\n                    break;\n                  case 3:\n                    dVar31 = dVar31 * dVar33;\n                    dVar29 = dVar33;\n                    break;\n                  case 5:\n                    dVar31 = dVar31 * dVar12;\n                    dVar29 = dVar12;\n                    break;\n                  default:\n                    dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);\n                    dVar31 = dVar31 * dVar29;\n                  }" switch (parenthesized_expression "(iVar21)" ( identifier )) (compound_statement "{\n                  case 0:\n                  case 1:\n                  case 4:\n                    dVar31 = dVar31 * 0.0;\n                    dVar29 = 0.0;\n                    break;\n                  case 2:\n                    dVar29 = 1.0;\n                    break;\n                  case 3:\n                    dVar31 = dVar31 * dVar33;\n                    dVar29 = dVar33;\n                    break;\n                  case 5:\n                    dVar31 = dVar31 * dVar12;\n                    dVar29 = dVar12;\n                    break;\n                  default:\n                    dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);\n                    dVar31 = dVar31 * dVar29;\n                  }" { (case_statement "case 0:" case number_literal :) (case_statement "case 1:" case number_literal :) (case_statement "case 4:\n                    dVar31 = dVar31 * 0.0;\n                    dVar29 = 0.0;\n                    break;" case number_literal : (expression_statement "dVar31 = dVar31 * 0.0;" (assignment_expression "dVar31 = dVar31 * 0.0" identifier = (binary_expression "dVar31 * 0.0" identifier * number_literal)) ;) (expression_statement "dVar29 = 0.0;" (assignment_expression "dVar29 = 0.0" identifier = number_literal) ;) (break_statement "break;" break ;)) (case_statement "case 2:\n                    dVar29 = 1.0;\n                    break;" case number_literal : (expression_statement "dVar29 = 1.0;" (assignment_expression "dVar29 = 1.0" identifier = number_literal) ;) (break_statement "break;" break ;)) (case_statement "case 3:\n                    dVar31 = dVar31 * dVar33;\n                    dVar29 = dVar33;\n                    break;" case number_literal : (expression_statement "dVar31 = dVar31 * dVar33;" (assignment_expression "dVar31 = dVar31 * dVar33" identifier = (binary_expression "dVar31 * dVar33" identifier * identifier)) ;) (expression_statement "dVar29 = dVar33;" (assignment_expression "dVar29 = dVar33" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 5:\n                    dVar31 = dVar31 * dVar12;\n                    dVar29 = dVar12;\n                    break;" case number_literal : (expression_statement "dVar31 = dVar31 * dVar12;" (assignment_expression "dVar31 = dVar31 * dVar12" identifier = (binary_expression "dVar31 * dVar12" identifier * identifier)) ;) (expression_statement "dVar29 = dVar12;" (assignment_expression "dVar29 = dVar12" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "default:\n                    dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);\n                    dVar31 = dVar31 * dVar29;" default : (expression_statement "dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12);" (assignment_expression "dVar29 = poly_basis_dx(iVar21 + -1,dVar33,dVar12)" identifier = (call_expression "poly_basis_dx(iVar21 + -1,dVar33,dVar12)" identifier (argument_list "(iVar21 + -1,dVar33,dVar12)" ( (binary_expression "iVar21 + -1" identifier + number_literal) , identifier , identifier )))) ;) (expression_statement "dVar31 = dVar31 * dVar29;" (assignment_expression "dVar31 = dVar31 * dVar29" identifier = (binary_expression "dVar31 * dVar29" identifier * identifier)) ;)) })) (expression_statement "local_fc = dVar31 + local_fc;" (assignment_expression "local_fc = dVar31 + local_fc" identifier = (binary_expression "dVar31 + local_fc" identifier + identifier)) ;) (expression_statement "dVar31 = pdVar7[iVar14 + iVar21 + 2];" (assignment_expression "dVar31 = pdVar7[iVar14 + iVar21 + 2]" identifier = (subscript_expression "pdVar7[iVar14 + iVar21 + 2]" identifier [ (binary_expression "iVar14 + iVar21 + 2" (binary_expression "iVar14 + iVar21" identifier + identifier) + number_literal) ])) ;) (expression_statement "iVar21 = iVar21 + 1;" (assignment_expression "iVar21 = iVar21 + 1" identifier = (binary_expression "iVar21 + 1" identifier + number_literal)) ;) (expression_statement "local_f4 = dVar32 * dVar31 + local_f4;" (assignment_expression "local_f4 = dVar32 * dVar31 + local_f4" identifier = (binary_expression "dVar32 * dVar31 + local_f4" (binary_expression "dVar32 * dVar31" identifier * identifier) + identifier)) ;) (expression_statement "local_11c = dVar30 * dVar31 + local_11c;" (assignment_expression "local_11c = dVar30 * dVar31 + local_11c" identifier = (binary_expression "dVar30 * dVar31 + local_11c" (binary_expression "dVar30 * dVar31" identifier * identifier) + identifier)) ;) (expression_statement "local_104 = dVar29 * dVar31 + local_104;" (assignment_expression "local_104 = dVar29 * dVar31 + local_104" identifier = (binary_expression "dVar29 * dVar31 + local_104" (binary_expression "dVar29 * dVar31" identifier * identifier) + identifier)) ;) }) while (parenthesized_expression "(iVar14 != iVar21)" ( (binary_expression "iVar14 != iVar21" identifier != identifier) )) ;) }))) (expression_statement "ScaleResampleFilter(*ppRVar1,local_114 * dVar3,local_fc * dVar3,local_11c * dVar3,\n                                  local_104 * dVar3);" (call_expression "ScaleResampleFilter(*ppRVar1,local_114 * dVar3,local_fc * dVar3,local_11c * dVar3,\n                                  local_104 * dVar3)" identifier (argument_list "(*ppRVar1,local_114 * dVar3,local_fc * dVar3,local_11c * dVar3,\n                                  local_104 * dVar3)" ( (pointer_expression "*ppRVar1" * identifier) , (binary_expression "local_114 * dVar3" identifier * identifier) , (binary_expression "local_fc * dVar3" identifier * identifier) , (binary_expression "local_11c * dVar3" identifier * identifier) , (binary_expression "local_104 * dVar3" identifier * identifier) ))) ;) (break_statement "break;" break ;)) (case_statement "case ArcDistortion:\n              dVar31 = atan2(dVar12,dVar33);\n              dVar31 = (dVar31 - *pdVar7) / DAT_002b0c28;\n              if (dVar31 - ROUND(dVar31) < ROUND(dVar31) - dVar31) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar33 = hypot(dVar33,dVar12);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[1] / (dVar33 * DAT_002b0c28)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              local_10c = (double)(image->page).x + (dVar31 - ROUND(dVar31)) * pdVar7[1] + pdVar7[4]\n                          + (double)DAT_0029f124;\n              local_f4 = (double)(image->page).y + (pdVar7[2] - dVar33) * pdVar7[3];\n              break;" case identifier : (expression_statement "dVar31 = atan2(dVar12,dVar33);" (assignment_expression "dVar31 = atan2(dVar12,dVar33)" identifier = (call_expression "atan2(dVar12,dVar33)" identifier (argument_list "(dVar12,dVar33)" ( identifier , identifier )))) ;) (expression_statement "dVar31 = (dVar31 - *pdVar7) / DAT_002b0c28;" (assignment_expression "dVar31 = (dVar31 - *pdVar7) / DAT_002b0c28" identifier = (binary_expression "(dVar31 - *pdVar7) / DAT_002b0c28" (parenthesized_expression "(dVar31 - *pdVar7)" ( (binary_expression "dVar31 - *pdVar7" identifier - (pointer_expression "*pdVar7" * identifier)) )) / identifier)) ;) (if_statement "if (dVar31 - ROUND(dVar31) < ROUND(dVar31) - dVar31) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }" if (parenthesized_expression "(dVar31 - ROUND(dVar31) < ROUND(dVar31) - dVar31)" ( (binary_expression "dVar31 - ROUND(dVar31) < ROUND(dVar31) - dVar31" (binary_expression "dVar31 - ROUND(dVar31)" identifier - (call_expression "ROUND(dVar31)" identifier (argument_list "(dVar31)" ( identifier )))) < (binary_expression "ROUND(dVar31) - dVar31" (call_expression "ROUND(dVar31)" identifier (argument_list "(dVar31)" ( identifier ))) - identifier)) )) (compound_statement "{\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }" { (expression_statement "local_72 = in_FPUControlWord & 0xf3ff | 0x400;" (assignment_expression "local_72 = in_FPUControlWord & 0xf3ff | 0x400" identifier = (binary_expression "in_FPUControlWord & 0xf3ff | 0x400" (binary_expression "in_FPUControlWord & 0xf3ff" identifier & number_literal) | number_literal)) ;) }) (else_clause "else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }" else (compound_statement "{\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }" { (expression_statement "local_72 = in_FPUControlWord & 0xf3ff | 0x800;" (assignment_expression "local_72 = in_FPUControlWord & 0xf3ff | 0x800" identifier = (binary_expression "in_FPUControlWord & 0xf3ff | 0x800" (binary_expression "in_FPUControlWord & 0xf3ff" identifier & number_literal) | number_literal)) ;) }))) (expression_statement "dVar33 = hypot(dVar33,dVar12);" (assignment_expression "dVar33 = hypot(dVar33,dVar12)" identifier = (call_expression "hypot(dVar33,dVar12)" identifier (argument_list "(dVar33,dVar12)" ( identifier , identifier )))) ;) (if_statement "if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[1] / (dVar33 * DAT_002b0c28)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }" if (parenthesized_expression "(dVar33 <= DAT_0029f138)" ( (binary_expression "dVar33 <= DAT_0029f138" identifier <= identifier) )) (compound_statement "{\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }" { (expression_statement "local_12c = (double)(ulonglong)(pIVar4->columns * 2);" (assignment_expression "local_12c = (double)(ulonglong)(pIVar4->columns * 2)" identifier = (cast_expression "(double)(ulonglong)(pIVar4->columns * 2)" ( (type_descriptor "double" primitive_type) ) (call_expression "(ulonglong)(pIVar4->columns * 2)" (parenthesized_expression "(ulonglong)" ( identifier )) (argument_list "(pIVar4->columns * 2)" ( (binary_expression "pIVar4->columns * 2" (field_expression "pIVar4->columns" identifier -> field_identifier) * number_literal) ))))) ;) (expression_statement "ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);" (call_expression "ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3)" identifier (argument_list "(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3)" ( (pointer_expression "*ppRVar1" * identifier) , (binary_expression "(double)(longlong)local_12c * dVar3" (cast_expression "(double)(longlong)local_12c" ( (type_descriptor "double" primitive_type) ) (cast_expression "(longlong)local_12c" ( (type_descriptor "longlong" type_identifier) ) identifier)) * identifier) , (binary_expression "dVar3 * (double)DAT_002a7fe8" identifier * (cast_expression "(double)DAT_002a7fe8" ( (type_descriptor "double" primitive_type) ) identifier)) , (binary_expression "dVar3 * (double)DAT_002a7fe8" identifier * (cast_expression "(double)DAT_002a7fe8" ( (type_descriptor "double" primitive_type) ) identifier)) , (binary_expression "pdVar7[3] * dVar3" (subscript_expression "pdVar7[3]" identifier [ number_literal ]) * identifier) ))) ;) }) (else_clause "else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[1] / (dVar33 * DAT_002b0c28)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }" else (compound_statement "{\n                ScaleResampleFilter(*ppRVar1,(pdVar7[1] / (dVar33 * DAT_002b0c28)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);\n              }" { (expression_statement "ScaleResampleFilter(*ppRVar1,(pdVar7[1] / (dVar33 * DAT_002b0c28)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3);" (call_expression "ScaleResampleFilter(*ppRVar1,(pdVar7[1] / (dVar33 * DAT_002b0c28)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3)" identifier (argument_list "(*ppRVar1,(pdVar7[1] / (dVar33 * DAT_002b0c28)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[3] * dVar3)" ( (pointer_expression "*ppRVar1" * identifier) , (binary_expression "(pdVar7[1] / (dVar33 * DAT_002b0c28)) * dVar3" (parenthesized_expression "(pdVar7[1] / (dVar33 * DAT_002b0c28))" ( (binary_expression "pdVar7[1] / (dVar33 * DAT_002b0c28)" (subscript_expression "pdVar7[1]" identifier [ number_literal ]) / (parenthesized_expression "(dVar33 * DAT_002b0c28)" ( (binary_expression "dVar33 * DAT_002b0c28" identifier * identifier) ))) )) * identifier) , (binary_expression "dVar3 * (double)DAT_002a7fe8" identifier * (cast_expression "(double)DAT_002a7fe8" ( (type_descriptor "double" primitive_type) ) identifier)) , (binary_expression "dVar3 * (double)DAT_002a7fe8" identifier * (cast_expression "(double)DAT_002a7fe8" ( (type_descriptor "double" primitive_type) ) identifier)) , (binary_expression "pdVar7[3] * dVar3" (subscript_expression "pdVar7[3]" identifier [ number_literal ]) * identifier) ))) ;) }))) (expression_statement "local_10c = (double)(image->page).x + (dVar31 - ROUND(dVar31)) * pdVar7[1] + pdVar7[4]\n                          + (double)DAT_0029f124;" (assignment_expression "local_10c = (double)(image->page).x + (dVar31 - ROUND(dVar31)) * pdVar7[1] + pdVar7[4]\n                          + (double)DAT_0029f124" identifier = (binary_expression "(double)(image->page).x + (dVar31 - ROUND(dVar31)) * pdVar7[1] + pdVar7[4]\n                          + (double)DAT_0029f124" (binary_expression "(double)(image->page).x + (dVar31 - ROUND(dVar31)) * pdVar7[1] + pdVar7[4]" (binary_expression "(double)(image->page).x + (dVar31 - ROUND(dVar31)) * pdVar7[1]" (cast_expression "(double)(image->page).x" ( (type_descriptor "double" primitive_type) ) (field_expression "(image->page).x" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier)) + (binary_expression "(dVar31 - ROUND(dVar31)) * pdVar7[1]" (parenthesized_expression "(dVar31 - ROUND(dVar31))" ( (binary_expression "dVar31 - ROUND(dVar31)" identifier - (call_expression "ROUND(dVar31)" identifier (argument_list "(dVar31)" ( identifier )))) )) * (subscript_expression "pdVar7[1]" identifier [ number_literal ]))) + (subscript_expression "pdVar7[4]" identifier [ number_literal ])) + (cast_expression "(double)DAT_0029f124" ( (type_descriptor "double" primitive_type) ) identifier))) ;) (expression_statement "local_f4 = (double)(image->page).y + (pdVar7[2] - dVar33) * pdVar7[3];" (assignment_expression "local_f4 = (double)(image->page).y + (pdVar7[2] - dVar33) * pdVar7[3]" identifier = (binary_expression "(double)(image->page).y + (pdVar7[2] - dVar33) * pdVar7[3]" (cast_expression "(double)(image->page).y" ( (type_descriptor "double" primitive_type) ) (field_expression "(image->page).y" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier)) + (binary_expression "(pdVar7[2] - dVar33) * pdVar7[3]" (parenthesized_expression "(pdVar7[2] - dVar33)" ( (binary_expression "pdVar7[2] - dVar33" (subscript_expression "pdVar7[2]" identifier [ number_literal ]) - identifier) )) * (subscript_expression "pdVar7[3]" identifier [ number_literal ])))) ;) (break_statement "break;" break ;)) (case_statement "case PolarDistortion:\n              dVar31 = pdVar7[2];\n              dVar32 = pdVar7[3];\n              dVar30 = atan2(dVar33 - dVar31,dVar12 - dVar32);\n              dVar29 = DAT_002b0c28;\n              dVar30 = (dVar30 - (pdVar7[4] + pdVar7[5]) * (double)DAT_0029f124) / DAT_002b0c28;\n              if (dVar30 - ROUND(dVar30) < ROUND(dVar30) - dVar30) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }\n              dVar30 = DAT_002b0c28 * (dVar30 - ROUND(dVar30));\n              dVar33 = hypot(dVar33 - dVar31,dVar12 - dVar32);\n              if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[6] / (dVar29 * dVar33)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              local_13c = (double)(ulonglong)image->columns;\n              local_10c = (double)(image->page).x +\n                          (double)(longlong)local_13c * (double)DAT_0029f124 + dVar30 * pdVar7[6];\n              local_f4 = (double)(image->page).y + (dVar33 - pdVar7[1]) * pdVar7[7];\n              break;" case identifier : (expression_statement "dVar31 = pdVar7[2];" (assignment_expression "dVar31 = pdVar7[2]" identifier = (subscript_expression "pdVar7[2]" identifier [ number_literal ])) ;) (expression_statement "dVar32 = pdVar7[3];" (assignment_expression "dVar32 = pdVar7[3]" identifier = (subscript_expression "pdVar7[3]" identifier [ number_literal ])) ;) (expression_statement "dVar30 = atan2(dVar33 - dVar31,dVar12 - dVar32);" (assignment_expression "dVar30 = atan2(dVar33 - dVar31,dVar12 - dVar32)" identifier = (call_expression "atan2(dVar33 - dVar31,dVar12 - dVar32)" identifier (argument_list "(dVar33 - dVar31,dVar12 - dVar32)" ( (binary_expression "dVar33 - dVar31" identifier - identifier) , (binary_expression "dVar12 - dVar32" identifier - identifier) )))) ;) (expression_statement "dVar29 = DAT_002b0c28;" (assignment_expression "dVar29 = DAT_002b0c28" identifier = identifier) ;) (expression_statement "dVar30 = (dVar30 - (pdVar7[4] + pdVar7[5]) * (double)DAT_0029f124) / DAT_002b0c28;" (assignment_expression "dVar30 = (dVar30 - (pdVar7[4] + pdVar7[5]) * (double)DAT_0029f124) / DAT_002b0c28" identifier = (binary_expression "(dVar30 - (pdVar7[4] + pdVar7[5]) * (double)DAT_0029f124) / DAT_002b0c28" (parenthesized_expression "(dVar30 - (pdVar7[4] + pdVar7[5]) * (double)DAT_0029f124)" ( (binary_expression "dVar30 - (pdVar7[4] + pdVar7[5]) * (double)DAT_0029f124" identifier - (binary_expression "(pdVar7[4] + pdVar7[5]) * (double)DAT_0029f124" (parenthesized_expression "(pdVar7[4] + pdVar7[5])" ( (binary_expression "pdVar7[4] + pdVar7[5]" (subscript_expression "pdVar7[4]" identifier [ number_literal ]) + (subscript_expression "pdVar7[5]" identifier [ number_literal ])) )) * (cast_expression "(double)DAT_0029f124" ( (type_descriptor "double" primitive_type) ) identifier))) )) / identifier)) ;) (if_statement "if (dVar30 - ROUND(dVar30) < ROUND(dVar30) - dVar30) {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }\n              else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }" if (parenthesized_expression "(dVar30 - ROUND(dVar30) < ROUND(dVar30) - dVar30)" ( (binary_expression "dVar30 - ROUND(dVar30) < ROUND(dVar30) - dVar30" (binary_expression "dVar30 - ROUND(dVar30)" identifier - (call_expression "ROUND(dVar30)" identifier (argument_list "(dVar30)" ( identifier )))) < (binary_expression "ROUND(dVar30) - dVar30" (call_expression "ROUND(dVar30)" identifier (argument_list "(dVar30)" ( identifier ))) - identifier)) )) (compound_statement "{\n                local_72 = in_FPUControlWord & 0xf3ff | 0x400;\n              }" { (expression_statement "local_72 = in_FPUControlWord & 0xf3ff | 0x400;" (assignment_expression "local_72 = in_FPUControlWord & 0xf3ff | 0x400" identifier = (binary_expression "in_FPUControlWord & 0xf3ff | 0x400" (binary_expression "in_FPUControlWord & 0xf3ff" identifier & number_literal) | number_literal)) ;) }) (else_clause "else {\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }" else (compound_statement "{\n                local_72 = in_FPUControlWord & 0xf3ff | 0x800;\n              }" { (expression_statement "local_72 = in_FPUControlWord & 0xf3ff | 0x800;" (assignment_expression "local_72 = in_FPUControlWord & 0xf3ff | 0x800" identifier = (binary_expression "in_FPUControlWord & 0xf3ff | 0x800" (binary_expression "in_FPUControlWord & 0xf3ff" identifier & number_literal) | number_literal)) ;) }))) (expression_statement "dVar30 = DAT_002b0c28 * (dVar30 - ROUND(dVar30));" (assignment_expression "dVar30 = DAT_002b0c28 * (dVar30 - ROUND(dVar30))" identifier = (binary_expression "DAT_002b0c28 * (dVar30 - ROUND(dVar30))" identifier * (parenthesized_expression "(dVar30 - ROUND(dVar30))" ( (binary_expression "dVar30 - ROUND(dVar30)" identifier - (call_expression "ROUND(dVar30)" identifier (argument_list "(dVar30)" ( identifier )))) )))) ;) (expression_statement "dVar33 = hypot(dVar33 - dVar31,dVar12 - dVar32);" (assignment_expression "dVar33 = hypot(dVar33 - dVar31,dVar12 - dVar32)" identifier = (call_expression "hypot(dVar33 - dVar31,dVar12 - dVar32)" identifier (argument_list "(dVar33 - dVar31,dVar12 - dVar32)" ( (binary_expression "dVar33 - dVar31" identifier - identifier) , (binary_expression "dVar12 - dVar32" identifier - identifier) )))) ;) (if_statement "if (dVar33 <= DAT_0029f138) {\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }\n              else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[6] / (dVar29 * dVar33)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }" if (parenthesized_expression "(dVar33 <= DAT_0029f138)" ( (binary_expression "dVar33 <= DAT_0029f138" identifier <= identifier) )) (compound_statement "{\n                local_12c = (double)(ulonglong)(pIVar4->columns * 2);\n                ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }" { (expression_statement "local_12c = (double)(ulonglong)(pIVar4->columns * 2);" (assignment_expression "local_12c = (double)(ulonglong)(pIVar4->columns * 2)" identifier = (cast_expression "(double)(ulonglong)(pIVar4->columns * 2)" ( (type_descriptor "double" primitive_type) ) (call_expression "(ulonglong)(pIVar4->columns * 2)" (parenthesized_expression "(ulonglong)" ( identifier )) (argument_list "(pIVar4->columns * 2)" ( (binary_expression "pIVar4->columns * 2" (field_expression "pIVar4->columns" identifier -> field_identifier) * number_literal) ))))) ;) (expression_statement "ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);" (call_expression "ScaleResampleFilter(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3)" identifier (argument_list "(*ppRVar1,(double)(longlong)local_12c * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3)" ( (pointer_expression "*ppRVar1" * identifier) , (binary_expression "(double)(longlong)local_12c * dVar3" (cast_expression "(double)(longlong)local_12c" ( (type_descriptor "double" primitive_type) ) (cast_expression "(longlong)local_12c" ( (type_descriptor "longlong" type_identifier) ) identifier)) * identifier) , (binary_expression "dVar3 * (double)DAT_002a7fe8" identifier * (cast_expression "(double)DAT_002a7fe8" ( (type_descriptor "double" primitive_type) ) identifier)) , (binary_expression "dVar3 * (double)DAT_002a7fe8" identifier * (cast_expression "(double)DAT_002a7fe8" ( (type_descriptor "double" primitive_type) ) identifier)) , (binary_expression "pdVar7[7] * dVar3" (subscript_expression "pdVar7[7]" identifier [ number_literal ]) * identifier) ))) ;) }) (else_clause "else {\n                ScaleResampleFilter(*ppRVar1,(pdVar7[6] / (dVar29 * dVar33)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }" else (compound_statement "{\n                ScaleResampleFilter(*ppRVar1,(pdVar7[6] / (dVar29 * dVar33)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);\n              }" { (expression_statement "ScaleResampleFilter(*ppRVar1,(pdVar7[6] / (dVar29 * dVar33)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3);" (call_expression "ScaleResampleFilter(*ppRVar1,(pdVar7[6] / (dVar29 * dVar33)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3)" identifier (argument_list "(*ppRVar1,(pdVar7[6] / (dVar29 * dVar33)) * dVar3,\n                                    dVar3 * (double)DAT_002a7fe8,dVar3 * (double)DAT_002a7fe8,\n                                    pdVar7[7] * dVar3)" ( (pointer_expression "*ppRVar1" * identifier) , (binary_expression "(pdVar7[6] / (dVar29 * dVar33)) * dVar3" (parenthesized_expression "(pdVar7[6] / (dVar29 * dVar33))" ( (binary_expression "pdVar7[6] / (dVar29 * dVar33)" (subscript_expression "pdVar7[6]" identifier [ number_literal ]) / (parenthesized_expression "(dVar29 * dVar33)" ( (binary_expression "dVar29 * dVar33" identifier * identifier) ))) )) * identifier) , (binary_expression "dVar3 * (double)DAT_002a7fe8" identifier * (cast_expression "(double)DAT_002a7fe8" ( (type_descriptor "double" primitive_type) ) identifier)) , (binary_expression "dVar3 * (double)DAT_002a7fe8" identifier * (cast_expression "(double)DAT_002a7fe8" ( (type_descriptor "double" primitive_type) ) identifier)) , (binary_expression "pdVar7[7] * dVar3" (subscript_expression "pdVar7[7]" identifier [ number_literal ]) * identifier) ))) ;) }))) (expression_statement "local_13c = (double)(ulonglong)image->columns;" (assignment_expression "local_13c = (double)(ulonglong)image->columns" identifier = (cast_expression "(double)(ulonglong)image->columns" ( (type_descriptor "double" primitive_type) ) (cast_expression "(ulonglong)image->columns" ( (type_descriptor "ulonglong" type_identifier) ) (field_expression "image->columns" identifier -> field_identifier)))) ;) (expression_statement "local_10c = (double)(image->page).x +\n                          (double)(longlong)local_13c * (double)DAT_0029f124 + dVar30 * pdVar7[6];" (assignment_expression "local_10c = (double)(image->page).x +\n                          (double)(longlong)local_13c * (double)DAT_0029f124 + dVar30 * pdVar7[6]" identifier = (binary_expression "(double)(image->page).x +\n                          (double)(longlong)local_13c * (double)DAT_0029f124 + dVar30 * pdVar7[6]" (binary_expression "(double)(image->page).x +\n                          (double)(longlong)local_13c * (double)DAT_0029f124" (cast_expression "(double)(image->page).x" ( (type_descriptor "double" primitive_type) ) (field_expression "(image->page).x" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier)) + (binary_expression "(double)(longlong)local_13c * (double)DAT_0029f124" (cast_expression "(double)(longlong)local_13c" ( (type_descriptor "double" primitive_type) ) (cast_expression "(longlong)local_13c" ( (type_descriptor "longlong" type_identifier) ) identifier)) * (cast_expression "(double)DAT_0029f124" ( (type_descriptor "double" primitive_type) ) identifier))) + (binary_expression "dVar30 * pdVar7[6]" identifier * (subscript_expression "pdVar7[6]" identifier [ number_literal ])))) ;) (expression_statement "local_f4 = (double)(image->page).y + (dVar33 - pdVar7[1]) * pdVar7[7];" (assignment_expression "local_f4 = (double)(image->page).y + (dVar33 - pdVar7[1]) * pdVar7[7]" identifier = (binary_expression "(double)(image->page).y + (dVar33 - pdVar7[1]) * pdVar7[7]" (cast_expression "(double)(image->page).y" ( (type_descriptor "double" primitive_type) ) (field_expression "(image->page).y" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier)) + (binary_expression "(dVar33 - pdVar7[1]) * pdVar7[7]" (parenthesized_expression "(dVar33 - pdVar7[1])" ( (binary_expression "dVar33 - pdVar7[1]" identifier - (subscript_expression "pdVar7[1]" identifier [ number_literal ])) )) * (subscript_expression "pdVar7[7]" identifier [ number_literal ])))) ;) (break_statement "break;" break ;)) (case_statement "case DePolarDistortion:\n              dVar33 = (double)DAT_0029f124;\n              sincos((double)(((float)local_15c + DAT_0029f124) * (float)dVar3 * (float)pdVar7[6] +\n                             (float)pdVar7[4]),local_84,&local_8c);\n              dVar12 = (dVar33 + (double)local_140) * dVar3 * pdVar7[7] + pdVar7[1];\n              dVar33 = local_84[0] * dVar12 + pdVar7[2];\n              dVar12 = dVar12 * local_8c + pdVar7[3];\nLAB_00085796:\n              local_10c = dVar33;\n              if (MVar8 != MagickFalse) goto LAB_000852cf;\n              goto joined_r0x000857af;" case identifier : (expression_statement "dVar33 = (double)DAT_0029f124;" (assignment_expression "dVar33 = (double)DAT_0029f124" identifier = (cast_expression "(double)DAT_0029f124" ( (type_descriptor "double" primitive_type) ) identifier)) ;) (expression_statement "sincos((double)(((float)local_15c + DAT_0029f124) * (float)dVar3 * (float)pdVar7[6] +\n                             (float)pdVar7[4]),local_84,&local_8c);" (call_expression "sincos((double)(((float)local_15c + DAT_0029f124) * (float)dVar3 * (float)pdVar7[6] +\n                             (float)pdVar7[4]),local_84,&local_8c)" identifier (argument_list "((double)(((float)local_15c + DAT_0029f124) * (float)dVar3 * (float)pdVar7[6] +\n                             (float)pdVar7[4]),local_84,&local_8c)" ( (cast_expression "(double)(((float)local_15c + DAT_0029f124) * (float)dVar3 * (float)pdVar7[6] +\n                             (float)pdVar7[4])" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "(((float)local_15c + DAT_0029f124) * (float)dVar3 * (float)pdVar7[6] +\n                             (float)pdVar7[4])" ( (binary_expression "((float)local_15c + DAT_0029f124) * (float)dVar3 * (float)pdVar7[6] +\n                             (float)pdVar7[4]" (binary_expression "((float)local_15c + DAT_0029f124) * (float)dVar3 * (float)pdVar7[6]" (binary_expression "((float)local_15c + DAT_0029f124) * (float)dVar3" (parenthesized_expression "((float)local_15c + DAT_0029f124)" ( (binary_expression "(float)local_15c + DAT_0029f124" (cast_expression "(float)local_15c" ( (type_descriptor "float" primitive_type) ) identifier) + identifier) )) * (cast_expression "(float)dVar3" ( (type_descriptor "float" primitive_type) ) identifier)) * (cast_expression "(float)pdVar7[6]" ( (type_descriptor "float" primitive_type) ) (subscript_expression "pdVar7[6]" identifier [ number_literal ]))) + (cast_expression "(float)pdVar7[4]" ( (type_descriptor "float" primitive_type) ) (subscript_expression "pdVar7[4]" identifier [ number_literal ]))) ))) , identifier , (pointer_expression "&local_8c" & identifier) ))) ;) (expression_statement "dVar12 = (dVar33 + (double)local_140) * dVar3 * pdVar7[7] + pdVar7[1];" (assignment_expression "dVar12 = (dVar33 + (double)local_140) * dVar3 * pdVar7[7] + pdVar7[1]" identifier = (binary_expression "(dVar33 + (double)local_140) * dVar3 * pdVar7[7] + pdVar7[1]" (binary_expression "(dVar33 + (double)local_140) * dVar3 * pdVar7[7]" (binary_expression "(dVar33 + (double)local_140) * dVar3" (parenthesized_expression "(dVar33 + (double)local_140)" ( (binary_expression "dVar33 + (double)local_140" identifier + (cast_expression "(double)local_140" ( (type_descriptor "double" primitive_type) ) identifier)) )) * identifier) * (subscript_expression "pdVar7[7]" identifier [ number_literal ])) + (subscript_expression "pdVar7[1]" identifier [ number_literal ]))) ;) (expression_statement "dVar33 = local_84[0] * dVar12 + pdVar7[2];" (assignment_expression "dVar33 = local_84[0] * dVar12 + pdVar7[2]" identifier = (binary_expression "local_84[0] * dVar12 + pdVar7[2]" (binary_expression "local_84[0] * dVar12" (subscript_expression "local_84[0]" identifier [ number_literal ]) * identifier) + (subscript_expression "pdVar7[2]" identifier [ number_literal ]))) ;) (expression_statement "dVar12 = dVar12 * local_8c + pdVar7[3];" (assignment_expression "dVar12 = dVar12 * local_8c + pdVar7[3]" identifier = (binary_expression "dVar12 * local_8c + pdVar7[3]" (binary_expression "dVar12 * local_8c" identifier * identifier) + (subscript_expression "pdVar7[3]" identifier [ number_literal ]))) ;) (labeled_statement "LAB_00085796:\n              local_10c = dVar33;" statement_identifier : (expression_statement "local_10c = dVar33;" (assignment_expression "local_10c = dVar33" identifier = identifier) ;)) (if_statement "if (MVar8 != MagickFalse) goto LAB_000852cf;" if (parenthesized_expression "(MVar8 != MagickFalse)" ( (binary_expression "MVar8 != MagickFalse" identifier != identifier) )) (goto_statement "goto LAB_000852cf;" goto statement_identifier ;)) (goto_statement "goto joined_r0x000857af;" goto statement_identifier ;)) (case_statement "case Cylinder2PlaneDistortion:\n              dVar31 = pdVar7[5];\n              dVar32 = pdVar7[1];\n              dVar33 = (dVar33 - pdVar7[4]) / dVar32;\n              dVar30 = atan(dVar33);\n              dVar29 = cos(dVar30);\n              local_f4 = (dVar12 - dVar31) * dVar29;\n              ScaleResampleFilter(*ppRVar1,(1.0 / (dVar33 * dVar33 + 1.0)) * dVar3,\n                                  dVar3 * (double)DAT_002a7fe8,\n                                  ((-dVar33 * local_f4 * dVar29 * dVar29) / dVar32) * dVar3,\n                                  (local_f4 / (dVar12 - dVar31)) * dVar3);\n              local_10c = dVar30 * dVar32 + pdVar7[2];\n              local_f4 = local_f4 + pdVar7[3];\n              break;" case identifier : (expression_statement "dVar31 = pdVar7[5];" (assignment_expression "dVar31 = pdVar7[5]" identifier = (subscript_expression "pdVar7[5]" identifier [ number_literal ])) ;) (expression_statement "dVar32 = pdVar7[1];" (assignment_expression "dVar32 = pdVar7[1]" identifier = (subscript_expression "pdVar7[1]" identifier [ number_literal ])) ;) (expression_statement "dVar33 = (dVar33 - pdVar7[4]) / dVar32;" (assignment_expression "dVar33 = (dVar33 - pdVar7[4]) / dVar32" identifier = (binary_expression "(dVar33 - pdVar7[4]) / dVar32" (parenthesized_expression "(dVar33 - pdVar7[4])" ( (binary_expression "dVar33 - pdVar7[4]" identifier - (subscript_expression "pdVar7[4]" identifier [ number_literal ])) )) / identifier)) ;) (expression_statement "dVar30 = atan(dVar33);" (assignment_expression "dVar30 = atan(dVar33)" identifier = (call_expression "atan(dVar33)" identifier (argument_list "(dVar33)" ( identifier )))) ;) (expression_statement "dVar29 = cos(dVar30);" (assignment_expression "dVar29 = cos(dVar30)" identifier = (call_expression "cos(dVar30)" identifier (argument_list "(dVar30)" ( identifier )))) ;) (expression_statement "local_f4 = (dVar12 - dVar31) * dVar29;" (assignment_expression "local_f4 = (dVar12 - dVar31) * dVar29" identifier = (binary_expression "(dVar12 - dVar31) * dVar29" (parenthesized_expression "(dVar12 - dVar31)" ( (binary_expression "dVar12 - dVar31" identifier - identifier) )) * identifier)) ;) (expression_statement "ScaleResampleFilter(*ppRVar1,(1.0 / (dVar33 * dVar33 + 1.0)) * dVar3,\n                                  dVar3 * (double)DAT_002a7fe8,\n                                  ((-dVar33 * local_f4 * dVar29 * dVar29) / dVar32) * dVar3,\n                                  (local_f4 / (dVar12 - dVar31)) * dVar3);" (call_expression "ScaleResampleFilter(*ppRVar1,(1.0 / (dVar33 * dVar33 + 1.0)) * dVar3,\n                                  dVar3 * (double)DAT_002a7fe8,\n                                  ((-dVar33 * local_f4 * dVar29 * dVar29) / dVar32) * dVar3,\n                                  (local_f4 / (dVar12 - dVar31)) * dVar3)" identifier (argument_list "(*ppRVar1,(1.0 / (dVar33 * dVar33 + 1.0)) * dVar3,\n                                  dVar3 * (double)DAT_002a7fe8,\n                                  ((-dVar33 * local_f4 * dVar29 * dVar29) / dVar32) * dVar3,\n                                  (local_f4 / (dVar12 - dVar31)) * dVar3)" ( (pointer_expression "*ppRVar1" * identifier) , (binary_expression "(1.0 / (dVar33 * dVar33 + 1.0)) * dVar3" (parenthesized_expression "(1.0 / (dVar33 * dVar33 + 1.0))" ( (binary_expression "1.0 / (dVar33 * dVar33 + 1.0)" number_literal / (parenthesized_expression "(dVar33 * dVar33 + 1.0)" ( (binary_expression "dVar33 * dVar33 + 1.0" (binary_expression "dVar33 * dVar33" identifier * identifier) + number_literal) ))) )) * identifier) , (binary_expression "dVar3 * (double)DAT_002a7fe8" identifier * (cast_expression "(double)DAT_002a7fe8" ( (type_descriptor "double" primitive_type) ) identifier)) , (binary_expression "((-dVar33 * local_f4 * dVar29 * dVar29) / dVar32) * dVar3" (parenthesized_expression "((-dVar33 * local_f4 * dVar29 * dVar29) / dVar32)" ( (binary_expression "(-dVar33 * local_f4 * dVar29 * dVar29) / dVar32" (parenthesized_expression "(-dVar33 * local_f4 * dVar29 * dVar29)" ( (binary_expression "-dVar33 * local_f4 * dVar29 * dVar29" (binary_expression "-dVar33 * local_f4 * dVar29" (binary_expression "-dVar33 * local_f4" (unary_expression "-dVar33" - identifier) * identifier) * identifier) * identifier) )) / identifier) )) * identifier) , (binary_expression "(local_f4 / (dVar12 - dVar31)) * dVar3" (parenthesized_expression "(local_f4 / (dVar12 - dVar31))" ( (binary_expression "local_f4 / (dVar12 - dVar31)" identifier / (parenthesized_expression "(dVar12 - dVar31)" ( (binary_expression "dVar12 - dVar31" identifier - identifier) ))) )) * identifier) ))) ;) (expression_statement "local_10c = dVar30 * dVar32 + pdVar7[2];" (assignment_expression "local_10c = dVar30 * dVar32 + pdVar7[2]" identifier = (binary_expression "dVar30 * dVar32 + pdVar7[2]" (binary_expression "dVar30 * dVar32" identifier * identifier) + (subscript_expression "pdVar7[2]" identifier [ number_literal ]))) ;) (expression_statement "local_f4 = local_f4 + pdVar7[3];" (assignment_expression "local_f4 = local_f4 + pdVar7[3]" identifier = (binary_expression "local_f4 + pdVar7[3]" identifier + (subscript_expression "pdVar7[3]" identifier [ number_literal ]))) ;) (break_statement "break;" break ;)) (case_statement "case Plane2CylinderDistortion:\n              dVar31 = pdVar7[1];\n              local_14c = (DAT_0029f740 * dVar31 - ABS(dVar33 - pdVar7[4])) / dVar3 +\n                          (double)DAT_0029f124;\n              if (0.0 < local_14c) {\n                dVar33 = (dVar33 - pdVar7[4]) / dVar31;\n                dVar32 = cos(dVar33);\n                dVar32 = (double)DAT_0029f718 / dVar32;\n                dVar33 = tan(dVar33);\n                dVar33 = dVar33 * dVar31;\n                dVar12 = (dVar12 - pdVar7[5]) * dVar32;\n                ScaleResampleFilter(*ppRVar1,dVar32 * dVar32 * dVar3,dVar3 * 0.0,\n                                    ((dVar32 * dVar12) / dVar31) * dVar3,dVar3 * dVar32);\n              }\n              local_10c = dVar33 + pdVar7[2];\n              local_f4 = dVar12 + pdVar7[3];\n              break;" case identifier : (expression_statement "dVar31 = pdVar7[1];" (assignment_expression "dVar31 = pdVar7[1]" identifier = (subscript_expression "pdVar7[1]" identifier [ number_literal ])) ;) (expression_statement "local_14c = (DAT_0029f740 * dVar31 - ABS(dVar33 - pdVar7[4])) / dVar3 +\n                          (double)DAT_0029f124;" (assignment_expression "local_14c = (DAT_0029f740 * dVar31 - ABS(dVar33 - pdVar7[4])) / dVar3 +\n                          (double)DAT_0029f124" identifier = (binary_expression "(DAT_0029f740 * dVar31 - ABS(dVar33 - pdVar7[4])) / dVar3 +\n                          (double)DAT_0029f124" (binary_expression "(DAT_0029f740 * dVar31 - ABS(dVar33 - pdVar7[4])) / dVar3" (parenthesized_expression "(DAT_0029f740 * dVar31 - ABS(dVar33 - pdVar7[4]))" ( (binary_expression "DAT_0029f740 * dVar31 - ABS(dVar33 - pdVar7[4])" (binary_expression "DAT_0029f740 * dVar31" identifier * identifier) - (call_expression "ABS(dVar33 - pdVar7[4])" identifier (argument_list "(dVar33 - pdVar7[4])" ( (binary_expression "dVar33 - pdVar7[4]" identifier - (subscript_expression "pdVar7[4]" identifier [ number_literal ])) )))) )) / identifier) + (cast_expression "(double)DAT_0029f124" ( (type_descriptor "double" primitive_type) ) identifier))) ;) (if_statement "if (0.0 < local_14c) {\n                dVar33 = (dVar33 - pdVar7[4]) / dVar31;\n                dVar32 = cos(dVar33);\n                dVar32 = (double)DAT_0029f718 / dVar32;\n                dVar33 = tan(dVar33);\n                dVar33 = dVar33 * dVar31;\n                dVar12 = (dVar12 - pdVar7[5]) * dVar32;\n                ScaleResampleFilter(*ppRVar1,dVar32 * dVar32 * dVar3,dVar3 * 0.0,\n                                    ((dVar32 * dVar12) / dVar31) * dVar3,dVar3 * dVar32);\n              }" if (parenthesized_expression "(0.0 < local_14c)" ( (binary_expression "0.0 < local_14c" number_literal < identifier) )) (compound_statement "{\n                dVar33 = (dVar33 - pdVar7[4]) / dVar31;\n                dVar32 = cos(dVar33);\n                dVar32 = (double)DAT_0029f718 / dVar32;\n                dVar33 = tan(dVar33);\n                dVar33 = dVar33 * dVar31;\n                dVar12 = (dVar12 - pdVar7[5]) * dVar32;\n                ScaleResampleFilter(*ppRVar1,dVar32 * dVar32 * dVar3,dVar3 * 0.0,\n                                    ((dVar32 * dVar12) / dVar31) * dVar3,dVar3 * dVar32);\n              }" { (expression_statement "dVar33 = (dVar33 - pdVar7[4]) / dVar31;" (assignment_expression "dVar33 = (dVar33 - pdVar7[4]) / dVar31" identifier = (binary_expression "(dVar33 - pdVar7[4]) / dVar31" (parenthesized_expression "(dVar33 - pdVar7[4])" ( (binary_expression "dVar33 - pdVar7[4]" identifier - (subscript_expression "pdVar7[4]" identifier [ number_literal ])) )) / identifier)) ;) (expression_statement "dVar32 = cos(dVar33);" (assignment_expression "dVar32 = cos(dVar33)" identifier = (call_expression "cos(dVar33)" identifier (argument_list "(dVar33)" ( identifier )))) ;) (expression_statement "dVar32 = (double)DAT_0029f718 / dVar32;" (assignment_expression "dVar32 = (double)DAT_0029f718 / dVar32" identifier = (binary_expression "(double)DAT_0029f718 / dVar32" (cast_expression "(double)DAT_0029f718" ( (type_descriptor "double" primitive_type) ) identifier) / identifier)) ;) (expression_statement "dVar33 = tan(dVar33);" (assignment_expression "dVar33 = tan(dVar33)" identifier = (call_expression "tan(dVar33)" identifier (argument_list "(dVar33)" ( identifier )))) ;) (expression_statement "dVar33 = dVar33 * dVar31;" (assignment_expression "dVar33 = dVar33 * dVar31" identifier = (binary_expression "dVar33 * dVar31" identifier * identifier)) ;) (expression_statement "dVar12 = (dVar12 - pdVar7[5]) * dVar32;" (assignment_expression "dVar12 = (dVar12 - pdVar7[5]) * dVar32" identifier = (binary_expression "(dVar12 - pdVar7[5]) * dVar32" (parenthesized_expression "(dVar12 - pdVar7[5])" ( (binary_expression "dVar12 - pdVar7[5]" identifier - (subscript_expression "pdVar7[5]" identifier [ number_literal ])) )) * identifier)) ;) (expression_statement "ScaleResampleFilter(*ppRVar1,dVar32 * dVar32 * dVar3,dVar3 * 0.0,\n                                    ((dVar32 * dVar12) / dVar31) * dVar3,dVar3 * dVar32);" (call_expression "ScaleResampleFilter(*ppRVar1,dVar32 * dVar32 * dVar3,dVar3 * 0.0,\n                                    ((dVar32 * dVar12) / dVar31) * dVar3,dVar3 * dVar32)" identifier (argument_list "(*ppRVar1,dVar32 * dVar32 * dVar3,dVar3 * 0.0,\n                                    ((dVar32 * dVar12) / dVar31) * dVar3,dVar3 * dVar32)" ( (pointer_expression "*ppRVar1" * identifier) , (binary_expression "dVar32 * dVar32 * dVar3" (binary_expression "dVar32 * dVar32" identifier * identifier) * identifier) , (binary_expression "dVar3 * 0.0" identifier * number_literal) , (binary_expression "((dVar32 * dVar12) / dVar31) * dVar3" (parenthesized_expression "((dVar32 * dVar12) / dVar31)" ( (binary_expression "(dVar32 * dVar12) / dVar31" (parenthesized_expression "(dVar32 * dVar12)" ( (binary_expression "dVar32 * dVar12" identifier * identifier) )) / identifier) )) * identifier) , (binary_expression "dVar3 * dVar32" identifier * identifier) ))) ;) })) (expression_statement "local_10c = dVar33 + pdVar7[2];" (assignment_expression "local_10c = dVar33 + pdVar7[2]" identifier = (binary_expression "dVar33 + pdVar7[2]" identifier + (subscript_expression "pdVar7[2]" identifier [ number_literal ]))) ;) (expression_statement "local_f4 = dVar12 + pdVar7[3];" (assignment_expression "local_f4 = dVar12 + pdVar7[3]" identifier = (binary_expression "dVar12 + pdVar7[3]" identifier + (subscript_expression "pdVar7[3]" identifier [ number_literal ]))) ;) (break_statement "break;" break ;)) (case_statement "case BarrelDistortion:" case identifier :) (case_statement "case BarrelInverseDistortion:\n              dVar33 = dVar33 - pdVar7[8];\n              dVar12 = dVar12 - pdVar7[9];\n              dVar32 = dVar12 * dVar12 + dVar33 * dVar33;\n              dVar31 = SQRT(dVar32);\n              if (dVar32 < 0.0) {\n                sqrt(dVar32);\n                DVar17 = *this->method;\n              }\n              dVar32 = pdVar7[7];\n              local_13c = pdVar7[3];\n              if (DAT_0029f138 < dVar31) {\n                dVar30 = pdVar7[1];\n                local_13c = ((*pdVar7 * dVar31 + dVar30) * dVar31 + pdVar7[2]) * dVar31 + local_13c;\n                dVar29 = pdVar7[5];\n                dVar32 = ((pdVar7[4] * dVar31 + dVar29) * dVar31 + pdVar7[6]) * dVar31 + dVar32;\n                dVar30 = ((dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31) * dVar31 +\n                         pdVar7[2]) / dVar31;\n                dVar31 = ((dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31) * dVar31 +\n                         pdVar7[6]) / dVar31;\n                if (DVar17 == BarrelInverseDistortion) {\n                  local_13c = 1.0 / local_13c;\n                  dVar32 = 1.0 / dVar32;\n                  dVar30 = dVar30 * -local_13c * local_13c;\n                  dVar31 = -dVar32 * dVar32 * dVar31;\n                }\n                local_10c = local_13c * dVar33 + pdVar7[8];\n                local_f4 = dVar32 * dVar12 + pdVar7[9];\n                ScaleResampleFilter(*ppRVar1,(dVar30 * dVar33 * dVar33 + local_13c) * dVar3,\n                                    dVar12 * dVar30 * dVar33 * dVar3,\n                                    dVar31 * dVar33 * dVar12 * dVar3,\n                                    (dVar31 * dVar12 * dVar12 + dVar32) * dVar3);\n              }\n              else {\n                if (DVar17 != BarrelDistortion) {\n                  dVar32 = 1.0 / dVar32;\n                  local_13c = 1.0 / local_13c;\n                }\n                ScaleResampleFilter(*ppRVar1,dVar3 * local_13c,dVar3 * (double)DAT_002a7fe8,\n                                    dVar3 * (double)DAT_002a7fe8,dVar32 * dVar3);\n              }\n              break;" case identifier : (expression_statement "dVar33 = dVar33 - pdVar7[8];" (assignment_expression "dVar33 = dVar33 - pdVar7[8]" identifier = (binary_expression "dVar33 - pdVar7[8]" identifier - (subscript_expression "pdVar7[8]" identifier [ number_literal ]))) ;) (expression_statement "dVar12 = dVar12 - pdVar7[9];" (assignment_expression "dVar12 = dVar12 - pdVar7[9]" identifier = (binary_expression "dVar12 - pdVar7[9]" identifier - (subscript_expression "pdVar7[9]" identifier [ number_literal ]))) ;) (expression_statement "dVar32 = dVar12 * dVar12 + dVar33 * dVar33;" (assignment_expression "dVar32 = dVar12 * dVar12 + dVar33 * dVar33" identifier = (binary_expression "dVar12 * dVar12 + dVar33 * dVar33" (binary_expression "dVar12 * dVar12" identifier * identifier) + (binary_expression "dVar33 * dVar33" identifier * identifier))) ;) (expression_statement "dVar31 = SQRT(dVar32);" (assignment_expression "dVar31 = SQRT(dVar32)" identifier = (call_expression "SQRT(dVar32)" identifier (argument_list "(dVar32)" ( identifier )))) ;) (if_statement "if (dVar32 < 0.0) {\n                sqrt(dVar32);\n                DVar17 = *this->method;\n              }" if (parenthesized_expression "(dVar32 < 0.0)" ( (binary_expression "dVar32 < 0.0" identifier < number_literal) )) (compound_statement "{\n                sqrt(dVar32);\n                DVar17 = *this->method;\n              }" { (expression_statement "sqrt(dVar32);" (call_expression "sqrt(dVar32)" identifier (argument_list "(dVar32)" ( identifier ))) ;) (expression_statement "DVar17 = *this->method;" (assignment_expression "DVar17 = *this->method" identifier = (pointer_expression "*this->method" * (field_expression "this->method" identifier -> field_identifier))) ;) })) (expression_statement "dVar32 = pdVar7[7];" (assignment_expression "dVar32 = pdVar7[7]" identifier = (subscript_expression "pdVar7[7]" identifier [ number_literal ])) ;) (expression_statement "local_13c = pdVar7[3];" (assignment_expression "local_13c = pdVar7[3]" identifier = (subscript_expression "pdVar7[3]" identifier [ number_literal ])) ;) (if_statement "if (DAT_0029f138 < dVar31) {\n                dVar30 = pdVar7[1];\n                local_13c = ((*pdVar7 * dVar31 + dVar30) * dVar31 + pdVar7[2]) * dVar31 + local_13c;\n                dVar29 = pdVar7[5];\n                dVar32 = ((pdVar7[4] * dVar31 + dVar29) * dVar31 + pdVar7[6]) * dVar31 + dVar32;\n                dVar30 = ((dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31) * dVar31 +\n                         pdVar7[2]) / dVar31;\n                dVar31 = ((dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31) * dVar31 +\n                         pdVar7[6]) / dVar31;\n                if (DVar17 == BarrelInverseDistortion) {\n                  local_13c = 1.0 / local_13c;\n                  dVar32 = 1.0 / dVar32;\n                  dVar30 = dVar30 * -local_13c * local_13c;\n                  dVar31 = -dVar32 * dVar32 * dVar31;\n                }\n                local_10c = local_13c * dVar33 + pdVar7[8];\n                local_f4 = dVar32 * dVar12 + pdVar7[9];\n                ScaleResampleFilter(*ppRVar1,(dVar30 * dVar33 * dVar33 + local_13c) * dVar3,\n                                    dVar12 * dVar30 * dVar33 * dVar3,\n                                    dVar31 * dVar33 * dVar12 * dVar3,\n                                    (dVar31 * dVar12 * dVar12 + dVar32) * dVar3);\n              }\n              else {\n                if (DVar17 != BarrelDistortion) {\n                  dVar32 = 1.0 / dVar32;\n                  local_13c = 1.0 / local_13c;\n                }\n                ScaleResampleFilter(*ppRVar1,dVar3 * local_13c,dVar3 * (double)DAT_002a7fe8,\n                                    dVar3 * (double)DAT_002a7fe8,dVar32 * dVar3);\n              }" if (parenthesized_expression "(DAT_0029f138 < dVar31)" ( (binary_expression "DAT_0029f138 < dVar31" identifier < identifier) )) (compound_statement "{\n                dVar30 = pdVar7[1];\n                local_13c = ((*pdVar7 * dVar31 + dVar30) * dVar31 + pdVar7[2]) * dVar31 + local_13c;\n                dVar29 = pdVar7[5];\n                dVar32 = ((pdVar7[4] * dVar31 + dVar29) * dVar31 + pdVar7[6]) * dVar31 + dVar32;\n                dVar30 = ((dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31) * dVar31 +\n                         pdVar7[2]) / dVar31;\n                dVar31 = ((dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31) * dVar31 +\n                         pdVar7[6]) / dVar31;\n                if (DVar17 == BarrelInverseDistortion) {\n                  local_13c = 1.0 / local_13c;\n                  dVar32 = 1.0 / dVar32;\n                  dVar30 = dVar30 * -local_13c * local_13c;\n                  dVar31 = -dVar32 * dVar32 * dVar31;\n                }\n                local_10c = local_13c * dVar33 + pdVar7[8];\n                local_f4 = dVar32 * dVar12 + pdVar7[9];\n                ScaleResampleFilter(*ppRVar1,(dVar30 * dVar33 * dVar33 + local_13c) * dVar3,\n                                    dVar12 * dVar30 * dVar33 * dVar3,\n                                    dVar31 * dVar33 * dVar12 * dVar3,\n                                    (dVar31 * dVar12 * dVar12 + dVar32) * dVar3);\n              }" { (expression_statement "dVar30 = pdVar7[1];" (assignment_expression "dVar30 = pdVar7[1]" identifier = (subscript_expression "pdVar7[1]" identifier [ number_literal ])) ;) (expression_statement "local_13c = ((*pdVar7 * dVar31 + dVar30) * dVar31 + pdVar7[2]) * dVar31 + local_13c;" (assignment_expression "local_13c = ((*pdVar7 * dVar31 + dVar30) * dVar31 + pdVar7[2]) * dVar31 + local_13c" identifier = (binary_expression "((*pdVar7 * dVar31 + dVar30) * dVar31 + pdVar7[2]) * dVar31 + local_13c" (binary_expression "((*pdVar7 * dVar31 + dVar30) * dVar31 + pdVar7[2]) * dVar31" (parenthesized_expression "((*pdVar7 * dVar31 + dVar30) * dVar31 + pdVar7[2])" ( (binary_expression "(*pdVar7 * dVar31 + dVar30) * dVar31 + pdVar7[2]" (binary_expression "(*pdVar7 * dVar31 + dVar30) * dVar31" (parenthesized_expression "(*pdVar7 * dVar31 + dVar30)" ( (binary_expression "*pdVar7 * dVar31 + dVar30" (binary_expression "*pdVar7 * dVar31" (pointer_expression "*pdVar7" * identifier) * identifier) + identifier) )) * identifier) + (subscript_expression "pdVar7[2]" identifier [ number_literal ])) )) * identifier) + identifier)) ;) (expression_statement "dVar29 = pdVar7[5];" (assignment_expression "dVar29 = pdVar7[5]" identifier = (subscript_expression "pdVar7[5]" identifier [ number_literal ])) ;) (expression_statement "dVar32 = ((pdVar7[4] * dVar31 + dVar29) * dVar31 + pdVar7[6]) * dVar31 + dVar32;" (assignment_expression "dVar32 = ((pdVar7[4] * dVar31 + dVar29) * dVar31 + pdVar7[6]) * dVar31 + dVar32" identifier = (binary_expression "((pdVar7[4] * dVar31 + dVar29) * dVar31 + pdVar7[6]) * dVar31 + dVar32" (binary_expression "((pdVar7[4] * dVar31 + dVar29) * dVar31 + pdVar7[6]) * dVar31" (parenthesized_expression "((pdVar7[4] * dVar31 + dVar29) * dVar31 + pdVar7[6])" ( (binary_expression "(pdVar7[4] * dVar31 + dVar29) * dVar31 + pdVar7[6]" (binary_expression "(pdVar7[4] * dVar31 + dVar29) * dVar31" (parenthesized_expression "(pdVar7[4] * dVar31 + dVar29)" ( (binary_expression "pdVar7[4] * dVar31 + dVar29" (binary_expression "pdVar7[4] * dVar31" (subscript_expression "pdVar7[4]" identifier [ number_literal ]) * identifier) + identifier) )) * identifier) + (subscript_expression "pdVar7[6]" identifier [ number_literal ])) )) * identifier) + identifier)) ;) (expression_statement "dVar30 = ((dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31) * dVar31 +\n                         pdVar7[2]) / dVar31;" (assignment_expression "dVar30 = ((dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31) * dVar31 +\n                         pdVar7[2]) / dVar31" identifier = (binary_expression "((dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31) * dVar31 +\n                         pdVar7[2]) / dVar31" (parenthesized_expression "((dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31) * dVar31 +\n                         pdVar7[2])" ( (binary_expression "(dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31) * dVar31 +\n                         pdVar7[2]" (binary_expression "(dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31) * dVar31" (parenthesized_expression "(dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31)" ( (binary_expression "dVar30 + dVar30 + *pdVar7 * (double)DAT_002a9b78 * dVar31" (binary_expression "dVar30 + dVar30" identifier + identifier) + (binary_expression "*pdVar7 * (double)DAT_002a9b78 * dVar31" (binary_expression "*pdVar7 * (double)DAT_002a9b78" (pointer_expression "*pdVar7" * identifier) * (cast_expression "(double)DAT_002a9b78" ( (type_descriptor "double" primitive_type) ) identifier)) * identifier)) )) * identifier) + (subscript_expression "pdVar7[2]" identifier [ number_literal ])) )) / identifier)) ;) (expression_statement "dVar31 = ((dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31) * dVar31 +\n                         pdVar7[6]) / dVar31;" (assignment_expression "dVar31 = ((dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31) * dVar31 +\n                         pdVar7[6]) / dVar31" identifier = (binary_expression "((dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31) * dVar31 +\n                         pdVar7[6]) / dVar31" (parenthesized_expression "((dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31) * dVar31 +\n                         pdVar7[6])" ( (binary_expression "(dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31) * dVar31 +\n                         pdVar7[6]" (binary_expression "(dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31) * dVar31" (parenthesized_expression "(dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31)" ( (binary_expression "dVar29 + dVar29 + (double)DAT_002a9b78 * pdVar7[4] * dVar31" (binary_expression "dVar29 + dVar29" identifier + identifier) + (binary_expression "(double)DAT_002a9b78 * pdVar7[4] * dVar31" (binary_expression "(double)DAT_002a9b78 * pdVar7[4]" (cast_expression "(double)DAT_002a9b78" ( (type_descriptor "double" primitive_type) ) identifier) * (subscript_expression "pdVar7[4]" identifier [ number_literal ])) * identifier)) )) * identifier) + (subscript_expression "pdVar7[6]" identifier [ number_literal ])) )) / identifier)) ;) (if_statement "if (DVar17 == BarrelInverseDistortion) {\n                  local_13c = 1.0 / local_13c;\n                  dVar32 = 1.0 / dVar32;\n                  dVar30 = dVar30 * -local_13c * local_13c;\n                  dVar31 = -dVar32 * dVar32 * dVar31;\n                }" if (parenthesized_expression "(DVar17 == BarrelInverseDistortion)" ( (binary_expression "DVar17 == BarrelInverseDistortion" identifier == identifier) )) (compound_statement "{\n                  local_13c = 1.0 / local_13c;\n                  dVar32 = 1.0 / dVar32;\n                  dVar30 = dVar30 * -local_13c * local_13c;\n                  dVar31 = -dVar32 * dVar32 * dVar31;\n                }" { (expression_statement "local_13c = 1.0 / local_13c;" (assignment_expression "local_13c = 1.0 / local_13c" identifier = (binary_expression "1.0 / local_13c" number_literal / identifier)) ;) (expression_statement "dVar32 = 1.0 / dVar32;" (assignment_expression "dVar32 = 1.0 / dVar32" identifier = (binary_expression "1.0 / dVar32" number_literal / identifier)) ;) (expression_statement "dVar30 = dVar30 * -local_13c * local_13c;" (assignment_expression "dVar30 = dVar30 * -local_13c * local_13c" identifier = (binary_expression "dVar30 * -local_13c * local_13c" (binary_expression "dVar30 * -local_13c" identifier * (unary_expression "-local_13c" - identifier)) * identifier)) ;) (expression_statement "dVar31 = -dVar32 * dVar32 * dVar31;" (assignment_expression "dVar31 = -dVar32 * dVar32 * dVar31" identifier = (binary_expression "-dVar32 * dVar32 * dVar31" (binary_expression "-dVar32 * dVar32" (unary_expression "-dVar32" - identifier) * identifier) * identifier)) ;) })) (expression_statement "local_10c = local_13c * dVar33 + pdVar7[8];" (assignment_expression "local_10c = local_13c * dVar33 + pdVar7[8]" identifier = (binary_expression "local_13c * dVar33 + pdVar7[8]" (binary_expression "local_13c * dVar33" identifier * identifier) + (subscript_expression "pdVar7[8]" identifier [ number_literal ]))) ;) (expression_statement "local_f4 = dVar32 * dVar12 + pdVar7[9];" (assignment_expression "local_f4 = dVar32 * dVar12 + pdVar7[9]" identifier = (binary_expression "dVar32 * dVar12 + pdVar7[9]" (binary_expression "dVar32 * dVar12" identifier * identifier) + (subscript_expression "pdVar7[9]" identifier [ number_literal ]))) ;) (expression_statement "ScaleResampleFilter(*ppRVar1,(dVar30 * dVar33 * dVar33 + local_13c) * dVar3,\n                                    dVar12 * dVar30 * dVar33 * dVar3,\n                                    dVar31 * dVar33 * dVar12 * dVar3,\n                                    (dVar31 * dVar12 * dVar12 + dVar32) * dVar3);" (call_expression "ScaleResampleFilter(*ppRVar1,(dVar30 * dVar33 * dVar33 + local_13c) * dVar3,\n                                    dVar12 * dVar30 * dVar33 * dVar3,\n                                    dVar31 * dVar33 * dVar12 * dVar3,\n                                    (dVar31 * dVar12 * dVar12 + dVar32) * dVar3)" identifier (argument_list "(*ppRVar1,(dVar30 * dVar33 * dVar33 + local_13c) * dVar3,\n                                    dVar12 * dVar30 * dVar33 * dVar3,\n                                    dVar31 * dVar33 * dVar12 * dVar3,\n                                    (dVar31 * dVar12 * dVar12 + dVar32) * dVar3)" ( (pointer_expression "*ppRVar1" * identifier) , (binary_expression "(dVar30 * dVar33 * dVar33 + local_13c) * dVar3" (parenthesized_expression "(dVar30 * dVar33 * dVar33 + local_13c)" ( (binary_expression "dVar30 * dVar33 * dVar33 + local_13c" (binary_expression "dVar30 * dVar33 * dVar33" (binary_expression "dVar30 * dVar33" identifier * identifier) * identifier) + identifier) )) * identifier) , (binary_expression "dVar12 * dVar30 * dVar33 * dVar3" (binary_expression "dVar12 * dVar30 * dVar33" (binary_expression "dVar12 * dVar30" identifier * identifier) * identifier) * identifier) , (binary_expression "dVar31 * dVar33 * dVar12 * dVar3" (binary_expression "dVar31 * dVar33 * dVar12" (binary_expression "dVar31 * dVar33" identifier * identifier) * identifier) * identifier) , (binary_expression "(dVar31 * dVar12 * dVar12 + dVar32) * dVar3" (parenthesized_expression "(dVar31 * dVar12 * dVar12 + dVar32)" ( (binary_expression "dVar31 * dVar12 * dVar12 + dVar32" (binary_expression "dVar31 * dVar12 * dVar12" (binary_expression "dVar31 * dVar12" identifier * identifier) * identifier) + identifier) )) * identifier) ))) ;) }) (else_clause "else {\n                if (DVar17 != BarrelDistortion) {\n                  dVar32 = 1.0 / dVar32;\n                  local_13c = 1.0 / local_13c;\n                }\n                ScaleResampleFilter(*ppRVar1,dVar3 * local_13c,dVar3 * (double)DAT_002a7fe8,\n                                    dVar3 * (double)DAT_002a7fe8,dVar32 * dVar3);\n              }" else (compound_statement "{\n                if (DVar17 != BarrelDistortion) {\n                  dVar32 = 1.0 / dVar32;\n                  local_13c = 1.0 / local_13c;\n                }\n                ScaleResampleFilter(*ppRVar1,dVar3 * local_13c,dVar3 * (double)DAT_002a7fe8,\n                                    dVar3 * (double)DAT_002a7fe8,dVar32 * dVar3);\n              }" { (if_statement "if (DVar17 != BarrelDistortion) {\n                  dVar32 = 1.0 / dVar32;\n                  local_13c = 1.0 / local_13c;\n                }" if (parenthesized_expression "(DVar17 != BarrelDistortion)" ( (binary_expression "DVar17 != BarrelDistortion" identifier != identifier) )) (compound_statement "{\n                  dVar32 = 1.0 / dVar32;\n                  local_13c = 1.0 / local_13c;\n                }" { (expression_statement "dVar32 = 1.0 / dVar32;" (assignment_expression "dVar32 = 1.0 / dVar32" identifier = (binary_expression "1.0 / dVar32" number_literal / identifier)) ;) (expression_statement "local_13c = 1.0 / local_13c;" (assignment_expression "local_13c = 1.0 / local_13c" identifier = (binary_expression "1.0 / local_13c" number_literal / identifier)) ;) })) (expression_statement "ScaleResampleFilter(*ppRVar1,dVar3 * local_13c,dVar3 * (double)DAT_002a7fe8,\n                                    dVar3 * (double)DAT_002a7fe8,dVar32 * dVar3);" (call_expression "ScaleResampleFilter(*ppRVar1,dVar3 * local_13c,dVar3 * (double)DAT_002a7fe8,\n                                    dVar3 * (double)DAT_002a7fe8,dVar32 * dVar3)" identifier (argument_list "(*ppRVar1,dVar3 * local_13c,dVar3 * (double)DAT_002a7fe8,\n                                    dVar3 * (double)DAT_002a7fe8,dVar32 * dVar3)" ( (pointer_expression "*ppRVar1" * identifier) , (binary_expression "dVar3 * local_13c" identifier * identifier) , (binary_expression "dVar3 * (double)DAT_002a7fe8" identifier * (cast_expression "(double)DAT_002a7fe8" ( (type_descriptor "double" primitive_type) ) identifier)) , (binary_expression "dVar3 * (double)DAT_002a7fe8" identifier * (cast_expression "(double)DAT_002a7fe8" ( (type_descriptor "double" primitive_type) ) identifier)) , (binary_expression "dVar32 * dVar3" identifier * identifier) ))) ;) }))) (break_statement "break;" break ;)) (case_statement "case ShepardsDistortion:\n              if (sVar9 == 0) {\n                dVar31 = 0.0;\n                dVar30 = 0.0;\n                dVar32 = 0.0;\n              }\n              else {\n                dVar31 = 0.0;\n                dVar32 = 0.0;\n                dVar30 = 0.0;\n                pdVar25 = pdVar6;\n                do {\n                  dVar29 = pow((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7);\n                  if (dVar29 < 1.0) {\n                    dVar29 = 1.0;\n                  }\n                  else {\n                    dVar29 = 1.0 / dVar29;\n                  }\n                  pdVar26 = pdVar25 + 4;\n                  dVar30 = (*pdVar25 - pdVar25[2]) * dVar29 + dVar30;\n                  dVar32 = (pdVar25[1] - pdVar25[3]) * dVar29 + dVar32;\n                  dVar31 = dVar31 + dVar29;\n                  pdVar25 = pdVar26;\n                } while ((double *)((int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20) != pdVar26);\n              }\n              local_f4 = dVar12 + dVar32 / dVar31;\n              local_10c = dVar30 / dVar31 + dVar33;" case identifier : (if_statement "if (sVar9 == 0) {\n                dVar31 = 0.0;\n                dVar30 = 0.0;\n                dVar32 = 0.0;\n              }\n              else {\n                dVar31 = 0.0;\n                dVar32 = 0.0;\n                dVar30 = 0.0;\n                pdVar25 = pdVar6;\n                do {\n                  dVar29 = pow((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7);\n                  if (dVar29 < 1.0) {\n                    dVar29 = 1.0;\n                  }\n                  else {\n                    dVar29 = 1.0 / dVar29;\n                  }\n                  pdVar26 = pdVar25 + 4;\n                  dVar30 = (*pdVar25 - pdVar25[2]) * dVar29 + dVar30;\n                  dVar32 = (pdVar25[1] - pdVar25[3]) * dVar29 + dVar32;\n                  dVar31 = dVar31 + dVar29;\n                  pdVar25 = pdVar26;\n                } while ((double *)((int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20) != pdVar26);\n              }" if (parenthesized_expression "(sVar9 == 0)" ( (binary_expression "sVar9 == 0" identifier == number_literal) )) (compound_statement "{\n                dVar31 = 0.0;\n                dVar30 = 0.0;\n                dVar32 = 0.0;\n              }" { (expression_statement "dVar31 = 0.0;" (assignment_expression "dVar31 = 0.0" identifier = number_literal) ;) (expression_statement "dVar30 = 0.0;" (assignment_expression "dVar30 = 0.0" identifier = number_literal) ;) (expression_statement "dVar32 = 0.0;" (assignment_expression "dVar32 = 0.0" identifier = number_literal) ;) }) (else_clause "else {\n                dVar31 = 0.0;\n                dVar32 = 0.0;\n                dVar30 = 0.0;\n                pdVar25 = pdVar6;\n                do {\n                  dVar29 = pow((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7);\n                  if (dVar29 < 1.0) {\n                    dVar29 = 1.0;\n                  }\n                  else {\n                    dVar29 = 1.0 / dVar29;\n                  }\n                  pdVar26 = pdVar25 + 4;\n                  dVar30 = (*pdVar25 - pdVar25[2]) * dVar29 + dVar30;\n                  dVar32 = (pdVar25[1] - pdVar25[3]) * dVar29 + dVar32;\n                  dVar31 = dVar31 + dVar29;\n                  pdVar25 = pdVar26;\n                } while ((double *)((int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20) != pdVar26);\n              }" else (compound_statement "{\n                dVar31 = 0.0;\n                dVar32 = 0.0;\n                dVar30 = 0.0;\n                pdVar25 = pdVar6;\n                do {\n                  dVar29 = pow((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7);\n                  if (dVar29 < 1.0) {\n                    dVar29 = 1.0;\n                  }\n                  else {\n                    dVar29 = 1.0 / dVar29;\n                  }\n                  pdVar26 = pdVar25 + 4;\n                  dVar30 = (*pdVar25 - pdVar25[2]) * dVar29 + dVar30;\n                  dVar32 = (pdVar25[1] - pdVar25[3]) * dVar29 + dVar32;\n                  dVar31 = dVar31 + dVar29;\n                  pdVar25 = pdVar26;\n                } while ((double *)((int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20) != pdVar26);\n              }" { (expression_statement "dVar31 = 0.0;" (assignment_expression "dVar31 = 0.0" identifier = number_literal) ;) (expression_statement "dVar32 = 0.0;" (assignment_expression "dVar32 = 0.0" identifier = number_literal) ;) (expression_statement "dVar30 = 0.0;" (assignment_expression "dVar30 = 0.0" identifier = number_literal) ;) (expression_statement "pdVar25 = pdVar6;" (assignment_expression "pdVar25 = pdVar6" identifier = identifier) ;) (do_statement "do {\n                  dVar29 = pow((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7);\n                  if (dVar29 < 1.0) {\n                    dVar29 = 1.0;\n                  }\n                  else {\n                    dVar29 = 1.0 / dVar29;\n                  }\n                  pdVar26 = pdVar25 + 4;\n                  dVar30 = (*pdVar25 - pdVar25[2]) * dVar29 + dVar30;\n                  dVar32 = (pdVar25[1] - pdVar25[3]) * dVar29 + dVar32;\n                  dVar31 = dVar31 + dVar29;\n                  pdVar25 = pdVar26;\n                } while ((double *)((int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20) != pdVar26);" do (compound_statement "{\n                  dVar29 = pow((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7);\n                  if (dVar29 < 1.0) {\n                    dVar29 = 1.0;\n                  }\n                  else {\n                    dVar29 = 1.0 / dVar29;\n                  }\n                  pdVar26 = pdVar25 + 4;\n                  dVar30 = (*pdVar25 - pdVar25[2]) * dVar29 + dVar30;\n                  dVar32 = (pdVar25[1] - pdVar25[3]) * dVar29 + dVar32;\n                  dVar31 = dVar31 + dVar29;\n                  pdVar25 = pdVar26;\n                }" { (expression_statement "dVar29 = pow((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7);" (assignment_expression "dVar29 = pow((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7)" identifier = (call_expression "pow((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7)" identifier (argument_list "((dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2]),*pdVar7)" ( (binary_expression "(dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3]) +\n                               (dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2])" (binary_expression "(dVar12 - pdVar25[3]) * (dVar12 - pdVar25[3])" (parenthesized_expression "(dVar12 - pdVar25[3])" ( (binary_expression "dVar12 - pdVar25[3]" identifier - (subscript_expression "pdVar25[3]" identifier [ number_literal ])) )) * (parenthesized_expression "(dVar12 - pdVar25[3])" ( (binary_expression "dVar12 - pdVar25[3]" identifier - (subscript_expression "pdVar25[3]" identifier [ number_literal ])) ))) + (binary_expression "(dVar33 - pdVar25[2]) * (dVar33 - pdVar25[2])" (parenthesized_expression "(dVar33 - pdVar25[2])" ( (binary_expression "dVar33 - pdVar25[2]" identifier - (subscript_expression "pdVar25[2]" identifier [ number_literal ])) )) * (parenthesized_expression "(dVar33 - pdVar25[2])" ( (binary_expression "dVar33 - pdVar25[2]" identifier - (subscript_expression "pdVar25[2]" identifier [ number_literal ])) )))) , (pointer_expression "*pdVar7" * identifier) )))) ;) (if_statement "if (dVar29 < 1.0) {\n                    dVar29 = 1.0;\n                  }\n                  else {\n                    dVar29 = 1.0 / dVar29;\n                  }" if (parenthesized_expression "(dVar29 < 1.0)" ( (binary_expression "dVar29 < 1.0" identifier < number_literal) )) (compound_statement "{\n                    dVar29 = 1.0;\n                  }" { (expression_statement "dVar29 = 1.0;" (assignment_expression "dVar29 = 1.0" identifier = number_literal) ;) }) (else_clause "else {\n                    dVar29 = 1.0 / dVar29;\n                  }" else (compound_statement "{\n                    dVar29 = 1.0 / dVar29;\n                  }" { (expression_statement "dVar29 = 1.0 / dVar29;" (assignment_expression "dVar29 = 1.0 / dVar29" identifier = (binary_expression "1.0 / dVar29" number_literal / identifier)) ;) }))) (expression_statement "pdVar26 = pdVar25 + 4;" (assignment_expression "pdVar26 = pdVar25 + 4" identifier = (binary_expression "pdVar25 + 4" identifier + number_literal)) ;) (expression_statement "dVar30 = (*pdVar25 - pdVar25[2]) * dVar29 + dVar30;" (assignment_expression "dVar30 = (*pdVar25 - pdVar25[2]) * dVar29 + dVar30" identifier = (binary_expression "(*pdVar25 - pdVar25[2]) * dVar29 + dVar30" (binary_expression "(*pdVar25 - pdVar25[2]) * dVar29" (parenthesized_expression "(*pdVar25 - pdVar25[2])" ( (binary_expression "*pdVar25 - pdVar25[2]" (pointer_expression "*pdVar25" * identifier) - (subscript_expression "pdVar25[2]" identifier [ number_literal ])) )) * identifier) + identifier)) ;) (expression_statement "dVar32 = (pdVar25[1] - pdVar25[3]) * dVar29 + dVar32;" (assignment_expression "dVar32 = (pdVar25[1] - pdVar25[3]) * dVar29 + dVar32" identifier = (binary_expression "(pdVar25[1] - pdVar25[3]) * dVar29 + dVar32" (binary_expression "(pdVar25[1] - pdVar25[3]) * dVar29" (parenthesized_expression "(pdVar25[1] - pdVar25[3])" ( (binary_expression "pdVar25[1] - pdVar25[3]" (subscript_expression "pdVar25[1]" identifier [ number_literal ]) - (subscript_expression "pdVar25[3]" identifier [ number_literal ])) )) * identifier) + identifier)) ;) (expression_statement "dVar31 = dVar31 + dVar29;" (assignment_expression "dVar31 = dVar31 + dVar29" identifier = (binary_expression "dVar31 + dVar29" identifier + identifier)) ;) (expression_statement "pdVar25 = pdVar26;" (assignment_expression "pdVar25 = pdVar26" identifier = identifier) ;) }) while (parenthesized_expression "((double *)((int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20) != pdVar26)" ( (binary_expression "(double *)((int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20) != pdVar26" (cast_expression "(double *)((int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20)" ( (binary_expression "(int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0) + 0x20" (binary_expression "(int)pdVar6 + (sVar9 * 8 - 8 & 0xffffffe0)" (cast_expression "(int)pdVar6" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(sVar9 * 8 - 8 & 0xffffffe0)" ( (binary_expression "sVar9 * 8 - 8 & 0xffffffe0" (binary_expression "sVar9 * 8 - 8" (binary_expression "sVar9 * 8" identifier * number_literal) - number_literal) & number_literal) ))) + number_literal) ))) != identifier) )) ;) }))) (expression_statement "local_f4 = dVar12 + dVar32 / dVar31;" (assignment_expression "local_f4 = dVar12 + dVar32 / dVar31" identifier = (binary_expression "dVar12 + dVar32 / dVar31" identifier + (binary_expression "dVar32 / dVar31" identifier / identifier))) ;) (expression_statement "local_10c = dVar30 / dVar31 + dVar33;" (assignment_expression "local_10c = dVar30 / dVar31 + dVar33" identifier = (binary_expression "dVar30 / dVar31 + dVar33" (binary_expression "dVar30 / dVar31" identifier / identifier) + identifier)) ;)) })) (expression_statement "dVar12 = local_f4;" (assignment_expression "dVar12 = local_f4" identifier = identifier) ;) (if_statement "if (MVar8 != MagickFalse) {\nLAB_000852c3:\n              dVar33 = local_10c;\n              if (*this->method != ArcDistortion) {\nLAB_000852cf:\n                local_10c = dVar33 - (double)(image->page).x;\n                dVar12 = dVar12 - (double)(image->page).y;\n              }\n            }" if (parenthesized_expression "(MVar8 != MagickFalse)" ( (binary_expression "MVar8 != MagickFalse" identifier != identifier) )) (compound_statement "{\nLAB_000852c3:\n              dVar33 = local_10c;\n              if (*this->method != ArcDistortion) {\nLAB_000852cf:\n                local_10c = dVar33 - (double)(image->page).x;\n                dVar12 = dVar12 - (double)(image->page).y;\n              }\n            }" { (labeled_statement "LAB_000852c3:\n              dVar33 = local_10c;" statement_identifier : (expression_statement "dVar33 = local_10c;" (assignment_expression "dVar33 = local_10c" identifier = identifier) ;)) (if_statement "if (*this->method != ArcDistortion) {\nLAB_000852cf:\n                local_10c = dVar33 - (double)(image->page).x;\n                dVar12 = dVar12 - (double)(image->page).y;\n              }" if (parenthesized_expression "(*this->method != ArcDistortion)" ( (binary_expression "*this->method != ArcDistortion" (pointer_expression "*this->method" * (field_expression "this->method" identifier -> field_identifier)) != identifier) )) (compound_statement "{\nLAB_000852cf:\n                local_10c = dVar33 - (double)(image->page).x;\n                dVar12 = dVar12 - (double)(image->page).y;\n              }" { (labeled_statement "LAB_000852cf:\n                local_10c = dVar33 - (double)(image->page).x;" statement_identifier : (expression_statement "local_10c = dVar33 - (double)(image->page).x;" (assignment_expression "local_10c = dVar33 - (double)(image->page).x" identifier = (binary_expression "dVar33 - (double)(image->page).x" identifier - (cast_expression "(double)(image->page).x" ( (type_descriptor "double" primitive_type) ) (field_expression "(image->page).x" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier)))) ;)) (expression_statement "dVar12 = dVar12 - (double)(image->page).y;" (assignment_expression "dVar12 = dVar12 - (double)(image->page).y" identifier = (binary_expression "dVar12 - (double)(image->page).y" identifier - (cast_expression "(double)(image->page).y" ( (type_descriptor "double" primitive_type) ) (field_expression "(image->page).y" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier)))) ;) })) })) (labeled_statement "joined_r0x000857af:\n            if (local_14c <= 0.0) {\n              pPVar23 = this->invalid;\n              pPVar20 = pIVar4->channel_map;\n              pQVar16[pPVar20->offset] = pPVar23->red;\n              pQVar16[pPVar20[1].offset] = pPVar23->green;\n              pQVar16[pPVar20[2].offset] = pPVar23->blue;\n              if (pPVar20[3].traits != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = pPVar23->black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                if (pPVar23->alpha_trait == UndefinedPixelTrait) goto LAB_00085d68;\n                dVar33 = pPVar23->alpha;\n                goto LAB_000853cb;\n              }\n            }\n            else {\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              if (local_14c < 1.0) {\n                pPVar23 = this->invalid;\n                dVar12 = local_70.alpha * local_14c * _DAT_0029f148;\n                dVar31 = pPVar23->alpha * (1.0 - local_14c) * _DAT_0029f148;\n                dVar33 = dVar12 + dVar31;\n                if (dVar33 < 0.0) {\n                  dVar33 = 0.0;\n                  local_70.alpha = 0.0;\n                }\n                else if (dVar33 <= 1.0) {\n                  local_70.alpha = dVar33 * (double)DAT_0029f710;\n                }\n                else {\n                  dVar33 = 1.0;\n                  local_70.alpha = (MagickRealType)DAT_0029f710;\n                }\n                dVar32 = DAT_0029f738;\n                if (DAT_0029f138 <= dVar33) {\n                  dVar32 = (double)DAT_0029f718 / dVar33;\n                }\n                local_70.red = (pPVar23->red * dVar31 + local_70.red * dVar12) * dVar32;\n                local_70.green = (pPVar23->green * dVar31 + local_70.green * dVar12) * dVar32;\n                local_70.blue = (pPVar23->blue * dVar31 + local_70.blue * dVar12) * dVar32;\n                if (pPVar23->colorspace == CMYKColorspace) {\n                  local_70.black = dVar32 * (dVar31 * pPVar23->black + dVar12 * local_70.black);\n                }\n              }\nLAB_00085370:\n              pPVar20 = pIVar4->channel_map;\n              PVar10 = pPVar20[3].traits;\n              pQVar16[pPVar20->offset] = local_70.red;\n              pQVar16[pPVar20[1].offset] = local_70.green;\n              pQVar16[pPVar20[2].offset] = local_70.blue;\n              if (PVar10 != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = local_70.black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                dVar33 = local_70.alpha;\n                if (local_70.alpha_trait == UndefinedPixelTrait) {\nLAB_00085d68:\n                  dVar33 = (double)DAT_0029f710;\n                }\nLAB_000853cb:\n                pQVar16[pPVar20[4].offset] = dVar33;\n              }\n            }" statement_identifier : (if_statement "if (local_14c <= 0.0) {\n              pPVar23 = this->invalid;\n              pPVar20 = pIVar4->channel_map;\n              pQVar16[pPVar20->offset] = pPVar23->red;\n              pQVar16[pPVar20[1].offset] = pPVar23->green;\n              pQVar16[pPVar20[2].offset] = pPVar23->blue;\n              if (pPVar20[3].traits != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = pPVar23->black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                if (pPVar23->alpha_trait == UndefinedPixelTrait) goto LAB_00085d68;\n                dVar33 = pPVar23->alpha;\n                goto LAB_000853cb;\n              }\n            }\n            else {\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              if (local_14c < 1.0) {\n                pPVar23 = this->invalid;\n                dVar12 = local_70.alpha * local_14c * _DAT_0029f148;\n                dVar31 = pPVar23->alpha * (1.0 - local_14c) * _DAT_0029f148;\n                dVar33 = dVar12 + dVar31;\n                if (dVar33 < 0.0) {\n                  dVar33 = 0.0;\n                  local_70.alpha = 0.0;\n                }\n                else if (dVar33 <= 1.0) {\n                  local_70.alpha = dVar33 * (double)DAT_0029f710;\n                }\n                else {\n                  dVar33 = 1.0;\n                  local_70.alpha = (MagickRealType)DAT_0029f710;\n                }\n                dVar32 = DAT_0029f738;\n                if (DAT_0029f138 <= dVar33) {\n                  dVar32 = (double)DAT_0029f718 / dVar33;\n                }\n                local_70.red = (pPVar23->red * dVar31 + local_70.red * dVar12) * dVar32;\n                local_70.green = (pPVar23->green * dVar31 + local_70.green * dVar12) * dVar32;\n                local_70.blue = (pPVar23->blue * dVar31 + local_70.blue * dVar12) * dVar32;\n                if (pPVar23->colorspace == CMYKColorspace) {\n                  local_70.black = dVar32 * (dVar31 * pPVar23->black + dVar12 * local_70.black);\n                }\n              }\nLAB_00085370:\n              pPVar20 = pIVar4->channel_map;\n              PVar10 = pPVar20[3].traits;\n              pQVar16[pPVar20->offset] = local_70.red;\n              pQVar16[pPVar20[1].offset] = local_70.green;\n              pQVar16[pPVar20[2].offset] = local_70.blue;\n              if (PVar10 != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = local_70.black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                dVar33 = local_70.alpha;\n                if (local_70.alpha_trait == UndefinedPixelTrait) {\nLAB_00085d68:\n                  dVar33 = (double)DAT_0029f710;\n                }\nLAB_000853cb:\n                pQVar16[pPVar20[4].offset] = dVar33;\n              }\n            }" if (parenthesized_expression "(local_14c <= 0.0)" ( (binary_expression "local_14c <= 0.0" identifier <= number_literal) )) (compound_statement "{\n              pPVar23 = this->invalid;\n              pPVar20 = pIVar4->channel_map;\n              pQVar16[pPVar20->offset] = pPVar23->red;\n              pQVar16[pPVar20[1].offset] = pPVar23->green;\n              pQVar16[pPVar20[2].offset] = pPVar23->blue;\n              if (pPVar20[3].traits != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = pPVar23->black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                if (pPVar23->alpha_trait == UndefinedPixelTrait) goto LAB_00085d68;\n                dVar33 = pPVar23->alpha;\n                goto LAB_000853cb;\n              }\n            }" { (expression_statement "pPVar23 = this->invalid;" (assignment_expression "pPVar23 = this->invalid" identifier = (field_expression "this->invalid" identifier -> field_identifier)) ;) (expression_statement "pPVar20 = pIVar4->channel_map;" (assignment_expression "pPVar20 = pIVar4->channel_map" identifier = (field_expression "pIVar4->channel_map" identifier -> field_identifier)) ;) (expression_statement "pQVar16[pPVar20->offset] = pPVar23->red;" (assignment_expression "pQVar16[pPVar20->offset] = pPVar23->red" (subscript_expression "pQVar16[pPVar20->offset]" identifier [ (field_expression "pPVar20->offset" identifier -> field_identifier) ]) = (field_expression "pPVar23->red" identifier -> field_identifier)) ;) (expression_statement "pQVar16[pPVar20[1].offset] = pPVar23->green;" (assignment_expression "pQVar16[pPVar20[1].offset] = pPVar23->green" (subscript_expression "pQVar16[pPVar20[1].offset]" identifier [ (field_expression "pPVar20[1].offset" (subscript_expression "pPVar20[1]" identifier [ number_literal ]) . field_identifier) ]) = (field_expression "pPVar23->green" identifier -> field_identifier)) ;) (expression_statement "pQVar16[pPVar20[2].offset] = pPVar23->blue;" (assignment_expression "pQVar16[pPVar20[2].offset] = pPVar23->blue" (subscript_expression "pQVar16[pPVar20[2].offset]" identifier [ (field_expression "pPVar20[2].offset" (subscript_expression "pPVar20[2]" identifier [ number_literal ]) . field_identifier) ]) = (field_expression "pPVar23->blue" identifier -> field_identifier)) ;) (if_statement "if (pPVar20[3].traits != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = pPVar23->black;\n              }" if (parenthesized_expression "(pPVar20[3].traits != UndefinedPixelTrait)" ( (binary_expression "pPVar20[3].traits != UndefinedPixelTrait" (field_expression "pPVar20[3].traits" (subscript_expression "pPVar20[3]" identifier [ number_literal ]) . field_identifier) != identifier) )) (compound_statement "{\n                pQVar16[pPVar20[3].offset] = pPVar23->black;\n              }" { (expression_statement "pQVar16[pPVar20[3].offset] = pPVar23->black;" (assignment_expression "pQVar16[pPVar20[3].offset] = pPVar23->black" (subscript_expression "pQVar16[pPVar20[3].offset]" identifier [ (field_expression "pPVar20[3].offset" (subscript_expression "pPVar20[3]" identifier [ number_literal ]) . field_identifier) ]) = (field_expression "pPVar23->black" identifier -> field_identifier)) ;) })) (if_statement "if (pPVar20[4].traits != UndefinedPixelTrait) {\n                if (pPVar23->alpha_trait == UndefinedPixelTrait) goto LAB_00085d68;\n                dVar33 = pPVar23->alpha;\n                goto LAB_000853cb;\n              }" if (parenthesized_expression "(pPVar20[4].traits != UndefinedPixelTrait)" ( (binary_expression "pPVar20[4].traits != UndefinedPixelTrait" (field_expression "pPVar20[4].traits" (subscript_expression "pPVar20[4]" identifier [ number_literal ]) . field_identifier) != identifier) )) (compound_statement "{\n                if (pPVar23->alpha_trait == UndefinedPixelTrait) goto LAB_00085d68;\n                dVar33 = pPVar23->alpha;\n                goto LAB_000853cb;\n              }" { (if_statement "if (pPVar23->alpha_trait == UndefinedPixelTrait) goto LAB_00085d68;" if (parenthesized_expression "(pPVar23->alpha_trait == UndefinedPixelTrait)" ( (binary_expression "pPVar23->alpha_trait == UndefinedPixelTrait" (field_expression "pPVar23->alpha_trait" identifier -> field_identifier) == identifier) )) (goto_statement "goto LAB_00085d68;" goto statement_identifier ;)) (expression_statement "dVar33 = pPVar23->alpha;" (assignment_expression "dVar33 = pPVar23->alpha" identifier = (field_expression "pPVar23->alpha" identifier -> field_identifier)) ;) (goto_statement "goto LAB_000853cb;" goto statement_identifier ;) })) }) (else_clause "else {\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              if (local_14c < 1.0) {\n                pPVar23 = this->invalid;\n                dVar12 = local_70.alpha * local_14c * _DAT_0029f148;\n                dVar31 = pPVar23->alpha * (1.0 - local_14c) * _DAT_0029f148;\n                dVar33 = dVar12 + dVar31;\n                if (dVar33 < 0.0) {\n                  dVar33 = 0.0;\n                  local_70.alpha = 0.0;\n                }\n                else if (dVar33 <= 1.0) {\n                  local_70.alpha = dVar33 * (double)DAT_0029f710;\n                }\n                else {\n                  dVar33 = 1.0;\n                  local_70.alpha = (MagickRealType)DAT_0029f710;\n                }\n                dVar32 = DAT_0029f738;\n                if (DAT_0029f138 <= dVar33) {\n                  dVar32 = (double)DAT_0029f718 / dVar33;\n                }\n                local_70.red = (pPVar23->red * dVar31 + local_70.red * dVar12) * dVar32;\n                local_70.green = (pPVar23->green * dVar31 + local_70.green * dVar12) * dVar32;\n                local_70.blue = (pPVar23->blue * dVar31 + local_70.blue * dVar12) * dVar32;\n                if (pPVar23->colorspace == CMYKColorspace) {\n                  local_70.black = dVar32 * (dVar31 * pPVar23->black + dVar12 * local_70.black);\n                }\n              }\nLAB_00085370:\n              pPVar20 = pIVar4->channel_map;\n              PVar10 = pPVar20[3].traits;\n              pQVar16[pPVar20->offset] = local_70.red;\n              pQVar16[pPVar20[1].offset] = local_70.green;\n              pQVar16[pPVar20[2].offset] = local_70.blue;\n              if (PVar10 != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = local_70.black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                dVar33 = local_70.alpha;\n                if (local_70.alpha_trait == UndefinedPixelTrait) {\nLAB_00085d68:\n                  dVar33 = (double)DAT_0029f710;\n                }\nLAB_000853cb:\n                pQVar16[pPVar20[4].offset] = dVar33;\n              }\n            }" else (compound_statement "{\n              ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);\n              if (local_14c < 1.0) {\n                pPVar23 = this->invalid;\n                dVar12 = local_70.alpha * local_14c * _DAT_0029f148;\n                dVar31 = pPVar23->alpha * (1.0 - local_14c) * _DAT_0029f148;\n                dVar33 = dVar12 + dVar31;\n                if (dVar33 < 0.0) {\n                  dVar33 = 0.0;\n                  local_70.alpha = 0.0;\n                }\n                else if (dVar33 <= 1.0) {\n                  local_70.alpha = dVar33 * (double)DAT_0029f710;\n                }\n                else {\n                  dVar33 = 1.0;\n                  local_70.alpha = (MagickRealType)DAT_0029f710;\n                }\n                dVar32 = DAT_0029f738;\n                if (DAT_0029f138 <= dVar33) {\n                  dVar32 = (double)DAT_0029f718 / dVar33;\n                }\n                local_70.red = (pPVar23->red * dVar31 + local_70.red * dVar12) * dVar32;\n                local_70.green = (pPVar23->green * dVar31 + local_70.green * dVar12) * dVar32;\n                local_70.blue = (pPVar23->blue * dVar31 + local_70.blue * dVar12) * dVar32;\n                if (pPVar23->colorspace == CMYKColorspace) {\n                  local_70.black = dVar32 * (dVar31 * pPVar23->black + dVar12 * local_70.black);\n                }\n              }\nLAB_00085370:\n              pPVar20 = pIVar4->channel_map;\n              PVar10 = pPVar20[3].traits;\n              pQVar16[pPVar20->offset] = local_70.red;\n              pQVar16[pPVar20[1].offset] = local_70.green;\n              pQVar16[pPVar20[2].offset] = local_70.blue;\n              if (PVar10 != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = local_70.black;\n              }\n              if (pPVar20[4].traits != UndefinedPixelTrait) {\n                dVar33 = local_70.alpha;\n                if (local_70.alpha_trait == UndefinedPixelTrait) {\nLAB_00085d68:\n                  dVar33 = (double)DAT_0029f710;\n                }\nLAB_000853cb:\n                pQVar16[pPVar20[4].offset] = dVar33;\n              }\n            }" { (expression_statement "ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception);" (call_expression "ResamplePixelColor(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception)" identifier (argument_list "(*ppRVar1,local_10c - (double)DAT_0029f124,\n                                 dVar12 - (double)DAT_0029f124,&local_70,exception)" ( (pointer_expression "*ppRVar1" * identifier) , (binary_expression "local_10c - (double)DAT_0029f124" identifier - (cast_expression "(double)DAT_0029f124" ( (type_descriptor "double" primitive_type) ) identifier)) , (binary_expression "dVar12 - (double)DAT_0029f124" identifier - (cast_expression "(double)DAT_0029f124" ( (type_descriptor "double" primitive_type) ) identifier)) , (pointer_expression "&local_70" & identifier) , identifier ))) ;) (if_statement "if (local_14c < 1.0) {\n                pPVar23 = this->invalid;\n                dVar12 = local_70.alpha * local_14c * _DAT_0029f148;\n                dVar31 = pPVar23->alpha * (1.0 - local_14c) * _DAT_0029f148;\n                dVar33 = dVar12 + dVar31;\n                if (dVar33 < 0.0) {\n                  dVar33 = 0.0;\n                  local_70.alpha = 0.0;\n                }\n                else if (dVar33 <= 1.0) {\n                  local_70.alpha = dVar33 * (double)DAT_0029f710;\n                }\n                else {\n                  dVar33 = 1.0;\n                  local_70.alpha = (MagickRealType)DAT_0029f710;\n                }\n                dVar32 = DAT_0029f738;\n                if (DAT_0029f138 <= dVar33) {\n                  dVar32 = (double)DAT_0029f718 / dVar33;\n                }\n                local_70.red = (pPVar23->red * dVar31 + local_70.red * dVar12) * dVar32;\n                local_70.green = (pPVar23->green * dVar31 + local_70.green * dVar12) * dVar32;\n                local_70.blue = (pPVar23->blue * dVar31 + local_70.blue * dVar12) * dVar32;\n                if (pPVar23->colorspace == CMYKColorspace) {\n                  local_70.black = dVar32 * (dVar31 * pPVar23->black + dVar12 * local_70.black);\n                }\n              }" if (parenthesized_expression "(local_14c < 1.0)" ( (binary_expression "local_14c < 1.0" identifier < number_literal) )) (compound_statement "{\n                pPVar23 = this->invalid;\n                dVar12 = local_70.alpha * local_14c * _DAT_0029f148;\n                dVar31 = pPVar23->alpha * (1.0 - local_14c) * _DAT_0029f148;\n                dVar33 = dVar12 + dVar31;\n                if (dVar33 < 0.0) {\n                  dVar33 = 0.0;\n                  local_70.alpha = 0.0;\n                }\n                else if (dVar33 <= 1.0) {\n                  local_70.alpha = dVar33 * (double)DAT_0029f710;\n                }\n                else {\n                  dVar33 = 1.0;\n                  local_70.alpha = (MagickRealType)DAT_0029f710;\n                }\n                dVar32 = DAT_0029f738;\n                if (DAT_0029f138 <= dVar33) {\n                  dVar32 = (double)DAT_0029f718 / dVar33;\n                }\n                local_70.red = (pPVar23->red * dVar31 + local_70.red * dVar12) * dVar32;\n                local_70.green = (pPVar23->green * dVar31 + local_70.green * dVar12) * dVar32;\n                local_70.blue = (pPVar23->blue * dVar31 + local_70.blue * dVar12) * dVar32;\n                if (pPVar23->colorspace == CMYKColorspace) {\n                  local_70.black = dVar32 * (dVar31 * pPVar23->black + dVar12 * local_70.black);\n                }\n              }" { (expression_statement "pPVar23 = this->invalid;" (assignment_expression "pPVar23 = this->invalid" identifier = (field_expression "this->invalid" identifier -> field_identifier)) ;) (expression_statement "dVar12 = local_70.alpha * local_14c * _DAT_0029f148;" (assignment_expression "dVar12 = local_70.alpha * local_14c * _DAT_0029f148" identifier = (binary_expression "local_70.alpha * local_14c * _DAT_0029f148" (binary_expression "local_70.alpha * local_14c" (field_expression "local_70.alpha" identifier . field_identifier) * identifier) * identifier)) ;) (expression_statement "dVar31 = pPVar23->alpha * (1.0 - local_14c) * _DAT_0029f148;" (assignment_expression "dVar31 = pPVar23->alpha * (1.0 - local_14c) * _DAT_0029f148" identifier = (binary_expression "pPVar23->alpha * (1.0 - local_14c) * _DAT_0029f148" (binary_expression "pPVar23->alpha * (1.0 - local_14c)" (field_expression "pPVar23->alpha" identifier -> field_identifier) * (parenthesized_expression "(1.0 - local_14c)" ( (binary_expression "1.0 - local_14c" number_literal - identifier) ))) * identifier)) ;) (expression_statement "dVar33 = dVar12 + dVar31;" (assignment_expression "dVar33 = dVar12 + dVar31" identifier = (binary_expression "dVar12 + dVar31" identifier + identifier)) ;) (if_statement "if (dVar33 < 0.0) {\n                  dVar33 = 0.0;\n                  local_70.alpha = 0.0;\n                }\n                else if (dVar33 <= 1.0) {\n                  local_70.alpha = dVar33 * (double)DAT_0029f710;\n                }\n                else {\n                  dVar33 = 1.0;\n                  local_70.alpha = (MagickRealType)DAT_0029f710;\n                }" if (parenthesized_expression "(dVar33 < 0.0)" ( (binary_expression "dVar33 < 0.0" identifier < number_literal) )) (compound_statement "{\n                  dVar33 = 0.0;\n                  local_70.alpha = 0.0;\n                }" { (expression_statement "dVar33 = 0.0;" (assignment_expression "dVar33 = 0.0" identifier = number_literal) ;) (expression_statement "local_70.alpha = 0.0;" (assignment_expression "local_70.alpha = 0.0" (field_expression "local_70.alpha" identifier . field_identifier) = number_literal) ;) }) (else_clause "else if (dVar33 <= 1.0) {\n                  local_70.alpha = dVar33 * (double)DAT_0029f710;\n                }\n                else {\n                  dVar33 = 1.0;\n                  local_70.alpha = (MagickRealType)DAT_0029f710;\n                }" else (if_statement "if (dVar33 <= 1.0) {\n                  local_70.alpha = dVar33 * (double)DAT_0029f710;\n                }\n                else {\n                  dVar33 = 1.0;\n                  local_70.alpha = (MagickRealType)DAT_0029f710;\n                }" if (parenthesized_expression "(dVar33 <= 1.0)" ( (binary_expression "dVar33 <= 1.0" identifier <= number_literal) )) (compound_statement "{\n                  local_70.alpha = dVar33 * (double)DAT_0029f710;\n                }" { (expression_statement "local_70.alpha = dVar33 * (double)DAT_0029f710;" (assignment_expression "local_70.alpha = dVar33 * (double)DAT_0029f710" (field_expression "local_70.alpha" identifier . field_identifier) = (binary_expression "dVar33 * (double)DAT_0029f710" identifier * (cast_expression "(double)DAT_0029f710" ( (type_descriptor "double" primitive_type) ) identifier))) ;) }) (else_clause "else {\n                  dVar33 = 1.0;\n                  local_70.alpha = (MagickRealType)DAT_0029f710;\n                }" else (compound_statement "{\n                  dVar33 = 1.0;\n                  local_70.alpha = (MagickRealType)DAT_0029f710;\n                }" { (expression_statement "dVar33 = 1.0;" (assignment_expression "dVar33 = 1.0" identifier = number_literal) ;) (expression_statement "local_70.alpha = (MagickRealType)DAT_0029f710;" (assignment_expression "local_70.alpha = (MagickRealType)DAT_0029f710" (field_expression "local_70.alpha" identifier . field_identifier) = (cast_expression "(MagickRealType)DAT_0029f710" ( (type_descriptor "MagickRealType" type_identifier) ) identifier)) ;) }))))) (expression_statement "dVar32 = DAT_0029f738;" (assignment_expression "dVar32 = DAT_0029f738" identifier = identifier) ;) (if_statement "if (DAT_0029f138 <= dVar33) {\n                  dVar32 = (double)DAT_0029f718 / dVar33;\n                }" if (parenthesized_expression "(DAT_0029f138 <= dVar33)" ( (binary_expression "DAT_0029f138 <= dVar33" identifier <= identifier) )) (compound_statement "{\n                  dVar32 = (double)DAT_0029f718 / dVar33;\n                }" { (expression_statement "dVar32 = (double)DAT_0029f718 / dVar33;" (assignment_expression "dVar32 = (double)DAT_0029f718 / dVar33" identifier = (binary_expression "(double)DAT_0029f718 / dVar33" (cast_expression "(double)DAT_0029f718" ( (type_descriptor "double" primitive_type) ) identifier) / identifier)) ;) })) (expression_statement "local_70.red = (pPVar23->red * dVar31 + local_70.red * dVar12) * dVar32;" (assignment_expression "local_70.red = (pPVar23->red * dVar31 + local_70.red * dVar12) * dVar32" (field_expression "local_70.red" identifier . field_identifier) = (binary_expression "(pPVar23->red * dVar31 + local_70.red * dVar12) * dVar32" (parenthesized_expression "(pPVar23->red * dVar31 + local_70.red * dVar12)" ( (binary_expression "pPVar23->red * dVar31 + local_70.red * dVar12" (binary_expression "pPVar23->red * dVar31" (field_expression "pPVar23->red" identifier -> field_identifier) * identifier) + (binary_expression "local_70.red * dVar12" (field_expression "local_70.red" identifier . field_identifier) * identifier)) )) * identifier)) ;) (expression_statement "local_70.green = (pPVar23->green * dVar31 + local_70.green * dVar12) * dVar32;" (assignment_expression "local_70.green = (pPVar23->green * dVar31 + local_70.green * dVar12) * dVar32" (field_expression "local_70.green" identifier . field_identifier) = (binary_expression "(pPVar23->green * dVar31 + local_70.green * dVar12) * dVar32" (parenthesized_expression "(pPVar23->green * dVar31 + local_70.green * dVar12)" ( (binary_expression "pPVar23->green * dVar31 + local_70.green * dVar12" (binary_expression "pPVar23->green * dVar31" (field_expression "pPVar23->green" identifier -> field_identifier) * identifier) + (binary_expression "local_70.green * dVar12" (field_expression "local_70.green" identifier . field_identifier) * identifier)) )) * identifier)) ;) (expression_statement "local_70.blue = (pPVar23->blue * dVar31 + local_70.blue * dVar12) * dVar32;" (assignment_expression "local_70.blue = (pPVar23->blue * dVar31 + local_70.blue * dVar12) * dVar32" (field_expression "local_70.blue" identifier . field_identifier) = (binary_expression "(pPVar23->blue * dVar31 + local_70.blue * dVar12) * dVar32" (parenthesized_expression "(pPVar23->blue * dVar31 + local_70.blue * dVar12)" ( (binary_expression "pPVar23->blue * dVar31 + local_70.blue * dVar12" (binary_expression "pPVar23->blue * dVar31" (field_expression "pPVar23->blue" identifier -> field_identifier) * identifier) + (binary_expression "local_70.blue * dVar12" (field_expression "local_70.blue" identifier . field_identifier) * identifier)) )) * identifier)) ;) (if_statement "if (pPVar23->colorspace == CMYKColorspace) {\n                  local_70.black = dVar32 * (dVar31 * pPVar23->black + dVar12 * local_70.black);\n                }" if (parenthesized_expression "(pPVar23->colorspace == CMYKColorspace)" ( (binary_expression "pPVar23->colorspace == CMYKColorspace" (field_expression "pPVar23->colorspace" identifier -> field_identifier) == identifier) )) (compound_statement "{\n                  local_70.black = dVar32 * (dVar31 * pPVar23->black + dVar12 * local_70.black);\n                }" { (expression_statement "local_70.black = dVar32 * (dVar31 * pPVar23->black + dVar12 * local_70.black);" (assignment_expression "local_70.black = dVar32 * (dVar31 * pPVar23->black + dVar12 * local_70.black)" (field_expression "local_70.black" identifier . field_identifier) = (binary_expression "dVar32 * (dVar31 * pPVar23->black + dVar12 * local_70.black)" identifier * (parenthesized_expression "(dVar31 * pPVar23->black + dVar12 * local_70.black)" ( (binary_expression "dVar31 * pPVar23->black + dVar12 * local_70.black" (binary_expression "dVar31 * pPVar23->black" identifier * (field_expression "pPVar23->black" identifier -> field_identifier)) + (binary_expression "dVar12 * local_70.black" identifier * (field_expression "local_70.black" identifier . field_identifier))) )))) ;) })) })) (labeled_statement "LAB_00085370:\n              pPVar20 = pIVar4->channel_map;" statement_identifier : (expression_statement "pPVar20 = pIVar4->channel_map;" (assignment_expression "pPVar20 = pIVar4->channel_map" identifier = (field_expression "pIVar4->channel_map" identifier -> field_identifier)) ;)) (expression_statement "PVar10 = pPVar20[3].traits;" (assignment_expression "PVar10 = pPVar20[3].traits" identifier = (field_expression "pPVar20[3].traits" (subscript_expression "pPVar20[3]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "pQVar16[pPVar20->offset] = local_70.red;" (assignment_expression "pQVar16[pPVar20->offset] = local_70.red" (subscript_expression "pQVar16[pPVar20->offset]" identifier [ (field_expression "pPVar20->offset" identifier -> field_identifier) ]) = (field_expression "local_70.red" identifier . field_identifier)) ;) (expression_statement "pQVar16[pPVar20[1].offset] = local_70.green;" (assignment_expression "pQVar16[pPVar20[1].offset] = local_70.green" (subscript_expression "pQVar16[pPVar20[1].offset]" identifier [ (field_expression "pPVar20[1].offset" (subscript_expression "pPVar20[1]" identifier [ number_literal ]) . field_identifier) ]) = (field_expression "local_70.green" identifier . field_identifier)) ;) (expression_statement "pQVar16[pPVar20[2].offset] = local_70.blue;" (assignment_expression "pQVar16[pPVar20[2].offset] = local_70.blue" (subscript_expression "pQVar16[pPVar20[2].offset]" identifier [ (field_expression "pPVar20[2].offset" (subscript_expression "pPVar20[2]" identifier [ number_literal ]) . field_identifier) ]) = (field_expression "local_70.blue" identifier . field_identifier)) ;) (if_statement "if (PVar10 != UndefinedPixelTrait) {\n                pQVar16[pPVar20[3].offset] = local_70.black;\n              }" if (parenthesized_expression "(PVar10 != UndefinedPixelTrait)" ( (binary_expression "PVar10 != UndefinedPixelTrait" identifier != identifier) )) (compound_statement "{\n                pQVar16[pPVar20[3].offset] = local_70.black;\n              }" { (expression_statement "pQVar16[pPVar20[3].offset] = local_70.black;" (assignment_expression "pQVar16[pPVar20[3].offset] = local_70.black" (subscript_expression "pQVar16[pPVar20[3].offset]" identifier [ (field_expression "pPVar20[3].offset" (subscript_expression "pPVar20[3]" identifier [ number_literal ]) . field_identifier) ]) = (field_expression "local_70.black" identifier . field_identifier)) ;) })) (if_statement "if (pPVar20[4].traits != UndefinedPixelTrait) {\n                dVar33 = local_70.alpha;\n                if (local_70.alpha_trait == UndefinedPixelTrait) {\nLAB_00085d68:\n                  dVar33 = (double)DAT_0029f710;\n                }\nLAB_000853cb:\n                pQVar16[pPVar20[4].offset] = dVar33;\n              }" if (parenthesized_expression "(pPVar20[4].traits != UndefinedPixelTrait)" ( (binary_expression "pPVar20[4].traits != UndefinedPixelTrait" (field_expression "pPVar20[4].traits" (subscript_expression "pPVar20[4]" identifier [ number_literal ]) . field_identifier) != identifier) )) (compound_statement "{\n                dVar33 = local_70.alpha;\n                if (local_70.alpha_trait == UndefinedPixelTrait) {\nLAB_00085d68:\n                  dVar33 = (double)DAT_0029f710;\n                }\nLAB_000853cb:\n                pQVar16[pPVar20[4].offset] = dVar33;\n              }" { (expression_statement "dVar33 = local_70.alpha;" (assignment_expression "dVar33 = local_70.alpha" identifier = (field_expression "local_70.alpha" identifier . field_identifier)) ;) (if_statement "if (local_70.alpha_trait == UndefinedPixelTrait) {\nLAB_00085d68:\n                  dVar33 = (double)DAT_0029f710;\n                }" if (parenthesized_expression "(local_70.alpha_trait == UndefinedPixelTrait)" ( (binary_expression "local_70.alpha_trait == UndefinedPixelTrait" (field_expression "local_70.alpha_trait" identifier . field_identifier) == identifier) )) (compound_statement "{\nLAB_00085d68:\n                  dVar33 = (double)DAT_0029f710;\n                }" { (labeled_statement "LAB_00085d68:\n                  dVar33 = (double)DAT_0029f710;" statement_identifier : (expression_statement "dVar33 = (double)DAT_0029f710;" (assignment_expression "dVar33 = (double)DAT_0029f710" identifier = (cast_expression "(double)DAT_0029f710" ( (type_descriptor "double" primitive_type) ) identifier)) ;)) })) (labeled_statement "LAB_000853cb:\n                pQVar16[pPVar20[4].offset] = dVar33;" statement_identifier : (expression_statement "pQVar16[pPVar20[4].offset] = dVar33;" (assignment_expression "pQVar16[pPVar20[4].offset] = dVar33" (subscript_expression "pQVar16[pPVar20[4].offset]" identifier [ (field_expression "pPVar20[4].offset" (subscript_expression "pPVar20[4]" identifier [ number_literal ]) . field_identifier) ]) = identifier) ;)) })) })))) (expression_statement "local_15c = local_15c + 1;" (assignment_expression "local_15c = local_15c + 1" identifier = (binary_expression "local_15c + 1" identifier + number_literal)) ;) (expression_statement "pQVar16 = pQVar16 + pIVar4->number_channels;" (assignment_expression "pQVar16 = pQVar16 + pIVar4->number_channels" identifier = (binary_expression "pQVar16 + pIVar4->number_channels" identifier + (field_expression "pIVar4->number_channels" identifier -> field_identifier))) ;) }) while (parenthesized_expression "(local_15c < (int)pIVar4->columns)" ( (binary_expression "local_15c < (int)pIVar4->columns" identifier < (cast_expression "(int)pIVar4->columns" ( (type_descriptor "int" primitive_type) ) (field_expression "pIVar4->columns" identifier -> field_identifier))) )) ;) })) (expression_statement "MVar18 = SyncCacheViewAuthenticPixels(cache_view,exception);" (assignment_expression "MVar18 = SyncCacheViewAuthenticPixels(cache_view,exception)" identifier = (call_expression "SyncCacheViewAuthenticPixels(cache_view,exception)" identifier (argument_list "(cache_view,exception)" ( identifier , identifier )))) ;) (if_statement "if (MVar18 == MagickFalse) {\n          this->status = MagickFalse;\n        }" if (parenthesized_expression "(MVar18 == MagickFalse)" ( (binary_expression "MVar18 == 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          puVar11 = (uint *)this->progress;\n          uVar19 = *puVar11;\n          uVar22 = puVar11[1];\n          do {\n            LOCK();\n            lVar2 = *(longlong *)puVar11;\n            bVar27 = CONCAT44(uVar22,uVar19) == lVar2;\n            if (bVar27) {\n              *(longlong *)puVar11 = CONCAT44(uVar22 + (0xfffffffe < uVar19),uVar19 + 1);\n            }\n            else {\n              uVar22 = (uint)((ulonglong)lVar2 >> 0x20);\n              uVar19 = (uint)lVar2;\n            }\n            UNLOCK();\n          } while (!bVar27);\n          MVar18 = SetImageProgress(image,"Distort/Image",*this->progress,(ulonglong)image->rows);\n          if (MVar18 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n        }" if (parenthesized_expression "(image->progress_monitor != (MagickProgressMonitor)0x0)" ( (binary_expression "image->progress_monitor != (MagickProgressMonitor)0x0" (field_expression "image->progress_monitor" identifier -> field_identifier) != (cast_expression "(MagickProgressMonitor)0x0" ( (type_descriptor "MagickProgressMonitor" type_identifier) ) number_literal)) )) (compound_statement "{\n          puVar11 = (uint *)this->progress;\n          uVar19 = *puVar11;\n          uVar22 = puVar11[1];\n          do {\n            LOCK();\n            lVar2 = *(longlong *)puVar11;\n            bVar27 = CONCAT44(uVar22,uVar19) == lVar2;\n            if (bVar27) {\n              *(longlong *)puVar11 = CONCAT44(uVar22 + (0xfffffffe < uVar19),uVar19 + 1);\n            }\n            else {\n              uVar22 = (uint)((ulonglong)lVar2 >> 0x20);\n              uVar19 = (uint)lVar2;\n            }\n            UNLOCK();\n          } while (!bVar27);\n          MVar18 = SetImageProgress(image,"Distort/Image",*this->progress,(ulonglong)image->rows);\n          if (MVar18 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n        }" { (expression_statement "puVar11 = (uint *)this->progress;" (assignment_expression "puVar11 = (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 "uVar19 = *puVar11;" (assignment_expression "uVar19 = *puVar11" identifier = (pointer_expression "*puVar11" * identifier)) ;) (expression_statement "uVar22 = puVar11[1];" (assignment_expression "uVar22 = puVar11[1]" identifier = (subscript_expression "puVar11[1]" identifier [ number_literal ])) ;) (do_statement "do {\n            LOCK();\n            lVar2 = *(longlong *)puVar11;\n            bVar27 = CONCAT44(uVar22,uVar19) == lVar2;\n            if (bVar27) {\n              *(longlong *)puVar11 = CONCAT44(uVar22 + (0xfffffffe < uVar19),uVar19 + 1);\n            }\n            else {\n              uVar22 = (uint)((ulonglong)lVar2 >> 0x20);\n              uVar19 = (uint)lVar2;\n            }\n            UNLOCK();\n          } while (!bVar27);" do (compound_statement "{\n            LOCK();\n            lVar2 = *(longlong *)puVar11;\n            bVar27 = CONCAT44(uVar22,uVar19) == lVar2;\n            if (bVar27) {\n              *(longlong *)puVar11 = CONCAT44(uVar22 + (0xfffffffe < uVar19),uVar19 + 1);\n            }\n            else {\n              uVar22 = (uint)((ulonglong)lVar2 >> 0x20);\n              uVar19 = (uint)lVar2;\n            }\n            UNLOCK();\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "lVar2 = *(longlong *)puVar11;" (assignment_expression "lVar2 = *(longlong *)puVar11" identifier = (pointer_expression "*(longlong *)puVar11" * (cast_expression "(longlong *)puVar11" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "bVar27 = CONCAT44(uVar22,uVar19) == lVar2;" (assignment_expression "bVar27 = CONCAT44(uVar22,uVar19) == lVar2" identifier = (binary_expression "CONCAT44(uVar22,uVar19) == lVar2" (call_expression "CONCAT44(uVar22,uVar19)" identifier (argument_list "(uVar22,uVar19)" ( identifier , identifier ))) == identifier)) ;) (if_statement "if (bVar27) {\n              *(longlong *)puVar11 = CONCAT44(uVar22 + (0xfffffffe < uVar19),uVar19 + 1);\n            }\n            else {\n              uVar22 = (uint)((ulonglong)lVar2 >> 0x20);\n              uVar19 = (uint)lVar2;\n            }" if (parenthesized_expression "(bVar27)" ( identifier )) (compound_statement "{\n              *(longlong *)puVar11 = CONCAT44(uVar22 + (0xfffffffe < uVar19),uVar19 + 1);\n            }" { (expression_statement "*(longlong *)puVar11 = CONCAT44(uVar22 + (0xfffffffe < uVar19),uVar19 + 1);" (assignment_expression "*(longlong *)puVar11 = CONCAT44(uVar22 + (0xfffffffe < uVar19),uVar19 + 1)" (pointer_expression "*(longlong *)puVar11" * (cast_expression "(longlong *)puVar11" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (call_expression "CONCAT44(uVar22 + (0xfffffffe < uVar19),uVar19 + 1)" identifier (argument_list "(uVar22 + (0xfffffffe < uVar19),uVar19 + 1)" ( (binary_expression "uVar22 + (0xfffffffe < uVar19)" identifier + (parenthesized_expression "(0xfffffffe < uVar19)" ( (binary_expression "0xfffffffe < uVar19" number_literal < identifier) ))) , (binary_expression "uVar19 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n              uVar22 = (uint)((ulonglong)lVar2 >> 0x20);\n              uVar19 = (uint)lVar2;\n            }" else (compound_statement "{\n              uVar22 = (uint)((ulonglong)lVar2 >> 0x20);\n              uVar19 = (uint)lVar2;\n            }" { (expression_statement "uVar22 = (uint)((ulonglong)lVar2 >> 0x20);" (assignment_expression "uVar22 = (uint)((ulonglong)lVar2 >> 0x20)" identifier = (call_expression "(uint)((ulonglong)lVar2 >> 0x20)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)lVar2 >> 0x20)" ( (binary_expression "(ulonglong)lVar2 >> 0x20" (cast_expression "(ulonglong)lVar2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar19 = (uint)lVar2;" (assignment_expression "uVar19 = (uint)lVar2" identifier = (cast_expression "(uint)lVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) }))) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }) while (parenthesized_expression "(!bVar27)" ( (unary_expression "!bVar27" ! identifier) )) ;) (expression_statement "MVar18 = SetImageProgress(image,"Distort/Image",*this->progress,(ulonglong)image->rows);" (assignment_expression "MVar18 = SetImageProgress(image,"Distort/Image",*this->progress,(ulonglong)image->rows)" identifier = (call_expression "SetImageProgress(image,"Distort/Image",*this->progress,(ulonglong)image->rows)" identifier (argument_list "(image,"Distort/Image",*this->progress,(ulonglong)image->rows)" ( identifier , (string_literal ""Distort/Image"" " string_content ") , (pointer_expression "*this->progress" * (field_expression "this->progress" identifier -> field_identifier)) , (cast_expression "(ulonglong)image->rows" ( (type_descriptor "ulonglong" type_identifier) ) (field_expression "image->rows" identifier -> field_identifier)) )))) ;) (if_statement "if (MVar18 == MagickFalse) {\n            this->status = MagickFalse;\n          }" if (parenthesized_expression "(MVar18 == MagickFalse)" ( (binary_expression "MVar18 == 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) ;) })) })) }))) (expression_statement "local_140 = local_140 + 1;" (assignment_expression "local_140 = local_140 + 1" identifier = (binary_expression "local_140 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar15 != local_140)" ( (binary_expression "iVar15 != local_140" identifier != identifier) )) ;) })) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00084cb0(double *param_1)\n\n{\n  longlong lVar1;\n  double dVar2;\n  int iVar3;\n  double *pdVar4;\n  undefined4 uVar5;\n  int iVar6;\n  uint *puVar7;\n  double dVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  int unaff_EBP;\n  undefined4 *puVar16;\n  undefined4 *puVar17;\n  int in_GS_OFFSET;\n  bool bVar18;\n  byte bVar19;\n  undefined4 uVar20;\n  int local_15c;\n  int local_140;\n  undefined4 local_70 [2];\n  int local_68;\n  undefined8 local_50;\n  undefined8 local_48;\n  undefined8 local_40;\n  undefined8 local_38;\n  double local_30;\n  int local_20;\n  \n  bVar19 = 0;\n  FUN_00042799();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = *(int *)((int)param_1 + 0x24);\n  local_140 = omp_get_num_threads();\n  iVar9 = omp_get_thread_num();\n  iVar10 = *(int *)(iVar3 + 0x1c) / local_140;\n  local_140 = *(int *)(iVar3 + 0x1c) % local_140;\n  if (iVar9 < local_140) {\n    iVar10 = iVar10 + 1;\n    local_140 = 0;\n  }\n  local_140 = local_140 + iVar9 * iVar10;\n  iVar10 = iVar10 + local_140;\n  if (local_140 < iVar10) {\n    iVar9 = *(int *)(param_1 + 7);\n    dVar2 = *param_1;\n    pdVar4 = *(double **)(param_1 + 4);\n    uVar5 = *(undefined4 *)((int)param_1 + 0x1c);\n    iVar6 = *(int *)(param_1 + 1);\n    do {\n      iVar11 = omp_get_thread_num();\n      uVar20 = uVar5;\n      iVar12 = QueueCacheViewAuthenticPixels();\n      if (iVar12 == 0) {\n        *(undefined4 *)((int)param_1 + 0x3c) = 0;\n      }\n      else {\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    } while (iVar10 != local_140);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0029eab0();\n}\n\n" (function_definition "void FUN_00084cb0(double *param_1)\n\n{\n  longlong lVar1;\n  double dVar2;\n  int iVar3;\n  double *pdVar4;\n  undefined4 uVar5;\n  int iVar6;\n  uint *puVar7;\n  double dVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  int unaff_EBP;\n  undefined4 *puVar16;\n  undefined4 *puVar17;\n  int in_GS_OFFSET;\n  bool bVar18;\n  byte bVar19;\n  undefined4 uVar20;\n  int local_15c;\n  int local_140;\n  undefined4 local_70 [2];\n  int local_68;\n  undefined8 local_50;\n  undefined8 local_48;\n  undefined8 local_40;\n  undefined8 local_38;\n  double local_30;\n  int local_20;\n  \n  bVar19 = 0;\n  FUN_00042799();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = *(int *)((int)param_1 + 0x24);\n  local_140 = omp_get_num_threads();\n  iVar9 = omp_get_thread_num();\n  iVar10 = *(int *)(iVar3 + 0x1c) / local_140;\n  local_140 = *(int *)(iVar3 + 0x1c) % local_140;\n  if (iVar9 < local_140) {\n    iVar10 = iVar10 + 1;\n    local_140 = 0;\n  }\n  local_140 = local_140 + iVar9 * iVar10;\n  iVar10 = iVar10 + local_140;\n  if (local_140 < iVar10) {\n    iVar9 = *(int *)(param_1 + 7);\n    dVar2 = *param_1;\n    pdVar4 = *(double **)(param_1 + 4);\n    uVar5 = *(undefined4 *)((int)param_1 + 0x1c);\n    iVar6 = *(int *)(param_1 + 1);\n    do {\n      iVar11 = omp_get_thread_num();\n      uVar20 = uVar5;\n      iVar12 = QueueCacheViewAuthenticPixels();\n      if (iVar12 == 0) {\n        *(undefined4 *)((int)param_1 + 0x3c) = 0;\n      }\n      else {\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    } while (iVar10 != local_140);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0029eab0();\n}" primitive_type (function_declarator "FUN_00084cb0(double *param_1)" identifier (parameter_list "(double *param_1)" ( (parameter_declaration "double *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  longlong lVar1;\n  double dVar2;\n  int iVar3;\n  double *pdVar4;\n  undefined4 uVar5;\n  int iVar6;\n  uint *puVar7;\n  double dVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  int unaff_EBP;\n  undefined4 *puVar16;\n  undefined4 *puVar17;\n  int in_GS_OFFSET;\n  bool bVar18;\n  byte bVar19;\n  undefined4 uVar20;\n  int local_15c;\n  int local_140;\n  undefined4 local_70 [2];\n  int local_68;\n  undefined8 local_50;\n  undefined8 local_48;\n  undefined8 local_40;\n  undefined8 local_38;\n  double local_30;\n  int local_20;\n  \n  bVar19 = 0;\n  FUN_00042799();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = *(int *)((int)param_1 + 0x24);\n  local_140 = omp_get_num_threads();\n  iVar9 = omp_get_thread_num();\n  iVar10 = *(int *)(iVar3 + 0x1c) / local_140;\n  local_140 = *(int *)(iVar3 + 0x1c) % local_140;\n  if (iVar9 < local_140) {\n    iVar10 = iVar10 + 1;\n    local_140 = 0;\n  }\n  local_140 = local_140 + iVar9 * iVar10;\n  iVar10 = iVar10 + local_140;\n  if (local_140 < iVar10) {\n    iVar9 = *(int *)(param_1 + 7);\n    dVar2 = *param_1;\n    pdVar4 = *(double **)(param_1 + 4);\n    uVar5 = *(undefined4 *)((int)param_1 + 0x1c);\n    iVar6 = *(int *)(param_1 + 1);\n    do {\n      iVar11 = omp_get_thread_num();\n      uVar20 = uVar5;\n      iVar12 = QueueCacheViewAuthenticPixels();\n      if (iVar12 == 0) {\n        *(undefined4 *)((int)param_1 + 0x3c) = 0;\n      }\n      else {\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    } while (iVar10 != local_140);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0029eab0();\n}" { (declaration "longlong lVar1;" type_identifier identifier ;) (declaration "double dVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "double *pdVar4;" primitive_type (pointer_declarator "*pdVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "double dVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "uint uVar15;" type_identifier identifier ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (declaration "undefined4 *puVar16;" type_identifier (pointer_declarator "*puVar16" * identifier) ;) (declaration "undefined4 *puVar17;" type_identifier (pointer_declarator "*puVar17" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar18;" primitive_type identifier ;) (declaration "byte bVar19;" type_identifier identifier ;) (declaration "undefined4 uVar20;" type_identifier identifier ;) (declaration "int local_15c;" primitive_type identifier ;) (declaration "int local_140;" primitive_type identifier ;) (declaration "undefined4 local_70 [2];" type_identifier (array_declarator "local_70 [2]" identifier [ number_literal ]) ;) (declaration "int local_68;" primitive_type identifier ;) (declaration "undefined8 local_50;" type_identifier identifier ;) (declaration "undefined8 local_48;" type_identifier identifier ;) (declaration "undefined8 local_40;" type_identifier identifier ;) (declaration "undefined8 local_38;" type_identifier identifier ;) (declaration "double local_30;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "bVar19 = 0;" (assignment_expression "bVar19 = 0" identifier = number_literal) ;) (expression_statement "FUN_00042799();" (call_expression "FUN_00042799()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)((int)param_1 + 0x24);" (assignment_expression "iVar3 = *(int *)((int)param_1 + 0x24)" identifier = (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) ))))) ;) (expression_statement "local_140 = omp_get_num_threads();" (assignment_expression "local_140 = 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 *)(iVar3 + 0x1c) / local_140;" (assignment_expression "iVar10 = *(int *)(iVar3 + 0x1c) / local_140" identifier = (binary_expression "*(int *)(iVar3 + 0x1c) / local_140" (pointer_expression "*(int *)(iVar3 + 0x1c)" * (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) )))) / identifier)) ;) (expression_statement "local_140 = *(int *)(iVar3 + 0x1c) % local_140;" (assignment_expression "local_140 = *(int *)(iVar3 + 0x1c) % local_140" identifier = (binary_expression "*(int *)(iVar3 + 0x1c) % local_140" (pointer_expression "*(int *)(iVar3 + 0x1c)" * (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) )))) % identifier)) ;) (if_statement "if (iVar9 < local_140) {\n    iVar10 = iVar10 + 1;\n    local_140 = 0;\n  }" if (parenthesized_expression "(iVar9 < local_140)" ( (binary_expression "iVar9 < local_140" identifier < identifier) )) (compound_statement "{\n    iVar10 = iVar10 + 1;\n    local_140 = 0;\n  }" { (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (expression_statement "local_140 = 0;" (assignment_expression "local_140 = 0" identifier = number_literal) ;) })) (expression_statement "local_140 = local_140 + iVar9 * iVar10;" (assignment_expression "local_140 = local_140 + iVar9 * iVar10" identifier = (binary_expression "local_140 + iVar9 * iVar10" identifier + (binary_expression "iVar9 * iVar10" identifier * identifier))) ;) (expression_statement "iVar10 = iVar10 + local_140;" (assignment_expression "iVar10 = iVar10 + local_140" identifier = (binary_expression "iVar10 + local_140" identifier + identifier)) ;) (if_statement "if (local_140 < iVar10) {\n    iVar9 = *(int *)(param_1 + 7);\n    dVar2 = *param_1;\n    pdVar4 = *(double **)(param_1 + 4);\n    uVar5 = *(undefined4 *)((int)param_1 + 0x1c);\n    iVar6 = *(int *)(param_1 + 1);\n    do {\n      iVar11 = omp_get_thread_num();\n      uVar20 = uVar5;\n      iVar12 = QueueCacheViewAuthenticPixels();\n      if (iVar12 == 0) {\n        *(undefined4 *)((int)param_1 + 0x3c) = 0;\n      }\n      else {\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    } while (iVar10 != local_140);\n  }" if (parenthesized_expression "(local_140 < iVar10)" ( (binary_expression "local_140 < iVar10" identifier < identifier) )) (compound_statement "{\n    iVar9 = *(int *)(param_1 + 7);\n    dVar2 = *param_1;\n    pdVar4 = *(double **)(param_1 + 4);\n    uVar5 = *(undefined4 *)((int)param_1 + 0x1c);\n    iVar6 = *(int *)(param_1 + 1);\n    do {\n      iVar11 = omp_get_thread_num();\n      uVar20 = uVar5;\n      iVar12 = QueueCacheViewAuthenticPixels();\n      if (iVar12 == 0) {\n        *(undefined4 *)((int)param_1 + 0x3c) = 0;\n      }\n      else {\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    } while (iVar10 != local_140);\n  }" { (expression_statement "iVar9 = *(int *)(param_1 + 7);" (assignment_expression "iVar9 = *(int *)(param_1 + 7)" identifier = (pointer_expression "*(int *)(param_1 + 7)" * (cast_expression "(int *)(param_1 + 7)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 7)" ( (binary_expression "param_1 + 7" identifier + number_literal) ))))) ;) (expression_statement "dVar2 = *param_1;" (assignment_expression "dVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pdVar4 = *(double **)(param_1 + 4);" (assignment_expression "pdVar4 = *(double **)(param_1 + 4)" identifier = (pointer_expression "*(double **)(param_1 + 4)" * (cast_expression "(double **)(param_1 + 4)" ( (type_descriptor "double **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(undefined4 *)((int)param_1 + 0x1c);" (assignment_expression "uVar5 = *(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 "iVar6 = *(int *)(param_1 + 1);" (assignment_expression "iVar6 = *(int *)(param_1 + 1)" identifier = (pointer_expression "*(int *)(param_1 + 1)" * (cast_expression "(int *)(param_1 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))))) ;) (do_statement "do {\n      iVar11 = omp_get_thread_num();\n      uVar20 = uVar5;\n      iVar12 = QueueCacheViewAuthenticPixels();\n      if (iVar12 == 0) {\n        *(undefined4 *)((int)param_1 + 0x3c) = 0;\n      }\n      else {\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    } while (iVar10 != local_140);" do (compound_statement "{\n      iVar11 = omp_get_thread_num();\n      uVar20 = uVar5;\n      iVar12 = QueueCacheViewAuthenticPixels();\n      if (iVar12 == 0) {\n        *(undefined4 *)((int)param_1 + 0x3c) = 0;\n      }\n      else {\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    }" { (expression_statement "iVar11 = omp_get_thread_num();" (assignment_expression "iVar11 = omp_get_thread_num()" identifier = (call_expression "omp_get_thread_num()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar20 = uVar5;" (assignment_expression "uVar20 = uVar5" identifier = identifier) ;) (expression_statement "iVar12 = QueueCacheViewAuthenticPixels();" (assignment_expression "iVar12 = QueueCacheViewAuthenticPixels()" identifier = (call_expression "QueueCacheViewAuthenticPixels()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar12 == 0) {\n        *(undefined4 *)((int)param_1 + 0x3c) = 0;\n      }\n      else {\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (compound_statement "{\n        *(undefined4 *)((int)param_1 + 0x3c) = 0;\n      }" { (expression_statement "*(undefined4 *)((int)param_1 + 0x3c) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + 0x3c) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + 0x3c)" * (cast_expression "(undefined4 *)((int)param_1 + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x3c)" ( (binary_expression "(int)param_1 + 0x3c" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }" else (compound_statement "{\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }" { (expression_statement "puVar16 = *(undefined4 **)((int)param_1 + 0x34);" (assignment_expression "puVar16 = *(undefined4 **)((int)param_1 + 0x34)" identifier = (pointer_expression "*(undefined4 **)((int)param_1 + 0x34)" * (cast_expression "(undefined4 **)((int)param_1 + 0x34)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + 0x34)" ( (binary_expression "(int)param_1 + 0x34" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "puVar17 = local_70;" (assignment_expression "puVar17 = local_70" identifier = identifier) ;) (for_statement "for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }" for ( (assignment_expression "iVar14 = 0x14" identifier = number_literal) ; (binary_expression "iVar14 != 0" identifier != number_literal) ; (assignment_expression "iVar14 = iVar14 + -1" identifier = (binary_expression "iVar14 + -1" identifier + number_literal)) ) (compound_statement "{\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }" { (expression_statement "*puVar17 = *puVar16;" (assignment_expression "*puVar17 = *puVar16" (pointer_expression "*puVar17" * identifier) = (pointer_expression "*puVar16" * identifier)) ;) (expression_statement "puVar16 = puVar16 + (uint)bVar19 * -2 + 1;" (assignment_expression "puVar16 = puVar16 + (uint)bVar19 * -2 + 1" identifier = (binary_expression "puVar16 + (uint)bVar19 * -2 + 1" (binary_expression "puVar16 + (uint)bVar19 * -2" identifier + (binary_expression "(uint)bVar19 * -2" (cast_expression "(uint)bVar19" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar17 = puVar17 + (uint)bVar19 * -2 + 1;" (assignment_expression "puVar17 = puVar17 + (uint)bVar19 * -2 + 1" identifier = (binary_expression "puVar17 + (uint)bVar19 * -2 + 1" (binary_expression "puVar17 + (uint)bVar19 * -2" identifier + (binary_expression "(uint)bVar19 * -2" (cast_expression "(uint)bVar19" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (if_statement "if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }" if (parenthesized_expression "((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13))" ( (binary_expression "(**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)" (parenthesized_expression "(**(int **)((int)param_1 + 0xc) == 1)" ( (binary_expression "**(int **)((int)param_1 + 0xc) == 1" (pointer_expression "**(int **)((int)param_1 + 0xc)" * (pointer_expression "*(int **)((int)param_1 + 0xc)" * (cast_expression "(int **)((int)param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + 0xc)" ( (binary_expression "(int)param_1 + 0xc" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) == number_literal) )) || (parenthesized_expression "(**(int **)((int)param_1 + 0xc) == 0x13)" ( (binary_expression "**(int **)((int)param_1 + 0xc) == 0x13" (pointer_expression "**(int **)((int)param_1 + 0xc)" * (pointer_expression "*(int **)((int)param_1 + 0xc)" * (cast_expression "(int **)((int)param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + 0xc)" ( (binary_expression "(int)param_1 + 0xc" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) == number_literal) ))) )) (compound_statement "{\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }" { (expression_statement "ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);" (call_expression "ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20)" identifier (argument_list "(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20)" ( (pointer_expression "*(undefined4 *)(iVar9 + iVar11 * 4)" * (cast_expression "(undefined4 *)(iVar9 + iVar11 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + iVar11 * 4)" ( (binary_expression "iVar9 + iVar11 * 4" identifier + (binary_expression "iVar11 * 4" identifier * number_literal)) )))) , (binary_expression "dVar2 * *pdVar4" identifier * (pointer_expression "*pdVar4" * identifier)) , (binary_expression "pdVar4[1] * dVar2" (subscript_expression "pdVar4[1]" identifier [ number_literal ]) * identifier) , (binary_expression "pdVar4[3] * dVar2" (subscript_expression "pdVar4[3]" identifier [ number_literal ]) * identifier) , (binary_expression "pdVar4[4] * dVar2" (subscript_expression "pdVar4[4]" identifier [ number_literal ]) * identifier) , identifier ))) ;) })) (if_statement "if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }" if (parenthesized_expression "(0 < *(int *)(iVar3 + 0x18))" ( (binary_expression "0 < *(int *)(iVar3 + 0x18)" number_literal < (pointer_expression "*(int *)(iVar3 + 0x18)" * (cast_expression "(int *)(iVar3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }" { (expression_statement "local_15c = 0;" (assignment_expression "local_15c = 0" identifier = number_literal) ;) (do_statement "do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));" do (compound_statement "{\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          }" { (if_statement "if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }" if (parenthesized_expression "(**(uint **)((int)param_1 + 0xc) < 0x14)" ( (binary_expression "**(uint **)((int)param_1 + 0xc) < 0x14" (pointer_expression "**(uint **)((int)param_1 + 0xc)" * (pointer_expression "*(uint **)((int)param_1 + 0xc)" * (cast_expression "(uint **)((int)param_1 + 0xc)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + 0xc)" ( (binary_expression "(int)param_1 + 0xc" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) < number_literal) )) (compound_statement "{\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }" { (expression_statement "(*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();" (call_expression "(*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))()" (parenthesized_expression "(*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))" ( (pointer_expression "*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a)" * (cast_expression "(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a)" ( (binary_expression "*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a" (binary_expression "*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP" (pointer_expression "*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4)" * (cast_expression "(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4)" ( (binary_expression "unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4" (binary_expression "unaff_EBP + 0x22ad1e" identifier + number_literal) + (binary_expression "**(uint **)((int)param_1 + 0xc) * 4" (pointer_expression "**(uint **)((int)param_1 + 0xc)" * (pointer_expression "*(uint **)((int)param_1 + 0xc)" * (cast_expression "(uint **)((int)param_1 + 0xc)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + 0xc)" ( (binary_expression "(int)param_1 + 0xc" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) * number_literal)) )))) + identifier) + number_literal) )))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "ResamplePixelColor();" (call_expression "ResamplePixelColor()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar11 = *(int *)(iVar3 + 0x2a8);" (assignment_expression "iVar11 = *(int *)(iVar3 + 0x2a8)" identifier = (pointer_expression "*(int *)(iVar3 + 0x2a8)" * (cast_expression "(int *)(iVar3 + 0x2a8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x2a8)" ( (binary_expression "iVar3 + 0x2a8" identifier + number_literal) ))))) ;) (expression_statement "iVar14 = *(int *)(iVar11 + 0x28);" (assignment_expression "iVar14 = *(int *)(iVar11 + 0x28)" identifier = (pointer_expression "*(int *)(iVar11 + 0x28)" * (cast_expression "(int *)(iVar11 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x28)" ( (binary_expression "iVar11 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;" (assignment_expression "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50" (pointer_expression "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8)" * (cast_expression "(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + *(int *)(iVar11 + 8) * 8)" ( (binary_expression "iVar12 + *(int *)(iVar11 + 8) * 8" identifier + (binary_expression "*(int *)(iVar11 + 8) * 8" (pointer_expression "*(int *)(iVar11 + 8)" * (cast_expression "(int *)(iVar11 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 8)" ( (binary_expression "iVar11 + 8" identifier + number_literal) )))) * number_literal)) )))) = identifier) ;) (expression_statement "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;" (assignment_expression "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48" (pointer_expression "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8)" * (cast_expression "(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + *(int *)(iVar11 + 0x14) * 8)" ( (binary_expression "iVar12 + *(int *)(iVar11 + 0x14) * 8" identifier + (binary_expression "*(int *)(iVar11 + 0x14) * 8" (pointer_expression "*(int *)(iVar11 + 0x14)" * (cast_expression "(int *)(iVar11 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x14)" ( (binary_expression "iVar11 + 0x14" identifier + number_literal) )))) * number_literal)) )))) = identifier) ;) (expression_statement "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;" (assignment_expression "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40" (pointer_expression "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8)" * (cast_expression "(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + *(int *)(iVar11 + 0x20) * 8)" ( (binary_expression "iVar12 + *(int *)(iVar11 + 0x20) * 8" identifier + (binary_expression "*(int *)(iVar11 + 0x20) * 8" (pointer_expression "*(int *)(iVar11 + 0x20)" * (cast_expression "(int *)(iVar11 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x20)" ( (binary_expression "iVar11 + 0x20" identifier + number_literal) )))) * number_literal)) )))) = identifier) ;) (if_statement "if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }" if (parenthesized_expression "(iVar14 != 0)" ( (binary_expression "iVar14 != 0" identifier != number_literal) )) (compound_statement "{\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }" { (expression_statement "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;" (assignment_expression "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38" (pointer_expression "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8)" * (cast_expression "(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + *(int *)(iVar11 + 0x2c) * 8)" ( (binary_expression "iVar12 + *(int *)(iVar11 + 0x2c) * 8" identifier + (binary_expression "*(int *)(iVar11 + 0x2c) * 8" (pointer_expression "*(int *)(iVar11 + 0x2c)" * (cast_expression "(int *)(iVar11 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x2c)" ( (binary_expression "iVar11 + 0x2c" identifier + number_literal) )))) * number_literal)) )))) = identifier) ;) })) (if_statement "if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }" if (parenthesized_expression "(*(int *)(iVar11 + 0x34) != 0)" ( (binary_expression "*(int *)(iVar11 + 0x34) != 0" (pointer_expression "*(int *)(iVar11 + 0x34)" * (cast_expression "(int *)(iVar11 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x34)" ( (binary_expression "iVar11 + 0x34" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }" { (expression_statement "dVar8 = local_30;" (assignment_expression "dVar8 = local_30" identifier = identifier) ;) (if_statement "if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }" if (parenthesized_expression "(local_68 == 0)" ( (binary_expression "local_68 == 0" identifier == number_literal) )) (compound_statement "{\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }" { (expression_statement "dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);" (assignment_expression "dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a)" identifier = (cast_expression "(double)*(float *)(unaff_EBP + 0x21aa5a)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(float *)(unaff_EBP + 0x21aa5a)" * (cast_expression "(float *)(unaff_EBP + 0x21aa5a)" ( (type_descriptor "float *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + 0x21aa5a)" ( (binary_expression "unaff_EBP + 0x21aa5a" identifier + number_literal) )))))) ;) })) (expression_statement "*(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;" (assignment_expression "*(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8" (pointer_expression "*(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8)" * (cast_expression "(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + *(int *)(iVar11 + 0x38) * 8)" ( (binary_expression "iVar12 + *(int *)(iVar11 + 0x38) * 8" identifier + (binary_expression "*(int *)(iVar11 + 0x38) * 8" (pointer_expression "*(int *)(iVar11 + 0x38)" * (cast_expression "(int *)(iVar11 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x38)" ( (binary_expression "iVar11 + 0x38" identifier + number_literal) )))) * number_literal)) )))) = identifier) ;) })) (expression_statement "local_15c = local_15c + 1;" (assignment_expression "local_15c = local_15c + 1" identifier = (binary_expression "local_15c + 1" identifier + number_literal)) ;) (expression_statement "iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;" (assignment_expression "iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8" identifier = (binary_expression "iVar12 + *(int *)(iVar3 + 0x298) * 8" identifier + (binary_expression "*(int *)(iVar3 + 0x298) * 8" (pointer_expression "*(int *)(iVar3 + 0x298)" * (cast_expression "(int *)(iVar3 + 0x298)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x298)" ( (binary_expression "iVar3 + 0x298" identifier + number_literal) )))) * number_literal))) ;) }) while (parenthesized_expression "(local_15c < *(int *)(iVar3 + 0x18))" ( (binary_expression "local_15c < *(int *)(iVar3 + 0x18)" identifier < (pointer_expression "*(int *)(iVar3 + 0x18)" * (cast_expression "(int *)(iVar3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) ))))) )) ;) })) (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 + 0x3c) = 0;\n        }" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (compound_statement "{\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }" { (expression_statement "*(undefined4 *)((int)param_1 + 0x3c) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + 0x3c) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + 0x3c)" * (cast_expression "(undefined4 *)((int)param_1 + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x3c)" ( (binary_expression "(int)param_1 + 0x3c" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) (if_statement "if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }" if (parenthesized_expression "(*(int *)(iVar6 + 0x300) != 0)" ( (binary_expression "*(int *)(iVar6 + 0x300) != 0" (pointer_expression "*(int *)(iVar6 + 0x300)" * (cast_expression "(int *)(iVar6 + 0x300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x300)" ( (binary_expression "iVar6 + 0x300" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }" { (expression_statement "puVar7 = *(uint **)(param_1 + 8);" (assignment_expression "puVar7 = *(uint **)(param_1 + 8)" identifier = (pointer_expression "*(uint **)(param_1 + 8)" * (cast_expression "(uint **)(param_1 + 8)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar13 = *puVar7;" (assignment_expression "uVar13 = *puVar7" identifier = (pointer_expression "*puVar7" * identifier)) ;) (expression_statement "uVar15 = puVar7[1];" (assignment_expression "uVar15 = puVar7[1]" identifier = (subscript_expression "puVar7[1]" identifier [ number_literal ])) ;) (do_statement "do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);" do (compound_statement "{\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = 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 *)puVar7;" (assignment_expression "lVar1 = *(longlong *)puVar7" identifier = (pointer_expression "*(longlong *)puVar7" * (cast_expression "(longlong *)puVar7" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "bVar18 = CONCAT44(uVar15,uVar13) == lVar1;" (assignment_expression "bVar18 = 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 (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }" if (parenthesized_expression "(bVar18)" ( identifier )) (compound_statement "{\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }" { (expression_statement "*(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);" (assignment_expression "*(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1)" (pointer_expression "*(longlong *)puVar7" * (cast_expression "(longlong *)puVar7" ( (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 "(!bVar18)" ( (unary_expression "!bVar18" ! identifier) )) ;) (expression_statement "iVar12 = SetImageProgress();" (assignment_expression "iVar12 = SetImageProgress()" identifier = (call_expression "SetImageProgress()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (compound_statement "{\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }" { (expression_statement "*(undefined4 *)((int)param_1 + 0x3c) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + 0x3c) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + 0x3c)" * (cast_expression "(undefined4 *)((int)param_1 + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x3c)" ( (binary_expression "(int)param_1 + 0x3c" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) })) }))) (expression_statement "local_140 = local_140 + 1;" (assignment_expression "local_140 = local_140 + 1" identifier = (binary_expression "local_140 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar10 != local_140)" ( (binary_expression "iVar10 != local_140" identifier != identifier) )) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0029eab0();" (call_expression "FUN_0029eab0()" identifier (argument_list "()" ( ))) ;) })))
(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 (pointer_declarator * 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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 = (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 = (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 IDENT + (binary_expression 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 * IDENT)) ;) (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_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) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) == LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) == LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) , (binary_expression IDENT * (pointer_expression * IDENT)) , (binary_expression (subscript_expression IDENT [ LIT ]) * IDENT) , (binary_expression (subscript_expression IDENT [ LIT ]) * IDENT) , (binary_expression (subscript_expression IDENT [ LIT ]) * IDENT) , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (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 * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) < LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_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 (binary_expression IDENT + LIT) + (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) * LIT)) )))) + IDENT) + LIT) )))) )) (argument_list ( ))) ;) (return_statement return ;) })) (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 = (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT)) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT)) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT))) ;) }) while (parenthesized_expression ( (binary_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 ( )))) ;) (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 ( )))) ;) (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) ;) })) })) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_00084cb0(double *param_1)\n\n{\n  longlong lVar1;\n  double dVar2;\n  int iVar3;\n  double *pdVar4;\n  undefined4 uVar5;\n  int iVar6;\n  uint *puVar7;\n  double dVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  int unaff_EBP;\n  undefined4 *puVar16;\n  undefined4 *puVar17;\n  int in_GS_OFFSET;\n  bool bVar18;\n  byte bVar19;\n  undefined4 uVar20;\n  int local_15c;\n  int local_140;\n  undefined4 local_70 [2];\n  int local_68;\n  undefined8 local_50;\n  undefined8 local_48;\n  undefined8 local_40;\n  undefined8 local_38;\n  double local_30;\n  int local_20;\n  \n  bVar19 = 0;\n  FUN_00042799();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = *(int *)((int)param_1 + 0x24);\n  local_140 = omp_get_num_threads();\n  iVar9 = omp_get_thread_num();\n  iVar10 = *(int *)(iVar3 + 0x1c) / local_140;\n  local_140 = *(int *)(iVar3 + 0x1c) % local_140;\n  if (iVar9 < local_140) {\n    iVar10 = iVar10 + 1;\n    local_140 = 0;\n  }\n  local_140 = local_140 + iVar9 * iVar10;\n  iVar10 = iVar10 + local_140;\n  if (local_140 < iVar10) {\n    iVar9 = *(int *)(param_1 + 7);\n    dVar2 = *param_1;\n    pdVar4 = *(double **)(param_1 + 4);\n    uVar5 = *(undefined4 *)((int)param_1 + 0x1c);\n    iVar6 = *(int *)(param_1 + 1);\n    do {\n      iVar11 = omp_get_thread_num();\n      uVar20 = uVar5;\n      iVar12 = QueueCacheViewAuthenticPixels();\n      if (iVar12 == 0) {\n        *(undefined4 *)((int)param_1 + 0x3c) = 0;\n      }\n      else {\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    } while (iVar10 != local_140);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0029eab0();\n}" (primitive_type "void") (function_declarator "FUN_00084cb0(double *param_1)" (identifier "FUN_00084cb0") (parameter_list "(double *param_1)" (( "(") (parameter_declaration "double *param_1" (primitive_type "double") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  longlong lVar1;\n  double dVar2;\n  int iVar3;\n  double *pdVar4;\n  undefined4 uVar5;\n  int iVar6;\n  uint *puVar7;\n  double dVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  int unaff_EBP;\n  undefined4 *puVar16;\n  undefined4 *puVar17;\n  int in_GS_OFFSET;\n  bool bVar18;\n  byte bVar19;\n  undefined4 uVar20;\n  int local_15c;\n  int local_140;\n  undefined4 local_70 [2];\n  int local_68;\n  undefined8 local_50;\n  undefined8 local_48;\n  undefined8 local_40;\n  undefined8 local_38;\n  double local_30;\n  int local_20;\n  \n  bVar19 = 0;\n  FUN_00042799();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = *(int *)((int)param_1 + 0x24);\n  local_140 = omp_get_num_threads();\n  iVar9 = omp_get_thread_num();\n  iVar10 = *(int *)(iVar3 + 0x1c) / local_140;\n  local_140 = *(int *)(iVar3 + 0x1c) % local_140;\n  if (iVar9 < local_140) {\n    iVar10 = iVar10 + 1;\n    local_140 = 0;\n  }\n  local_140 = local_140 + iVar9 * iVar10;\n  iVar10 = iVar10 + local_140;\n  if (local_140 < iVar10) {\n    iVar9 = *(int *)(param_1 + 7);\n    dVar2 = *param_1;\n    pdVar4 = *(double **)(param_1 + 4);\n    uVar5 = *(undefined4 *)((int)param_1 + 0x1c);\n    iVar6 = *(int *)(param_1 + 1);\n    do {\n      iVar11 = omp_get_thread_num();\n      uVar20 = uVar5;\n      iVar12 = QueueCacheViewAuthenticPixels();\n      if (iVar12 == 0) {\n        *(undefined4 *)((int)param_1 + 0x3c) = 0;\n      }\n      else {\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    } while (iVar10 != local_140);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0029eab0();\n}" ({ "{") (declaration "longlong lVar1;" (type_identifier "longlong") (identifier "lVar1") (; ";")) (declaration "double dVar2;" (primitive_type "double") (identifier "dVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "double *pdVar4;" (primitive_type "double") (pointer_declarator "*pdVar4" (* "*") (identifier "pdVar4")) (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "uint *puVar7;" (type_identifier "uint") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "double dVar8;" (primitive_type "double") (identifier "dVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (declaration "int iVar12;" (primitive_type "int") (identifier "iVar12") (; ";")) (declaration "uint uVar13;" (type_identifier "uint") (identifier "uVar13") (; ";")) (declaration "int iVar14;" (primitive_type "int") (identifier "iVar14") (; ";")) (declaration "uint uVar15;" (type_identifier "uint") (identifier "uVar15") (; ";")) (declaration "int unaff_EBP;" (primitive_type "int") (identifier "unaff_EBP") (; ";")) (declaration "undefined4 *puVar16;" (type_identifier "undefined4") (pointer_declarator "*puVar16" (* "*") (identifier "puVar16")) (; ";")) (declaration "undefined4 *puVar17;" (type_identifier "undefined4") (pointer_declarator "*puVar17" (* "*") (identifier "puVar17")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "bool bVar18;" (primitive_type "bool") (identifier "bVar18") (; ";")) (declaration "byte bVar19;" (type_identifier "byte") (identifier "bVar19") (; ";")) (declaration "undefined4 uVar20;" (type_identifier "undefined4") (identifier "uVar20") (; ";")) (declaration "int local_15c;" (primitive_type "int") (identifier "local_15c") (; ";")) (declaration "int local_140;" (primitive_type "int") (identifier "local_140") (; ";")) (declaration "undefined4 local_70 [2];" (type_identifier "undefined4") (array_declarator "local_70 [2]" (identifier "local_70") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "int local_68;" (primitive_type "int") (identifier "local_68") (; ";")) (declaration "undefined8 local_50;" (type_identifier "undefined8") (identifier "local_50") (; ";")) (declaration "undefined8 local_48;" (type_identifier "undefined8") (identifier "local_48") (; ";")) (declaration "undefined8 local_40;" (type_identifier "undefined8") (identifier "local_40") (; ";")) (declaration "undefined8 local_38;" (type_identifier "undefined8") (identifier "local_38") (; ";")) (declaration "double local_30;" (primitive_type "double") (identifier "local_30") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "bVar19 = 0;" (assignment_expression "bVar19 = 0" (identifier "bVar19") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_00042799();" (call_expression "FUN_00042799()" (identifier "FUN_00042799") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar3 = *(int *)((int)param_1 + 0x24);" (assignment_expression "iVar3 = *(int *)((int)param_1 + 0x24)" (identifier "iVar3") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "local_140 = omp_get_num_threads();" (assignment_expression "local_140 = omp_get_num_threads()" (identifier "local_140") (= "=") (call_expression "omp_get_num_threads()" (identifier "omp_get_num_threads") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar9 = omp_get_thread_num();" (assignment_expression "iVar9 = omp_get_thread_num()" (identifier "iVar9") (= "=") (call_expression "omp_get_thread_num()" (identifier "omp_get_thread_num") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar10 = *(int *)(iVar3 + 0x1c) / local_140;" (assignment_expression "iVar10 = *(int *)(iVar3 + 0x1c) / local_140" (identifier "iVar10") (= "=") (binary_expression "*(int *)(iVar3 + 0x1c) / local_140" (pointer_expression "*(int *)(iVar3 + 0x1c)" (* "*") (cast_expression "(int *)(iVar3 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1c)" (( "(") (binary_expression "iVar3 + 0x1c" (identifier "iVar3") (+ "+") (number_literal "0x1c")) () ")")))) (/ "/") (identifier "local_140"))) (; ";")) (expression_statement "local_140 = *(int *)(iVar3 + 0x1c) % local_140;" (assignment_expression "local_140 = *(int *)(iVar3 + 0x1c) % local_140" (identifier "local_140") (= "=") (binary_expression "*(int *)(iVar3 + 0x1c) % local_140" (pointer_expression "*(int *)(iVar3 + 0x1c)" (* "*") (cast_expression "(int *)(iVar3 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1c)" (( "(") (binary_expression "iVar3 + 0x1c" (identifier "iVar3") (+ "+") (number_literal "0x1c")) () ")")))) (% "%") (identifier "local_140"))) (; ";")) (if_statement "if (iVar9 < local_140) {\n    iVar10 = iVar10 + 1;\n    local_140 = 0;\n  }" (if "if") (parenthesized_expression "(iVar9 < local_140)" (( "(") (binary_expression "iVar9 < local_140" (identifier "iVar9") (< "<") (identifier "local_140")) () ")")) (compound_statement "{\n    iVar10 = iVar10 + 1;\n    local_140 = 0;\n  }" ({ "{") (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" (identifier "iVar10") (= "=") (binary_expression "iVar10 + 1" (identifier "iVar10") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_140 = 0;" (assignment_expression "local_140 = 0" (identifier "local_140") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "local_140 = local_140 + iVar9 * iVar10;" (assignment_expression "local_140 = local_140 + iVar9 * iVar10" (identifier "local_140") (= "=") (binary_expression "local_140 + iVar9 * iVar10" (identifier "local_140") (+ "+") (binary_expression "iVar9 * iVar10" (identifier "iVar9") (* "*") (identifier "iVar10")))) (; ";")) (expression_statement "iVar10 = iVar10 + local_140;" (assignment_expression "iVar10 = iVar10 + local_140" (identifier "iVar10") (= "=") (binary_expression "iVar10 + local_140" (identifier "iVar10") (+ "+") (identifier "local_140"))) (; ";")) (if_statement "if (local_140 < iVar10) {\n    iVar9 = *(int *)(param_1 + 7);\n    dVar2 = *param_1;\n    pdVar4 = *(double **)(param_1 + 4);\n    uVar5 = *(undefined4 *)((int)param_1 + 0x1c);\n    iVar6 = *(int *)(param_1 + 1);\n    do {\n      iVar11 = omp_get_thread_num();\n      uVar20 = uVar5;\n      iVar12 = QueueCacheViewAuthenticPixels();\n      if (iVar12 == 0) {\n        *(undefined4 *)((int)param_1 + 0x3c) = 0;\n      }\n      else {\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    } while (iVar10 != local_140);\n  }" (if "if") (parenthesized_expression "(local_140 < iVar10)" (( "(") (binary_expression "local_140 < iVar10" (identifier "local_140") (< "<") (identifier "iVar10")) () ")")) (compound_statement "{\n    iVar9 = *(int *)(param_1 + 7);\n    dVar2 = *param_1;\n    pdVar4 = *(double **)(param_1 + 4);\n    uVar5 = *(undefined4 *)((int)param_1 + 0x1c);\n    iVar6 = *(int *)(param_1 + 1);\n    do {\n      iVar11 = omp_get_thread_num();\n      uVar20 = uVar5;\n      iVar12 = QueueCacheViewAuthenticPixels();\n      if (iVar12 == 0) {\n        *(undefined4 *)((int)param_1 + 0x3c) = 0;\n      }\n      else {\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    } while (iVar10 != local_140);\n  }" ({ "{") (expression_statement "iVar9 = *(int *)(param_1 + 7);" (assignment_expression "iVar9 = *(int *)(param_1 + 7)" (identifier "iVar9") (= "=") (pointer_expression "*(int *)(param_1 + 7)" (* "*") (cast_expression "(int *)(param_1 + 7)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 7)" (( "(") (binary_expression "param_1 + 7" (identifier "param_1") (+ "+") (number_literal "7")) () ")"))))) (; ";")) (expression_statement "dVar2 = *param_1;" (assignment_expression "dVar2 = *param_1" (identifier "dVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "pdVar4 = *(double **)(param_1 + 4);" (assignment_expression "pdVar4 = *(double **)(param_1 + 4)" (identifier "pdVar4") (= "=") (pointer_expression "*(double **)(param_1 + 4)" (* "*") (cast_expression "(double **)(param_1 + 4)" (( "(") (type_descriptor "double **" (primitive_type "double") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "uVar5 = *(undefined4 *)((int)param_1 + 0x1c);" (assignment_expression "uVar5 = *(undefined4 *)((int)param_1 + 0x1c)" (identifier "uVar5") (= "=") (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 "iVar6 = *(int *)(param_1 + 1);" (assignment_expression "iVar6 = *(int *)(param_1 + 1)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(param_1 + 1)" (* "*") (cast_expression "(int *)(param_1 + 1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (do_statement "do {\n      iVar11 = omp_get_thread_num();\n      uVar20 = uVar5;\n      iVar12 = QueueCacheViewAuthenticPixels();\n      if (iVar12 == 0) {\n        *(undefined4 *)((int)param_1 + 0x3c) = 0;\n      }\n      else {\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    } while (iVar10 != local_140);" (do "do") (compound_statement "{\n      iVar11 = omp_get_thread_num();\n      uVar20 = uVar5;\n      iVar12 = QueueCacheViewAuthenticPixels();\n      if (iVar12 == 0) {\n        *(undefined4 *)((int)param_1 + 0x3c) = 0;\n      }\n      else {\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }\n      local_140 = local_140 + 1;\n    }" ({ "{") (expression_statement "iVar11 = omp_get_thread_num();" (assignment_expression "iVar11 = omp_get_thread_num()" (identifier "iVar11") (= "=") (call_expression "omp_get_thread_num()" (identifier "omp_get_thread_num") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar20 = uVar5;" (assignment_expression "uVar20 = uVar5" (identifier "uVar20") (= "=") (identifier "uVar5")) (; ";")) (expression_statement "iVar12 = QueueCacheViewAuthenticPixels();" (assignment_expression "iVar12 = QueueCacheViewAuthenticPixels()" (identifier "iVar12") (= "=") (call_expression "QueueCacheViewAuthenticPixels()" (identifier "QueueCacheViewAuthenticPixels") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar12 == 0) {\n        *(undefined4 *)((int)param_1 + 0x3c) = 0;\n      }\n      else {\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }" (if "if") (parenthesized_expression "(iVar12 == 0)" (( "(") (binary_expression "iVar12 == 0" (identifier "iVar12") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        *(undefined4 *)((int)param_1 + 0x3c) = 0;\n      }" ({ "{") (expression_statement "*(undefined4 *)((int)param_1 + 0x3c) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + 0x3c) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + 0x3c)" (* "*") (cast_expression "(undefined4 *)((int)param_1 + 0x3c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x3c)" (( "(") (binary_expression "(int)param_1 + 0x3c" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }" (else "else") (compound_statement "{\n        puVar16 = *(undefined4 **)((int)param_1 + 0x34);\n        puVar17 = local_70;\n        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }\n        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }\n        if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }\n        iVar12 = SyncCacheViewAuthenticPixels();\n        if (iVar12 == 0) {\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }\n        if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }\n      }" ({ "{") (expression_statement "puVar16 = *(undefined4 **)((int)param_1 + 0x34);" (assignment_expression "puVar16 = *(undefined4 **)((int)param_1 + 0x34)" (identifier "puVar16") (= "=") (pointer_expression "*(undefined4 **)((int)param_1 + 0x34)" (* "*") (cast_expression "(undefined4 **)((int)param_1 + 0x34)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)param_1 + 0x34)" (( "(") (binary_expression "(int)param_1 + 0x34" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x34")) () ")"))))) (; ";")) (expression_statement "puVar17 = local_70;" (assignment_expression "puVar17 = local_70" (identifier "puVar17") (= "=") (identifier "local_70")) (; ";")) (for_statement "for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }" (for "for") (( "(") (assignment_expression "iVar14 = 0x14" (identifier "iVar14") (= "=") (number_literal "0x14")) (; ";") (binary_expression "iVar14 != 0" (identifier "iVar14") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar14 = iVar14 + -1" (identifier "iVar14") (= "=") (binary_expression "iVar14 + -1" (identifier "iVar14") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n          *puVar17 = *puVar16;\n          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;\n          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;\n        }" ({ "{") (expression_statement "*puVar17 = *puVar16;" (assignment_expression "*puVar17 = *puVar16" (pointer_expression "*puVar17" (* "*") (identifier "puVar17")) (= "=") (pointer_expression "*puVar16" (* "*") (identifier "puVar16"))) (; ";")) (expression_statement "puVar16 = puVar16 + (uint)bVar19 * -2 + 1;" (assignment_expression "puVar16 = puVar16 + (uint)bVar19 * -2 + 1" (identifier "puVar16") (= "=") (binary_expression "puVar16 + (uint)bVar19 * -2 + 1" (binary_expression "puVar16 + (uint)bVar19 * -2" (identifier "puVar16") (+ "+") (binary_expression "(uint)bVar19 * -2" (cast_expression "(uint)bVar19" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar19")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar17 = puVar17 + (uint)bVar19 * -2 + 1;" (assignment_expression "puVar17 = puVar17 + (uint)bVar19 * -2 + 1" (identifier "puVar17") (= "=") (binary_expression "puVar17 + (uint)bVar19 * -2 + 1" (binary_expression "puVar17 + (uint)bVar19 * -2" (identifier "puVar17") (+ "+") (binary_expression "(uint)bVar19 * -2" (cast_expression "(uint)bVar19" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar19")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (if_statement "if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }" (if "if") (parenthesized_expression "((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13))" (( "(") (binary_expression "(**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)" (parenthesized_expression "(**(int **)((int)param_1 + 0xc) == 1)" (( "(") (binary_expression "**(int **)((int)param_1 + 0xc) == 1" (pointer_expression "**(int **)((int)param_1 + 0xc)" (* "*") (pointer_expression "*(int **)((int)param_1 + 0xc)" (* "*") (cast_expression "(int **)((int)param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)param_1 + 0xc)" (( "(") (binary_expression "(int)param_1 + 0xc" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")"))))) (== "==") (number_literal "1")) () ")")) (|| "||") (parenthesized_expression "(**(int **)((int)param_1 + 0xc) == 0x13)" (( "(") (binary_expression "**(int **)((int)param_1 + 0xc) == 0x13" (pointer_expression "**(int **)((int)param_1 + 0xc)" (* "*") (pointer_expression "*(int **)((int)param_1 + 0xc)" (* "*") (cast_expression "(int **)((int)param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)param_1 + 0xc)" (( "(") (binary_expression "(int)param_1 + 0xc" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")"))))) (== "==") (number_literal "0x13")) () ")"))) () ")")) (compound_statement "{\n          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);\n        }" ({ "{") (expression_statement "ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);" (call_expression "ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20)" (identifier "ScaleResampleFilter") (argument_list "(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,\n                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20)" (( "(") (pointer_expression "*(undefined4 *)(iVar9 + iVar11 * 4)" (* "*") (cast_expression "(undefined4 *)(iVar9 + iVar11 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + iVar11 * 4)" (( "(") (binary_expression "iVar9 + iVar11 * 4" (identifier "iVar9") (+ "+") (binary_expression "iVar11 * 4" (identifier "iVar11") (* "*") (number_literal "4"))) () ")")))) (, ",") (binary_expression "dVar2 * *pdVar4" (identifier "dVar2") (* "*") (pointer_expression "*pdVar4" (* "*") (identifier "pdVar4"))) (, ",") (binary_expression "pdVar4[1] * dVar2" (subscript_expression "pdVar4[1]" (identifier "pdVar4") ([ "[") (number_literal "1") (] "]")) (* "*") (identifier "dVar2")) (, ",") (binary_expression "pdVar4[3] * dVar2" (subscript_expression "pdVar4[3]" (identifier "pdVar4") ([ "[") (number_literal "3") (] "]")) (* "*") (identifier "dVar2")) (, ",") (binary_expression "pdVar4[4] * dVar2" (subscript_expression "pdVar4[4]" (identifier "pdVar4") ([ "[") (number_literal "4") (] "]")) (* "*") (identifier "dVar2")) (, ",") (identifier "uVar20") () ")"))) (; ";")) (} "}"))) (if_statement "if (0 < *(int *)(iVar3 + 0x18)) {\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }" (if "if") (parenthesized_expression "(0 < *(int *)(iVar3 + 0x18))" (( "(") (binary_expression "0 < *(int *)(iVar3 + 0x18)" (number_literal "0") (< "<") (pointer_expression "*(int *)(iVar3 + 0x18)" (* "*") (cast_expression "(int *)(iVar3 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x18)" (( "(") (binary_expression "iVar3 + 0x18" (identifier "iVar3") (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (compound_statement "{\n          local_15c = 0;\n          do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));\n        }" ({ "{") (expression_statement "local_15c = 0;" (assignment_expression "local_15c = 0" (identifier "local_15c") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          } while (local_15c < *(int *)(iVar3 + 0x18));" (do "do") (compound_statement "{\n            if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }\n            ResamplePixelColor();\n            iVar11 = *(int *)(iVar3 + 0x2a8);\n            iVar14 = *(int *)(iVar11 + 0x28);\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;\n            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;\n            if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }\n            if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }\n            local_15c = local_15c + 1;\n            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;\n          }" ({ "{") (if_statement "if (**(uint **)((int)param_1 + 0xc) < 0x14) {\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }" (if "if") (parenthesized_expression "(**(uint **)((int)param_1 + 0xc) < 0x14)" (( "(") (binary_expression "**(uint **)((int)param_1 + 0xc) < 0x14" (pointer_expression "**(uint **)((int)param_1 + 0xc)" (* "*") (pointer_expression "*(uint **)((int)param_1 + 0xc)" (* "*") (cast_expression "(uint **)((int)param_1 + 0xc)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)param_1 + 0xc)" (( "(") (binary_expression "(int)param_1 + 0xc" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")"))))) (< "<") (number_literal "0x14")) () ")")) (compound_statement "{\n                    \n                    \n              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();\n              return;\n            }" ({ "{") (expression_statement "(*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))();" (call_expression "(*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))()" (parenthesized_expression "(*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a))" (( "(") (pointer_expression "*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a)" (* "*") (cast_expression "(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a)" (( "(") (binary_expression "*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP + 0x35434a" (binary_expression "*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +\n                        unaff_EBP" (pointer_expression "*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4)" (* "*") (cast_expression "(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4)" (( "(") (binary_expression "unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4" (binary_expression "unaff_EBP + 0x22ad1e" (identifier "unaff_EBP") (+ "+") (number_literal "0x22ad1e")) (+ "+") (binary_expression "**(uint **)((int)param_1 + 0xc) * 4" (pointer_expression "**(uint **)((int)param_1 + 0xc)" (* "*") (pointer_expression "*(uint **)((int)param_1 + 0xc)" (* "*") (cast_expression "(uint **)((int)param_1 + 0xc)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)param_1 + 0xc)" (( "(") (binary_expression "(int)param_1 + 0xc" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")"))))) (* "*") (number_literal "4"))) () ")")))) (+ "+") (identifier "unaff_EBP")) (+ "+") (number_literal "0x35434a")) () ")")))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "ResamplePixelColor();" (call_expression "ResamplePixelColor()" (identifier "ResamplePixelColor") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar11 = *(int *)(iVar3 + 0x2a8);" (assignment_expression "iVar11 = *(int *)(iVar3 + 0x2a8)" (identifier "iVar11") (= "=") (pointer_expression "*(int *)(iVar3 + 0x2a8)" (* "*") (cast_expression "(int *)(iVar3 + 0x2a8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x2a8)" (( "(") (binary_expression "iVar3 + 0x2a8" (identifier "iVar3") (+ "+") (number_literal "0x2a8")) () ")"))))) (; ";")) (expression_statement "iVar14 = *(int *)(iVar11 + 0x28);" (assignment_expression "iVar14 = *(int *)(iVar11 + 0x28)" (identifier "iVar14") (= "=") (pointer_expression "*(int *)(iVar11 + 0x28)" (* "*") (cast_expression "(int *)(iVar11 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar11 + 0x28)" (( "(") (binary_expression "iVar11 + 0x28" (identifier "iVar11") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;" (assignment_expression "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50" (pointer_expression "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8)" (* "*") (cast_expression "(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + *(int *)(iVar11 + 8) * 8)" (( "(") (binary_expression "iVar12 + *(int *)(iVar11 + 8) * 8" (identifier "iVar12") (+ "+") (binary_expression "*(int *)(iVar11 + 8) * 8" (pointer_expression "*(int *)(iVar11 + 8)" (* "*") (cast_expression "(int *)(iVar11 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar11 + 8)" (( "(") (binary_expression "iVar11 + 8" (identifier "iVar11") (+ "+") (number_literal "8")) () ")")))) (* "*") (number_literal "8"))) () ")")))) (= "=") (identifier "local_50")) (; ";")) (expression_statement "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;" (assignment_expression "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48" (pointer_expression "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8)" (* "*") (cast_expression "(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + *(int *)(iVar11 + 0x14) * 8)" (( "(") (binary_expression "iVar12 + *(int *)(iVar11 + 0x14) * 8" (identifier "iVar12") (+ "+") (binary_expression "*(int *)(iVar11 + 0x14) * 8" (pointer_expression "*(int *)(iVar11 + 0x14)" (* "*") (cast_expression "(int *)(iVar11 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar11 + 0x14)" (( "(") (binary_expression "iVar11 + 0x14" (identifier "iVar11") (+ "+") (number_literal "0x14")) () ")")))) (* "*") (number_literal "8"))) () ")")))) (= "=") (identifier "local_48")) (; ";")) (expression_statement "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;" (assignment_expression "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40" (pointer_expression "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8)" (* "*") (cast_expression "(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + *(int *)(iVar11 + 0x20) * 8)" (( "(") (binary_expression "iVar12 + *(int *)(iVar11 + 0x20) * 8" (identifier "iVar12") (+ "+") (binary_expression "*(int *)(iVar11 + 0x20) * 8" (pointer_expression "*(int *)(iVar11 + 0x20)" (* "*") (cast_expression "(int *)(iVar11 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar11 + 0x20)" (( "(") (binary_expression "iVar11 + 0x20" (identifier "iVar11") (+ "+") (number_literal "0x20")) () ")")))) (* "*") (number_literal "8"))) () ")")))) (= "=") (identifier "local_40")) (; ";")) (if_statement "if (iVar14 != 0) {\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }" (if "if") (parenthesized_expression "(iVar14 != 0)" (( "(") (binary_expression "iVar14 != 0" (identifier "iVar14") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;\n            }" ({ "{") (expression_statement "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;" (assignment_expression "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38" (pointer_expression "*(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8)" (* "*") (cast_expression "(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + *(int *)(iVar11 + 0x2c) * 8)" (( "(") (binary_expression "iVar12 + *(int *)(iVar11 + 0x2c) * 8" (identifier "iVar12") (+ "+") (binary_expression "*(int *)(iVar11 + 0x2c) * 8" (pointer_expression "*(int *)(iVar11 + 0x2c)" (* "*") (cast_expression "(int *)(iVar11 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar11 + 0x2c)" (( "(") (binary_expression "iVar11 + 0x2c" (identifier "iVar11") (+ "+") (number_literal "0x2c")) () ")")))) (* "*") (number_literal "8"))) () ")")))) (= "=") (identifier "local_38")) (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar11 + 0x34) != 0) {\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }" (if "if") (parenthesized_expression "(*(int *)(iVar11 + 0x34) != 0)" (( "(") (binary_expression "*(int *)(iVar11 + 0x34) != 0" (pointer_expression "*(int *)(iVar11 + 0x34)" (* "*") (cast_expression "(int *)(iVar11 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar11 + 0x34)" (( "(") (binary_expression "iVar11 + 0x34" (identifier "iVar11") (+ "+") (number_literal "0x34")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              dVar8 = local_30;\n              if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }\n              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;\n            }" ({ "{") (expression_statement "dVar8 = local_30;" (assignment_expression "dVar8 = local_30" (identifier "dVar8") (= "=") (identifier "local_30")) (; ";")) (if_statement "if (local_68 == 0) {\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }" (if "if") (parenthesized_expression "(local_68 == 0)" (( "(") (binary_expression "local_68 == 0" (identifier "local_68") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);\n              }" ({ "{") (expression_statement "dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);" (assignment_expression "dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a)" (identifier "dVar8") (= "=") (cast_expression "(double)*(float *)(unaff_EBP + 0x21aa5a)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(float *)(unaff_EBP + 0x21aa5a)" (* "*") (cast_expression "(float *)(unaff_EBP + 0x21aa5a)" (( "(") (type_descriptor "float *" (primitive_type "float") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EBP + 0x21aa5a)" (( "(") (binary_expression "unaff_EBP + 0x21aa5a" (identifier "unaff_EBP") (+ "+") (number_literal "0x21aa5a")) () ")")))))) (; ";")) (} "}"))) (expression_statement "*(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;" (assignment_expression "*(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8" (pointer_expression "*(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8)" (* "*") (cast_expression "(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + *(int *)(iVar11 + 0x38) * 8)" (( "(") (binary_expression "iVar12 + *(int *)(iVar11 + 0x38) * 8" (identifier "iVar12") (+ "+") (binary_expression "*(int *)(iVar11 + 0x38) * 8" (pointer_expression "*(int *)(iVar11 + 0x38)" (* "*") (cast_expression "(int *)(iVar11 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar11 + 0x38)" (( "(") (binary_expression "iVar11 + 0x38" (identifier "iVar11") (+ "+") (number_literal "0x38")) () ")")))) (* "*") (number_literal "8"))) () ")")))) (= "=") (identifier "dVar8")) (; ";")) (} "}"))) (expression_statement "local_15c = local_15c + 1;" (assignment_expression "local_15c = local_15c + 1" (identifier "local_15c") (= "=") (binary_expression "local_15c + 1" (identifier "local_15c") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;" (assignment_expression "iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8" (identifier "iVar12") (= "=") (binary_expression "iVar12 + *(int *)(iVar3 + 0x298) * 8" (identifier "iVar12") (+ "+") (binary_expression "*(int *)(iVar3 + 0x298) * 8" (pointer_expression "*(int *)(iVar3 + 0x298)" (* "*") (cast_expression "(int *)(iVar3 + 0x298)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x298)" (( "(") (binary_expression "iVar3 + 0x298" (identifier "iVar3") (+ "+") (number_literal "0x298")) () ")")))) (* "*") (number_literal "8")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(local_15c < *(int *)(iVar3 + 0x18))" (( "(") (binary_expression "local_15c < *(int *)(iVar3 + 0x18)" (identifier "local_15c") (< "<") (pointer_expression "*(int *)(iVar3 + 0x18)" (* "*") (cast_expression "(int *)(iVar3 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x18)" (( "(") (binary_expression "iVar3 + 0x18" (identifier "iVar3") (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (; ";")) (} "}"))) (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 + 0x3c) = 0;\n        }" (if "if") (parenthesized_expression "(iVar12 == 0)" (( "(") (binary_expression "iVar12 == 0" (identifier "iVar12") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          *(undefined4 *)((int)param_1 + 0x3c) = 0;\n        }" ({ "{") (expression_statement "*(undefined4 *)((int)param_1 + 0x3c) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + 0x3c) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + 0x3c)" (* "*") (cast_expression "(undefined4 *)((int)param_1 + 0x3c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x3c)" (( "(") (binary_expression "(int)param_1 + 0x3c" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar6 + 0x300) != 0) {\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }" (if "if") (parenthesized_expression "(*(int *)(iVar6 + 0x300) != 0)" (( "(") (binary_expression "*(int *)(iVar6 + 0x300) != 0" (pointer_expression "*(int *)(iVar6 + 0x300)" (* "*") (cast_expression "(int *)(iVar6 + 0x300)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x300)" (( "(") (binary_expression "iVar6 + 0x300" (identifier "iVar6") (+ "+") (number_literal "0x300")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          puVar7 = *(uint **)(param_1 + 8);\n          uVar13 = *puVar7;\n          uVar15 = puVar7[1];\n          do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);\n          iVar12 = SetImageProgress();\n          if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }\n        }" ({ "{") (expression_statement "puVar7 = *(uint **)(param_1 + 8);" (assignment_expression "puVar7 = *(uint **)(param_1 + 8)" (identifier "puVar7") (= "=") (pointer_expression "*(uint **)(param_1 + 8)" (* "*") (cast_expression "(uint **)(param_1 + 8)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "uVar13 = *puVar7;" (assignment_expression "uVar13 = *puVar7" (identifier "uVar13") (= "=") (pointer_expression "*puVar7" (* "*") (identifier "puVar7"))) (; ";")) (expression_statement "uVar15 = puVar7[1];" (assignment_expression "uVar15 = puVar7[1]" (identifier "uVar15") (= "=") (subscript_expression "puVar7[1]" (identifier "puVar7") ([ "[") (number_literal "1") (] "]"))) (; ";")) (do_statement "do {\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }\n            UNLOCK();\n          } while (!bVar18);" (do "do") (compound_statement "{\n            LOCK();\n            lVar1 = *(longlong *)puVar7;\n            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;\n            if (bVar18) {\n              *(longlong *)puVar7 = 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 "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "lVar1 = *(longlong *)puVar7;" (assignment_expression "lVar1 = *(longlong *)puVar7" (identifier "lVar1") (= "=") (pointer_expression "*(longlong *)puVar7" (* "*") (cast_expression "(longlong *)puVar7" (( "(") (type_descriptor "longlong *" (type_identifier "longlong") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar7")))) (; ";")) (expression_statement "bVar18 = CONCAT44(uVar15,uVar13) == lVar1;" (assignment_expression "bVar18 = CONCAT44(uVar15,uVar13) == lVar1" (identifier "bVar18") (= "=") (binary_expression "CONCAT44(uVar15,uVar13) == lVar1" (call_expression "CONCAT44(uVar15,uVar13)" (identifier "CONCAT44") (argument_list "(uVar15,uVar13)" (( "(") (identifier "uVar15") (, ",") (identifier "uVar13") () ")"))) (== "==") (identifier "lVar1"))) (; ";")) (if_statement "if (bVar18) {\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }\n            else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }" (if "if") (parenthesized_expression "(bVar18)" (( "(") (identifier "bVar18") () ")")) (compound_statement "{\n              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);\n            }" ({ "{") (expression_statement "*(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);" (assignment_expression "*(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1)" (pointer_expression "*(longlong *)puVar7" (* "*") (cast_expression "(longlong *)puVar7" (( "(") (type_descriptor "longlong *" (type_identifier "longlong") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar7"))) (= "=") (call_expression "CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1)" (identifier "CONCAT44") (argument_list "(uVar15 + (0xfffffffe < uVar13),uVar13 + 1)" (( "(") (binary_expression "uVar15 + (0xfffffffe < uVar13)" (identifier "uVar15") (+ "+") (parenthesized_expression "(0xfffffffe < uVar13)" (( "(") (binary_expression "0xfffffffe < uVar13" (number_literal "0xfffffffe") (< "<") (identifier "uVar13")) () ")"))) (, ",") (binary_expression "uVar13 + 1" (identifier "uVar13") (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);\n              uVar13 = (uint)lVar1;\n            }" (else "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 "uVar15") (= "=") (call_expression "(uint)((ulonglong)lVar1 >> 0x20)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((ulonglong)lVar1 >> 0x20)" (( "(") (binary_expression "(ulonglong)lVar1 >> 0x20" (cast_expression "(ulonglong)lVar1" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "lVar1")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "uVar13 = (uint)lVar1;" (assignment_expression "uVar13 = (uint)lVar1" (identifier "uVar13") (= "=") (cast_expression "(uint)lVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "lVar1"))) (; ";")) (} "}")))) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(!bVar18)" (( "(") (unary_expression "!bVar18" (! "!") (identifier "bVar18")) () ")")) (; ";")) (expression_statement "iVar12 = SetImageProgress();" (assignment_expression "iVar12 = SetImageProgress()" (identifier "iVar12") (= "=") (call_expression "SetImageProgress()" (identifier "SetImageProgress") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar12 == 0) {\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }" (if "if") (parenthesized_expression "(iVar12 == 0)" (( "(") (binary_expression "iVar12 == 0" (identifier "iVar12") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            *(undefined4 *)((int)param_1 + 0x3c) = 0;\n          }" ({ "{") (expression_statement "*(undefined4 *)((int)param_1 + 0x3c) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + 0x3c) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + 0x3c)" (* "*") (cast_expression "(undefined4 *)((int)param_1 + 0x3c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x3c)" (( "(") (binary_expression "(int)param_1 + 0x3c" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}"))) (} "}")))) (expression_statement "local_140 = local_140 + 1;" (assignment_expression "local_140 = local_140 + 1" (identifier "local_140") (= "=") (binary_expression "local_140 + 1" (identifier "local_140") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar10 != local_140)" (( "(") (binary_expression "iVar10 != local_140" (identifier "iVar10") (!= "!=") (identifier "local_140")) () ")")) (; ";")) (} "}"))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0029eab0();" (call_expression "FUN_0029eab0()" (identifier "FUN_0029eab0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* 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 "DistortMethod": Some values do not have unique names */
/* WARNING: Enum "ExceptionType": Some values do not have unique names */
/* DWARF original prototype: void DistortImage._omp_fn.0(anon_struct_72_16_e79c3edd * param_0) */

void __thiscall function_1(type_1 *this)

{
  type_2 **ppRVar1;
  type_3 var_69;
  double var_13;
  type_4 *pIVar4;
  type_2 **var_14;
  type_5 *cache_view;
  double *pdVar6;
  double *pdVar7;
  type_6 *exception;
  type_7 var_29;
  type_4 *image;
  size_t var_56;
  type_8 var_64;
  type_9 *puVar11;
  double var_16;
  double var_23;
  int var_5;
  int var_6;
  type_10 *var_8;
  type_11 var_53;
  type_7 var_66;
  type_9 var_71;
  int n;
  type_12 *pPVar20;
  int var_9;
  type_9 var_70;
  type_13 *pPVar23;
  type_13 *pPVar24;
  double *var_58;
  double *var_59;
  int var_1;
  bool bVar27;
  type_14 bVar28;
  type_15 var_43;
  double var_21;
  double var_20;
  double var_19;
  double var_18;
  double var_17;
  int var_15;
  double var_24;
  int var_4;
  double var_52;
  double var_25;
  double var_39;
  double var_36;
  double var_32;
  double var_40;
  double var_37;
  double var_38;
  double var_47;
  double local_84 [2];
  type_15 local_72;
  type_13 local_70;
  int var_74;
  
  bVar28 = 0;
  var_74 = *(int *)(var_1 + 0x14);
  pIVar4 = this->distort_image;
  var_4 = var_2();
  var_5 = var_3();
  var_6 = (int)pIVar4->rows / var_4;
  var_4 = (int)pIVar4->rows % var_4;
  if (var_5 < var_4) {
    var_6 = var_6 + 1;
    var_4 = 0;
  }
  var_4 = var_4 + var_5 * var_6;
  var_6 = var_6 + var_4;
  if (var_4 < var_6) {
    var_14 = this->resample_filter;
    cache_view = this->distort_view;
    pdVar6 = this->arguments;
    var_13 = this->output_scaling;
    pdVar7 = this->coeff;
    exception = this->exception;
    var_29 = this->bestfit;
    image = this->image;
    var_56 = this->number_arguments;
    do {
      var_5 = var_3();
      var_8 = var_7(cache_view,0,var_4,pIVar4->columns,1,exception);
      if (var_8 == (type_10 *)0x0) {
        this->status = var_30;
      }
      else {
        pPVar23 = this->zero;
        pPVar24 = &local_70;
        for (var_9 = 0x14; var_9 != 0; var_9 = var_9 + -1) {
          pPVar24->storage_class = pPVar23->storage_class;
          pPVar23 = (type_13 *)((int)pPVar23 + (type_9)bVar28 * -8 + 4);
          pPVar24 = (type_13 *)((int)pPVar24 + (type_9)bVar28 * -8 + 4);
        }
        if ((*this->method == var_10) || (*this->method == var_11)) {
          var_12(var_14[var_5],var_13 * *pdVar7,pdVar7[1] * var_13,pdVar7[3] * var_13,
                              pdVar7[4] * var_13);
        }
        if (0 < (int)pIVar4->columns) {
          var_24 = 1.0;
          ppRVar1 = var_14 + var_5;
          var_15 = 0;
          do {
            var_17 = ((double)(var_15 + this->geometry->x) + (double)var_46) * var_13;
            var_53 = *this->method;
            var_16 = var_13 * ((double)(var_4 + this->geometry->y) + (double)var_46);
            var_38 = var_16;
            var_32 = var_17;
            switch(var_53) {
            case var_10:
            case var_11:
              var_38 = var_16 * pdVar7[4] + var_17 * pdVar7[3] + pdVar7[5];
              var_32 = pdVar7[1] * var_16 + *pdVar7 * var_17 + pdVar7[2];
              break;
            case PerspectiveDistortion:
              var_19 = pdVar7[6];
              var_18 = pdVar7[7];
              var_20 = var_16 * var_18 + var_17 * var_19 + 1.0;
              var_21 = pdVar7[8] * var_20;
              var_24 = 0.0;
              if (0.0 <= var_21) {
                var_24 = 1.0;
              }
              var_23 = var_22(var_20) + var_22(var_20);
              if (var_22(var_19) <= var_22(var_18)) {
                if (var_23 < var_22(var_18) * var_13) {
                  var_24 = (double)var_46 - var_21 / (var_13 * var_18);
                }
              }
              else if (var_23 < var_22(var_19) * var_13) {
                var_24 = (double)var_46 - var_21 / (var_13 * var_19);
              }
              if (var_24 <= 0.0) goto LAB_00085796;
              var_21 = pdVar7[1] * var_16 + *pdVar7 * var_17 + pdVar7[2];
              var_17 = pdVar7[3] * var_17 + var_16 * pdVar7[4] + pdVar7[5];
              var_16 = (double)DAT_0029f718 / var_20;
              var_32 = var_21 * var_16;
              var_38 = var_17 * var_16;
              var_16 = var_16 * var_16;
              var_12(*ppRVar1,var_13 * (var_20 * *pdVar7 - var_21 * var_19) * var_16,
                                  (pdVar7[1] * var_20 - var_18 * var_21) * var_16 * var_13,
                                  (pdVar7[3] * var_20 - var_17 * var_19) * var_16 * var_13,
                                  (pdVar7[4] * var_20 - var_17 * var_18) * var_16 * var_13);
              break;
            case BilinearDistortion:
              var_23 = var_17 - pdVar7[3];
              var_25 = pdVar7[2];
              var_21 = (pdVar7[6] * var_23 - (var_16 - pdVar7[7]) * var_25) + pdVar7[8];
              var_19 = *pdVar7;
              var_20 = pdVar7[4] * var_23 - (var_16 - pdVar7[7]) * var_19;
              var_18 = pdVar7[9];
              if (var_22(var_18) < var_26) {
                var_16 = -var_20 / var_21;
              }
              else {
                var_20 = var_21 * var_21 - (var_18 + var_18) * var_20;
                var_24 = 0.0;
                if (var_20 < 0.0) goto LAB_00085796;
                if (var_20 < 0.0) {
                  var_27(var_20);
                  var_18 = pdVar7[9];
                  var_19 = *pdVar7;
                  var_25 = pdVar7[2];
                }
                var_16 = (var_28(var_20) - var_21) / var_18;
              }
              var_32 = (var_23 - pdVar7[1] * var_16) / (var_25 * var_16 + var_19);
              if (var_29 != var_30) {
                var_24 = 1.0;
                goto LAB_000852c3;
              }
              var_31(*ppRVar1,var_32 - (double)var_46,
                                 var_16 - (double)var_46,&local_70,exception);
              var_24 = 1.0;
              goto LAB_00085370;
            case BilinearReverseDistortion:
              var_19 = pdVar7[2] * var_17;
              var_32 = pdVar7[3] + var_19 * var_16 + var_16 * pdVar7[1] + *pdVar7 * var_17;
              var_18 = var_17 * pdVar7[6];
              var_38 = var_16 * var_18 + var_16 * pdVar7[5] + var_17 * pdVar7[4] + pdVar7[7];
              var_12(*ppRVar1,(var_16 * pdVar7[2] + *pdVar7) * var_13,
                                  (pdVar7[1] + var_19) * var_13,
                                  (pdVar7[6] * var_16 + pdVar7[4]) * var_13,
                                  (pdVar7[5] + var_18) * var_13);
              break;
            case PolynomialDistortion:
              var_5 = (int)var_33(pdVar7[1]);
              if (var_5 < 1) {
                var_32 = 0.0;
                var_38 = 0.0;
                var_39 = 0.0;
                var_40 = 0.0;
                var_36 = 0.0;
                var_37 = 0.0;
              }
              else {
                var_9 = 0;
                var_32 = 0.0;
                var_38 = 0.0;
                var_39 = 0.0;
                var_40 = 0.0;
                var_36 = 0.0;
                var_37 = 0.0;
                do {
                  n = var_9;
                  var_18 = var_34(var_9,var_17,var_16);
                  var_19 = pdVar7[var_9 + 2];
                  var_32 = var_18 * var_19 + var_32;
                  var_20 = var_35(n,var_17,var_16);
                  var_36 = var_19 * var_20 + var_36;
                  switch(var_9) {
                  case 0:
                  case 1:
                  case 4:
                    var_19 = var_19 * 0.0;
                    var_21 = 0.0;
                    break;
                  case 2:
                    var_21 = 1.0;
                    break;
                  case 3:
                    var_19 = var_19 * var_17;
                    var_21 = var_17;
                    break;
                  case 5:
                    var_19 = var_19 * var_16;
                    var_21 = var_16;
                    break;
                  default:
                    var_21 = var_35(var_9 + -1,var_17,var_16);
                    var_19 = var_19 * var_21;
                  }
                  var_37 = var_19 + var_37;
                  var_19 = pdVar7[var_5 + var_9 + 2];
                  var_9 = var_9 + 1;
                  var_38 = var_18 * var_19 + var_38;
                  var_39 = var_20 * var_19 + var_39;
                  var_40 = var_21 * var_19 + var_40;
                } while (var_5 != var_9);
              }
              var_12(*ppRVar1,var_36 * var_13,var_37 * var_13,var_39 * var_13,
                                  var_40 * var_13);
              break;
            case var_60:
              var_19 = var_41(var_16,var_17);
              var_19 = (var_19 - *pdVar7) / var_42;
              if (var_19 - var_33(var_19) < var_33(var_19) - var_19) {
                local_72 = var_43 & 0xf3ff | 0x400;
              }
              else {
                local_72 = var_43 & 0xf3ff | 0x800;
              }
              var_17 = var_44(var_17,var_16);
              if (var_17 <= var_26) {
                var_25 = (double)(type_16)(pIVar4->columns * 2);
                var_12(*ppRVar1,(double)(type_3)var_25 * var_13,
                                    var_13 * (double)DAT_002a7fe8,var_13 * (double)DAT_002a7fe8,
                                    pdVar7[3] * var_13);
              }
              else {
                var_12(*ppRVar1,(pdVar7[1] / (var_17 * var_42)) * var_13,
                                    var_13 * (double)DAT_002a7fe8,var_13 * (double)DAT_002a7fe8,
                                    pdVar7[3] * var_13);
              }
              var_32 = (double)(image->page).x + (var_19 - var_33(var_19)) * pdVar7[1] + pdVar7[4]
                          + (double)var_46;
              var_38 = (double)(image->page).y + (pdVar7[2] - var_17) * pdVar7[3];
              break;
            case PolarDistortion:
              var_19 = pdVar7[2];
              var_18 = pdVar7[3];
              var_20 = var_41(var_17 - var_19,var_16 - var_18);
              var_21 = var_42;
              var_20 = (var_20 - (pdVar7[4] + pdVar7[5]) * (double)var_46) / var_42;
              if (var_20 - var_33(var_20) < var_33(var_20) - var_20) {
                local_72 = var_43 & 0xf3ff | 0x400;
              }
              else {
                local_72 = var_43 & 0xf3ff | 0x800;
              }
              var_20 = var_42 * (var_20 - var_33(var_20));
              var_17 = var_44(var_17 - var_19,var_16 - var_18);
              if (var_17 <= var_26) {
                var_25 = (double)(type_16)(pIVar4->columns * 2);
                var_12(*ppRVar1,(double)(type_3)var_25 * var_13,
                                    var_13 * (double)DAT_002a7fe8,var_13 * (double)DAT_002a7fe8,
                                    pdVar7[7] * var_13);
              }
              else {
                var_12(*ppRVar1,(pdVar7[6] / (var_21 * var_17)) * var_13,
                                    var_13 * (double)DAT_002a7fe8,var_13 * (double)DAT_002a7fe8,
                                    pdVar7[7] * var_13);
              }
              var_52 = (double)(type_16)image->columns;
              var_32 = (double)(image->page).x +
                          (double)(type_3)var_52 * (double)var_46 + var_20 * pdVar7[6];
              var_38 = (double)(image->page).y + (var_17 - pdVar7[1]) * pdVar7[7];
              break;
            case DePolarDistortion:
              var_17 = (double)var_46;
              var_45((double)(((float)var_15 + var_46) * (float)var_13 * (float)pdVar7[6] +
                             (float)pdVar7[4]),local_84,&var_47);
              var_16 = (var_17 + (double)var_4) * var_13 * pdVar7[7] + pdVar7[1];
              var_17 = local_84[0] * var_16 + pdVar7[2];
              var_16 = var_16 * var_47 + pdVar7[3];
LAB_00085796:
              var_32 = var_17;
              if (var_29 != var_30) goto LAB_000852cf;
              goto joined_r0x000857af;
            case Cylinder2PlaneDistortion:
              var_19 = pdVar7[5];
              var_18 = pdVar7[1];
              var_17 = (var_17 - pdVar7[4]) / var_18;
              var_20 = var_48(var_17);
              var_21 = var_49(var_20);
              var_38 = (var_16 - var_19) * var_21;
              var_12(*ppRVar1,(1.0 / (var_17 * var_17 + 1.0)) * var_13,
                                  var_13 * (double)DAT_002a7fe8,
                                  ((-var_17 * var_38 * var_21 * var_21) / var_18) * var_13,
                                  (var_38 / (var_16 - var_19)) * var_13);
              var_32 = var_20 * var_18 + pdVar7[2];
              var_38 = var_38 + pdVar7[3];
              break;
            case Plane2CylinderDistortion:
              var_19 = pdVar7[1];
              var_24 = (var_50 * var_19 - var_22(var_17 - pdVar7[4])) / var_13 +
                          (double)var_46;
              if (0.0 < var_24) {
                var_17 = (var_17 - pdVar7[4]) / var_19;
                var_18 = var_49(var_17);
                var_18 = (double)DAT_0029f718 / var_18;
                var_17 = var_51(var_17);
                var_17 = var_17 * var_19;
                var_16 = (var_16 - pdVar7[5]) * var_18;
                var_12(*ppRVar1,var_18 * var_18 * var_13,var_13 * 0.0,
                                    ((var_18 * var_16) / var_19) * var_13,var_13 * var_18);
              }
              var_32 = var_17 + pdVar7[2];
              var_38 = var_16 + pdVar7[3];
              break;
            case var_55:
            case var_54:
              var_17 = var_17 - pdVar7[8];
              var_16 = var_16 - pdVar7[9];
              var_18 = var_16 * var_16 + var_17 * var_17;
              var_19 = var_28(var_18);
              if (var_18 < 0.0) {
                var_27(var_18);
                var_53 = *this->method;
              }
              var_18 = pdVar7[7];
              var_52 = pdVar7[3];
              if (var_26 < var_19) {
                var_20 = pdVar7[1];
                var_52 = ((*pdVar7 * var_19 + var_20) * var_19 + pdVar7[2]) * var_19 + var_52;
                var_21 = pdVar7[5];
                var_18 = ((pdVar7[4] * var_19 + var_21) * var_19 + pdVar7[6]) * var_19 + var_18;
                var_20 = ((var_20 + var_20 + *pdVar7 * (double)DAT_002a9b78 * var_19) * var_19 +
                         pdVar7[2]) / var_19;
                var_19 = ((var_21 + var_21 + (double)DAT_002a9b78 * pdVar7[4] * var_19) * var_19 +
                         pdVar7[6]) / var_19;
                if (var_53 == var_54) {
                  var_52 = 1.0 / var_52;
                  var_18 = 1.0 / var_18;
                  var_20 = var_20 * -var_52 * var_52;
                  var_19 = -var_18 * var_18 * var_19;
                }
                var_32 = var_52 * var_17 + pdVar7[8];
                var_38 = var_18 * var_16 + pdVar7[9];
                var_12(*ppRVar1,(var_20 * var_17 * var_17 + var_52) * var_13,
                                    var_16 * var_20 * var_17 * var_13,
                                    var_19 * var_17 * var_16 * var_13,
                                    (var_19 * var_16 * var_16 + var_18) * var_13);
              }
              else {
                if (var_53 != var_55) {
                  var_18 = 1.0 / var_18;
                  var_52 = 1.0 / var_52;
                }
                var_12(*ppRVar1,var_13 * var_52,var_13 * (double)DAT_002a7fe8,
                                    var_13 * (double)DAT_002a7fe8,var_18 * var_13);
              }
              break;
            case ShepardsDistortion:
              if (var_56 == 0) {
                var_19 = 0.0;
                var_20 = 0.0;
                var_18 = 0.0;
              }
              else {
                var_19 = 0.0;
                var_18 = 0.0;
                var_20 = 0.0;
                var_58 = pdVar6;
                do {
                  var_21 = var_57((var_16 - var_58[3]) * (var_16 - var_58[3]) +
                               (var_17 - var_58[2]) * (var_17 - var_58[2]),*pdVar7);
                  if (var_21 < 1.0) {
                    var_21 = 1.0;
                  }
                  else {
                    var_21 = 1.0 / var_21;
                  }
                  var_59 = var_58 + 4;
                  var_20 = (*var_58 - var_58[2]) * var_21 + var_20;
                  var_18 = (var_58[1] - var_58[3]) * var_21 + var_18;
                  var_19 = var_19 + var_21;
                  var_58 = var_59;
                } while ((double *)((int)pdVar6 + (var_56 * 8 - 8 & 0xffffffe0) + 0x20) != var_59);
              }
              var_38 = var_16 + var_18 / var_19;
              var_32 = var_20 / var_19 + var_17;
            }
            var_16 = var_38;
            if (var_29 != var_30) {
LAB_000852c3:
              var_17 = var_32;
              if (*this->method != var_60) {
LAB_000852cf:
                var_32 = var_17 - (double)(image->page).x;
                var_16 = var_16 - (double)(image->page).y;
              }
            }
joined_r0x000857af:
            if (var_24 <= 0.0) {
              pPVar23 = this->invalid;
              pPVar20 = pIVar4->channel_map;
              var_8[pPVar20->offset] = pPVar23->red;
              var_8[pPVar20[1].offset] = pPVar23->green;
              var_8[pPVar20[2].offset] = pPVar23->blue;
              if (pPVar20[3].traits != var_61) {
                var_8[pPVar20[3].offset] = pPVar23->black;
              }
              if (pPVar20[4].traits != var_61) {
                if (pPVar23->alpha_trait == var_61) goto LAB_00085d68;
                var_17 = pPVar23->alpha;
                goto LAB_000853cb;
              }
            }
            else {
              var_31(*ppRVar1,var_32 - (double)var_46,
                                 var_16 - (double)var_46,&local_70,exception);
              if (var_24 < 1.0) {
                pPVar23 = this->invalid;
                var_16 = local_70.alpha * var_24 * var_62;
                var_19 = pPVar23->alpha * (1.0 - var_24) * var_62;
                var_17 = var_16 + var_19;
                if (var_17 < 0.0) {
                  var_17 = 0.0;
                  local_70.alpha = 0.0;
                }
                else if (var_17 <= 1.0) {
                  local_70.alpha = var_17 * (double)DAT_0029f710;
                }
                else {
                  var_17 = 1.0;
                  local_70.alpha = (type_17)DAT_0029f710;
                }
                var_18 = DAT_0029f738;
                if (var_26 <= var_17) {
                  var_18 = (double)DAT_0029f718 / var_17;
                }
                local_70.red = (pPVar23->red * var_19 + local_70.red * var_16) * var_18;
                local_70.green = (pPVar23->green * var_19 + local_70.green * var_16) * var_18;
                local_70.blue = (pPVar23->blue * var_19 + local_70.blue * var_16) * var_18;
                if (pPVar23->colorspace == var_63) {
                  local_70.black = var_18 * (var_19 * pPVar23->black + var_16 * local_70.black);
                }
              }
LAB_00085370:
              pPVar20 = pIVar4->channel_map;
              var_64 = pPVar20[3].traits;
              var_8[pPVar20->offset] = local_70.red;
              var_8[pPVar20[1].offset] = local_70.green;
              var_8[pPVar20[2].offset] = local_70.blue;
              if (var_64 != var_61) {
                var_8[pPVar20[3].offset] = local_70.black;
              }
              if (pPVar20[4].traits != var_61) {
                var_17 = local_70.alpha;
                if (local_70.alpha_trait == var_61) {
LAB_00085d68:
                  var_17 = (double)DAT_0029f710;
                }
LAB_000853cb:
                var_8[pPVar20[4].offset] = var_17;
              }
            }
            var_15 = var_15 + 1;
            var_8 = var_8 + pIVar4->number_channels;
          } while (var_15 < (int)pIVar4->columns);
        }
        var_66 = var_65(cache_view,exception);
        if (var_66 == var_30) {
          this->status = var_30;
        }
        if (image->progress_monitor != (type_18)0x0) {
          puVar11 = (type_9 *)this->progress;
          var_71 = *puVar11;
          var_70 = puVar11[1];
          do {
            var_67();
            var_69 = *(type_3 *)puVar11;
            bVar27 = var_68(var_70,var_71) == var_69;
            if (bVar27) {
              *(type_3 *)puVar11 = var_68(var_70 + (0xfffffffe < var_71),var_71 + 1);
            }
            else {
              var_70 = (type_9)((type_16)var_69 >> 0x20);
              var_71 = (type_9)var_69;
            }
            var_72();
          } while (!bVar27);
          var_66 = var_73(image,"Distort/Image",*this->progress,(type_16)image->rows);
          if (var_66 == var_30) {
            this->status = var_30;
          }
        }
      }
      var_4 = var_4 + 1;
    } while (var_6 != var_4);
  }
  if (var_74 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_75();
  }
  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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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: (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))))))) (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: (identifier) right: (binary_expression left: (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: (primitive_type) 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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (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)))) alternative: (else_clause (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (for_statement initializer: (assignment_expression left: (identifier) right: (number_literal)) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))) right: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (binary_expression left: (identifier) right: (pointer_expression argument: (identifier))) (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)) (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)) (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (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: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))) right: (number_literal)))))) right: (identifier)) right: (number_literal)))))) arguments: (argument_list))) (return_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: (primitive_type) 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: (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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_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: (number_literal)))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (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: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (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: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (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: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (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: (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: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (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)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (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)))) (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)))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

/* WARNING: Removing unreachable block (ram,0x000857c0) */
/* WARNING: Removing unreachable block (ram,0x000857f9) */
/* WARNING: Removing unreachable block (ram,0x00085802) */
/* WARNING: Removing unreachable block (ram,0x0008580d) */
/* WARNING: Removing unreachable block (ram,0x00085818) */
/* WARNING: Removing unreachable block (ram,0x00085d78) */
/* WARNING: Removing unreachable block (ram,0x00085f28) */
/* WARNING: Removing unreachable block (ram,0x00085dad) */
/* WARNING: Removing unreachable block (ram,0x00086260) */
/* WARNING: Removing unreachable block (ram,0x00085db9) */
/* WARNING: Removing unreachable block (ram,0x00085dc5) */
/* WARNING: Removing unreachable block (ram,0x00085ec0) */
/* WARNING: Removing unreachable block (ram,0x00085dde) */
/* WARNING: Removing unreachable block (ram,0x00085de4) */
/* WARNING: Removing unreachable block (ram,0x00085360) */
/* WARNING: Removing unreachable block (ram,0x00085e39) */

void MASKED(double *param_1)

{
  longlong lVar1;
  double dVar2;
  int iVar3;
  double *pdVar4;
  undefined4 uVar5;
  int iVar6;
  uint *puVar7;
  double dVar8;
  int iVar9;
  int iVar10;
  int iVar11;
  int iVar12;
  uint uVar13;
  int iVar14;
  uint uVar15;
  int unaff_EBP;
  undefined4 *puVar16;
  undefined4 *puVar17;
  int in_GS_OFFSET;
  bool bVar18;
  byte bVar19;
  undefined4 uVar20;
  int local_15c;
  int local_140;
  undefined4 local_70 [2];
  int local_68;
  undefined8 local_50;
  undefined8 local_48;
  undefined8 local_40;
  undefined8 local_38;
  double local_30;
  int local_20;
  
  bVar19 = 0;
  FUN_00042799();
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar3 = *(int *)((int)param_1 + 0x24);
  local_140 = omp_get_num_threads();
  iVar9 = omp_get_thread_num();
  iVar10 = *(int *)(iVar3 + 0x1c) / local_140;
  local_140 = *(int *)(iVar3 + 0x1c) % local_140;
  if (iVar9 < local_140) {
    iVar10 = iVar10 + 1;
    local_140 = 0;
  }
  local_140 = local_140 + iVar9 * iVar10;
  iVar10 = iVar10 + local_140;
  if (local_140 < iVar10) {
    iVar9 = *(int *)(param_1 + 7);
    dVar2 = *param_1;
    pdVar4 = *(double **)(param_1 + 4);
    uVar5 = *(undefined4 *)((int)param_1 + 0x1c);
    iVar6 = *(int *)(param_1 + 1);
    do {
      iVar11 = omp_get_thread_num();
      uVar20 = uVar5;
      iVar12 = QueueCacheViewAuthenticPixels();
      if (iVar12 == 0) {
        *(undefined4 *)((int)param_1 + 0x3c) = 0;
      }
      else {
        puVar16 = *(undefined4 **)((int)param_1 + 0x34);
        puVar17 = local_70;
        for (iVar14 = 0x14; iVar14 != 0; iVar14 = iVar14 + -1) {
          *puVar17 = *puVar16;
          puVar16 = puVar16 + (uint)bVar19 * -2 + 1;
          puVar17 = puVar17 + (uint)bVar19 * -2 + 1;
        }
        if ((**(int **)((int)param_1 + 0xc) == 1) || (**(int **)((int)param_1 + 0xc) == 0x13)) {
          ScaleResampleFilter(*(undefined4 *)(iVar9 + iVar11 * 4),dVar2 * *pdVar4,pdVar4[1] * dVar2,
                              pdVar4[3] * dVar2,pdVar4[4] * dVar2,uVar20);
        }
        if (0 < *(int *)(iVar3 + 0x18)) {
          local_15c = 0;
          do {
            if (**(uint **)((int)param_1 + 0xc) < 0x14) {
                    /* WARNING: Could not recover jumptable at 0x00084e9d. Too many branches */
                    /* WARNING: Treating indirect jump as call */
              (*(code *)(*(int *)(unaff_EBP + 0x22ad1e + **(uint **)((int)param_1 + 0xc) * 4) +
                        unaff_EBP + 0x35434a))();
              return;
            }
            ResamplePixelColor();
            iVar11 = *(int *)(iVar3 + 0x2a8);
            iVar14 = *(int *)(iVar11 + 0x28);
            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 8) * 8) = local_50;
            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x14) * 8) = local_48;
            *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x20) * 8) = local_40;
            if (iVar14 != 0) {
              *(undefined8 *)(iVar12 + *(int *)(iVar11 + 0x2c) * 8) = local_38;
            }
            if (*(int *)(iVar11 + 0x34) != 0) {
              dVar8 = local_30;
              if (local_68 == 0) {
                dVar8 = (double)*(float *)(unaff_EBP + 0x21aa5a);
              }
              *(double *)(iVar12 + *(int *)(iVar11 + 0x38) * 8) = dVar8;
            }
            local_15c = local_15c + 1;
            iVar12 = iVar12 + *(int *)(iVar3 + 0x298) * 8;
          } while (local_15c < *(int *)(iVar3 + 0x18));
        }
        iVar12 = SyncCacheViewAuthenticPixels();
        if (iVar12 == 0) {
          *(undefined4 *)((int)param_1 + 0x3c) = 0;
        }
        if (*(int *)(iVar6 + 0x300) != 0) {
          puVar7 = *(uint **)(param_1 + 8);
          uVar13 = *puVar7;
          uVar15 = puVar7[1];
          do {
            LOCK();
            lVar1 = *(longlong *)puVar7;
            bVar18 = CONCAT44(uVar15,uVar13) == lVar1;
            if (bVar18) {
              *(longlong *)puVar7 = CONCAT44(uVar15 + (0xfffffffe < uVar13),uVar13 + 1);
            }
            else {
              uVar15 = (uint)((ulonglong)lVar1 >> 0x20);
              uVar13 = (uint)lVar1;
            }
            UNLOCK();
          } while (!bVar18);
          iVar12 = SetImageProgress();
          if (iVar12 == 0) {
            *(undefined4 *)((int)param_1 + 0x3c) = 0;
          }
        }
      }
      local_140 = local_140 + 1;
    } while (iVar10 != local_140);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0029eab0();
}

