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

void __thiscall IntegralRotateImage__omp_fn_3(anon_struct_40_9_e30fb923 *this)

{
  Image *image;
  size_t sVar1;
  Image *pIVar2;
  CacheView *cache_view;
  CacheView *cache_view_00;
  ExceptionInfo *exception;
  size_t sVar3;
  size_t sVar4;
  PixelChannelMap *pPVar5;
  PixelChannelMap *pPVar6;
  PixelChannel PVar7;
  uint uVar8;
  int iVar9;
  int iVar10;
  int iVar11;
  int iVar12;
  size_t sVar13;
  Quantum *pQVar14;
  Quantum *pQVar15;
  MagickBooleanType MVar16;
  Quantum *pQVar17;
  PixelChannelMap *pPVar18;
  int unaff_EDI;
  size_t columns;
  size_t local_78;
  Quantum *local_74;
  int local_70;
  size_t local_44;
  int local_40;
  int local_3c;
  
  __x86_get_pc_thunk_di();
  image = this->image;
  sVar1 = *this->tile_height;
  iVar9 = omp_get_num_threads();
  iVar10 = omp_get_thread_num();
  iVar11 = (int)((sVar1 - 1) + image->rows) / (int)sVar1;
  iVar12 = iVar11 / iVar9;
  iVar11 = iVar11 % iVar9;
  if (iVar10 < iVar11) {
    iVar12 = iVar12 + 1;
    iVar11 = 0;
  }
  iVar11 = iVar11 + iVar10 * iVar12;
  if (iVar11 < iVar12 + iVar11) {
    pIVar2 = this->rotate_image;
    cache_view = this->rotate_view;
    cache_view_00 = this->image_view;
    exception = this->exception;
    local_3c = iVar11 * sVar1;
    do {
      if (this->status != MagickFalse) {
        sVar13 = image->columns;
        if (0 < (int)sVar13) {
          local_40 = 0;
          local_44 = *this->tile_width;
          do {
            columns = sVar13 - local_40;
            if ((int)(local_44 + local_40) <= (int)sVar13) {
              columns = local_44;
            }
            sVar13 = image->rows - local_3c;
            if ((int)(*this->tile_height + local_3c) <= (int)image->rows) {
              sVar13 = *this->tile_height;
            }
            pQVar14 = GetCacheViewVirtualPixels
                                (cache_view_00,local_40,local_3c,columns,sVar13,exception);
            if (pQVar14 == (Quantum *)0x0) {
              this->status = MagickFalse;
              break;
            }
            if (0 < (int)columns) {
              local_70 = local_40;
              do {
                if (this->status != MagickFalse) {
                  pQVar15 = QueueCacheViewAuthenticPixels
                                      (cache_view,(pIVar2->columns - local_3c) - sVar13,local_70,
                                       sVar13,1,exception);
                  if (pQVar15 != (Quantum *)0x0) {
                    sVar3 = image->number_channels;
                    local_74 = (Quantum *)
                               ((((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +
                               (int)pQVar14);
                    if (0 < (int)sVar13) {
                      local_78 = 0;
                      sVar4 = pIVar2->number_channels;
                      do {
                        if (0 < (int)sVar3) {
                          pPVar5 = image->channel_map;
                          pPVar6 = pIVar2->channel_map;
                          pQVar17 = local_74;
                          pPVar18 = pPVar5;
                          do {
                            PVar7 = pPVar18->channel;
                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&
                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {
                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;
                            }
                            pPVar18 = pPVar18 + 1;
                            pQVar17 = pQVar17 + 1;
                          } while (pPVar18 != pPVar5 + sVar3);
                        }
                        local_78 = local_78 + 1;
                        local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);
                        pQVar15 = pQVar15 + sVar4;
                      } while (local_78 != sVar13);
                    }
                    MVar16 = SyncCacheViewAuthenticPixels(cache_view,exception);
                    if (MVar16 != MagickFalse) goto LAB_00185782;
                  }
                  this->status = MagickFalse;
                }
LAB_00185782:
                local_70 = local_70 + 1;
              } while (columns + local_40 != local_70);
            }
            local_44 = *this->tile_width;
            local_40 = local_40 + local_44;
            sVar13 = image->columns;
          } while (local_40 < (int)sVar13);
        }
        if (image->progress_monitor != (MagickProgressMonitor)0x0) {
          uVar8 = image->rows;
          iVar9 = *this->tile_height + (int)this->progress;
          iVar10 = *(int *)((int)&this->progress + 4) +
                   (uint)CARRY4(*this->tile_height,(uint)this->progress);
          *(int *)&this->progress = iVar9;
          *(int *)((int)&this->progress + 4) = iVar10;
          MVar16 = SetImageProgress(image,(char *)(unaff_EDI + 0x142477),CONCAT44(iVar10,iVar9),
                                    (ulonglong)uVar8);
          if (MVar16 == MagickFalse) {
            this->status = MagickFalse;
          }
        }
      }
      local_3c = local_3c + sVar1;
    } while (local_3c < (int)((iVar12 + iVar11) * sVar1));
  }
  return;
}



void FUN_00185490(uint *param_1)

{
  int iVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  uint uVar5;
  uint uVar6;
  uint uVar7;
  int iVar8;
  int iVar9;
  int *piVar10;
  int iVar11;
  undefined4 uVar12;
  int iVar13;
  int iVar14;
  int iVar15;
  int iVar16;
  int iVar17;
  int iVar18;
  uint uVar19;
  undefined8 *puVar20;
  int *piVar21;
  uint uVar22;
  int unaff_EDI;
  int local_78;
  undefined8 *local_74;
  int local_70;
  int local_44;
  int local_40;
  int local_3c;
  
  FUN_0004c803();
  uVar2 = param_1[2];
  iVar3 = *(int *)param_1[7];
  iVar13 = omp_get_num_threads();
  iVar14 = omp_get_thread_num();
  iVar15 = (iVar3 + -1 + *(int *)(uVar2 + 0x1c)) / iVar3;
  iVar16 = iVar15 / iVar13;
  iVar15 = iVar15 % iVar13;
  if (iVar14 < iVar15) {
    iVar16 = iVar16 + 1;
    iVar15 = 0;
  }
  iVar15 = iVar15 + iVar14 * iVar16;
  if (iVar15 < iVar16 + iVar15) {
    uVar4 = param_1[6];
    uVar5 = param_1[5];
    uVar6 = param_1[4];
    uVar7 = param_1[3];
    local_3c = iVar15 * iVar3;
    do {
      if (param_1[9] != 0) {
        iVar13 = *(int *)(uVar2 + 0x18);
        if (0 < iVar13) {
          local_40 = 0;
          local_44 = *(int *)param_1[8];
          do {
            iVar14 = iVar13 - local_40;
            if (local_44 + local_40 <= iVar13) {
              iVar14 = local_44;
            }
            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;
            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {
              iVar13 = *(int *)param_1[7];
            }
            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);
            if (iVar17 == 0) {
              param_1[9] = 0;
              break;
            }
            if (0 < iVar14) {
              local_70 = local_40;
              do {
                if (param_1[9] != 0) {
                  iVar18 = QueueCacheViewAuthenticPixels
                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,
                                      iVar13,1,uVar7);
                  if (iVar18 != 0) {
                    iVar8 = *(int *)(uVar2 + 0x298);
                    local_74 = (undefined8 *)
                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +
                               iVar17);
                    if (0 < iVar13) {
                      local_78 = 0;
                      iVar9 = *(int *)(uVar4 + 0x298);
                      do {
                        if (0 < iVar8) {
                          piVar10 = *(int **)(uVar2 + 0x2a8);
                          iVar11 = *(int *)(uVar4 + 0x2a8);
                          puVar20 = local_74;
                          piVar21 = piVar10;
                          do {
                            iVar1 = iVar11 + *piVar21 * 0xc;
                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {
                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;
                            }
                            piVar21 = piVar21 + 3;
                            puVar20 = puVar20 + 1;
                          } while (piVar21 != piVar10 + iVar8 * 3);
                        }
                        local_78 = local_78 + 1;
                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);
                        iVar18 = iVar18 + iVar9 * 8;
                      } while (local_78 != iVar13);
                    }
                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);
                    if (iVar18 != 0) goto LAB_00185782;
                  }
                  param_1[9] = 0;
                }
LAB_00185782:
                local_70 = local_70 + 1;
              } while (iVar14 + local_40 != local_70);
            }
            local_44 = *(int *)param_1[8];
            local_40 = local_40 + local_44;
            iVar13 = *(int *)(uVar2 + 0x18);
          } while (local_40 < iVar13);
        }
        if (*(int *)(uVar2 + 0x300) != 0) {
          uVar12 = *(undefined4 *)(uVar2 + 0x1c);
          uVar19 = *(uint *)param_1[7] + *param_1;
          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);
          *param_1 = uVar19;
          param_1[1] = uVar22;
          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);
          if (iVar13 == 0) {
            param_1[9] = 0;
          }
        }
      }
      local_3c = local_3c + iVar3;
    } while (local_3c < (iVar16 + iVar15) * iVar3);
  }
  return;
}


PUSH EBP
PUSH EDI
CALL 0x0004c803
ADD EDI,0x253b69
PUSH ESI
PUSH EBX
SUB ESP,0x6c
MOV EAX,dword ptr [ESP + 0x80]
MOV ECX,dword ptr [ESP + 0x80]
MOV EBX,EDI
MOV dword ptr [ESP + 0x30],EDI
MOV EAX,dword ptr [EAX + 0x8]
MOV dword ptr [ESP + 0x18],EAX
MOV EAX,dword ptr [ECX + 0x1c]
MOV EBP,dword ptr [EAX]
MOV dword ptr [ESP + 0x54],EBP
CALL 0x00030850
MOV ESI,EAX
CALL 0x000317c0
MOV ECX,EAX
MOV EAX,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [EAX + 0x1c]
LEA EAX,[EBP + EAX*0x1 + -0x1]
CDQ
IDIV EBP
CDQ
IDIV ESI
CMP ECX,EDX
JGE 0x001854ee
ADD EAX,0x1
XOR EDX,EDX
IMUL ECX,EAX
ADD EDX,ECX
ADD EAX,EDX
CMP EDX,EAX
JGE 0x0018582e
MOV EDI,dword ptr [ESP + 0x80]
MOV EDI,dword ptr [EDI + 0x18]
MOV dword ptr [ESP + 0x14],EDI
MOV EDI,dword ptr [ESP + 0x80]
MOV EDI,dword ptr [EDI + 0x14]
MOV dword ptr [ESP + 0x44],EDI
MOV EDI,dword ptr [ESP + 0x80]
MOV EDI,dword ptr [EDI + 0x10]
MOV dword ptr [ESP + 0x50],EDI
MOV EDI,dword ptr [ESP + 0x80]
MOV EDI,dword ptr [EDI + 0xc]
MOV dword ptr [ESP + 0x34],EDI
MOV EDI,dword ptr [ESP + 0x54]
IMUL EAX,EDI
IMUL EDX,EDI
MOV dword ptr [ESP + 0x58],EAX
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [ESP + 0x40],EDX
LEA EAX,[EAX + 0xffeee90e]
MOV dword ptr [ESP + 0x5c],EAX
MOV EAX,dword ptr [ESP + 0x80]
MOV EAX,dword ptr [EAX + 0x24]
TEST EAX,EAX
JZ 0x00185818
MOV EAX,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [EAX + 0x18]
TEST EAX,EAX
JLE 0x001857bc
MOV EDI,dword ptr [ESP + 0x80]
MOV dword ptr [ESP + 0x3c],0x0
MOV EDX,dword ptr [EDI + 0x20]
MOV EDI,dword ptr [EDX]
MOV dword ptr [ESP + 0x38],EDI
NOP
MOV EBX,dword ptr [ESP + 0x38]
MOV EDX,EAX
MOV ESI,dword ptr [ESP + 0x3c]
MOV EBP,dword ptr [ESP + 0x40]
MOV ECX,EBX
ADD ECX,ESI
SUB EDX,ESI
CMP ECX,EAX
MOV EAX,dword ptr [ESP + 0x80]
MOV EDI,EDX
CMOVLE EDI,EBX
MOV dword ptr [ESP + 0x38],EDI
MOV EAX,dword ptr [EAX + 0x1c]
MOV EBX,dword ptr [EAX]
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,EBX
MOV EAX,dword ptr [EAX + 0x1c]
ADD ECX,EBP
MOV EDX,EAX
SUB EDX,EBP
CMP ECX,EAX
CMOVLE EDX,EBX
SUB ESP,0x8
MOV dword ptr [ESP + 0x18],EDX
PUSH dword ptr [ESP + 0x3c]
PUSH EDX
PUSH EDI
PUSH EBP
PUSH ESI
PUSH dword ptr [ESP + 0x6c]
MOV EBX,dword ptr [ESP + 0x50]
CALL 0x00031280
MOV dword ptr [ESP + 0x68],EAX
ADD ESP,0x20
TEST EAX,EAX
JZ 0x00185836
TEST EDI,EDI
JLE 0x00185795
MOV EAX,dword ptr [ESP + 0x10]
MOV EDI,dword ptr [ESP + 0x38]
MOV ECX,dword ptr [ESP + 0x3c]
SUB EAX,0x1
IMUL EAX,EDI
ADD EDI,ECX
MOV dword ptr [ESP + 0xc],ECX
MOV dword ptr [ESP + 0x2c],EDI
SUB EAX,ECX
MOV dword ptr [ESP + 0x4c],EAX
LEA ESI,[ESI]
MOV EAX,dword ptr [ESP + 0x80]
MOV EAX,dword ptr [EAX + 0x24]
TEST EAX,EAX
JZ 0x00185782
SUB ESP,0x8
PUSH dword ptr [ESP + 0x3c]
PUSH 0x1
MOV ESI,dword ptr [ESP + 0x20]
PUSH ESI
MOV EBP,dword ptr [ESP + 0x20]
PUSH EBP
MOV EAX,dword ptr [ESP + 0x2c]
MOV EDI,dword ptr [EAX + 0x18]
MOV EAX,EDI
SUB EAX,dword ptr [ESP + 0x58]
MOV dword ptr [ESP + 0x18],EDI
SUB EAX,ESI
PUSH EAX
PUSH dword ptr [ESP + 0x60]
MOV EBX,dword ptr [ESP + 0x50]
CALL 0x000339a0
ADD ESP,0x20
MOV EDI,EAX
TEST EAX,EAX
JZ 0x00185774
MOV ECX,dword ptr [ESP + 0x18]
MOV EDX,dword ptr [ESP + 0x4c]
MOV ECX,dword ptr [ECX + 0x298]
ADD EDX,EBP
LEA EAX,[ECX*0x8 + 0x0]
MOV dword ptr [ESP + 0x1c],ECX
IMUL EDX,EAX
ADD EDX,dword ptr [ESP + 0x48]
TEST ESI,ESI
MOV dword ptr [ESP + 0x8],EDX
JLE 0x00185759
IMUL EAX,dword ptr [ESP + 0x38]
MOV dword ptr [ESP + 0x4],0x0
MOV EBX,EAX
MOV EAX,dword ptr [ESP + 0x14]
NEG EBX
MOV dword ptr [ESP + 0x20],EBX
MOV EAX,dword ptr [EAX + 0x298]
MOV dword ptr [ESP],EAX
SHL EAX,0x3
MOV dword ptr [ESP + 0x24],EAX
LEA EAX,[ECX + ECX*0x2]
SHL EAX,0x2
MOV dword ptr [ESP + 0x28],EAX
LEA ESI,[ESI]
MOV EAX,dword ptr [ESP + 0x1c]
TEST EAX,EAX
JLE 0x0018573e
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,dword ptr [ESP + 0x8]
MOV ESI,dword ptr [EAX + 0x2a8]
MOV EAX,dword ptr [ESP + 0x14]
MOV EDX,ESI
MOV EBP,dword ptr [EAX + 0x2a8]
MOV EAX,dword ptr [ESP + 0x28]
ADD EAX,ESI
MOV dword ptr [ESP],EAX
NOP
LEA ESI,[ESI]
MOV EAX,dword ptr [EDX]
LEA EAX,[EAX + EAX*0x2]
SHL EAX,0x2
LEA EBX,[EBP + EAX*0x1]
MOV EAX,dword ptr [ESI + EAX*0x1 + 0x4]
TEST EAX,EAX
JZ 0x00185733
MOV EAX,dword ptr [EBX + 0x4]
TEST EAX,EAX
JZ 0x00185733
MOV EAX,dword ptr [EBX + 0x8]
FLD qword ptr [ECX]
FSTP qword ptr [EDI + EAX*0x8]
ADD EDX,0xc
ADD ECX,0x8
CMP EDX,dword ptr [ESP]
JNZ 0x00185710
MOV ESI,dword ptr [ESP + 0x20]
ADD dword ptr [ESP + 0x4],0x1
ADD dword ptr [ESP + 0x8],ESI
ADD EDI,dword ptr [ESP + 0x24]
MOV EAX,dword ptr [ESP + 0x4]
CMP EAX,dword ptr [ESP + 0x10]
JNZ 0x001856e0
SUB ESP,0x8
PUSH dword ptr [ESP + 0x3c]
PUSH dword ptr [ESP + 0x50]
MOV EBX,dword ptr [ESP + 0x40]
CALL 0x00031800
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00185782
MOV EAX,dword ptr [ESP + 0x80]
MOV dword ptr [EAX + 0x24],0x0
ADD dword ptr [ESP + 0xc],0x1
MOV EAX,dword ptr [ESP + 0xc]
CMP dword ptr [ESP + 0x2c],EAX
JNZ 0x00185628
MOV EAX,dword ptr [ESP + 0x80]
MOV EAX,dword ptr [EAX + 0x20]
MOV EDI,dword ptr [EAX]
MOV EAX,dword ptr [ESP + 0x18]
ADD dword ptr [ESP + 0x3c],EDI
MOV dword ptr [ESP + 0x38],EDI
MOV EAX,dword ptr [EAX + 0x18]
MOV EDI,dword ptr [ESP + 0x3c]
CMP EAX,EDI
JG 0x00185590
MOV EDI,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [EDI + 0x300]
TEST EAX,EAX
JZ 0x00185818
MOV EAX,dword ptr [ESP + 0x80]
XOR EBX,EBX
XOR EDX,EDX
MOV ESI,dword ptr [ESP + 0x80]
MOV ECX,dword ptr [EDI + 0x1c]
MOV EAX,dword ptr [EAX + 0x1c]
MOV EAX,dword ptr [EAX]
ADD EAX,dword ptr [ESI]
ADC EDX,dword ptr [ESI + 0x4]
SUB ESP,0x8
MOV dword ptr [ESI],EAX
MOV dword ptr [ESI + 0x4],EDX
PUSH EBX
PUSH ECX
PUSH EDX
PUSH EAX
PUSH dword ptr [ESP + 0x74]
PUSH EDI
MOV EBX,dword ptr [ESP + 0x50]
CALL 0x00033840
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x00185818
MOV EAX,dword ptr [ESP + 0x80]
MOV dword ptr [EAX + 0x24],0x0
MOV EDI,dword ptr [ESP + 0x54]
ADD dword ptr [ESP + 0x40],EDI
MOV EAX,dword ptr [ESP + 0x40]
CMP dword ptr [ESP + 0x58],EAX
JG 0x00185555
ADD ESP,0x6c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x80]
MOV dword ptr [EAX + 0x24],0x0
JMP 0x001857bc
(translation_unit "void FUN_00185490(uint *param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  int iVar8;\n  int iVar9;\n  int *piVar10;\n  int iVar11;\n  undefined4 uVar12;\n  int iVar13;\n  int iVar14;\n  int iVar15;\n  int iVar16;\n  int iVar17;\n  int iVar18;\n  uint uVar19;\n  undefined8 *puVar20;\n  int *piVar21;\n  uint uVar22;\n  int unaff_EDI;\n  int local_78;\n  undefined8 *local_74;\n  int local_70;\n  int local_44;\n  int local_40;\n  int local_3c;\n  \n  FUN_0004c803();\n  uVar2 = param_1[2];\n  iVar3 = *(int *)param_1[7];\n  iVar13 = omp_get_num_threads();\n  iVar14 = omp_get_thread_num();\n  iVar15 = (iVar3 + -1 + *(int *)(uVar2 + 0x1c)) / iVar3;\n  iVar16 = iVar15 / iVar13;\n  iVar15 = iVar15 % iVar13;\n  if (iVar14 < iVar15) {\n    iVar16 = iVar16 + 1;\n    iVar15 = 0;\n  }\n  iVar15 = iVar15 + iVar14 * iVar16;\n  if (iVar15 < iVar16 + iVar15) {\n    uVar4 = param_1[6];\n    uVar5 = param_1[5];\n    uVar6 = param_1[4];\n    uVar7 = param_1[3];\n    local_3c = iVar15 * iVar3;\n    do {\n      if (param_1[9] != 0) {\n        iVar13 = *(int *)(uVar2 + 0x18);\n        if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }\n        if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }\n      }\n      local_3c = local_3c + iVar3;\n    } while (local_3c < (iVar16 + iVar15) * iVar3);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00185490(uint *param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  int iVar8;\n  int iVar9;\n  int *piVar10;\n  int iVar11;\n  undefined4 uVar12;\n  int iVar13;\n  int iVar14;\n  int iVar15;\n  int iVar16;\n  int iVar17;\n  int iVar18;\n  uint uVar19;\n  undefined8 *puVar20;\n  int *piVar21;\n  uint uVar22;\n  int unaff_EDI;\n  int local_78;\n  undefined8 *local_74;\n  int local_70;\n  int local_44;\n  int local_40;\n  int local_3c;\n  \n  FUN_0004c803();\n  uVar2 = param_1[2];\n  iVar3 = *(int *)param_1[7];\n  iVar13 = omp_get_num_threads();\n  iVar14 = omp_get_thread_num();\n  iVar15 = (iVar3 + -1 + *(int *)(uVar2 + 0x1c)) / iVar3;\n  iVar16 = iVar15 / iVar13;\n  iVar15 = iVar15 % iVar13;\n  if (iVar14 < iVar15) {\n    iVar16 = iVar16 + 1;\n    iVar15 = 0;\n  }\n  iVar15 = iVar15 + iVar14 * iVar16;\n  if (iVar15 < iVar16 + iVar15) {\n    uVar4 = param_1[6];\n    uVar5 = param_1[5];\n    uVar6 = param_1[4];\n    uVar7 = param_1[3];\n    local_3c = iVar15 * iVar3;\n    do {\n      if (param_1[9] != 0) {\n        iVar13 = *(int *)(uVar2 + 0x18);\n        if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }\n        if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }\n      }\n      local_3c = local_3c + iVar3;\n    } while (local_3c < (iVar16 + iVar15) * iVar3);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00185490(uint *param_1)" identifier (parameter_list "(uint *param_1)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  int iVar8;\n  int iVar9;\n  int *piVar10;\n  int iVar11;\n  undefined4 uVar12;\n  int iVar13;\n  int iVar14;\n  int iVar15;\n  int iVar16;\n  int iVar17;\n  int iVar18;\n  uint uVar19;\n  undefined8 *puVar20;\n  int *piVar21;\n  uint uVar22;\n  int unaff_EDI;\n  int local_78;\n  undefined8 *local_74;\n  int local_70;\n  int local_44;\n  int local_40;\n  int local_3c;\n  \n  FUN_0004c803();\n  uVar2 = param_1[2];\n  iVar3 = *(int *)param_1[7];\n  iVar13 = omp_get_num_threads();\n  iVar14 = omp_get_thread_num();\n  iVar15 = (iVar3 + -1 + *(int *)(uVar2 + 0x1c)) / iVar3;\n  iVar16 = iVar15 / iVar13;\n  iVar15 = iVar15 % iVar13;\n  if (iVar14 < iVar15) {\n    iVar16 = iVar16 + 1;\n    iVar15 = 0;\n  }\n  iVar15 = iVar15 + iVar14 * iVar16;\n  if (iVar15 < iVar16 + iVar15) {\n    uVar4 = param_1[6];\n    uVar5 = param_1[5];\n    uVar6 = param_1[4];\n    uVar7 = param_1[3];\n    local_3c = iVar15 * iVar3;\n    do {\n      if (param_1[9] != 0) {\n        iVar13 = *(int *)(uVar2 + 0x18);\n        if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }\n        if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }\n      }\n      local_3c = local_3c + iVar3;\n    } while (local_3c < (iVar16 + iVar15) * iVar3);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int *piVar10;" primitive_type (pointer_declarator "*piVar10" * identifier) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "undefined4 uVar12;" type_identifier identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "int iVar15;" primitive_type identifier ;) (declaration "int iVar16;" primitive_type identifier ;) (declaration "int iVar17;" primitive_type identifier ;) (declaration "int iVar18;" primitive_type identifier ;) (declaration "uint uVar19;" type_identifier identifier ;) (declaration "undefined8 *puVar20;" type_identifier (pointer_declarator "*puVar20" * identifier) ;) (declaration "int *piVar21;" primitive_type (pointer_declarator "*piVar21" * identifier) ;) (declaration "uint uVar22;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "int local_78;" primitive_type identifier ;) (declaration "undefined8 *local_74;" type_identifier (pointer_declarator "*local_74" * identifier) ;) (declaration "int local_70;" primitive_type identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (expression_statement "FUN_0004c803();" (call_expression "FUN_0004c803()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "iVar3 = *(int *)param_1[7];" (assignment_expression "iVar3 = *(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 "*" *)) ) (subscript_expression "param_1[7]" identifier [ number_literal ])))) ;) (expression_statement "iVar13 = omp_get_num_threads();" (assignment_expression "iVar13 = 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 = (iVar3 + -1 + *(int *)(uVar2 + 0x1c)) / iVar3;" (assignment_expression "iVar15 = (iVar3 + -1 + *(int *)(uVar2 + 0x1c)) / iVar3" identifier = (binary_expression "(iVar3 + -1 + *(int *)(uVar2 + 0x1c)) / iVar3" (parenthesized_expression "(iVar3 + -1 + *(int *)(uVar2 + 0x1c))" ( (binary_expression "iVar3 + -1 + *(int *)(uVar2 + 0x1c)" (binary_expression "iVar3 + -1" identifier + number_literal) + (pointer_expression "*(int *)(uVar2 + 0x1c)" * (cast_expression "(int *)(uVar2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 0x1c)" ( (binary_expression "uVar2 + 0x1c" identifier + number_literal) ))))) )) / identifier)) ;) (expression_statement "iVar16 = iVar15 / iVar13;" (assignment_expression "iVar16 = iVar15 / iVar13" identifier = (binary_expression "iVar15 / iVar13" identifier / identifier)) ;) (expression_statement "iVar15 = iVar15 % iVar13;" (assignment_expression "iVar15 = iVar15 % iVar13" identifier = (binary_expression "iVar15 % iVar13" identifier % identifier)) ;) (if_statement "if (iVar14 < iVar15) {\n    iVar16 = iVar16 + 1;\n    iVar15 = 0;\n  }" if (parenthesized_expression "(iVar14 < iVar15)" ( (binary_expression "iVar14 < iVar15" identifier < identifier) )) (compound_statement "{\n    iVar16 = iVar16 + 1;\n    iVar15 = 0;\n  }" { (expression_statement "iVar16 = iVar16 + 1;" (assignment_expression "iVar16 = iVar16 + 1" identifier = (binary_expression "iVar16 + 1" identifier + number_literal)) ;) (expression_statement "iVar15 = 0;" (assignment_expression "iVar15 = 0" identifier = number_literal) ;) })) (expression_statement "iVar15 = iVar15 + iVar14 * iVar16;" (assignment_expression "iVar15 = iVar15 + iVar14 * iVar16" identifier = (binary_expression "iVar15 + iVar14 * iVar16" identifier + (binary_expression "iVar14 * iVar16" identifier * identifier))) ;) (if_statement "if (iVar15 < iVar16 + iVar15) {\n    uVar4 = param_1[6];\n    uVar5 = param_1[5];\n    uVar6 = param_1[4];\n    uVar7 = param_1[3];\n    local_3c = iVar15 * iVar3;\n    do {\n      if (param_1[9] != 0) {\n        iVar13 = *(int *)(uVar2 + 0x18);\n        if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }\n        if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }\n      }\n      local_3c = local_3c + iVar3;\n    } while (local_3c < (iVar16 + iVar15) * iVar3);\n  }" if (parenthesized_expression "(iVar15 < iVar16 + iVar15)" ( (binary_expression "iVar15 < iVar16 + iVar15" identifier < (binary_expression "iVar16 + iVar15" identifier + identifier)) )) (compound_statement "{\n    uVar4 = param_1[6];\n    uVar5 = param_1[5];\n    uVar6 = param_1[4];\n    uVar7 = param_1[3];\n    local_3c = iVar15 * iVar3;\n    do {\n      if (param_1[9] != 0) {\n        iVar13 = *(int *)(uVar2 + 0x18);\n        if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }\n        if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }\n      }\n      local_3c = local_3c + iVar3;\n    } while (local_3c < (iVar16 + iVar15) * iVar3);\n  }" { (expression_statement "uVar4 = param_1[6];" (assignment_expression "uVar4 = param_1[6]" identifier = (subscript_expression "param_1[6]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = param_1[5];" (assignment_expression "uVar5 = param_1[5]" identifier = (subscript_expression "param_1[5]" identifier [ number_literal ])) ;) (expression_statement "uVar6 = param_1[4];" (assignment_expression "uVar6 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "uVar7 = param_1[3];" (assignment_expression "uVar7 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "local_3c = iVar15 * iVar3;" (assignment_expression "local_3c = iVar15 * iVar3" identifier = (binary_expression "iVar15 * iVar3" identifier * identifier)) ;) (do_statement "do {\n      if (param_1[9] != 0) {\n        iVar13 = *(int *)(uVar2 + 0x18);\n        if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }\n        if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }\n      }\n      local_3c = local_3c + iVar3;\n    } while (local_3c < (iVar16 + iVar15) * iVar3);" do (compound_statement "{\n      if (param_1[9] != 0) {\n        iVar13 = *(int *)(uVar2 + 0x18);\n        if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }\n        if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }\n      }\n      local_3c = local_3c + iVar3;\n    }" { (if_statement "if (param_1[9] != 0) {\n        iVar13 = *(int *)(uVar2 + 0x18);\n        if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }\n        if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }\n      }" if (parenthesized_expression "(param_1[9] != 0)" ( (binary_expression "param_1[9] != 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        iVar13 = *(int *)(uVar2 + 0x18);\n        if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }\n        if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }\n      }" { (expression_statement "iVar13 = *(int *)(uVar2 + 0x18);" (assignment_expression "iVar13 = *(int *)(uVar2 + 0x18)" identifier = (pointer_expression "*(int *)(uVar2 + 0x18)" * (cast_expression "(int *)(uVar2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 0x18)" ( (binary_expression "uVar2 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }" if (parenthesized_expression "(0 < iVar13)" ( (binary_expression "0 < iVar13" number_literal < identifier) )) (compound_statement "{\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }" { (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (expression_statement "local_44 = *(int *)param_1[8];" (assignment_expression "local_44 = *(int *)param_1[8]" identifier = (pointer_expression "*(int *)param_1[8]" * (cast_expression "(int *)param_1[8]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[8]" identifier [ number_literal ])))) ;) (do_statement "do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);" do (compound_statement "{\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          }" { (expression_statement "iVar14 = iVar13 - local_40;" (assignment_expression "iVar14 = iVar13 - local_40" identifier = (binary_expression "iVar13 - local_40" identifier - identifier)) ;) (if_statement "if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }" if (parenthesized_expression "(local_44 + local_40 <= iVar13)" ( (binary_expression "local_44 + local_40 <= iVar13" (binary_expression "local_44 + local_40" identifier + identifier) <= identifier) )) (compound_statement "{\n              iVar14 = local_44;\n            }" { (expression_statement "iVar14 = local_44;" (assignment_expression "iVar14 = local_44" identifier = identifier) ;) })) (expression_statement "iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;" (assignment_expression "iVar13 = *(int *)(uVar2 + 0x1c) - local_3c" identifier = (binary_expression "*(int *)(uVar2 + 0x1c) - local_3c" (pointer_expression "*(int *)(uVar2 + 0x1c)" * (cast_expression "(int *)(uVar2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 0x1c)" ( (binary_expression "uVar2 + 0x1c" identifier + number_literal) )))) - identifier)) ;) (if_statement "if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }" if (parenthesized_expression "(*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c))" ( (binary_expression "*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)" (binary_expression "*(int *)param_1[7] + local_3c" (pointer_expression "*(int *)param_1[7]" * (cast_expression "(int *)param_1[7]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[7]" identifier [ number_literal ]))) + identifier) <= (pointer_expression "*(int *)(uVar2 + 0x1c)" * (cast_expression "(int *)(uVar2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 0x1c)" ( (binary_expression "uVar2 + 0x1c" identifier + number_literal) ))))) )) (compound_statement "{\n              iVar13 = *(int *)param_1[7];\n            }" { (expression_statement "iVar13 = *(int *)param_1[7];" (assignment_expression "iVar13 = *(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 "*" *)) ) (subscript_expression "param_1[7]" identifier [ number_literal ])))) ;) })) (expression_statement "iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);" (assignment_expression "iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7)" identifier = (call_expression "GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7)" identifier (argument_list "(uVar6,local_40,local_3c,iVar14,iVar13,uVar7)" ( identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }" if (parenthesized_expression "(iVar17 == 0)" ( (binary_expression "iVar17 == 0" identifier == number_literal) )) (compound_statement "{\n              param_1[9] = 0;\n              break;\n            }" { (expression_statement "param_1[9] = 0;" (assignment_expression "param_1[9] = 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) = number_literal) ;) (break_statement "break;" break ;) })) (if_statement "if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }" if (parenthesized_expression "(0 < iVar14)" ( (binary_expression "0 < iVar14" number_literal < identifier) )) (compound_statement "{\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }" { (expression_statement "local_70 = local_40;" (assignment_expression "local_70 = local_40" identifier = identifier) ;) (do_statement "do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);" do (compound_statement "{\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              }" { (if_statement "if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }" if (parenthesized_expression "(param_1[9] != 0)" ( (binary_expression "param_1[9] != 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }" { (expression_statement "iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);" (assignment_expression "iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7)" identifier = (call_expression "QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7)" identifier (argument_list "(uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7)" ( identifier , (binary_expression "(*(int *)(uVar4 + 0x18) - local_3c) - iVar13" (parenthesized_expression "(*(int *)(uVar4 + 0x18) - local_3c)" ( (binary_expression "*(int *)(uVar4 + 0x18) - local_3c" (pointer_expression "*(int *)(uVar4 + 0x18)" * (cast_expression "(int *)(uVar4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar4 + 0x18)" ( (binary_expression "uVar4 + 0x18" identifier + number_literal) )))) - identifier) )) - identifier) , identifier , identifier , number_literal , identifier )))) ;) (if_statement "if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }" if (parenthesized_expression "(iVar18 != 0)" ( (binary_expression "iVar18 != 0" identifier != number_literal) )) (compound_statement "{\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }" { (expression_statement "iVar8 = *(int *)(uVar2 + 0x298);" (assignment_expression "iVar8 = *(int *)(uVar2 + 0x298)" identifier = (pointer_expression "*(int *)(uVar2 + 0x298)" * (cast_expression "(int *)(uVar2 + 0x298)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 0x298)" ( (binary_expression "uVar2 + 0x298" identifier + number_literal) ))))) ;) (expression_statement "local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);" (assignment_expression "local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17)" identifier = (cast_expression "(undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17)" ( (binary_expression "(((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17" (binary_expression "(((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8" (binary_expression "(((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8" (parenthesized_expression "(((iVar13 + -1) * iVar14 - local_40) + local_70)" ( (binary_expression "((iVar13 + -1) * iVar14 - local_40) + local_70" (parenthesized_expression "((iVar13 + -1) * iVar14 - local_40)" ( (binary_expression "(iVar13 + -1) * iVar14 - local_40" (binary_expression "(iVar13 + -1) * iVar14" (parenthesized_expression "(iVar13 + -1)" ( (binary_expression "iVar13 + -1" identifier + number_literal) )) * identifier) - identifier) )) + identifier) )) * identifier) * number_literal) + identifier) )))) ;) (if_statement "if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }" if (parenthesized_expression "(0 < iVar13)" ( (binary_expression "0 < iVar13" number_literal < identifier) )) (compound_statement "{\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }" { (expression_statement "local_78 = 0;" (assignment_expression "local_78 = 0" identifier = number_literal) ;) (expression_statement "iVar9 = *(int *)(uVar4 + 0x298);" (assignment_expression "iVar9 = *(int *)(uVar4 + 0x298)" identifier = (pointer_expression "*(int *)(uVar4 + 0x298)" * (cast_expression "(int *)(uVar4 + 0x298)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar4 + 0x298)" ( (binary_expression "uVar4 + 0x298" identifier + number_literal) ))))) ;) (do_statement "do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);" do (compound_statement "{\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      }" { (if_statement "if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }" if (parenthesized_expression "(0 < iVar8)" ( (binary_expression "0 < iVar8" number_literal < identifier) )) (compound_statement "{\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }" { (expression_statement "piVar10 = *(int **)(uVar2 + 0x2a8);" (assignment_expression "piVar10 = *(int **)(uVar2 + 0x2a8)" identifier = (pointer_expression "*(int **)(uVar2 + 0x2a8)" * (cast_expression "(int **)(uVar2 + 0x2a8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(uVar2 + 0x2a8)" ( (binary_expression "uVar2 + 0x2a8" identifier + number_literal) ))))) ;) (expression_statement "iVar11 = *(int *)(uVar4 + 0x2a8);" (assignment_expression "iVar11 = *(int *)(uVar4 + 0x2a8)" identifier = (pointer_expression "*(int *)(uVar4 + 0x2a8)" * (cast_expression "(int *)(uVar4 + 0x2a8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar4 + 0x2a8)" ( (binary_expression "uVar4 + 0x2a8" identifier + number_literal) ))))) ;) (expression_statement "puVar20 = local_74;" (assignment_expression "puVar20 = local_74" identifier = identifier) ;) (expression_statement "piVar21 = piVar10;" (assignment_expression "piVar21 = piVar10" identifier = identifier) ;) (do_statement "do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);" do (compound_statement "{\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          }" { (expression_statement "iVar1 = iVar11 + *piVar21 * 0xc;" (assignment_expression "iVar1 = iVar11 + *piVar21 * 0xc" identifier = (binary_expression "iVar11 + *piVar21 * 0xc" identifier + (binary_expression "*piVar21 * 0xc" (pointer_expression "*piVar21" * identifier) * number_literal))) ;) (if_statement "if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }" if (parenthesized_expression "((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0))" ( (binary_expression "(piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)" (parenthesized_expression "(piVar10[*piVar21 * 3 + 1] != 0)" ( (binary_expression "piVar10[*piVar21 * 3 + 1] != 0" (subscript_expression "piVar10[*piVar21 * 3 + 1]" identifier [ (binary_expression "*piVar21 * 3 + 1" (binary_expression "*piVar21 * 3" (pointer_expression "*piVar21" * identifier) * number_literal) + number_literal) ]) != number_literal) )) && (parenthesized_expression "(*(int *)(iVar1 + 4) != 0)" ( (binary_expression "*(int *)(iVar1 + 4) != 0" (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }" { (expression_statement "*(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;" (assignment_expression "*(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20" (pointer_expression "*(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8)" * (cast_expression "(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar18 + *(int *)(iVar1 + 8) * 8)" ( (binary_expression "iVar18 + *(int *)(iVar1 + 8) * 8" identifier + (binary_expression "*(int *)(iVar1 + 8) * 8" (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) * number_literal)) )))) = (pointer_expression "*puVar20" * identifier)) ;) })) (expression_statement "piVar21 = piVar21 + 3;" (assignment_expression "piVar21 = piVar21 + 3" identifier = (binary_expression "piVar21 + 3" identifier + number_literal)) ;) (expression_statement "puVar20 = puVar20 + 1;" (assignment_expression "puVar20 = puVar20 + 1" identifier = (binary_expression "puVar20 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar21 != piVar10 + iVar8 * 3)" ( (binary_expression "piVar21 != piVar10 + iVar8 * 3" identifier != (binary_expression "piVar10 + iVar8 * 3" identifier + (binary_expression "iVar8 * 3" identifier * number_literal))) )) ;) })) (expression_statement "local_78 = local_78 + 1;" (assignment_expression "local_78 = local_78 + 1" identifier = (binary_expression "local_78 + 1" identifier + number_literal)) ;) (expression_statement "local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);" (assignment_expression "local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14)" identifier = (cast_expression "(undefined8 *)((int)local_74 - iVar8 * 8 * iVar14)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_74 - iVar8 * 8 * iVar14)" ( (binary_expression "(int)local_74 - iVar8 * 8 * iVar14" (cast_expression "(int)local_74" ( (type_descriptor "int" primitive_type) ) identifier) - (binary_expression "iVar8 * 8 * iVar14" (binary_expression "iVar8 * 8" identifier * number_literal) * identifier)) )))) ;) (expression_statement "iVar18 = iVar18 + iVar9 * 8;" (assignment_expression "iVar18 = iVar18 + iVar9 * 8" identifier = (binary_expression "iVar18 + iVar9 * 8" identifier + (binary_expression "iVar9 * 8" identifier * number_literal))) ;) }) while (parenthesized_expression "(local_78 != iVar13)" ( (binary_expression "local_78 != iVar13" identifier != identifier) )) ;) })) (expression_statement "iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);" (assignment_expression "iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7)" identifier = (call_expression "SyncCacheViewAuthenticPixels(uVar5,uVar7)" identifier (argument_list "(uVar5,uVar7)" ( identifier , identifier )))) ;) (if_statement "if (iVar18 != 0) goto LAB_00185782;" if (parenthesized_expression "(iVar18 != 0)" ( (binary_expression "iVar18 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00185782;" goto statement_identifier ;)) })) (expression_statement "param_1[9] = 0;" (assignment_expression "param_1[9] = 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) = number_literal) ;) })) (labeled_statement "LAB_00185782:\n                local_70 = local_70 + 1;" statement_identifier : (expression_statement "local_70 = local_70 + 1;" (assignment_expression "local_70 = local_70 + 1" identifier = (binary_expression "local_70 + 1" identifier + number_literal)) ;)) }) while (parenthesized_expression "(iVar14 + local_40 != local_70)" ( (binary_expression "iVar14 + local_40 != local_70" (binary_expression "iVar14 + local_40" identifier + identifier) != identifier) )) ;) })) (expression_statement "local_44 = *(int *)param_1[8];" (assignment_expression "local_44 = *(int *)param_1[8]" identifier = (pointer_expression "*(int *)param_1[8]" * (cast_expression "(int *)param_1[8]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[8]" identifier [ number_literal ])))) ;) (expression_statement "local_40 = local_40 + local_44;" (assignment_expression "local_40 = local_40 + local_44" identifier = (binary_expression "local_40 + local_44" identifier + identifier)) ;) (expression_statement "iVar13 = *(int *)(uVar2 + 0x18);" (assignment_expression "iVar13 = *(int *)(uVar2 + 0x18)" identifier = (pointer_expression "*(int *)(uVar2 + 0x18)" * (cast_expression "(int *)(uVar2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 0x18)" ( (binary_expression "uVar2 + 0x18" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(local_40 < iVar13)" ( (binary_expression "local_40 < iVar13" identifier < identifier) )) ;) })) (if_statement "if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }" if (parenthesized_expression "(*(int *)(uVar2 + 0x300) != 0)" ( (binary_expression "*(int *)(uVar2 + 0x300) != 0" (pointer_expression "*(int *)(uVar2 + 0x300)" * (cast_expression "(int *)(uVar2 + 0x300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 0x300)" ( (binary_expression "uVar2 + 0x300" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }" { (expression_statement "uVar12 = *(undefined4 *)(uVar2 + 0x1c);" (assignment_expression "uVar12 = *(undefined4 *)(uVar2 + 0x1c)" identifier = (pointer_expression "*(undefined4 *)(uVar2 + 0x1c)" * (cast_expression "(undefined4 *)(uVar2 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 0x1c)" ( (binary_expression "uVar2 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "uVar19 = *(uint *)param_1[7] + *param_1;" (assignment_expression "uVar19 = *(uint *)param_1[7] + *param_1" identifier = (binary_expression "*(uint *)param_1[7] + *param_1" (pointer_expression "*(uint *)param_1[7]" * (cast_expression "(uint *)param_1[7]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[7]" identifier [ number_literal ]))) + (pointer_expression "*param_1" * identifier))) ;) (expression_statement "uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);" (assignment_expression "uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1)" identifier = (binary_expression "param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1)" (subscript_expression "param_1[1]" identifier [ number_literal ]) + (cast_expression "(uint)CARRY4(*(uint *)param_1[7],*param_1)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(*(uint *)param_1[7],*param_1)" identifier (argument_list "(*(uint *)param_1[7],*param_1)" ( (pointer_expression "*(uint *)param_1[7]" * (cast_expression "(uint *)param_1[7]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[7]" identifier [ number_literal ]))) , (pointer_expression "*param_1" * identifier) )))))) ;) (expression_statement "*param_1 = uVar19;" (assignment_expression "*param_1 = uVar19" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = uVar22;" (assignment_expression "param_1[1] = uVar22" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);" (assignment_expression "iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0)" identifier = (call_expression "SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0)" identifier (argument_list "(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0)" ( identifier , (binary_expression "&UNK_00142477 + unaff_EDI" (pointer_expression "&UNK_00142477" & identifier) + identifier) , identifier , identifier , identifier , number_literal )))) ;) (if_statement "if (iVar13 == 0) {\n            param_1[9] = 0;\n          }" if (parenthesized_expression "(iVar13 == 0)" ( (binary_expression "iVar13 == 0" identifier == number_literal) )) (compound_statement "{\n            param_1[9] = 0;\n          }" { (expression_statement "param_1[9] = 0;" (assignment_expression "param_1[9] = 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) = number_literal) ;) })) })) })) (expression_statement "local_3c = local_3c + iVar3;" (assignment_expression "local_3c = local_3c + iVar3" identifier = (binary_expression "local_3c + iVar3" identifier + identifier)) ;) }) while (parenthesized_expression "(local_3c < (iVar16 + iVar15) * iVar3)" ( (binary_expression "local_3c < (iVar16 + iVar15) * iVar3" identifier < (binary_expression "(iVar16 + iVar15) * iVar3" (parenthesized_expression "(iVar16 + iVar15)" ( (binary_expression "iVar16 + iVar15" identifier + identifier) )) * identifier)) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* WARNING: Enum "DisposeType": Some values do not have unique names */\n/* WARNING: Enum "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "PixelChannel": Some values do not have unique names */\n/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n/* DWARF original prototype: void IntegralRotateImage._omp_fn.3(anon_struct_40_9_e30fb923 * param_0)\n    */\n\nvoid __thiscall IntegralRotateImage__omp_fn_3(anon_struct_40_9_e30fb923 *this)\n\n{\n  Image *image;\n  size_t sVar1;\n  Image *pIVar2;\n  CacheView *cache_view;\n  CacheView *cache_view_00;\n  ExceptionInfo *exception;\n  size_t sVar3;\n  size_t sVar4;\n  PixelChannelMap *pPVar5;\n  PixelChannelMap *pPVar6;\n  PixelChannel PVar7;\n  uint uVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  size_t sVar13;\n  Quantum *pQVar14;\n  Quantum *pQVar15;\n  MagickBooleanType MVar16;\n  Quantum *pQVar17;\n  PixelChannelMap *pPVar18;\n  int unaff_EDI;\n  size_t columns;\n  size_t local_78;\n  Quantum *local_74;\n  int local_70;\n  size_t local_44;\n  int local_40;\n  int local_3c;\n  \n  __x86_get_pc_thunk_di();\n  image = this->image;\n  sVar1 = *this->tile_height;\n  iVar9 = omp_get_num_threads();\n  iVar10 = omp_get_thread_num();\n  iVar11 = (int)((sVar1 - 1) + image->rows) / (int)sVar1;\n  iVar12 = iVar11 / iVar9;\n  iVar11 = iVar11 % iVar9;\n  if (iVar10 < iVar11) {\n    iVar12 = iVar12 + 1;\n    iVar11 = 0;\n  }\n  iVar11 = iVar11 + iVar10 * iVar12;\n  if (iVar11 < iVar12 + iVar11) {\n    pIVar2 = this->rotate_image;\n    cache_view = this->rotate_view;\n    cache_view_00 = this->image_view;\n    exception = this->exception;\n    local_3c = iVar11 * sVar1;\n    do {\n      if (this->status != MagickFalse) {\n        sVar13 = image->columns;\n        if (0 < (int)sVar13) {\n          local_40 = 0;\n          local_44 = *this->tile_width;\n          do {\n            columns = sVar13 - local_40;\n            if ((int)(local_44 + local_40) <= (int)sVar13) {\n              columns = local_44;\n            }\n            sVar13 = image->rows - local_3c;\n            if ((int)(*this->tile_height + local_3c) <= (int)image->rows) {\n              sVar13 = *this->tile_height;\n            }\n            pQVar14 = GetCacheViewVirtualPixels\n                                (cache_view_00,local_40,local_3c,columns,sVar13,exception);\n            if (pQVar14 == (Quantum *)0x0) {\n              this->status = MagickFalse;\n              break;\n            }\n            if (0 < (int)columns) {\n              local_70 = local_40;\n              do {\n                if (this->status != MagickFalse) {\n                  pQVar15 = QueueCacheViewAuthenticPixels\n                                      (cache_view,(pIVar2->columns - local_3c) - sVar13,local_70,\n                                       sVar13,1,exception);\n                  if (pQVar15 != (Quantum *)0x0) {\n                    sVar3 = image->number_channels;\n                    local_74 = (Quantum *)\n                               ((((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +\n                               (int)pQVar14);\n                    if (0 < (int)sVar13) {\n                      local_78 = 0;\n                      sVar4 = pIVar2->number_channels;\n                      do {\n                        if (0 < (int)sVar3) {\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);\n                        pQVar15 = pQVar15 + sVar4;\n                      } while (local_78 != sVar13);\n                    }\n                    MVar16 = SyncCacheViewAuthenticPixels(cache_view,exception);\n                    if (MVar16 != MagickFalse) goto LAB_00185782;\n                  }\n                  this->status = MagickFalse;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (columns + local_40 != local_70);\n            }\n            local_44 = *this->tile_width;\n            local_40 = local_40 + local_44;\n            sVar13 = image->columns;\n          } while (local_40 < (int)sVar13);\n        }\n        if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n          uVar8 = image->rows;\n          iVar9 = *this->tile_height + (int)this->progress;\n          iVar10 = *(int *)((int)&this->progress + 4) +\n                   (uint)CARRY4(*this->tile_height,(uint)this->progress);\n          *(int *)&this->progress = iVar9;\n          *(int *)((int)&this->progress + 4) = iVar10;\n          MVar16 = SetImageProgress(image,(char *)(unaff_EDI + 0x142477),CONCAT44(iVar10,iVar9),\n                                    (ulonglong)uVar8);\n          if (MVar16 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n        }\n      }\n      local_3c = local_3c + sVar1;\n    } while (local_3c < (int)((iVar12 + iVar11) * sVar1));\n  }\n  return;\n}\n\n" comment comment comment comment comment comment (function_definition "void __thiscall IntegralRotateImage__omp_fn_3(anon_struct_40_9_e30fb923 *this)\n\n{\n  Image *image;\n  size_t sVar1;\n  Image *pIVar2;\n  CacheView *cache_view;\n  CacheView *cache_view_00;\n  ExceptionInfo *exception;\n  size_t sVar3;\n  size_t sVar4;\n  PixelChannelMap *pPVar5;\n  PixelChannelMap *pPVar6;\n  PixelChannel PVar7;\n  uint uVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  size_t sVar13;\n  Quantum *pQVar14;\n  Quantum *pQVar15;\n  MagickBooleanType MVar16;\n  Quantum *pQVar17;\n  PixelChannelMap *pPVar18;\n  int unaff_EDI;\n  size_t columns;\n  size_t local_78;\n  Quantum *local_74;\n  int local_70;\n  size_t local_44;\n  int local_40;\n  int local_3c;\n  \n  __x86_get_pc_thunk_di();\n  image = this->image;\n  sVar1 = *this->tile_height;\n  iVar9 = omp_get_num_threads();\n  iVar10 = omp_get_thread_num();\n  iVar11 = (int)((sVar1 - 1) + image->rows) / (int)sVar1;\n  iVar12 = iVar11 / iVar9;\n  iVar11 = iVar11 % iVar9;\n  if (iVar10 < iVar11) {\n    iVar12 = iVar12 + 1;\n    iVar11 = 0;\n  }\n  iVar11 = iVar11 + iVar10 * iVar12;\n  if (iVar11 < iVar12 + iVar11) {\n    pIVar2 = this->rotate_image;\n    cache_view = this->rotate_view;\n    cache_view_00 = this->image_view;\n    exception = this->exception;\n    local_3c = iVar11 * sVar1;\n    do {\n      if (this->status != MagickFalse) {\n        sVar13 = image->columns;\n        if (0 < (int)sVar13) {\n          local_40 = 0;\n          local_44 = *this->tile_width;\n          do {\n            columns = sVar13 - local_40;\n            if ((int)(local_44 + local_40) <= (int)sVar13) {\n              columns = local_44;\n            }\n            sVar13 = image->rows - local_3c;\n            if ((int)(*this->tile_height + local_3c) <= (int)image->rows) {\n              sVar13 = *this->tile_height;\n            }\n            pQVar14 = GetCacheViewVirtualPixels\n                                (cache_view_00,local_40,local_3c,columns,sVar13,exception);\n            if (pQVar14 == (Quantum *)0x0) {\n              this->status = MagickFalse;\n              break;\n            }\n            if (0 < (int)columns) {\n              local_70 = local_40;\n              do {\n                if (this->status != MagickFalse) {\n                  pQVar15 = QueueCacheViewAuthenticPixels\n                                      (cache_view,(pIVar2->columns - local_3c) - sVar13,local_70,\n                                       sVar13,1,exception);\n                  if (pQVar15 != (Quantum *)0x0) {\n                    sVar3 = image->number_channels;\n                    local_74 = (Quantum *)\n                               ((((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +\n                               (int)pQVar14);\n                    if (0 < (int)sVar13) {\n                      local_78 = 0;\n                      sVar4 = pIVar2->number_channels;\n                      do {\n                        if (0 < (int)sVar3) {\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);\n                        pQVar15 = pQVar15 + sVar4;\n                      } while (local_78 != sVar13);\n                    }\n                    MVar16 = SyncCacheViewAuthenticPixels(cache_view,exception);\n                    if (MVar16 != MagickFalse) goto LAB_00185782;\n                  }\n                  this->status = MagickFalse;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (columns + local_40 != local_70);\n            }\n            local_44 = *this->tile_width;\n            local_40 = local_40 + local_44;\n            sVar13 = image->columns;\n          } while (local_40 < (int)sVar13);\n        }\n        if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n          uVar8 = image->rows;\n          iVar9 = *this->tile_height + (int)this->progress;\n          iVar10 = *(int *)((int)&this->progress + 4) +\n                   (uint)CARRY4(*this->tile_height,(uint)this->progress);\n          *(int *)&this->progress = iVar9;\n          *(int *)((int)&this->progress + 4) = iVar10;\n          MVar16 = SetImageProgress(image,(char *)(unaff_EDI + 0x142477),CONCAT44(iVar10,iVar9),\n                                    (ulonglong)uVar8);\n          if (MVar16 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n        }\n      }\n      local_3c = local_3c + sVar1;\n    } while (local_3c < (int)((iVar12 + iVar11) * sVar1));\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (function_declarator "IntegralRotateImage__omp_fn_3(anon_struct_40_9_e30fb923 *this)" identifier (parameter_list "(anon_struct_40_9_e30fb923 *this)" ( (parameter_declaration "anon_struct_40_9_e30fb923 *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  Image *image;\n  size_t sVar1;\n  Image *pIVar2;\n  CacheView *cache_view;\n  CacheView *cache_view_00;\n  ExceptionInfo *exception;\n  size_t sVar3;\n  size_t sVar4;\n  PixelChannelMap *pPVar5;\n  PixelChannelMap *pPVar6;\n  PixelChannel PVar7;\n  uint uVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  size_t sVar13;\n  Quantum *pQVar14;\n  Quantum *pQVar15;\n  MagickBooleanType MVar16;\n  Quantum *pQVar17;\n  PixelChannelMap *pPVar18;\n  int unaff_EDI;\n  size_t columns;\n  size_t local_78;\n  Quantum *local_74;\n  int local_70;\n  size_t local_44;\n  int local_40;\n  int local_3c;\n  \n  __x86_get_pc_thunk_di();\n  image = this->image;\n  sVar1 = *this->tile_height;\n  iVar9 = omp_get_num_threads();\n  iVar10 = omp_get_thread_num();\n  iVar11 = (int)((sVar1 - 1) + image->rows) / (int)sVar1;\n  iVar12 = iVar11 / iVar9;\n  iVar11 = iVar11 % iVar9;\n  if (iVar10 < iVar11) {\n    iVar12 = iVar12 + 1;\n    iVar11 = 0;\n  }\n  iVar11 = iVar11 + iVar10 * iVar12;\n  if (iVar11 < iVar12 + iVar11) {\n    pIVar2 = this->rotate_image;\n    cache_view = this->rotate_view;\n    cache_view_00 = this->image_view;\n    exception = this->exception;\n    local_3c = iVar11 * sVar1;\n    do {\n      if (this->status != MagickFalse) {\n        sVar13 = image->columns;\n        if (0 < (int)sVar13) {\n          local_40 = 0;\n          local_44 = *this->tile_width;\n          do {\n            columns = sVar13 - local_40;\n            if ((int)(local_44 + local_40) <= (int)sVar13) {\n              columns = local_44;\n            }\n            sVar13 = image->rows - local_3c;\n            if ((int)(*this->tile_height + local_3c) <= (int)image->rows) {\n              sVar13 = *this->tile_height;\n            }\n            pQVar14 = GetCacheViewVirtualPixels\n                                (cache_view_00,local_40,local_3c,columns,sVar13,exception);\n            if (pQVar14 == (Quantum *)0x0) {\n              this->status = MagickFalse;\n              break;\n            }\n            if (0 < (int)columns) {\n              local_70 = local_40;\n              do {\n                if (this->status != MagickFalse) {\n                  pQVar15 = QueueCacheViewAuthenticPixels\n                                      (cache_view,(pIVar2->columns - local_3c) - sVar13,local_70,\n                                       sVar13,1,exception);\n                  if (pQVar15 != (Quantum *)0x0) {\n                    sVar3 = image->number_channels;\n                    local_74 = (Quantum *)\n                               ((((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +\n                               (int)pQVar14);\n                    if (0 < (int)sVar13) {\n                      local_78 = 0;\n                      sVar4 = pIVar2->number_channels;\n                      do {\n                        if (0 < (int)sVar3) {\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);\n                        pQVar15 = pQVar15 + sVar4;\n                      } while (local_78 != sVar13);\n                    }\n                    MVar16 = SyncCacheViewAuthenticPixels(cache_view,exception);\n                    if (MVar16 != MagickFalse) goto LAB_00185782;\n                  }\n                  this->status = MagickFalse;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (columns + local_40 != local_70);\n            }\n            local_44 = *this->tile_width;\n            local_40 = local_40 + local_44;\n            sVar13 = image->columns;\n          } while (local_40 < (int)sVar13);\n        }\n        if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n          uVar8 = image->rows;\n          iVar9 = *this->tile_height + (int)this->progress;\n          iVar10 = *(int *)((int)&this->progress + 4) +\n                   (uint)CARRY4(*this->tile_height,(uint)this->progress);\n          *(int *)&this->progress = iVar9;\n          *(int *)((int)&this->progress + 4) = iVar10;\n          MVar16 = SetImageProgress(image,(char *)(unaff_EDI + 0x142477),CONCAT44(iVar10,iVar9),\n                                    (ulonglong)uVar8);\n          if (MVar16 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n        }\n      }\n      local_3c = local_3c + sVar1;\n    } while (local_3c < (int)((iVar12 + iVar11) * sVar1));\n  }\n  return;\n}" { (declaration "Image *image;" type_identifier (pointer_declarator "*image" * identifier) ;) (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "Image *pIVar2;" type_identifier (pointer_declarator "*pIVar2" * identifier) ;) (declaration "CacheView *cache_view;" type_identifier (pointer_declarator "*cache_view" * identifier) ;) (declaration "CacheView *cache_view_00;" type_identifier (pointer_declarator "*cache_view_00" * identifier) ;) (declaration "ExceptionInfo *exception;" type_identifier (pointer_declarator "*exception" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "PixelChannelMap *pPVar5;" type_identifier (pointer_declarator "*pPVar5" * identifier) ;) (declaration "PixelChannelMap *pPVar6;" type_identifier (pointer_declarator "*pPVar6" * identifier) ;) (declaration "PixelChannel PVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier 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 "size_t sVar13;" primitive_type identifier ;) (declaration "Quantum *pQVar14;" type_identifier (pointer_declarator "*pQVar14" * identifier) ;) (declaration "Quantum *pQVar15;" type_identifier (pointer_declarator "*pQVar15" * identifier) ;) (declaration "MagickBooleanType MVar16;" type_identifier identifier ;) (declaration "Quantum *pQVar17;" type_identifier (pointer_declarator "*pQVar17" * identifier) ;) (declaration "PixelChannelMap *pPVar18;" type_identifier (pointer_declarator "*pPVar18" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "size_t columns;" primitive_type identifier ;) (declaration "size_t local_78;" primitive_type identifier ;) (declaration "Quantum *local_74;" type_identifier (pointer_declarator "*local_74" * identifier) ;) (declaration "int local_70;" primitive_type identifier ;) (declaration "size_t local_44;" primitive_type identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (expression_statement "image = this->image;" (assignment_expression "image = this->image" identifier = (field_expression "this->image" identifier -> field_identifier)) ;) (expression_statement "sVar1 = *this->tile_height;" (assignment_expression "sVar1 = *this->tile_height" identifier = (pointer_expression "*this->tile_height" * (field_expression "this->tile_height" identifier -> field_identifier))) ;) (expression_statement "iVar9 = omp_get_num_threads();" (assignment_expression "iVar9 = omp_get_num_threads()" identifier = (call_expression "omp_get_num_threads()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar10 = omp_get_thread_num();" (assignment_expression "iVar10 = omp_get_thread_num()" identifier = (call_expression "omp_get_thread_num()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar11 = (int)((sVar1 - 1) + image->rows) / (int)sVar1;" (assignment_expression "iVar11 = (int)((sVar1 - 1) + image->rows) / (int)sVar1" identifier = (binary_expression "(int)((sVar1 - 1) + image->rows) / (int)sVar1" (cast_expression "(int)((sVar1 - 1) + image->rows)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((sVar1 - 1) + image->rows)" ( (binary_expression "(sVar1 - 1) + image->rows" (parenthesized_expression "(sVar1 - 1)" ( (binary_expression "sVar1 - 1" identifier - number_literal) )) + (field_expression "image->rows" identifier -> field_identifier)) ))) / (cast_expression "(int)sVar1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "iVar12 = iVar11 / iVar9;" (assignment_expression "iVar12 = iVar11 / iVar9" identifier = (binary_expression "iVar11 / iVar9" identifier / identifier)) ;) (expression_statement "iVar11 = iVar11 % iVar9;" (assignment_expression "iVar11 = iVar11 % iVar9" identifier = (binary_expression "iVar11 % iVar9" identifier % identifier)) ;) (if_statement "if (iVar10 < iVar11) {\n    iVar12 = iVar12 + 1;\n    iVar11 = 0;\n  }" if (parenthesized_expression "(iVar10 < iVar11)" ( (binary_expression "iVar10 < iVar11" identifier < identifier) )) (compound_statement "{\n    iVar12 = iVar12 + 1;\n    iVar11 = 0;\n  }" { (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) })) (expression_statement "iVar11 = iVar11 + iVar10 * iVar12;" (assignment_expression "iVar11 = iVar11 + iVar10 * iVar12" identifier = (binary_expression "iVar11 + iVar10 * iVar12" identifier + (binary_expression "iVar10 * iVar12" identifier * identifier))) ;) (if_statement "if (iVar11 < iVar12 + iVar11) {\n    pIVar2 = this->rotate_image;\n    cache_view = this->rotate_view;\n    cache_view_00 = this->image_view;\n    exception = this->exception;\n    local_3c = iVar11 * sVar1;\n    do {\n      if (this->status != MagickFalse) {\n        sVar13 = image->columns;\n        if (0 < (int)sVar13) {\n          local_40 = 0;\n          local_44 = *this->tile_width;\n          do {\n            columns = sVar13 - local_40;\n            if ((int)(local_44 + local_40) <= (int)sVar13) {\n              columns = local_44;\n            }\n            sVar13 = image->rows - local_3c;\n            if ((int)(*this->tile_height + local_3c) <= (int)image->rows) {\n              sVar13 = *this->tile_height;\n            }\n            pQVar14 = GetCacheViewVirtualPixels\n                                (cache_view_00,local_40,local_3c,columns,sVar13,exception);\n            if (pQVar14 == (Quantum *)0x0) {\n              this->status = MagickFalse;\n              break;\n            }\n            if (0 < (int)columns) {\n              local_70 = local_40;\n              do {\n                if (this->status != MagickFalse) {\n                  pQVar15 = QueueCacheViewAuthenticPixels\n                                      (cache_view,(pIVar2->columns - local_3c) - sVar13,local_70,\n                                       sVar13,1,exception);\n                  if (pQVar15 != (Quantum *)0x0) {\n                    sVar3 = image->number_channels;\n                    local_74 = (Quantum *)\n                               ((((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +\n                               (int)pQVar14);\n                    if (0 < (int)sVar13) {\n                      local_78 = 0;\n                      sVar4 = pIVar2->number_channels;\n                      do {\n                        if (0 < (int)sVar3) {\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);\n                        pQVar15 = pQVar15 + sVar4;\n                      } while (local_78 != sVar13);\n                    }\n                    MVar16 = SyncCacheViewAuthenticPixels(cache_view,exception);\n                    if (MVar16 != MagickFalse) goto LAB_00185782;\n                  }\n                  this->status = MagickFalse;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (columns + local_40 != local_70);\n            }\n            local_44 = *this->tile_width;\n            local_40 = local_40 + local_44;\n            sVar13 = image->columns;\n          } while (local_40 < (int)sVar13);\n        }\n        if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n          uVar8 = image->rows;\n          iVar9 = *this->tile_height + (int)this->progress;\n          iVar10 = *(int *)((int)&this->progress + 4) +\n                   (uint)CARRY4(*this->tile_height,(uint)this->progress);\n          *(int *)&this->progress = iVar9;\n          *(int *)((int)&this->progress + 4) = iVar10;\n          MVar16 = SetImageProgress(image,(char *)(unaff_EDI + 0x142477),CONCAT44(iVar10,iVar9),\n                                    (ulonglong)uVar8);\n          if (MVar16 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n        }\n      }\n      local_3c = local_3c + sVar1;\n    } while (local_3c < (int)((iVar12 + iVar11) * sVar1));\n  }" if (parenthesized_expression "(iVar11 < iVar12 + iVar11)" ( (binary_expression "iVar11 < iVar12 + iVar11" identifier < (binary_expression "iVar12 + iVar11" identifier + identifier)) )) (compound_statement "{\n    pIVar2 = this->rotate_image;\n    cache_view = this->rotate_view;\n    cache_view_00 = this->image_view;\n    exception = this->exception;\n    local_3c = iVar11 * sVar1;\n    do {\n      if (this->status != MagickFalse) {\n        sVar13 = image->columns;\n        if (0 < (int)sVar13) {\n          local_40 = 0;\n          local_44 = *this->tile_width;\n          do {\n            columns = sVar13 - local_40;\n            if ((int)(local_44 + local_40) <= (int)sVar13) {\n              columns = local_44;\n            }\n            sVar13 = image->rows - local_3c;\n            if ((int)(*this->tile_height + local_3c) <= (int)image->rows) {\n              sVar13 = *this->tile_height;\n            }\n            pQVar14 = GetCacheViewVirtualPixels\n                                (cache_view_00,local_40,local_3c,columns,sVar13,exception);\n            if (pQVar14 == (Quantum *)0x0) {\n              this->status = MagickFalse;\n              break;\n            }\n            if (0 < (int)columns) {\n              local_70 = local_40;\n              do {\n                if (this->status != MagickFalse) {\n                  pQVar15 = QueueCacheViewAuthenticPixels\n                                      (cache_view,(pIVar2->columns - local_3c) - sVar13,local_70,\n                                       sVar13,1,exception);\n                  if (pQVar15 != (Quantum *)0x0) {\n                    sVar3 = image->number_channels;\n                    local_74 = (Quantum *)\n                               ((((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +\n                               (int)pQVar14);\n                    if (0 < (int)sVar13) {\n                      local_78 = 0;\n                      sVar4 = pIVar2->number_channels;\n                      do {\n                        if (0 < (int)sVar3) {\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);\n                        pQVar15 = pQVar15 + sVar4;\n                      } while (local_78 != sVar13);\n                    }\n                    MVar16 = SyncCacheViewAuthenticPixels(cache_view,exception);\n                    if (MVar16 != MagickFalse) goto LAB_00185782;\n                  }\n                  this->status = MagickFalse;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (columns + local_40 != local_70);\n            }\n            local_44 = *this->tile_width;\n            local_40 = local_40 + local_44;\n            sVar13 = image->columns;\n          } while (local_40 < (int)sVar13);\n        }\n        if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n          uVar8 = image->rows;\n          iVar9 = *this->tile_height + (int)this->progress;\n          iVar10 = *(int *)((int)&this->progress + 4) +\n                   (uint)CARRY4(*this->tile_height,(uint)this->progress);\n          *(int *)&this->progress = iVar9;\n          *(int *)((int)&this->progress + 4) = iVar10;\n          MVar16 = SetImageProgress(image,(char *)(unaff_EDI + 0x142477),CONCAT44(iVar10,iVar9),\n                                    (ulonglong)uVar8);\n          if (MVar16 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n        }\n      }\n      local_3c = local_3c + sVar1;\n    } while (local_3c < (int)((iVar12 + iVar11) * sVar1));\n  }" { (expression_statement "pIVar2 = this->rotate_image;" (assignment_expression "pIVar2 = this->rotate_image" identifier = (field_expression "this->rotate_image" identifier -> field_identifier)) ;) (expression_statement "cache_view = this->rotate_view;" (assignment_expression "cache_view = this->rotate_view" identifier = (field_expression "this->rotate_view" identifier -> field_identifier)) ;) (expression_statement "cache_view_00 = this->image_view;" (assignment_expression "cache_view_00 = this->image_view" identifier = (field_expression "this->image_view" identifier -> field_identifier)) ;) (expression_statement "exception = this->exception;" (assignment_expression "exception = this->exception" identifier = (field_expression "this->exception" identifier -> field_identifier)) ;) (expression_statement "local_3c = iVar11 * sVar1;" (assignment_expression "local_3c = iVar11 * sVar1" identifier = (binary_expression "iVar11 * sVar1" identifier * identifier)) ;) (do_statement "do {\n      if (this->status != MagickFalse) {\n        sVar13 = image->columns;\n        if (0 < (int)sVar13) {\n          local_40 = 0;\n          local_44 = *this->tile_width;\n          do {\n            columns = sVar13 - local_40;\n            if ((int)(local_44 + local_40) <= (int)sVar13) {\n              columns = local_44;\n            }\n            sVar13 = image->rows - local_3c;\n            if ((int)(*this->tile_height + local_3c) <= (int)image->rows) {\n              sVar13 = *this->tile_height;\n            }\n            pQVar14 = GetCacheViewVirtualPixels\n                                (cache_view_00,local_40,local_3c,columns,sVar13,exception);\n            if (pQVar14 == (Quantum *)0x0) {\n              this->status = MagickFalse;\n              break;\n            }\n            if (0 < (int)columns) {\n              local_70 = local_40;\n              do {\n                if (this->status != MagickFalse) {\n                  pQVar15 = QueueCacheViewAuthenticPixels\n                                      (cache_view,(pIVar2->columns - local_3c) - sVar13,local_70,\n                                       sVar13,1,exception);\n                  if (pQVar15 != (Quantum *)0x0) {\n                    sVar3 = image->number_channels;\n                    local_74 = (Quantum *)\n                               ((((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +\n                               (int)pQVar14);\n                    if (0 < (int)sVar13) {\n                      local_78 = 0;\n                      sVar4 = pIVar2->number_channels;\n                      do {\n                        if (0 < (int)sVar3) {\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);\n                        pQVar15 = pQVar15 + sVar4;\n                      } while (local_78 != sVar13);\n                    }\n                    MVar16 = SyncCacheViewAuthenticPixels(cache_view,exception);\n                    if (MVar16 != MagickFalse) goto LAB_00185782;\n                  }\n                  this->status = MagickFalse;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (columns + local_40 != local_70);\n            }\n            local_44 = *this->tile_width;\n            local_40 = local_40 + local_44;\n            sVar13 = image->columns;\n          } while (local_40 < (int)sVar13);\n        }\n        if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n          uVar8 = image->rows;\n          iVar9 = *this->tile_height + (int)this->progress;\n          iVar10 = *(int *)((int)&this->progress + 4) +\n                   (uint)CARRY4(*this->tile_height,(uint)this->progress);\n          *(int *)&this->progress = iVar9;\n          *(int *)((int)&this->progress + 4) = iVar10;\n          MVar16 = SetImageProgress(image,(char *)(unaff_EDI + 0x142477),CONCAT44(iVar10,iVar9),\n                                    (ulonglong)uVar8);\n          if (MVar16 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n        }\n      }\n      local_3c = local_3c + sVar1;\n    } while (local_3c < (int)((iVar12 + iVar11) * sVar1));" do (compound_statement "{\n      if (this->status != MagickFalse) {\n        sVar13 = image->columns;\n        if (0 < (int)sVar13) {\n          local_40 = 0;\n          local_44 = *this->tile_width;\n          do {\n            columns = sVar13 - local_40;\n            if ((int)(local_44 + local_40) <= (int)sVar13) {\n              columns = local_44;\n            }\n            sVar13 = image->rows - local_3c;\n            if ((int)(*this->tile_height + local_3c) <= (int)image->rows) {\n              sVar13 = *this->tile_height;\n            }\n            pQVar14 = GetCacheViewVirtualPixels\n                                (cache_view_00,local_40,local_3c,columns,sVar13,exception);\n            if (pQVar14 == (Quantum *)0x0) {\n              this->status = MagickFalse;\n              break;\n            }\n            if (0 < (int)columns) {\n              local_70 = local_40;\n              do {\n                if (this->status != MagickFalse) {\n                  pQVar15 = QueueCacheViewAuthenticPixels\n                                      (cache_view,(pIVar2->columns - local_3c) - sVar13,local_70,\n                                       sVar13,1,exception);\n                  if (pQVar15 != (Quantum *)0x0) {\n                    sVar3 = image->number_channels;\n                    local_74 = (Quantum *)\n                               ((((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +\n                               (int)pQVar14);\n                    if (0 < (int)sVar13) {\n                      local_78 = 0;\n                      sVar4 = pIVar2->number_channels;\n                      do {\n                        if (0 < (int)sVar3) {\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);\n                        pQVar15 = pQVar15 + sVar4;\n                      } while (local_78 != sVar13);\n                    }\n                    MVar16 = SyncCacheViewAuthenticPixels(cache_view,exception);\n                    if (MVar16 != MagickFalse) goto LAB_00185782;\n                  }\n                  this->status = MagickFalse;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (columns + local_40 != local_70);\n            }\n            local_44 = *this->tile_width;\n            local_40 = local_40 + local_44;\n            sVar13 = image->columns;\n          } while (local_40 < (int)sVar13);\n        }\n        if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n          uVar8 = image->rows;\n          iVar9 = *this->tile_height + (int)this->progress;\n          iVar10 = *(int *)((int)&this->progress + 4) +\n                   (uint)CARRY4(*this->tile_height,(uint)this->progress);\n          *(int *)&this->progress = iVar9;\n          *(int *)((int)&this->progress + 4) = iVar10;\n          MVar16 = SetImageProgress(image,(char *)(unaff_EDI + 0x142477),CONCAT44(iVar10,iVar9),\n                                    (ulonglong)uVar8);\n          if (MVar16 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n        }\n      }\n      local_3c = local_3c + sVar1;\n    }" { (if_statement "if (this->status != MagickFalse) {\n        sVar13 = image->columns;\n        if (0 < (int)sVar13) {\n          local_40 = 0;\n          local_44 = *this->tile_width;\n          do {\n            columns = sVar13 - local_40;\n            if ((int)(local_44 + local_40) <= (int)sVar13) {\n              columns = local_44;\n            }\n            sVar13 = image->rows - local_3c;\n            if ((int)(*this->tile_height + local_3c) <= (int)image->rows) {\n              sVar13 = *this->tile_height;\n            }\n            pQVar14 = GetCacheViewVirtualPixels\n                                (cache_view_00,local_40,local_3c,columns,sVar13,exception);\n            if (pQVar14 == (Quantum *)0x0) {\n              this->status = MagickFalse;\n              break;\n            }\n            if (0 < (int)columns) {\n              local_70 = local_40;\n              do {\n                if (this->status != MagickFalse) {\n                  pQVar15 = QueueCacheViewAuthenticPixels\n                                      (cache_view,(pIVar2->columns - local_3c) - sVar13,local_70,\n                                       sVar13,1,exception);\n                  if (pQVar15 != (Quantum *)0x0) {\n                    sVar3 = image->number_channels;\n                    local_74 = (Quantum *)\n                               ((((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +\n                               (int)pQVar14);\n                    if (0 < (int)sVar13) {\n                      local_78 = 0;\n                      sVar4 = pIVar2->number_channels;\n                      do {\n                        if (0 < (int)sVar3) {\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);\n                        pQVar15 = pQVar15 + sVar4;\n                      } while (local_78 != sVar13);\n                    }\n                    MVar16 = SyncCacheViewAuthenticPixels(cache_view,exception);\n                    if (MVar16 != MagickFalse) goto LAB_00185782;\n                  }\n                  this->status = MagickFalse;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (columns + local_40 != local_70);\n            }\n            local_44 = *this->tile_width;\n            local_40 = local_40 + local_44;\n            sVar13 = image->columns;\n          } while (local_40 < (int)sVar13);\n        }\n        if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n          uVar8 = image->rows;\n          iVar9 = *this->tile_height + (int)this->progress;\n          iVar10 = *(int *)((int)&this->progress + 4) +\n                   (uint)CARRY4(*this->tile_height,(uint)this->progress);\n          *(int *)&this->progress = iVar9;\n          *(int *)((int)&this->progress + 4) = iVar10;\n          MVar16 = SetImageProgress(image,(char *)(unaff_EDI + 0x142477),CONCAT44(iVar10,iVar9),\n                                    (ulonglong)uVar8);\n          if (MVar16 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n        }\n      }" if (parenthesized_expression "(this->status != MagickFalse)" ( (binary_expression "this->status != MagickFalse" (field_expression "this->status" identifier -> field_identifier) != identifier) )) (compound_statement "{\n        sVar13 = image->columns;\n        if (0 < (int)sVar13) {\n          local_40 = 0;\n          local_44 = *this->tile_width;\n          do {\n            columns = sVar13 - local_40;\n            if ((int)(local_44 + local_40) <= (int)sVar13) {\n              columns = local_44;\n            }\n            sVar13 = image->rows - local_3c;\n            if ((int)(*this->tile_height + local_3c) <= (int)image->rows) {\n              sVar13 = *this->tile_height;\n            }\n            pQVar14 = GetCacheViewVirtualPixels\n                                (cache_view_00,local_40,local_3c,columns,sVar13,exception);\n            if (pQVar14 == (Quantum *)0x0) {\n              this->status = MagickFalse;\n              break;\n            }\n            if (0 < (int)columns) {\n              local_70 = local_40;\n              do {\n                if (this->status != MagickFalse) {\n                  pQVar15 = QueueCacheViewAuthenticPixels\n                                      (cache_view,(pIVar2->columns - local_3c) - sVar13,local_70,\n                                       sVar13,1,exception);\n                  if (pQVar15 != (Quantum *)0x0) {\n                    sVar3 = image->number_channels;\n                    local_74 = (Quantum *)\n                               ((((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +\n                               (int)pQVar14);\n                    if (0 < (int)sVar13) {\n                      local_78 = 0;\n                      sVar4 = pIVar2->number_channels;\n                      do {\n                        if (0 < (int)sVar3) {\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);\n                        pQVar15 = pQVar15 + sVar4;\n                      } while (local_78 != sVar13);\n                    }\n                    MVar16 = SyncCacheViewAuthenticPixels(cache_view,exception);\n                    if (MVar16 != MagickFalse) goto LAB_00185782;\n                  }\n                  this->status = MagickFalse;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (columns + local_40 != local_70);\n            }\n            local_44 = *this->tile_width;\n            local_40 = local_40 + local_44;\n            sVar13 = image->columns;\n          } while (local_40 < (int)sVar13);\n        }\n        if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n          uVar8 = image->rows;\n          iVar9 = *this->tile_height + (int)this->progress;\n          iVar10 = *(int *)((int)&this->progress + 4) +\n                   (uint)CARRY4(*this->tile_height,(uint)this->progress);\n          *(int *)&this->progress = iVar9;\n          *(int *)((int)&this->progress + 4) = iVar10;\n          MVar16 = SetImageProgress(image,(char *)(unaff_EDI + 0x142477),CONCAT44(iVar10,iVar9),\n                                    (ulonglong)uVar8);\n          if (MVar16 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n        }\n      }" { (expression_statement "sVar13 = image->columns;" (assignment_expression "sVar13 = image->columns" identifier = (field_expression "image->columns" identifier -> field_identifier)) ;) (if_statement "if (0 < (int)sVar13) {\n          local_40 = 0;\n          local_44 = *this->tile_width;\n          do {\n            columns = sVar13 - local_40;\n            if ((int)(local_44 + local_40) <= (int)sVar13) {\n              columns = local_44;\n            }\n            sVar13 = image->rows - local_3c;\n            if ((int)(*this->tile_height + local_3c) <= (int)image->rows) {\n              sVar13 = *this->tile_height;\n            }\n            pQVar14 = GetCacheViewVirtualPixels\n                                (cache_view_00,local_40,local_3c,columns,sVar13,exception);\n            if (pQVar14 == (Quantum *)0x0) {\n              this->status = MagickFalse;\n              break;\n            }\n            if (0 < (int)columns) {\n              local_70 = local_40;\n              do {\n                if (this->status != MagickFalse) {\n                  pQVar15 = QueueCacheViewAuthenticPixels\n                                      (cache_view,(pIVar2->columns - local_3c) - sVar13,local_70,\n                                       sVar13,1,exception);\n                  if (pQVar15 != (Quantum *)0x0) {\n                    sVar3 = image->number_channels;\n                    local_74 = (Quantum *)\n                               ((((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +\n                               (int)pQVar14);\n                    if (0 < (int)sVar13) {\n                      local_78 = 0;\n                      sVar4 = pIVar2->number_channels;\n                      do {\n                        if (0 < (int)sVar3) {\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);\n                        pQVar15 = pQVar15 + sVar4;\n                      } while (local_78 != sVar13);\n                    }\n                    MVar16 = SyncCacheViewAuthenticPixels(cache_view,exception);\n                    if (MVar16 != MagickFalse) goto LAB_00185782;\n                  }\n                  this->status = MagickFalse;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (columns + local_40 != local_70);\n            }\n            local_44 = *this->tile_width;\n            local_40 = local_40 + local_44;\n            sVar13 = image->columns;\n          } while (local_40 < (int)sVar13);\n        }" if (parenthesized_expression "(0 < (int)sVar13)" ( (binary_expression "0 < (int)sVar13" number_literal < (cast_expression "(int)sVar13" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n          local_40 = 0;\n          local_44 = *this->tile_width;\n          do {\n            columns = sVar13 - local_40;\n            if ((int)(local_44 + local_40) <= (int)sVar13) {\n              columns = local_44;\n            }\n            sVar13 = image->rows - local_3c;\n            if ((int)(*this->tile_height + local_3c) <= (int)image->rows) {\n              sVar13 = *this->tile_height;\n            }\n            pQVar14 = GetCacheViewVirtualPixels\n                                (cache_view_00,local_40,local_3c,columns,sVar13,exception);\n            if (pQVar14 == (Quantum *)0x0) {\n              this->status = MagickFalse;\n              break;\n            }\n            if (0 < (int)columns) {\n              local_70 = local_40;\n              do {\n                if (this->status != MagickFalse) {\n                  pQVar15 = QueueCacheViewAuthenticPixels\n                                      (cache_view,(pIVar2->columns - local_3c) - sVar13,local_70,\n                                       sVar13,1,exception);\n                  if (pQVar15 != (Quantum *)0x0) {\n                    sVar3 = image->number_channels;\n                    local_74 = (Quantum *)\n                               ((((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +\n                               (int)pQVar14);\n                    if (0 < (int)sVar13) {\n                      local_78 = 0;\n                      sVar4 = pIVar2->number_channels;\n                      do {\n                        if (0 < (int)sVar3) {\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);\n                        pQVar15 = pQVar15 + sVar4;\n                      } while (local_78 != sVar13);\n                    }\n                    MVar16 = SyncCacheViewAuthenticPixels(cache_view,exception);\n                    if (MVar16 != MagickFalse) goto LAB_00185782;\n                  }\n                  this->status = MagickFalse;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (columns + local_40 != local_70);\n            }\n            local_44 = *this->tile_width;\n            local_40 = local_40 + local_44;\n            sVar13 = image->columns;\n          } while (local_40 < (int)sVar13);\n        }" { (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (expression_statement "local_44 = *this->tile_width;" (assignment_expression "local_44 = *this->tile_width" identifier = (pointer_expression "*this->tile_width" * (field_expression "this->tile_width" identifier -> field_identifier))) ;) (do_statement "do {\n            columns = sVar13 - local_40;\n            if ((int)(local_44 + local_40) <= (int)sVar13) {\n              columns = local_44;\n            }\n            sVar13 = image->rows - local_3c;\n            if ((int)(*this->tile_height + local_3c) <= (int)image->rows) {\n              sVar13 = *this->tile_height;\n            }\n            pQVar14 = GetCacheViewVirtualPixels\n                                (cache_view_00,local_40,local_3c,columns,sVar13,exception);\n            if (pQVar14 == (Quantum *)0x0) {\n              this->status = MagickFalse;\n              break;\n            }\n            if (0 < (int)columns) {\n              local_70 = local_40;\n              do {\n                if (this->status != MagickFalse) {\n                  pQVar15 = QueueCacheViewAuthenticPixels\n                                      (cache_view,(pIVar2->columns - local_3c) - sVar13,local_70,\n                                       sVar13,1,exception);\n                  if (pQVar15 != (Quantum *)0x0) {\n                    sVar3 = image->number_channels;\n                    local_74 = (Quantum *)\n                               ((((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +\n                               (int)pQVar14);\n                    if (0 < (int)sVar13) {\n                      local_78 = 0;\n                      sVar4 = pIVar2->number_channels;\n                      do {\n                        if (0 < (int)sVar3) {\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);\n                        pQVar15 = pQVar15 + sVar4;\n                      } while (local_78 != sVar13);\n                    }\n                    MVar16 = SyncCacheViewAuthenticPixels(cache_view,exception);\n                    if (MVar16 != MagickFalse) goto LAB_00185782;\n                  }\n                  this->status = MagickFalse;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (columns + local_40 != local_70);\n            }\n            local_44 = *this->tile_width;\n            local_40 = local_40 + local_44;\n            sVar13 = image->columns;\n          } while (local_40 < (int)sVar13);" do (compound_statement "{\n            columns = sVar13 - local_40;\n            if ((int)(local_44 + local_40) <= (int)sVar13) {\n              columns = local_44;\n            }\n            sVar13 = image->rows - local_3c;\n            if ((int)(*this->tile_height + local_3c) <= (int)image->rows) {\n              sVar13 = *this->tile_height;\n            }\n            pQVar14 = GetCacheViewVirtualPixels\n                                (cache_view_00,local_40,local_3c,columns,sVar13,exception);\n            if (pQVar14 == (Quantum *)0x0) {\n              this->status = MagickFalse;\n              break;\n            }\n            if (0 < (int)columns) {\n              local_70 = local_40;\n              do {\n                if (this->status != MagickFalse) {\n                  pQVar15 = QueueCacheViewAuthenticPixels\n                                      (cache_view,(pIVar2->columns - local_3c) - sVar13,local_70,\n                                       sVar13,1,exception);\n                  if (pQVar15 != (Quantum *)0x0) {\n                    sVar3 = image->number_channels;\n                    local_74 = (Quantum *)\n                               ((((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +\n                               (int)pQVar14);\n                    if (0 < (int)sVar13) {\n                      local_78 = 0;\n                      sVar4 = pIVar2->number_channels;\n                      do {\n                        if (0 < (int)sVar3) {\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);\n                        pQVar15 = pQVar15 + sVar4;\n                      } while (local_78 != sVar13);\n                    }\n                    MVar16 = SyncCacheViewAuthenticPixels(cache_view,exception);\n                    if (MVar16 != MagickFalse) goto LAB_00185782;\n                  }\n                  this->status = MagickFalse;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (columns + local_40 != local_70);\n            }\n            local_44 = *this->tile_width;\n            local_40 = local_40 + local_44;\n            sVar13 = image->columns;\n          }" { (expression_statement "columns = sVar13 - local_40;" (assignment_expression "columns = sVar13 - local_40" identifier = (binary_expression "sVar13 - local_40" identifier - identifier)) ;) (if_statement "if ((int)(local_44 + local_40) <= (int)sVar13) {\n              columns = local_44;\n            }" if (parenthesized_expression "((int)(local_44 + local_40) <= (int)sVar13)" ( (binary_expression "(int)(local_44 + local_40) <= (int)sVar13" (cast_expression "(int)(local_44 + local_40)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(local_44 + local_40)" ( (binary_expression "local_44 + local_40" identifier + identifier) ))) <= (cast_expression "(int)sVar13" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n              columns = local_44;\n            }" { (expression_statement "columns = local_44;" (assignment_expression "columns = local_44" identifier = identifier) ;) })) (expression_statement "sVar13 = image->rows - local_3c;" (assignment_expression "sVar13 = image->rows - local_3c" identifier = (binary_expression "image->rows - local_3c" (field_expression "image->rows" identifier -> field_identifier) - identifier)) ;) (if_statement "if ((int)(*this->tile_height + local_3c) <= (int)image->rows) {\n              sVar13 = *this->tile_height;\n            }" if (parenthesized_expression "((int)(*this->tile_height + local_3c) <= (int)image->rows)" ( (binary_expression "(int)(*this->tile_height + local_3c) <= (int)image->rows" (cast_expression "(int)(*this->tile_height + local_3c)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(*this->tile_height + local_3c)" ( (binary_expression "*this->tile_height + local_3c" (pointer_expression "*this->tile_height" * (field_expression "this->tile_height" identifier -> field_identifier)) + identifier) ))) <= (cast_expression "(int)image->rows" ( (type_descriptor "int" primitive_type) ) (field_expression "image->rows" identifier -> field_identifier))) )) (compound_statement "{\n              sVar13 = *this->tile_height;\n            }" { (expression_statement "sVar13 = *this->tile_height;" (assignment_expression "sVar13 = *this->tile_height" identifier = (pointer_expression "*this->tile_height" * (field_expression "this->tile_height" identifier -> field_identifier))) ;) })) (expression_statement "pQVar14 = GetCacheViewVirtualPixels\n                                (cache_view_00,local_40,local_3c,columns,sVar13,exception);" (assignment_expression "pQVar14 = GetCacheViewVirtualPixels\n                                (cache_view_00,local_40,local_3c,columns,sVar13,exception)" identifier = (call_expression "GetCacheViewVirtualPixels\n                                (cache_view_00,local_40,local_3c,columns,sVar13,exception)" identifier (argument_list "(cache_view_00,local_40,local_3c,columns,sVar13,exception)" ( identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (if_statement "if (pQVar14 == (Quantum *)0x0) {\n              this->status = MagickFalse;\n              break;\n            }" if (parenthesized_expression "(pQVar14 == (Quantum *)0x0)" ( (binary_expression "pQVar14 == (Quantum *)0x0" identifier == (cast_expression "(Quantum *)0x0" ( (type_descriptor "Quantum *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              this->status = MagickFalse;\n              break;\n            }" { (expression_statement "this->status = MagickFalse;" (assignment_expression "this->status = MagickFalse" (field_expression "this->status" identifier -> field_identifier) = identifier) ;) (break_statement "break;" break ;) })) (if_statement "if (0 < (int)columns) {\n              local_70 = local_40;\n              do {\n                if (this->status != MagickFalse) {\n                  pQVar15 = QueueCacheViewAuthenticPixels\n                                      (cache_view,(pIVar2->columns - local_3c) - sVar13,local_70,\n                                       sVar13,1,exception);\n                  if (pQVar15 != (Quantum *)0x0) {\n                    sVar3 = image->number_channels;\n                    local_74 = (Quantum *)\n                               ((((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +\n                               (int)pQVar14);\n                    if (0 < (int)sVar13) {\n                      local_78 = 0;\n                      sVar4 = pIVar2->number_channels;\n                      do {\n                        if (0 < (int)sVar3) {\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);\n                        pQVar15 = pQVar15 + sVar4;\n                      } while (local_78 != sVar13);\n                    }\n                    MVar16 = SyncCacheViewAuthenticPixels(cache_view,exception);\n                    if (MVar16 != MagickFalse) goto LAB_00185782;\n                  }\n                  this->status = MagickFalse;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (columns + local_40 != local_70);\n            }" if (parenthesized_expression "(0 < (int)columns)" ( (binary_expression "0 < (int)columns" number_literal < (cast_expression "(int)columns" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n              local_70 = local_40;\n              do {\n                if (this->status != MagickFalse) {\n                  pQVar15 = QueueCacheViewAuthenticPixels\n                                      (cache_view,(pIVar2->columns - local_3c) - sVar13,local_70,\n                                       sVar13,1,exception);\n                  if (pQVar15 != (Quantum *)0x0) {\n                    sVar3 = image->number_channels;\n                    local_74 = (Quantum *)\n                               ((((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +\n                               (int)pQVar14);\n                    if (0 < (int)sVar13) {\n                      local_78 = 0;\n                      sVar4 = pIVar2->number_channels;\n                      do {\n                        if (0 < (int)sVar3) {\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);\n                        pQVar15 = pQVar15 + sVar4;\n                      } while (local_78 != sVar13);\n                    }\n                    MVar16 = SyncCacheViewAuthenticPixels(cache_view,exception);\n                    if (MVar16 != MagickFalse) goto LAB_00185782;\n                  }\n                  this->status = MagickFalse;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (columns + local_40 != local_70);\n            }" { (expression_statement "local_70 = local_40;" (assignment_expression "local_70 = local_40" identifier = identifier) ;) (do_statement "do {\n                if (this->status != MagickFalse) {\n                  pQVar15 = QueueCacheViewAuthenticPixels\n                                      (cache_view,(pIVar2->columns - local_3c) - sVar13,local_70,\n                                       sVar13,1,exception);\n                  if (pQVar15 != (Quantum *)0x0) {\n                    sVar3 = image->number_channels;\n                    local_74 = (Quantum *)\n                               ((((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +\n                               (int)pQVar14);\n                    if (0 < (int)sVar13) {\n                      local_78 = 0;\n                      sVar4 = pIVar2->number_channels;\n                      do {\n                        if (0 < (int)sVar3) {\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);\n                        pQVar15 = pQVar15 + sVar4;\n                      } while (local_78 != sVar13);\n                    }\n                    MVar16 = SyncCacheViewAuthenticPixels(cache_view,exception);\n                    if (MVar16 != MagickFalse) goto LAB_00185782;\n                  }\n                  this->status = MagickFalse;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (columns + local_40 != local_70);" do (compound_statement "{\n                if (this->status != MagickFalse) {\n                  pQVar15 = QueueCacheViewAuthenticPixels\n                                      (cache_view,(pIVar2->columns - local_3c) - sVar13,local_70,\n                                       sVar13,1,exception);\n                  if (pQVar15 != (Quantum *)0x0) {\n                    sVar3 = image->number_channels;\n                    local_74 = (Quantum *)\n                               ((((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +\n                               (int)pQVar14);\n                    if (0 < (int)sVar13) {\n                      local_78 = 0;\n                      sVar4 = pIVar2->number_channels;\n                      do {\n                        if (0 < (int)sVar3) {\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);\n                        pQVar15 = pQVar15 + sVar4;\n                      } while (local_78 != sVar13);\n                    }\n                    MVar16 = SyncCacheViewAuthenticPixels(cache_view,exception);\n                    if (MVar16 != MagickFalse) goto LAB_00185782;\n                  }\n                  this->status = MagickFalse;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              }" { (if_statement "if (this->status != MagickFalse) {\n                  pQVar15 = QueueCacheViewAuthenticPixels\n                                      (cache_view,(pIVar2->columns - local_3c) - sVar13,local_70,\n                                       sVar13,1,exception);\n                  if (pQVar15 != (Quantum *)0x0) {\n                    sVar3 = image->number_channels;\n                    local_74 = (Quantum *)\n                               ((((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +\n                               (int)pQVar14);\n                    if (0 < (int)sVar13) {\n                      local_78 = 0;\n                      sVar4 = pIVar2->number_channels;\n                      do {\n                        if (0 < (int)sVar3) {\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);\n                        pQVar15 = pQVar15 + sVar4;\n                      } while (local_78 != sVar13);\n                    }\n                    MVar16 = SyncCacheViewAuthenticPixels(cache_view,exception);\n                    if (MVar16 != MagickFalse) goto LAB_00185782;\n                  }\n                  this->status = MagickFalse;\n                }" if (parenthesized_expression "(this->status != MagickFalse)" ( (binary_expression "this->status != MagickFalse" (field_expression "this->status" identifier -> field_identifier) != identifier) )) (compound_statement "{\n                  pQVar15 = QueueCacheViewAuthenticPixels\n                                      (cache_view,(pIVar2->columns - local_3c) - sVar13,local_70,\n                                       sVar13,1,exception);\n                  if (pQVar15 != (Quantum *)0x0) {\n                    sVar3 = image->number_channels;\n                    local_74 = (Quantum *)\n                               ((((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +\n                               (int)pQVar14);\n                    if (0 < (int)sVar13) {\n                      local_78 = 0;\n                      sVar4 = pIVar2->number_channels;\n                      do {\n                        if (0 < (int)sVar3) {\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);\n                        pQVar15 = pQVar15 + sVar4;\n                      } while (local_78 != sVar13);\n                    }\n                    MVar16 = SyncCacheViewAuthenticPixels(cache_view,exception);\n                    if (MVar16 != MagickFalse) goto LAB_00185782;\n                  }\n                  this->status = MagickFalse;\n                }" { (expression_statement "pQVar15 = QueueCacheViewAuthenticPixels\n                                      (cache_view,(pIVar2->columns - local_3c) - sVar13,local_70,\n                                       sVar13,1,exception);" (assignment_expression "pQVar15 = QueueCacheViewAuthenticPixels\n                                      (cache_view,(pIVar2->columns - local_3c) - sVar13,local_70,\n                                       sVar13,1,exception)" identifier = (call_expression "QueueCacheViewAuthenticPixels\n                                      (cache_view,(pIVar2->columns - local_3c) - sVar13,local_70,\n                                       sVar13,1,exception)" identifier (argument_list "(cache_view,(pIVar2->columns - local_3c) - sVar13,local_70,\n                                       sVar13,1,exception)" ( identifier , (binary_expression "(pIVar2->columns - local_3c) - sVar13" (parenthesized_expression "(pIVar2->columns - local_3c)" ( (binary_expression "pIVar2->columns - local_3c" (field_expression "pIVar2->columns" identifier -> field_identifier) - identifier) )) - identifier) , identifier , identifier , number_literal , identifier )))) ;) (if_statement "if (pQVar15 != (Quantum *)0x0) {\n                    sVar3 = image->number_channels;\n                    local_74 = (Quantum *)\n                               ((((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +\n                               (int)pQVar14);\n                    if (0 < (int)sVar13) {\n                      local_78 = 0;\n                      sVar4 = pIVar2->number_channels;\n                      do {\n                        if (0 < (int)sVar3) {\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);\n                        pQVar15 = pQVar15 + sVar4;\n                      } while (local_78 != sVar13);\n                    }\n                    MVar16 = SyncCacheViewAuthenticPixels(cache_view,exception);\n                    if (MVar16 != MagickFalse) goto LAB_00185782;\n                  }" if (parenthesized_expression "(pQVar15 != (Quantum *)0x0)" ( (binary_expression "pQVar15 != (Quantum *)0x0" identifier != (cast_expression "(Quantum *)0x0" ( (type_descriptor "Quantum *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    sVar3 = image->number_channels;\n                    local_74 = (Quantum *)\n                               ((((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +\n                               (int)pQVar14);\n                    if (0 < (int)sVar13) {\n                      local_78 = 0;\n                      sVar4 = pIVar2->number_channels;\n                      do {\n                        if (0 < (int)sVar3) {\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);\n                        pQVar15 = pQVar15 + sVar4;\n                      } while (local_78 != sVar13);\n                    }\n                    MVar16 = SyncCacheViewAuthenticPixels(cache_view,exception);\n                    if (MVar16 != MagickFalse) goto LAB_00185782;\n                  }" { (expression_statement "sVar3 = image->number_channels;" (assignment_expression "sVar3 = image->number_channels" identifier = (field_expression "image->number_channels" identifier -> field_identifier)) ;) (expression_statement "local_74 = (Quantum *)\n                               ((((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +\n                               (int)pQVar14);" (assignment_expression "local_74 = (Quantum *)\n                               ((((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +\n                               (int)pQVar14)" identifier = (cast_expression "(Quantum *)\n                               ((((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +\n                               (int)pQVar14)" ( (type_descriptor "Quantum *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +\n                               (int)pQVar14)" ( (binary_expression "(((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8 +\n                               (int)pQVar14" (binary_expression "(((sVar13 - 1) * columns - local_40) + local_70) * sVar3 * 8" (binary_expression "(((sVar13 - 1) * columns - local_40) + local_70) * sVar3" (parenthesized_expression "(((sVar13 - 1) * columns - local_40) + local_70)" ( (binary_expression "((sVar13 - 1) * columns - local_40) + local_70" (parenthesized_expression "((sVar13 - 1) * columns - local_40)" ( (binary_expression "(sVar13 - 1) * columns - local_40" (binary_expression "(sVar13 - 1) * columns" (parenthesized_expression "(sVar13 - 1)" ( (binary_expression "sVar13 - 1" identifier - number_literal) )) * identifier) - identifier) )) + identifier) )) * identifier) * number_literal) + (cast_expression "(int)pQVar14" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (if_statement "if (0 < (int)sVar13) {\n                      local_78 = 0;\n                      sVar4 = pIVar2->number_channels;\n                      do {\n                        if (0 < (int)sVar3) {\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);\n                        pQVar15 = pQVar15 + sVar4;\n                      } while (local_78 != sVar13);\n                    }" if (parenthesized_expression "(0 < (int)sVar13)" ( (binary_expression "0 < (int)sVar13" number_literal < (cast_expression "(int)sVar13" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n                      local_78 = 0;\n                      sVar4 = pIVar2->number_channels;\n                      do {\n                        if (0 < (int)sVar3) {\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);\n                        pQVar15 = pQVar15 + sVar4;\n                      } while (local_78 != sVar13);\n                    }" { (expression_statement "local_78 = 0;" (assignment_expression "local_78 = 0" identifier = number_literal) ;) (expression_statement "sVar4 = pIVar2->number_channels;" (assignment_expression "sVar4 = pIVar2->number_channels" identifier = (field_expression "pIVar2->number_channels" identifier -> field_identifier)) ;) (do_statement "do {\n                        if (0 < (int)sVar3) {\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);\n                        pQVar15 = pQVar15 + sVar4;\n                      } while (local_78 != sVar13);" do (compound_statement "{\n                        if (0 < (int)sVar3) {\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);\n                        pQVar15 = pQVar15 + sVar4;\n                      }" { (if_statement "if (0 < (int)sVar3) {\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }" if (parenthesized_expression "(0 < (int)sVar3)" ( (binary_expression "0 < (int)sVar3" number_literal < (cast_expression "(int)sVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n                          pPVar5 = image->channel_map;\n                          pPVar6 = pIVar2->channel_map;\n                          pQVar17 = local_74;\n                          pPVar18 = pPVar5;\n                          do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);\n                        }" { (expression_statement "pPVar5 = image->channel_map;" (assignment_expression "pPVar5 = image->channel_map" identifier = (field_expression "image->channel_map" identifier -> field_identifier)) ;) (expression_statement "pPVar6 = pIVar2->channel_map;" (assignment_expression "pPVar6 = pIVar2->channel_map" identifier = (field_expression "pIVar2->channel_map" identifier -> field_identifier)) ;) (expression_statement "pQVar17 = local_74;" (assignment_expression "pQVar17 = local_74" identifier = identifier) ;) (expression_statement "pPVar18 = pPVar5;" (assignment_expression "pPVar18 = pPVar5" identifier = identifier) ;) (do_statement "do {\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          } while (pPVar18 != pPVar5 + sVar3);" do (compound_statement "{\n                            PVar7 = pPVar18->channel;\n                            if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }\n                            pPVar18 = pPVar18 + 1;\n                            pQVar17 = pQVar17 + 1;\n                          }" { (expression_statement "PVar7 = pPVar18->channel;" (assignment_expression "PVar7 = pPVar18->channel" identifier = (field_expression "pPVar18->channel" identifier -> field_identifier)) ;) (if_statement "if ((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)) {\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }" if (parenthesized_expression "((pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait))" ( (binary_expression "(pPVar5[PVar7].traits != UndefinedPixelTrait) &&\n                               (pPVar6[PVar7].traits != UndefinedPixelTrait)" (parenthesized_expression "(pPVar5[PVar7].traits != UndefinedPixelTrait)" ( (binary_expression "pPVar5[PVar7].traits != UndefinedPixelTrait" (field_expression "pPVar5[PVar7].traits" (subscript_expression "pPVar5[PVar7]" identifier [ identifier ]) . field_identifier) != identifier) )) && (parenthesized_expression "(pPVar6[PVar7].traits != UndefinedPixelTrait)" ( (binary_expression "pPVar6[PVar7].traits != UndefinedPixelTrait" (field_expression "pPVar6[PVar7].traits" (subscript_expression "pPVar6[PVar7]" identifier [ identifier ]) . field_identifier) != identifier) ))) )) (compound_statement "{\n                              pQVar15[pPVar6[PVar7].offset] = *pQVar17;\n                            }" { (expression_statement "pQVar15[pPVar6[PVar7].offset] = *pQVar17;" (assignment_expression "pQVar15[pPVar6[PVar7].offset] = *pQVar17" (subscript_expression "pQVar15[pPVar6[PVar7].offset]" identifier [ (field_expression "pPVar6[PVar7].offset" (subscript_expression "pPVar6[PVar7]" identifier [ identifier ]) . field_identifier) ]) = (pointer_expression "*pQVar17" * identifier)) ;) })) (expression_statement "pPVar18 = pPVar18 + 1;" (assignment_expression "pPVar18 = pPVar18 + 1" identifier = (binary_expression "pPVar18 + 1" identifier + number_literal)) ;) (expression_statement "pQVar17 = pQVar17 + 1;" (assignment_expression "pQVar17 = pQVar17 + 1" identifier = (binary_expression "pQVar17 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pPVar18 != pPVar5 + sVar3)" ( (binary_expression "pPVar18 != pPVar5 + sVar3" identifier != (binary_expression "pPVar5 + sVar3" identifier + identifier)) )) ;) })) (expression_statement "local_78 = local_78 + 1;" (assignment_expression "local_78 = local_78 + 1" identifier = (binary_expression "local_78 + 1" identifier + number_literal)) ;) (expression_statement "local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns);" (assignment_expression "local_74 = (Quantum *)((int)local_74 - sVar3 * 8 * columns)" identifier = (cast_expression "(Quantum *)((int)local_74 - sVar3 * 8 * columns)" ( (type_descriptor "Quantum *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_74 - sVar3 * 8 * columns)" ( (binary_expression "(int)local_74 - sVar3 * 8 * columns" (cast_expression "(int)local_74" ( (type_descriptor "int" primitive_type) ) identifier) - (binary_expression "sVar3 * 8 * columns" (binary_expression "sVar3 * 8" identifier * number_literal) * identifier)) )))) ;) (expression_statement "pQVar15 = pQVar15 + sVar4;" (assignment_expression "pQVar15 = pQVar15 + sVar4" identifier = (binary_expression "pQVar15 + sVar4" identifier + identifier)) ;) }) while (parenthesized_expression "(local_78 != sVar13)" ( (binary_expression "local_78 != sVar13" identifier != identifier) )) ;) })) (expression_statement "MVar16 = SyncCacheViewAuthenticPixels(cache_view,exception);" (assignment_expression "MVar16 = SyncCacheViewAuthenticPixels(cache_view,exception)" identifier = (call_expression "SyncCacheViewAuthenticPixels(cache_view,exception)" identifier (argument_list "(cache_view,exception)" ( identifier , identifier )))) ;) (if_statement "if (MVar16 != MagickFalse) goto LAB_00185782;" if (parenthesized_expression "(MVar16 != MagickFalse)" ( (binary_expression "MVar16 != MagickFalse" identifier != identifier) )) (goto_statement "goto LAB_00185782;" goto statement_identifier ;)) })) (expression_statement "this->status = MagickFalse;" (assignment_expression "this->status = MagickFalse" (field_expression "this->status" identifier -> field_identifier) = identifier) ;) })) (labeled_statement "LAB_00185782:\n                local_70 = local_70 + 1;" statement_identifier : (expression_statement "local_70 = local_70 + 1;" (assignment_expression "local_70 = local_70 + 1" identifier = (binary_expression "local_70 + 1" identifier + number_literal)) ;)) }) while (parenthesized_expression "(columns + local_40 != local_70)" ( (binary_expression "columns + local_40 != local_70" (binary_expression "columns + local_40" identifier + identifier) != identifier) )) ;) })) (expression_statement "local_44 = *this->tile_width;" (assignment_expression "local_44 = *this->tile_width" identifier = (pointer_expression "*this->tile_width" * (field_expression "this->tile_width" identifier -> field_identifier))) ;) (expression_statement "local_40 = local_40 + local_44;" (assignment_expression "local_40 = local_40 + local_44" identifier = (binary_expression "local_40 + local_44" identifier + identifier)) ;) (expression_statement "sVar13 = image->columns;" (assignment_expression "sVar13 = image->columns" identifier = (field_expression "image->columns" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(local_40 < (int)sVar13)" ( (binary_expression "local_40 < (int)sVar13" identifier < (cast_expression "(int)sVar13" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (if_statement "if (image->progress_monitor != (MagickProgressMonitor)0x0) {\n          uVar8 = image->rows;\n          iVar9 = *this->tile_height + (int)this->progress;\n          iVar10 = *(int *)((int)&this->progress + 4) +\n                   (uint)CARRY4(*this->tile_height,(uint)this->progress);\n          *(int *)&this->progress = iVar9;\n          *(int *)((int)&this->progress + 4) = iVar10;\n          MVar16 = SetImageProgress(image,(char *)(unaff_EDI + 0x142477),CONCAT44(iVar10,iVar9),\n                                    (ulonglong)uVar8);\n          if (MVar16 == 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          uVar8 = image->rows;\n          iVar9 = *this->tile_height + (int)this->progress;\n          iVar10 = *(int *)((int)&this->progress + 4) +\n                   (uint)CARRY4(*this->tile_height,(uint)this->progress);\n          *(int *)&this->progress = iVar9;\n          *(int *)((int)&this->progress + 4) = iVar10;\n          MVar16 = SetImageProgress(image,(char *)(unaff_EDI + 0x142477),CONCAT44(iVar10,iVar9),\n                                    (ulonglong)uVar8);\n          if (MVar16 == MagickFalse) {\n            this->status = MagickFalse;\n          }\n        }" { (expression_statement "uVar8 = image->rows;" (assignment_expression "uVar8 = image->rows" identifier = (field_expression "image->rows" identifier -> field_identifier)) ;) (expression_statement "iVar9 = *this->tile_height + (int)this->progress;" (assignment_expression "iVar9 = *this->tile_height + (int)this->progress" identifier = (binary_expression "*this->tile_height + (int)this->progress" (pointer_expression "*this->tile_height" * (field_expression "this->tile_height" identifier -> field_identifier)) + (cast_expression "(int)this->progress" ( (type_descriptor "int" primitive_type) ) (field_expression "this->progress" identifier -> field_identifier)))) ;) (expression_statement "iVar10 = *(int *)((int)&this->progress + 4) +\n                   (uint)CARRY4(*this->tile_height,(uint)this->progress);" (assignment_expression "iVar10 = *(int *)((int)&this->progress + 4) +\n                   (uint)CARRY4(*this->tile_height,(uint)this->progress)" identifier = (binary_expression "*(int *)((int)&this->progress + 4) +\n                   (uint)CARRY4(*this->tile_height,(uint)this->progress)" (pointer_expression "*(int *)((int)&this->progress + 4)" * (cast_expression "(int *)((int)&this->progress + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&this->progress + 4)" ( (binary_expression "(int)&this->progress + 4" (cast_expression "(int)&this->progress" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&this->progress" & (field_expression "this->progress" identifier -> field_identifier))) + number_literal) )))) + (cast_expression "(uint)CARRY4(*this->tile_height,(uint)this->progress)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(*this->tile_height,(uint)this->progress)" identifier (argument_list "(*this->tile_height,(uint)this->progress)" ( (pointer_expression "*this->tile_height" * (field_expression "this->tile_height" identifier -> field_identifier)) , (cast_expression "(uint)this->progress" ( (type_descriptor "uint" type_identifier) ) (field_expression "this->progress" identifier -> field_identifier)) )))))) ;) (expression_statement "*(int *)&this->progress = iVar9;" (assignment_expression "*(int *)&this->progress = iVar9" (pointer_expression "*(int *)&this->progress" * (cast_expression "(int *)&this->progress" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&this->progress" & (field_expression "this->progress" identifier -> field_identifier)))) = identifier) ;) (expression_statement "*(int *)((int)&this->progress + 4) = iVar10;" (assignment_expression "*(int *)((int)&this->progress + 4) = iVar10" (pointer_expression "*(int *)((int)&this->progress + 4)" * (cast_expression "(int *)((int)&this->progress + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&this->progress + 4)" ( (binary_expression "(int)&this->progress + 4" (cast_expression "(int)&this->progress" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&this->progress" & (field_expression "this->progress" identifier -> field_identifier))) + number_literal) )))) = identifier) ;) (expression_statement "MVar16 = SetImageProgress(image,(char *)(unaff_EDI + 0x142477),CONCAT44(iVar10,iVar9),\n                                    (ulonglong)uVar8);" (assignment_expression "MVar16 = SetImageProgress(image,(char *)(unaff_EDI + 0x142477),CONCAT44(iVar10,iVar9),\n                                    (ulonglong)uVar8)" identifier = (call_expression "SetImageProgress(image,(char *)(unaff_EDI + 0x142477),CONCAT44(iVar10,iVar9),\n                                    (ulonglong)uVar8)" identifier (argument_list "(image,(char *)(unaff_EDI + 0x142477),CONCAT44(iVar10,iVar9),\n                                    (ulonglong)uVar8)" ( identifier , (cast_expression "(char *)(unaff_EDI + 0x142477)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x142477)" ( (binary_expression "unaff_EDI + 0x142477" identifier + number_literal) ))) , (call_expression "CONCAT44(iVar10,iVar9)" identifier (argument_list "(iVar10,iVar9)" ( identifier , identifier ))) , (cast_expression "(ulonglong)uVar8" ( (type_descriptor "ulonglong" type_identifier) ) identifier) )))) ;) (if_statement "if (MVar16 == MagickFalse) {\n            this->status = MagickFalse;\n          }" if (parenthesized_expression "(MVar16 == MagickFalse)" ( (binary_expression "MVar16 == 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_3c = local_3c + sVar1;" (assignment_expression "local_3c = local_3c + sVar1" identifier = (binary_expression "local_3c + sVar1" identifier + identifier)) ;) }) while (parenthesized_expression "(local_3c < (int)((iVar12 + iVar11) * sVar1))" ( (binary_expression "local_3c < (int)((iVar12 + iVar11) * sVar1)" identifier < (cast_expression "(int)((iVar12 + iVar11) * sVar1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((iVar12 + iVar11) * sVar1)" ( (binary_expression "(iVar12 + iVar11) * sVar1" (parenthesized_expression "(iVar12 + iVar11)" ( (binary_expression "iVar12 + iVar11" identifier + identifier) )) * identifier) )))) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00185490(uint *param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  int iVar8;\n  int iVar9;\n  int *piVar10;\n  int iVar11;\n  undefined4 uVar12;\n  int iVar13;\n  int iVar14;\n  int iVar15;\n  int iVar16;\n  int iVar17;\n  int iVar18;\n  uint uVar19;\n  undefined8 *puVar20;\n  int *piVar21;\n  uint uVar22;\n  int unaff_EDI;\n  int local_78;\n  undefined8 *local_74;\n  int local_70;\n  int local_44;\n  int local_40;\n  int local_3c;\n  \n  FUN_0004c803();\n  uVar2 = param_1[2];\n  iVar3 = *(int *)param_1[7];\n  iVar13 = omp_get_num_threads();\n  iVar14 = omp_get_thread_num();\n  iVar15 = (iVar3 + -1 + *(int *)(uVar2 + 0x1c)) / iVar3;\n  iVar16 = iVar15 / iVar13;\n  iVar15 = iVar15 % iVar13;\n  if (iVar14 < iVar15) {\n    iVar16 = iVar16 + 1;\n    iVar15 = 0;\n  }\n  iVar15 = iVar15 + iVar14 * iVar16;\n  if (iVar15 < iVar16 + iVar15) {\n    uVar4 = param_1[6];\n    uVar5 = param_1[5];\n    uVar6 = param_1[4];\n    uVar7 = param_1[3];\n    local_3c = iVar15 * iVar3;\n    do {\n      if (param_1[9] != 0) {\n        iVar13 = *(int *)(uVar2 + 0x18);\n        if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }\n        if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }\n      }\n      local_3c = local_3c + iVar3;\n    } while (local_3c < (iVar16 + iVar15) * iVar3);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00185490(uint *param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  int iVar8;\n  int iVar9;\n  int *piVar10;\n  int iVar11;\n  undefined4 uVar12;\n  int iVar13;\n  int iVar14;\n  int iVar15;\n  int iVar16;\n  int iVar17;\n  int iVar18;\n  uint uVar19;\n  undefined8 *puVar20;\n  int *piVar21;\n  uint uVar22;\n  int unaff_EDI;\n  int local_78;\n  undefined8 *local_74;\n  int local_70;\n  int local_44;\n  int local_40;\n  int local_3c;\n  \n  FUN_0004c803();\n  uVar2 = param_1[2];\n  iVar3 = *(int *)param_1[7];\n  iVar13 = omp_get_num_threads();\n  iVar14 = omp_get_thread_num();\n  iVar15 = (iVar3 + -1 + *(int *)(uVar2 + 0x1c)) / iVar3;\n  iVar16 = iVar15 / iVar13;\n  iVar15 = iVar15 % iVar13;\n  if (iVar14 < iVar15) {\n    iVar16 = iVar16 + 1;\n    iVar15 = 0;\n  }\n  iVar15 = iVar15 + iVar14 * iVar16;\n  if (iVar15 < iVar16 + iVar15) {\n    uVar4 = param_1[6];\n    uVar5 = param_1[5];\n    uVar6 = param_1[4];\n    uVar7 = param_1[3];\n    local_3c = iVar15 * iVar3;\n    do {\n      if (param_1[9] != 0) {\n        iVar13 = *(int *)(uVar2 + 0x18);\n        if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }\n        if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }\n      }\n      local_3c = local_3c + iVar3;\n    } while (local_3c < (iVar16 + iVar15) * iVar3);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00185490(uint *param_1)" identifier (parameter_list "(uint *param_1)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  int iVar8;\n  int iVar9;\n  int *piVar10;\n  int iVar11;\n  undefined4 uVar12;\n  int iVar13;\n  int iVar14;\n  int iVar15;\n  int iVar16;\n  int iVar17;\n  int iVar18;\n  uint uVar19;\n  undefined8 *puVar20;\n  int *piVar21;\n  uint uVar22;\n  int unaff_EDI;\n  int local_78;\n  undefined8 *local_74;\n  int local_70;\n  int local_44;\n  int local_40;\n  int local_3c;\n  \n  FUN_0004c803();\n  uVar2 = param_1[2];\n  iVar3 = *(int *)param_1[7];\n  iVar13 = omp_get_num_threads();\n  iVar14 = omp_get_thread_num();\n  iVar15 = (iVar3 + -1 + *(int *)(uVar2 + 0x1c)) / iVar3;\n  iVar16 = iVar15 / iVar13;\n  iVar15 = iVar15 % iVar13;\n  if (iVar14 < iVar15) {\n    iVar16 = iVar16 + 1;\n    iVar15 = 0;\n  }\n  iVar15 = iVar15 + iVar14 * iVar16;\n  if (iVar15 < iVar16 + iVar15) {\n    uVar4 = param_1[6];\n    uVar5 = param_1[5];\n    uVar6 = param_1[4];\n    uVar7 = param_1[3];\n    local_3c = iVar15 * iVar3;\n    do {\n      if (param_1[9] != 0) {\n        iVar13 = *(int *)(uVar2 + 0x18);\n        if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }\n        if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }\n      }\n      local_3c = local_3c + iVar3;\n    } while (local_3c < (iVar16 + iVar15) * iVar3);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int *piVar10;" primitive_type (pointer_declarator "*piVar10" * identifier) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "undefined4 uVar12;" type_identifier identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "int iVar15;" primitive_type identifier ;) (declaration "int iVar16;" primitive_type identifier ;) (declaration "int iVar17;" primitive_type identifier ;) (declaration "int iVar18;" primitive_type identifier ;) (declaration "uint uVar19;" type_identifier identifier ;) (declaration "undefined8 *puVar20;" type_identifier (pointer_declarator "*puVar20" * identifier) ;) (declaration "int *piVar21;" primitive_type (pointer_declarator "*piVar21" * identifier) ;) (declaration "uint uVar22;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "int local_78;" primitive_type identifier ;) (declaration "undefined8 *local_74;" type_identifier (pointer_declarator "*local_74" * identifier) ;) (declaration "int local_70;" primitive_type identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (expression_statement "FUN_0004c803();" (call_expression "FUN_0004c803()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "iVar3 = *(int *)param_1[7];" (assignment_expression "iVar3 = *(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 "*" *)) ) (subscript_expression "param_1[7]" identifier [ number_literal ])))) ;) (expression_statement "iVar13 = omp_get_num_threads();" (assignment_expression "iVar13 = 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 = (iVar3 + -1 + *(int *)(uVar2 + 0x1c)) / iVar3;" (assignment_expression "iVar15 = (iVar3 + -1 + *(int *)(uVar2 + 0x1c)) / iVar3" identifier = (binary_expression "(iVar3 + -1 + *(int *)(uVar2 + 0x1c)) / iVar3" (parenthesized_expression "(iVar3 + -1 + *(int *)(uVar2 + 0x1c))" ( (binary_expression "iVar3 + -1 + *(int *)(uVar2 + 0x1c)" (binary_expression "iVar3 + -1" identifier + number_literal) + (pointer_expression "*(int *)(uVar2 + 0x1c)" * (cast_expression "(int *)(uVar2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 0x1c)" ( (binary_expression "uVar2 + 0x1c" identifier + number_literal) ))))) )) / identifier)) ;) (expression_statement "iVar16 = iVar15 / iVar13;" (assignment_expression "iVar16 = iVar15 / iVar13" identifier = (binary_expression "iVar15 / iVar13" identifier / identifier)) ;) (expression_statement "iVar15 = iVar15 % iVar13;" (assignment_expression "iVar15 = iVar15 % iVar13" identifier = (binary_expression "iVar15 % iVar13" identifier % identifier)) ;) (if_statement "if (iVar14 < iVar15) {\n    iVar16 = iVar16 + 1;\n    iVar15 = 0;\n  }" if (parenthesized_expression "(iVar14 < iVar15)" ( (binary_expression "iVar14 < iVar15" identifier < identifier) )) (compound_statement "{\n    iVar16 = iVar16 + 1;\n    iVar15 = 0;\n  }" { (expression_statement "iVar16 = iVar16 + 1;" (assignment_expression "iVar16 = iVar16 + 1" identifier = (binary_expression "iVar16 + 1" identifier + number_literal)) ;) (expression_statement "iVar15 = 0;" (assignment_expression "iVar15 = 0" identifier = number_literal) ;) })) (expression_statement "iVar15 = iVar15 + iVar14 * iVar16;" (assignment_expression "iVar15 = iVar15 + iVar14 * iVar16" identifier = (binary_expression "iVar15 + iVar14 * iVar16" identifier + (binary_expression "iVar14 * iVar16" identifier * identifier))) ;) (if_statement "if (iVar15 < iVar16 + iVar15) {\n    uVar4 = param_1[6];\n    uVar5 = param_1[5];\n    uVar6 = param_1[4];\n    uVar7 = param_1[3];\n    local_3c = iVar15 * iVar3;\n    do {\n      if (param_1[9] != 0) {\n        iVar13 = *(int *)(uVar2 + 0x18);\n        if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }\n        if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }\n      }\n      local_3c = local_3c + iVar3;\n    } while (local_3c < (iVar16 + iVar15) * iVar3);\n  }" if (parenthesized_expression "(iVar15 < iVar16 + iVar15)" ( (binary_expression "iVar15 < iVar16 + iVar15" identifier < (binary_expression "iVar16 + iVar15" identifier + identifier)) )) (compound_statement "{\n    uVar4 = param_1[6];\n    uVar5 = param_1[5];\n    uVar6 = param_1[4];\n    uVar7 = param_1[3];\n    local_3c = iVar15 * iVar3;\n    do {\n      if (param_1[9] != 0) {\n        iVar13 = *(int *)(uVar2 + 0x18);\n        if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }\n        if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }\n      }\n      local_3c = local_3c + iVar3;\n    } while (local_3c < (iVar16 + iVar15) * iVar3);\n  }" { (expression_statement "uVar4 = param_1[6];" (assignment_expression "uVar4 = param_1[6]" identifier = (subscript_expression "param_1[6]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = param_1[5];" (assignment_expression "uVar5 = param_1[5]" identifier = (subscript_expression "param_1[5]" identifier [ number_literal ])) ;) (expression_statement "uVar6 = param_1[4];" (assignment_expression "uVar6 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "uVar7 = param_1[3];" (assignment_expression "uVar7 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "local_3c = iVar15 * iVar3;" (assignment_expression "local_3c = iVar15 * iVar3" identifier = (binary_expression "iVar15 * iVar3" identifier * identifier)) ;) (do_statement "do {\n      if (param_1[9] != 0) {\n        iVar13 = *(int *)(uVar2 + 0x18);\n        if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }\n        if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }\n      }\n      local_3c = local_3c + iVar3;\n    } while (local_3c < (iVar16 + iVar15) * iVar3);" do (compound_statement "{\n      if (param_1[9] != 0) {\n        iVar13 = *(int *)(uVar2 + 0x18);\n        if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }\n        if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }\n      }\n      local_3c = local_3c + iVar3;\n    }" { (if_statement "if (param_1[9] != 0) {\n        iVar13 = *(int *)(uVar2 + 0x18);\n        if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }\n        if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }\n      }" if (parenthesized_expression "(param_1[9] != 0)" ( (binary_expression "param_1[9] != 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        iVar13 = *(int *)(uVar2 + 0x18);\n        if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }\n        if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }\n      }" { (expression_statement "iVar13 = *(int *)(uVar2 + 0x18);" (assignment_expression "iVar13 = *(int *)(uVar2 + 0x18)" identifier = (pointer_expression "*(int *)(uVar2 + 0x18)" * (cast_expression "(int *)(uVar2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 0x18)" ( (binary_expression "uVar2 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }" if (parenthesized_expression "(0 < iVar13)" ( (binary_expression "0 < iVar13" number_literal < identifier) )) (compound_statement "{\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }" { (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (expression_statement "local_44 = *(int *)param_1[8];" (assignment_expression "local_44 = *(int *)param_1[8]" identifier = (pointer_expression "*(int *)param_1[8]" * (cast_expression "(int *)param_1[8]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[8]" identifier [ number_literal ])))) ;) (do_statement "do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);" do (compound_statement "{\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          }" { (expression_statement "iVar14 = iVar13 - local_40;" (assignment_expression "iVar14 = iVar13 - local_40" identifier = (binary_expression "iVar13 - local_40" identifier - identifier)) ;) (if_statement "if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }" if (parenthesized_expression "(local_44 + local_40 <= iVar13)" ( (binary_expression "local_44 + local_40 <= iVar13" (binary_expression "local_44 + local_40" identifier + identifier) <= identifier) )) (compound_statement "{\n              iVar14 = local_44;\n            }" { (expression_statement "iVar14 = local_44;" (assignment_expression "iVar14 = local_44" identifier = identifier) ;) })) (expression_statement "iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;" (assignment_expression "iVar13 = *(int *)(uVar2 + 0x1c) - local_3c" identifier = (binary_expression "*(int *)(uVar2 + 0x1c) - local_3c" (pointer_expression "*(int *)(uVar2 + 0x1c)" * (cast_expression "(int *)(uVar2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 0x1c)" ( (binary_expression "uVar2 + 0x1c" identifier + number_literal) )))) - identifier)) ;) (if_statement "if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }" if (parenthesized_expression "(*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c))" ( (binary_expression "*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)" (binary_expression "*(int *)param_1[7] + local_3c" (pointer_expression "*(int *)param_1[7]" * (cast_expression "(int *)param_1[7]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[7]" identifier [ number_literal ]))) + identifier) <= (pointer_expression "*(int *)(uVar2 + 0x1c)" * (cast_expression "(int *)(uVar2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 0x1c)" ( (binary_expression "uVar2 + 0x1c" identifier + number_literal) ))))) )) (compound_statement "{\n              iVar13 = *(int *)param_1[7];\n            }" { (expression_statement "iVar13 = *(int *)param_1[7];" (assignment_expression "iVar13 = *(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 "*" *)) ) (subscript_expression "param_1[7]" identifier [ number_literal ])))) ;) })) (expression_statement "iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);" (assignment_expression "iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7)" identifier = (call_expression "GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7)" identifier (argument_list "(uVar6,local_40,local_3c,iVar14,iVar13,uVar7)" ( identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }" if (parenthesized_expression "(iVar17 == 0)" ( (binary_expression "iVar17 == 0" identifier == number_literal) )) (compound_statement "{\n              param_1[9] = 0;\n              break;\n            }" { (expression_statement "param_1[9] = 0;" (assignment_expression "param_1[9] = 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) = number_literal) ;) (break_statement "break;" break ;) })) (if_statement "if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }" if (parenthesized_expression "(0 < iVar14)" ( (binary_expression "0 < iVar14" number_literal < identifier) )) (compound_statement "{\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }" { (expression_statement "local_70 = local_40;" (assignment_expression "local_70 = local_40" identifier = identifier) ;) (do_statement "do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);" do (compound_statement "{\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              }" { (if_statement "if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }" if (parenthesized_expression "(param_1[9] != 0)" ( (binary_expression "param_1[9] != 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }" { (expression_statement "iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);" (assignment_expression "iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7)" identifier = (call_expression "QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7)" identifier (argument_list "(uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7)" ( identifier , (binary_expression "(*(int *)(uVar4 + 0x18) - local_3c) - iVar13" (parenthesized_expression "(*(int *)(uVar4 + 0x18) - local_3c)" ( (binary_expression "*(int *)(uVar4 + 0x18) - local_3c" (pointer_expression "*(int *)(uVar4 + 0x18)" * (cast_expression "(int *)(uVar4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar4 + 0x18)" ( (binary_expression "uVar4 + 0x18" identifier + number_literal) )))) - identifier) )) - identifier) , identifier , identifier , number_literal , identifier )))) ;) (if_statement "if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }" if (parenthesized_expression "(iVar18 != 0)" ( (binary_expression "iVar18 != 0" identifier != number_literal) )) (compound_statement "{\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }" { (expression_statement "iVar8 = *(int *)(uVar2 + 0x298);" (assignment_expression "iVar8 = *(int *)(uVar2 + 0x298)" identifier = (pointer_expression "*(int *)(uVar2 + 0x298)" * (cast_expression "(int *)(uVar2 + 0x298)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 0x298)" ( (binary_expression "uVar2 + 0x298" identifier + number_literal) ))))) ;) (expression_statement "local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);" (assignment_expression "local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17)" identifier = (cast_expression "(undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17)" ( (binary_expression "(((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17" (binary_expression "(((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8" (binary_expression "(((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8" (parenthesized_expression "(((iVar13 + -1) * iVar14 - local_40) + local_70)" ( (binary_expression "((iVar13 + -1) * iVar14 - local_40) + local_70" (parenthesized_expression "((iVar13 + -1) * iVar14 - local_40)" ( (binary_expression "(iVar13 + -1) * iVar14 - local_40" (binary_expression "(iVar13 + -1) * iVar14" (parenthesized_expression "(iVar13 + -1)" ( (binary_expression "iVar13 + -1" identifier + number_literal) )) * identifier) - identifier) )) + identifier) )) * identifier) * number_literal) + identifier) )))) ;) (if_statement "if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }" if (parenthesized_expression "(0 < iVar13)" ( (binary_expression "0 < iVar13" number_literal < identifier) )) (compound_statement "{\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }" { (expression_statement "local_78 = 0;" (assignment_expression "local_78 = 0" identifier = number_literal) ;) (expression_statement "iVar9 = *(int *)(uVar4 + 0x298);" (assignment_expression "iVar9 = *(int *)(uVar4 + 0x298)" identifier = (pointer_expression "*(int *)(uVar4 + 0x298)" * (cast_expression "(int *)(uVar4 + 0x298)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar4 + 0x298)" ( (binary_expression "uVar4 + 0x298" identifier + number_literal) ))))) ;) (do_statement "do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);" do (compound_statement "{\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      }" { (if_statement "if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }" if (parenthesized_expression "(0 < iVar8)" ( (binary_expression "0 < iVar8" number_literal < identifier) )) (compound_statement "{\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }" { (expression_statement "piVar10 = *(int **)(uVar2 + 0x2a8);" (assignment_expression "piVar10 = *(int **)(uVar2 + 0x2a8)" identifier = (pointer_expression "*(int **)(uVar2 + 0x2a8)" * (cast_expression "(int **)(uVar2 + 0x2a8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(uVar2 + 0x2a8)" ( (binary_expression "uVar2 + 0x2a8" identifier + number_literal) ))))) ;) (expression_statement "iVar11 = *(int *)(uVar4 + 0x2a8);" (assignment_expression "iVar11 = *(int *)(uVar4 + 0x2a8)" identifier = (pointer_expression "*(int *)(uVar4 + 0x2a8)" * (cast_expression "(int *)(uVar4 + 0x2a8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar4 + 0x2a8)" ( (binary_expression "uVar4 + 0x2a8" identifier + number_literal) ))))) ;) (expression_statement "puVar20 = local_74;" (assignment_expression "puVar20 = local_74" identifier = identifier) ;) (expression_statement "piVar21 = piVar10;" (assignment_expression "piVar21 = piVar10" identifier = identifier) ;) (do_statement "do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);" do (compound_statement "{\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          }" { (expression_statement "iVar1 = iVar11 + *piVar21 * 0xc;" (assignment_expression "iVar1 = iVar11 + *piVar21 * 0xc" identifier = (binary_expression "iVar11 + *piVar21 * 0xc" identifier + (binary_expression "*piVar21 * 0xc" (pointer_expression "*piVar21" * identifier) * number_literal))) ;) (if_statement "if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }" if (parenthesized_expression "((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0))" ( (binary_expression "(piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)" (parenthesized_expression "(piVar10[*piVar21 * 3 + 1] != 0)" ( (binary_expression "piVar10[*piVar21 * 3 + 1] != 0" (subscript_expression "piVar10[*piVar21 * 3 + 1]" identifier [ (binary_expression "*piVar21 * 3 + 1" (binary_expression "*piVar21 * 3" (pointer_expression "*piVar21" * identifier) * number_literal) + number_literal) ]) != number_literal) )) && (parenthesized_expression "(*(int *)(iVar1 + 4) != 0)" ( (binary_expression "*(int *)(iVar1 + 4) != 0" (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }" { (expression_statement "*(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;" (assignment_expression "*(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20" (pointer_expression "*(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8)" * (cast_expression "(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar18 + *(int *)(iVar1 + 8) * 8)" ( (binary_expression "iVar18 + *(int *)(iVar1 + 8) * 8" identifier + (binary_expression "*(int *)(iVar1 + 8) * 8" (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) * number_literal)) )))) = (pointer_expression "*puVar20" * identifier)) ;) })) (expression_statement "piVar21 = piVar21 + 3;" (assignment_expression "piVar21 = piVar21 + 3" identifier = (binary_expression "piVar21 + 3" identifier + number_literal)) ;) (expression_statement "puVar20 = puVar20 + 1;" (assignment_expression "puVar20 = puVar20 + 1" identifier = (binary_expression "puVar20 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar21 != piVar10 + iVar8 * 3)" ( (binary_expression "piVar21 != piVar10 + iVar8 * 3" identifier != (binary_expression "piVar10 + iVar8 * 3" identifier + (binary_expression "iVar8 * 3" identifier * number_literal))) )) ;) })) (expression_statement "local_78 = local_78 + 1;" (assignment_expression "local_78 = local_78 + 1" identifier = (binary_expression "local_78 + 1" identifier + number_literal)) ;) (expression_statement "local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);" (assignment_expression "local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14)" identifier = (cast_expression "(undefined8 *)((int)local_74 - iVar8 * 8 * iVar14)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_74 - iVar8 * 8 * iVar14)" ( (binary_expression "(int)local_74 - iVar8 * 8 * iVar14" (cast_expression "(int)local_74" ( (type_descriptor "int" primitive_type) ) identifier) - (binary_expression "iVar8 * 8 * iVar14" (binary_expression "iVar8 * 8" identifier * number_literal) * identifier)) )))) ;) (expression_statement "iVar18 = iVar18 + iVar9 * 8;" (assignment_expression "iVar18 = iVar18 + iVar9 * 8" identifier = (binary_expression "iVar18 + iVar9 * 8" identifier + (binary_expression "iVar9 * 8" identifier * number_literal))) ;) }) while (parenthesized_expression "(local_78 != iVar13)" ( (binary_expression "local_78 != iVar13" identifier != identifier) )) ;) })) (expression_statement "iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);" (assignment_expression "iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7)" identifier = (call_expression "SyncCacheViewAuthenticPixels(uVar5,uVar7)" identifier (argument_list "(uVar5,uVar7)" ( identifier , identifier )))) ;) (if_statement "if (iVar18 != 0) goto LAB_00185782;" if (parenthesized_expression "(iVar18 != 0)" ( (binary_expression "iVar18 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00185782;" goto statement_identifier ;)) })) (expression_statement "param_1[9] = 0;" (assignment_expression "param_1[9] = 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) = number_literal) ;) })) (labeled_statement "LAB_00185782:\n                local_70 = local_70 + 1;" statement_identifier : (expression_statement "local_70 = local_70 + 1;" (assignment_expression "local_70 = local_70 + 1" identifier = (binary_expression "local_70 + 1" identifier + number_literal)) ;)) }) while (parenthesized_expression "(iVar14 + local_40 != local_70)" ( (binary_expression "iVar14 + local_40 != local_70" (binary_expression "iVar14 + local_40" identifier + identifier) != identifier) )) ;) })) (expression_statement "local_44 = *(int *)param_1[8];" (assignment_expression "local_44 = *(int *)param_1[8]" identifier = (pointer_expression "*(int *)param_1[8]" * (cast_expression "(int *)param_1[8]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[8]" identifier [ number_literal ])))) ;) (expression_statement "local_40 = local_40 + local_44;" (assignment_expression "local_40 = local_40 + local_44" identifier = (binary_expression "local_40 + local_44" identifier + identifier)) ;) (expression_statement "iVar13 = *(int *)(uVar2 + 0x18);" (assignment_expression "iVar13 = *(int *)(uVar2 + 0x18)" identifier = (pointer_expression "*(int *)(uVar2 + 0x18)" * (cast_expression "(int *)(uVar2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 0x18)" ( (binary_expression "uVar2 + 0x18" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(local_40 < iVar13)" ( (binary_expression "local_40 < iVar13" identifier < identifier) )) ;) })) (if_statement "if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }" if (parenthesized_expression "(*(int *)(uVar2 + 0x300) != 0)" ( (binary_expression "*(int *)(uVar2 + 0x300) != 0" (pointer_expression "*(int *)(uVar2 + 0x300)" * (cast_expression "(int *)(uVar2 + 0x300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 0x300)" ( (binary_expression "uVar2 + 0x300" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }" { (expression_statement "uVar12 = *(undefined4 *)(uVar2 + 0x1c);" (assignment_expression "uVar12 = *(undefined4 *)(uVar2 + 0x1c)" identifier = (pointer_expression "*(undefined4 *)(uVar2 + 0x1c)" * (cast_expression "(undefined4 *)(uVar2 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 0x1c)" ( (binary_expression "uVar2 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "uVar19 = *(uint *)param_1[7] + *param_1;" (assignment_expression "uVar19 = *(uint *)param_1[7] + *param_1" identifier = (binary_expression "*(uint *)param_1[7] + *param_1" (pointer_expression "*(uint *)param_1[7]" * (cast_expression "(uint *)param_1[7]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[7]" identifier [ number_literal ]))) + (pointer_expression "*param_1" * identifier))) ;) (expression_statement "uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);" (assignment_expression "uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1)" identifier = (binary_expression "param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1)" (subscript_expression "param_1[1]" identifier [ number_literal ]) + (cast_expression "(uint)CARRY4(*(uint *)param_1[7],*param_1)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(*(uint *)param_1[7],*param_1)" identifier (argument_list "(*(uint *)param_1[7],*param_1)" ( (pointer_expression "*(uint *)param_1[7]" * (cast_expression "(uint *)param_1[7]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[7]" identifier [ number_literal ]))) , (pointer_expression "*param_1" * identifier) )))))) ;) (expression_statement "*param_1 = uVar19;" (assignment_expression "*param_1 = uVar19" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = uVar22;" (assignment_expression "param_1[1] = uVar22" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);" (assignment_expression "iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0)" identifier = (call_expression "SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0)" identifier (argument_list "(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0)" ( identifier , (binary_expression "&UNK_00142477 + unaff_EDI" (pointer_expression "&UNK_00142477" & identifier) + identifier) , identifier , identifier , identifier , number_literal )))) ;) (if_statement "if (iVar13 == 0) {\n            param_1[9] = 0;\n          }" if (parenthesized_expression "(iVar13 == 0)" ( (binary_expression "iVar13 == 0" identifier == number_literal) )) (compound_statement "{\n            param_1[9] = 0;\n          }" { (expression_statement "param_1[9] = 0;" (assignment_expression "param_1[9] = 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) = number_literal) ;) })) })) })) (expression_statement "local_3c = local_3c + iVar3;" (assignment_expression "local_3c = local_3c + iVar3" identifier = (binary_expression "local_3c + iVar3" identifier + identifier)) ;) }) while (parenthesized_expression "(local_3c < (iVar16 + iVar15) * iVar3)" ( (binary_expression "local_3c < (iVar16 + iVar15) * iVar3" identifier < (binary_expression "(iVar16 + iVar15) * iVar3" (parenthesized_expression "(iVar16 + iVar15)" ( (binary_expression "iVar16 + iVar15" identifier + identifier) )) * identifier)) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE 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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) / IDENT)) ;) (expression_statement (assignment_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 = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * IDENT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = 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 (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) + IDENT) <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (break_statement break ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT) )) - IDENT) , IDENT , IDENT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * IDENT) - IDENT) )) + IDENT) )) * IDENT) * LIT) + IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression (pointer_expression * IDENT) * LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (binary_expression (pointer_expression * IDENT) * LIT) + LIT) ]) != LIT) )) && (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 (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)) )))) = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + (binary_expression IDENT * LIT))) )) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (binary_expression (binary_expression IDENT * LIT) * IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) != IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) + (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) + (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) , (pointer_expression * IDENT) )))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression & IDENT) + IDENT) , IDENT , IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) })) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) * IDENT)) )) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00185490(uint *param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  int iVar8;\n  int iVar9;\n  int *piVar10;\n  int iVar11;\n  undefined4 uVar12;\n  int iVar13;\n  int iVar14;\n  int iVar15;\n  int iVar16;\n  int iVar17;\n  int iVar18;\n  uint uVar19;\n  undefined8 *puVar20;\n  int *piVar21;\n  uint uVar22;\n  int unaff_EDI;\n  int local_78;\n  undefined8 *local_74;\n  int local_70;\n  int local_44;\n  int local_40;\n  int local_3c;\n  \n  FUN_0004c803();\n  uVar2 = param_1[2];\n  iVar3 = *(int *)param_1[7];\n  iVar13 = omp_get_num_threads();\n  iVar14 = omp_get_thread_num();\n  iVar15 = (iVar3 + -1 + *(int *)(uVar2 + 0x1c)) / iVar3;\n  iVar16 = iVar15 / iVar13;\n  iVar15 = iVar15 % iVar13;\n  if (iVar14 < iVar15) {\n    iVar16 = iVar16 + 1;\n    iVar15 = 0;\n  }\n  iVar15 = iVar15 + iVar14 * iVar16;\n  if (iVar15 < iVar16 + iVar15) {\n    uVar4 = param_1[6];\n    uVar5 = param_1[5];\n    uVar6 = param_1[4];\n    uVar7 = param_1[3];\n    local_3c = iVar15 * iVar3;\n    do {\n      if (param_1[9] != 0) {\n        iVar13 = *(int *)(uVar2 + 0x18);\n        if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }\n        if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }\n      }\n      local_3c = local_3c + iVar3;\n    } while (local_3c < (iVar16 + iVar15) * iVar3);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00185490(uint *param_1)" (identifier "FUN_00185490") (parameter_list "(uint *param_1)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  int iVar8;\n  int iVar9;\n  int *piVar10;\n  int iVar11;\n  undefined4 uVar12;\n  int iVar13;\n  int iVar14;\n  int iVar15;\n  int iVar16;\n  int iVar17;\n  int iVar18;\n  uint uVar19;\n  undefined8 *puVar20;\n  int *piVar21;\n  uint uVar22;\n  int unaff_EDI;\n  int local_78;\n  undefined8 *local_74;\n  int local_70;\n  int local_44;\n  int local_40;\n  int local_3c;\n  \n  FUN_0004c803();\n  uVar2 = param_1[2];\n  iVar3 = *(int *)param_1[7];\n  iVar13 = omp_get_num_threads();\n  iVar14 = omp_get_thread_num();\n  iVar15 = (iVar3 + -1 + *(int *)(uVar2 + 0x1c)) / iVar3;\n  iVar16 = iVar15 / iVar13;\n  iVar15 = iVar15 % iVar13;\n  if (iVar14 < iVar15) {\n    iVar16 = iVar16 + 1;\n    iVar15 = 0;\n  }\n  iVar15 = iVar15 + iVar14 * iVar16;\n  if (iVar15 < iVar16 + iVar15) {\n    uVar4 = param_1[6];\n    uVar5 = param_1[5];\n    uVar6 = param_1[4];\n    uVar7 = param_1[3];\n    local_3c = iVar15 * iVar3;\n    do {\n      if (param_1[9] != 0) {\n        iVar13 = *(int *)(uVar2 + 0x18);\n        if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }\n        if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }\n      }\n      local_3c = local_3c + iVar3;\n    } while (local_3c < (iVar16 + iVar15) * iVar3);\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "int *piVar10;" (primitive_type "int") (pointer_declarator "*piVar10" (* "*") (identifier "piVar10")) (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (declaration "undefined4 uVar12;" (type_identifier "undefined4") (identifier "uVar12") (; ";")) (declaration "int iVar13;" (primitive_type "int") (identifier "iVar13") (; ";")) (declaration "int iVar14;" (primitive_type "int") (identifier "iVar14") (; ";")) (declaration "int iVar15;" (primitive_type "int") (identifier "iVar15") (; ";")) (declaration "int iVar16;" (primitive_type "int") (identifier "iVar16") (; ";")) (declaration "int iVar17;" (primitive_type "int") (identifier "iVar17") (; ";")) (declaration "int iVar18;" (primitive_type "int") (identifier "iVar18") (; ";")) (declaration "uint uVar19;" (type_identifier "uint") (identifier "uVar19") (; ";")) (declaration "undefined8 *puVar20;" (type_identifier "undefined8") (pointer_declarator "*puVar20" (* "*") (identifier "puVar20")) (; ";")) (declaration "int *piVar21;" (primitive_type "int") (pointer_declarator "*piVar21" (* "*") (identifier "piVar21")) (; ";")) (declaration "uint uVar22;" (type_identifier "uint") (identifier "uVar22") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (declaration "int local_78;" (primitive_type "int") (identifier "local_78") (; ";")) (declaration "undefined8 *local_74;" (type_identifier "undefined8") (pointer_declarator "*local_74" (* "*") (identifier "local_74")) (; ";")) (declaration "int local_70;" (primitive_type "int") (identifier "local_70") (; ";")) (declaration "int local_44;" (primitive_type "int") (identifier "local_44") (; ";")) (declaration "int local_40;" (primitive_type "int") (identifier "local_40") (; ";")) (declaration "int local_3c;" (primitive_type "int") (identifier "local_3c") (; ";")) (expression_statement "FUN_0004c803();" (call_expression "FUN_0004c803()" (identifier "FUN_0004c803") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" (identifier "uVar2") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "iVar3 = *(int *)param_1[7];" (assignment_expression "iVar3 = *(int *)param_1[7]" (identifier "iVar3") (= "=") (pointer_expression "*(int *)param_1[7]" (* "*") (cast_expression "(int *)param_1[7]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]"))))) (; ";")) (expression_statement "iVar13 = omp_get_num_threads();" (assignment_expression "iVar13 = omp_get_num_threads()" (identifier "iVar13") (= "=") (call_expression "omp_get_num_threads()" (identifier "omp_get_num_threads") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar14 = omp_get_thread_num();" (assignment_expression "iVar14 = omp_get_thread_num()" (identifier "iVar14") (= "=") (call_expression "omp_get_thread_num()" (identifier "omp_get_thread_num") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar15 = (iVar3 + -1 + *(int *)(uVar2 + 0x1c)) / iVar3;" (assignment_expression "iVar15 = (iVar3 + -1 + *(int *)(uVar2 + 0x1c)) / iVar3" (identifier "iVar15") (= "=") (binary_expression "(iVar3 + -1 + *(int *)(uVar2 + 0x1c)) / iVar3" (parenthesized_expression "(iVar3 + -1 + *(int *)(uVar2 + 0x1c))" (( "(") (binary_expression "iVar3 + -1 + *(int *)(uVar2 + 0x1c)" (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1")) (+ "+") (pointer_expression "*(int *)(uVar2 + 0x1c)" (* "*") (cast_expression "(int *)(uVar2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar2 + 0x1c)" (( "(") (binary_expression "uVar2 + 0x1c" (identifier "uVar2") (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (/ "/") (identifier "iVar3"))) (; ";")) (expression_statement "iVar16 = iVar15 / iVar13;" (assignment_expression "iVar16 = iVar15 / iVar13" (identifier "iVar16") (= "=") (binary_expression "iVar15 / iVar13" (identifier "iVar15") (/ "/") (identifier "iVar13"))) (; ";")) (expression_statement "iVar15 = iVar15 % iVar13;" (assignment_expression "iVar15 = iVar15 % iVar13" (identifier "iVar15") (= "=") (binary_expression "iVar15 % iVar13" (identifier "iVar15") (% "%") (identifier "iVar13"))) (; ";")) (if_statement "if (iVar14 < iVar15) {\n    iVar16 = iVar16 + 1;\n    iVar15 = 0;\n  }" (if "if") (parenthesized_expression "(iVar14 < iVar15)" (( "(") (binary_expression "iVar14 < iVar15" (identifier "iVar14") (< "<") (identifier "iVar15")) () ")")) (compound_statement "{\n    iVar16 = iVar16 + 1;\n    iVar15 = 0;\n  }" ({ "{") (expression_statement "iVar16 = iVar16 + 1;" (assignment_expression "iVar16 = iVar16 + 1" (identifier "iVar16") (= "=") (binary_expression "iVar16 + 1" (identifier "iVar16") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar15 = 0;" (assignment_expression "iVar15 = 0" (identifier "iVar15") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "iVar15 = iVar15 + iVar14 * iVar16;" (assignment_expression "iVar15 = iVar15 + iVar14 * iVar16" (identifier "iVar15") (= "=") (binary_expression "iVar15 + iVar14 * iVar16" (identifier "iVar15") (+ "+") (binary_expression "iVar14 * iVar16" (identifier "iVar14") (* "*") (identifier "iVar16")))) (; ";")) (if_statement "if (iVar15 < iVar16 + iVar15) {\n    uVar4 = param_1[6];\n    uVar5 = param_1[5];\n    uVar6 = param_1[4];\n    uVar7 = param_1[3];\n    local_3c = iVar15 * iVar3;\n    do {\n      if (param_1[9] != 0) {\n        iVar13 = *(int *)(uVar2 + 0x18);\n        if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }\n        if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }\n      }\n      local_3c = local_3c + iVar3;\n    } while (local_3c < (iVar16 + iVar15) * iVar3);\n  }" (if "if") (parenthesized_expression "(iVar15 < iVar16 + iVar15)" (( "(") (binary_expression "iVar15 < iVar16 + iVar15" (identifier "iVar15") (< "<") (binary_expression "iVar16 + iVar15" (identifier "iVar16") (+ "+") (identifier "iVar15"))) () ")")) (compound_statement "{\n    uVar4 = param_1[6];\n    uVar5 = param_1[5];\n    uVar6 = param_1[4];\n    uVar7 = param_1[3];\n    local_3c = iVar15 * iVar3;\n    do {\n      if (param_1[9] != 0) {\n        iVar13 = *(int *)(uVar2 + 0x18);\n        if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }\n        if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }\n      }\n      local_3c = local_3c + iVar3;\n    } while (local_3c < (iVar16 + iVar15) * iVar3);\n  }" ({ "{") (expression_statement "uVar4 = param_1[6];" (assignment_expression "uVar4 = param_1[6]" (identifier "uVar4") (= "=") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))) (; ";")) (expression_statement "uVar5 = param_1[5];" (assignment_expression "uVar5 = param_1[5]" (identifier "uVar5") (= "=") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "uVar6 = param_1[4];" (assignment_expression "uVar6 = param_1[4]" (identifier "uVar6") (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "uVar7 = param_1[3];" (assignment_expression "uVar7 = param_1[3]" (identifier "uVar7") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "local_3c = iVar15 * iVar3;" (assignment_expression "local_3c = iVar15 * iVar3" (identifier "local_3c") (= "=") (binary_expression "iVar15 * iVar3" (identifier "iVar15") (* "*") (identifier "iVar3"))) (; ";")) (do_statement "do {\n      if (param_1[9] != 0) {\n        iVar13 = *(int *)(uVar2 + 0x18);\n        if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }\n        if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }\n      }\n      local_3c = local_3c + iVar3;\n    } while (local_3c < (iVar16 + iVar15) * iVar3);" (do "do") (compound_statement "{\n      if (param_1[9] != 0) {\n        iVar13 = *(int *)(uVar2 + 0x18);\n        if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }\n        if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }\n      }\n      local_3c = local_3c + iVar3;\n    }" ({ "{") (if_statement "if (param_1[9] != 0) {\n        iVar13 = *(int *)(uVar2 + 0x18);\n        if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }\n        if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }\n      }" (if "if") (parenthesized_expression "(param_1[9] != 0)" (( "(") (binary_expression "param_1[9] != 0" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar13 = *(int *)(uVar2 + 0x18);\n        if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }\n        if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }\n      }" ({ "{") (expression_statement "iVar13 = *(int *)(uVar2 + 0x18);" (assignment_expression "iVar13 = *(int *)(uVar2 + 0x18)" (identifier "iVar13") (= "=") (pointer_expression "*(int *)(uVar2 + 0x18)" (* "*") (cast_expression "(int *)(uVar2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar2 + 0x18)" (( "(") (binary_expression "uVar2 + 0x18" (identifier "uVar2") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (if_statement "if (0 < iVar13) {\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }" (if "if") (parenthesized_expression "(0 < iVar13)" (( "(") (binary_expression "0 < iVar13" (number_literal "0") (< "<") (identifier "iVar13")) () ")")) (compound_statement "{\n          local_40 = 0;\n          local_44 = *(int *)param_1[8];\n          do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);\n        }" ({ "{") (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" (identifier "local_40") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_44 = *(int *)param_1[8];" (assignment_expression "local_44 = *(int *)param_1[8]" (identifier "local_44") (= "=") (pointer_expression "*(int *)param_1[8]" (* "*") (cast_expression "(int *)param_1[8]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]"))))) (; ";")) (do_statement "do {\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          } while (local_40 < iVar13);" (do "do") (compound_statement "{\n            iVar14 = iVar13 - local_40;\n            if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }\n            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;\n            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }\n            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);\n            if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }\n            if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }\n            local_44 = *(int *)param_1[8];\n            local_40 = local_40 + local_44;\n            iVar13 = *(int *)(uVar2 + 0x18);\n          }" ({ "{") (expression_statement "iVar14 = iVar13 - local_40;" (assignment_expression "iVar14 = iVar13 - local_40" (identifier "iVar14") (= "=") (binary_expression "iVar13 - local_40" (identifier "iVar13") (- "-") (identifier "local_40"))) (; ";")) (if_statement "if (local_44 + local_40 <= iVar13) {\n              iVar14 = local_44;\n            }" (if "if") (parenthesized_expression "(local_44 + local_40 <= iVar13)" (( "(") (binary_expression "local_44 + local_40 <= iVar13" (binary_expression "local_44 + local_40" (identifier "local_44") (+ "+") (identifier "local_40")) (<= "<=") (identifier "iVar13")) () ")")) (compound_statement "{\n              iVar14 = local_44;\n            }" ({ "{") (expression_statement "iVar14 = local_44;" (assignment_expression "iVar14 = local_44" (identifier "iVar14") (= "=") (identifier "local_44")) (; ";")) (} "}"))) (expression_statement "iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;" (assignment_expression "iVar13 = *(int *)(uVar2 + 0x1c) - local_3c" (identifier "iVar13") (= "=") (binary_expression "*(int *)(uVar2 + 0x1c) - local_3c" (pointer_expression "*(int *)(uVar2 + 0x1c)" (* "*") (cast_expression "(int *)(uVar2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar2 + 0x1c)" (( "(") (binary_expression "uVar2 + 0x1c" (identifier "uVar2") (+ "+") (number_literal "0x1c")) () ")")))) (- "-") (identifier "local_3c"))) (; ";")) (if_statement "if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {\n              iVar13 = *(int *)param_1[7];\n            }" (if "if") (parenthesized_expression "(*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c))" (( "(") (binary_expression "*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)" (binary_expression "*(int *)param_1[7] + local_3c" (pointer_expression "*(int *)param_1[7]" (* "*") (cast_expression "(int *)param_1[7]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")))) (+ "+") (identifier "local_3c")) (<= "<=") (pointer_expression "*(int *)(uVar2 + 0x1c)" (* "*") (cast_expression "(int *)(uVar2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar2 + 0x1c)" (( "(") (binary_expression "uVar2 + 0x1c" (identifier "uVar2") (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (compound_statement "{\n              iVar13 = *(int *)param_1[7];\n            }" ({ "{") (expression_statement "iVar13 = *(int *)param_1[7];" (assignment_expression "iVar13 = *(int *)param_1[7]" (identifier "iVar13") (= "=") (pointer_expression "*(int *)param_1[7]" (* "*") (cast_expression "(int *)param_1[7]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]"))))) (; ";")) (} "}"))) (expression_statement "iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);" (assignment_expression "iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7)" (identifier "iVar17") (= "=") (call_expression "GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7)" (identifier "GetCacheViewVirtualPixels") (argument_list "(uVar6,local_40,local_3c,iVar14,iVar13,uVar7)" (( "(") (identifier "uVar6") (, ",") (identifier "local_40") (, ",") (identifier "local_3c") (, ",") (identifier "iVar14") (, ",") (identifier "iVar13") (, ",") (identifier "uVar7") () ")")))) (; ";")) (if_statement "if (iVar17 == 0) {\n              param_1[9] = 0;\n              break;\n            }" (if "if") (parenthesized_expression "(iVar17 == 0)" (( "(") (binary_expression "iVar17 == 0" (identifier "iVar17") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              param_1[9] = 0;\n              break;\n            }" ({ "{") (expression_statement "param_1[9] = 0;" (assignment_expression "param_1[9] = 0" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (= "=") (number_literal "0")) (; ";")) (break_statement "break;" (break "break") (; ";")) (} "}"))) (if_statement "if (0 < iVar14) {\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }" (if "if") (parenthesized_expression "(0 < iVar14)" (( "(") (binary_expression "0 < iVar14" (number_literal "0") (< "<") (identifier "iVar14")) () ")")) (compound_statement "{\n              local_70 = local_40;\n              do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);\n            }" ({ "{") (expression_statement "local_70 = local_40;" (assignment_expression "local_70 = local_40" (identifier "local_70") (= "=") (identifier "local_40")) (; ";")) (do_statement "do {\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              } while (iVar14 + local_40 != local_70);" (do "do") (compound_statement "{\n                if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }\nLAB_00185782:\n                local_70 = local_70 + 1;\n              }" ({ "{") (if_statement "if (param_1[9] != 0) {\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }" (if "if") (parenthesized_expression "(param_1[9] != 0)" (( "(") (binary_expression "param_1[9] != 0" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                  iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);\n                  if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }\n                  param_1[9] = 0;\n                }" ({ "{") (expression_statement "iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7);" (assignment_expression "iVar18 = QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7)" (identifier "iVar18") (= "=") (call_expression "QueueCacheViewAuthenticPixels\n                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7)" (identifier "QueueCacheViewAuthenticPixels") (argument_list "(uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,\n                                      iVar13,1,uVar7)" (( "(") (identifier "uVar5") (, ",") (binary_expression "(*(int *)(uVar4 + 0x18) - local_3c) - iVar13" (parenthesized_expression "(*(int *)(uVar4 + 0x18) - local_3c)" (( "(") (binary_expression "*(int *)(uVar4 + 0x18) - local_3c" (pointer_expression "*(int *)(uVar4 + 0x18)" (* "*") (cast_expression "(int *)(uVar4 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar4 + 0x18)" (( "(") (binary_expression "uVar4 + 0x18" (identifier "uVar4") (+ "+") (number_literal "0x18")) () ")")))) (- "-") (identifier "local_3c")) () ")")) (- "-") (identifier "iVar13")) (, ",") (identifier "local_70") (, ",") (identifier "iVar13") (, ",") (number_literal "1") (, ",") (identifier "uVar7") () ")")))) (; ";")) (if_statement "if (iVar18 != 0) {\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }" (if "if") (parenthesized_expression "(iVar18 != 0)" (( "(") (binary_expression "iVar18 != 0" (identifier "iVar18") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    iVar8 = *(int *)(uVar2 + 0x298);\n                    local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);\n                    if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }\n                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);\n                    if (iVar18 != 0) goto LAB_00185782;\n                  }" ({ "{") (expression_statement "iVar8 = *(int *)(uVar2 + 0x298);" (assignment_expression "iVar8 = *(int *)(uVar2 + 0x298)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(uVar2 + 0x298)" (* "*") (cast_expression "(int *)(uVar2 + 0x298)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar2 + 0x298)" (( "(") (binary_expression "uVar2 + 0x298" (identifier "uVar2") (+ "+") (number_literal "0x298")) () ")"))))) (; ";")) (expression_statement "local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17);" (assignment_expression "local_74 = (undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17)" (identifier "local_74") (= "=") (cast_expression "(undefined8 *)\n                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17)" (( "(") (binary_expression "(((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +\n                               iVar17" (binary_expression "(((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8" (binary_expression "(((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8" (parenthesized_expression "(((iVar13 + -1) * iVar14 - local_40) + local_70)" (( "(") (binary_expression "((iVar13 + -1) * iVar14 - local_40) + local_70" (parenthesized_expression "((iVar13 + -1) * iVar14 - local_40)" (( "(") (binary_expression "(iVar13 + -1) * iVar14 - local_40" (binary_expression "(iVar13 + -1) * iVar14" (parenthesized_expression "(iVar13 + -1)" (( "(") (binary_expression "iVar13 + -1" (identifier "iVar13") (+ "+") (number_literal "-1")) () ")")) (* "*") (identifier "iVar14")) (- "-") (identifier "local_40")) () ")")) (+ "+") (identifier "local_70")) () ")")) (* "*") (identifier "iVar8")) (* "*") (number_literal "8")) (+ "+") (identifier "iVar17")) () ")")))) (; ";")) (if_statement "if (0 < iVar13) {\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }" (if "if") (parenthesized_expression "(0 < iVar13)" (( "(") (binary_expression "0 < iVar13" (number_literal "0") (< "<") (identifier "iVar13")) () ")")) (compound_statement "{\n                      local_78 = 0;\n                      iVar9 = *(int *)(uVar4 + 0x298);\n                      do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);\n                    }" ({ "{") (expression_statement "local_78 = 0;" (assignment_expression "local_78 = 0" (identifier "local_78") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar9 = *(int *)(uVar4 + 0x298);" (assignment_expression "iVar9 = *(int *)(uVar4 + 0x298)" (identifier "iVar9") (= "=") (pointer_expression "*(int *)(uVar4 + 0x298)" (* "*") (cast_expression "(int *)(uVar4 + 0x298)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar4 + 0x298)" (( "(") (binary_expression "uVar4 + 0x298" (identifier "uVar4") (+ "+") (number_literal "0x298")) () ")"))))) (; ";")) (do_statement "do {\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      } while (local_78 != iVar13);" (do "do") (compound_statement "{\n                        if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }\n                        local_78 = local_78 + 1;\n                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);\n                        iVar18 = iVar18 + iVar9 * 8;\n                      }" ({ "{") (if_statement "if (0 < iVar8) {\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }" (if "if") (parenthesized_expression "(0 < iVar8)" (( "(") (binary_expression "0 < iVar8" (number_literal "0") (< "<") (identifier "iVar8")) () ")")) (compound_statement "{\n                          piVar10 = *(int **)(uVar2 + 0x2a8);\n                          iVar11 = *(int *)(uVar4 + 0x2a8);\n                          puVar20 = local_74;\n                          piVar21 = piVar10;\n                          do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);\n                        }" ({ "{") (expression_statement "piVar10 = *(int **)(uVar2 + 0x2a8);" (assignment_expression "piVar10 = *(int **)(uVar2 + 0x2a8)" (identifier "piVar10") (= "=") (pointer_expression "*(int **)(uVar2 + 0x2a8)" (* "*") (cast_expression "(int **)(uVar2 + 0x2a8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(uVar2 + 0x2a8)" (( "(") (binary_expression "uVar2 + 0x2a8" (identifier "uVar2") (+ "+") (number_literal "0x2a8")) () ")"))))) (; ";")) (expression_statement "iVar11 = *(int *)(uVar4 + 0x2a8);" (assignment_expression "iVar11 = *(int *)(uVar4 + 0x2a8)" (identifier "iVar11") (= "=") (pointer_expression "*(int *)(uVar4 + 0x2a8)" (* "*") (cast_expression "(int *)(uVar4 + 0x2a8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar4 + 0x2a8)" (( "(") (binary_expression "uVar4 + 0x2a8" (identifier "uVar4") (+ "+") (number_literal "0x2a8")) () ")"))))) (; ";")) (expression_statement "puVar20 = local_74;" (assignment_expression "puVar20 = local_74" (identifier "puVar20") (= "=") (identifier "local_74")) (; ";")) (expression_statement "piVar21 = piVar10;" (assignment_expression "piVar21 = piVar10" (identifier "piVar21") (= "=") (identifier "piVar10")) (; ";")) (do_statement "do {\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          } while (piVar21 != piVar10 + iVar8 * 3);" (do "do") (compound_statement "{\n                            iVar1 = iVar11 + *piVar21 * 0xc;\n                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }\n                            piVar21 = piVar21 + 3;\n                            puVar20 = puVar20 + 1;\n                          }" ({ "{") (expression_statement "iVar1 = iVar11 + *piVar21 * 0xc;" (assignment_expression "iVar1 = iVar11 + *piVar21 * 0xc" (identifier "iVar1") (= "=") (binary_expression "iVar11 + *piVar21 * 0xc" (identifier "iVar11") (+ "+") (binary_expression "*piVar21 * 0xc" (pointer_expression "*piVar21" (* "*") (identifier "piVar21")) (* "*") (number_literal "0xc")))) (; ";")) (if_statement "if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }" (if "if") (parenthesized_expression "((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0))" (( "(") (binary_expression "(piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)" (parenthesized_expression "(piVar10[*piVar21 * 3 + 1] != 0)" (( "(") (binary_expression "piVar10[*piVar21 * 3 + 1] != 0" (subscript_expression "piVar10[*piVar21 * 3 + 1]" (identifier "piVar10") ([ "[") (binary_expression "*piVar21 * 3 + 1" (binary_expression "*piVar21 * 3" (pointer_expression "*piVar21" (* "*") (identifier "piVar21")) (* "*") (number_literal "3")) (+ "+") (number_literal "1")) (] "]")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(iVar1 + 4) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + 4) != 0" (pointer_expression "*(int *)(iVar1 + 4)" (* "*") (cast_expression "(int *)(iVar1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;\n                            }" ({ "{") (expression_statement "*(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;" (assignment_expression "*(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20" (pointer_expression "*(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8)" (* "*") (cast_expression "(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar18 + *(int *)(iVar1 + 8) * 8)" (( "(") (binary_expression "iVar18 + *(int *)(iVar1 + 8) * 8" (identifier "iVar18") (+ "+") (binary_expression "*(int *)(iVar1 + 8) * 8" (pointer_expression "*(int *)(iVar1 + 8)" (* "*") (cast_expression "(int *)(iVar1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (* "*") (number_literal "8"))) () ")")))) (= "=") (pointer_expression "*puVar20" (* "*") (identifier "puVar20"))) (; ";")) (} "}"))) (expression_statement "piVar21 = piVar21 + 3;" (assignment_expression "piVar21 = piVar21 + 3" (identifier "piVar21") (= "=") (binary_expression "piVar21 + 3" (identifier "piVar21") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "puVar20 = puVar20 + 1;" (assignment_expression "puVar20 = puVar20 + 1" (identifier "puVar20") (= "=") (binary_expression "puVar20 + 1" (identifier "puVar20") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar21 != piVar10 + iVar8 * 3)" (( "(") (binary_expression "piVar21 != piVar10 + iVar8 * 3" (identifier "piVar21") (!= "!=") (binary_expression "piVar10 + iVar8 * 3" (identifier "piVar10") (+ "+") (binary_expression "iVar8 * 3" (identifier "iVar8") (* "*") (number_literal "3")))) () ")")) (; ";")) (} "}"))) (expression_statement "local_78 = local_78 + 1;" (assignment_expression "local_78 = local_78 + 1" (identifier "local_78") (= "=") (binary_expression "local_78 + 1" (identifier "local_78") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);" (assignment_expression "local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14)" (identifier "local_74") (= "=") (cast_expression "(undefined8 *)((int)local_74 - iVar8 * 8 * iVar14)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_74 - iVar8 * 8 * iVar14)" (( "(") (binary_expression "(int)local_74 - iVar8 * 8 * iVar14" (cast_expression "(int)local_74" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_74")) (- "-") (binary_expression "iVar8 * 8 * iVar14" (binary_expression "iVar8 * 8" (identifier "iVar8") (* "*") (number_literal "8")) (* "*") (identifier "iVar14"))) () ")")))) (; ";")) (expression_statement "iVar18 = iVar18 + iVar9 * 8;" (assignment_expression "iVar18 = iVar18 + iVar9 * 8" (identifier "iVar18") (= "=") (binary_expression "iVar18 + iVar9 * 8" (identifier "iVar18") (+ "+") (binary_expression "iVar9 * 8" (identifier "iVar9") (* "*") (number_literal "8")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(local_78 != iVar13)" (( "(") (binary_expression "local_78 != iVar13" (identifier "local_78") (!= "!=") (identifier "iVar13")) () ")")) (; ";")) (} "}"))) (expression_statement "iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);" (assignment_expression "iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7)" (identifier "iVar18") (= "=") (call_expression "SyncCacheViewAuthenticPixels(uVar5,uVar7)" (identifier "SyncCacheViewAuthenticPixels") (argument_list "(uVar5,uVar7)" (( "(") (identifier "uVar5") (, ",") (identifier "uVar7") () ")")))) (; ";")) (if_statement "if (iVar18 != 0) goto LAB_00185782;" (if "if") (parenthesized_expression "(iVar18 != 0)" (( "(") (binary_expression "iVar18 != 0" (identifier "iVar18") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00185782;" (goto "goto") (statement_identifier "LAB_00185782") (; ";"))) (} "}"))) (expression_statement "param_1[9] = 0;" (assignment_expression "param_1[9] = 0" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (labeled_statement "LAB_00185782:\n                local_70 = local_70 + 1;" (statement_identifier "LAB_00185782") (: ":") (expression_statement "local_70 = local_70 + 1;" (assignment_expression "local_70 = local_70 + 1" (identifier "local_70") (= "=") (binary_expression "local_70 + 1" (identifier "local_70") (+ "+") (number_literal "1"))) (; ";"))) (} "}")) (while "while") (parenthesized_expression "(iVar14 + local_40 != local_70)" (( "(") (binary_expression "iVar14 + local_40 != local_70" (binary_expression "iVar14 + local_40" (identifier "iVar14") (+ "+") (identifier "local_40")) (!= "!=") (identifier "local_70")) () ")")) (; ";")) (} "}"))) (expression_statement "local_44 = *(int *)param_1[8];" (assignment_expression "local_44 = *(int *)param_1[8]" (identifier "local_44") (= "=") (pointer_expression "*(int *)param_1[8]" (* "*") (cast_expression "(int *)param_1[8]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]"))))) (; ";")) (expression_statement "local_40 = local_40 + local_44;" (assignment_expression "local_40 = local_40 + local_44" (identifier "local_40") (= "=") (binary_expression "local_40 + local_44" (identifier "local_40") (+ "+") (identifier "local_44"))) (; ";")) (expression_statement "iVar13 = *(int *)(uVar2 + 0x18);" (assignment_expression "iVar13 = *(int *)(uVar2 + 0x18)" (identifier "iVar13") (= "=") (pointer_expression "*(int *)(uVar2 + 0x18)" (* "*") (cast_expression "(int *)(uVar2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar2 + 0x18)" (( "(") (binary_expression "uVar2 + 0x18" (identifier "uVar2") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(local_40 < iVar13)" (( "(") (binary_expression "local_40 < iVar13" (identifier "local_40") (< "<") (identifier "iVar13")) () ")")) (; ";")) (} "}"))) (if_statement "if (*(int *)(uVar2 + 0x300) != 0) {\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }" (if "if") (parenthesized_expression "(*(int *)(uVar2 + 0x300) != 0)" (( "(") (binary_expression "*(int *)(uVar2 + 0x300) != 0" (pointer_expression "*(int *)(uVar2 + 0x300)" (* "*") (cast_expression "(int *)(uVar2 + 0x300)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar2 + 0x300)" (( "(") (binary_expression "uVar2 + 0x300" (identifier "uVar2") (+ "+") (number_literal "0x300")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          uVar12 = *(undefined4 *)(uVar2 + 0x1c);\n          uVar19 = *(uint *)param_1[7] + *param_1;\n          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);\n          *param_1 = uVar19;\n          param_1[1] = uVar22;\n          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);\n          if (iVar13 == 0) {\n            param_1[9] = 0;\n          }\n        }" ({ "{") (expression_statement "uVar12 = *(undefined4 *)(uVar2 + 0x1c);" (assignment_expression "uVar12 = *(undefined4 *)(uVar2 + 0x1c)" (identifier "uVar12") (= "=") (pointer_expression "*(undefined4 *)(uVar2 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(uVar2 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar2 + 0x1c)" (( "(") (binary_expression "uVar2 + 0x1c" (identifier "uVar2") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "uVar19 = *(uint *)param_1[7] + *param_1;" (assignment_expression "uVar19 = *(uint *)param_1[7] + *param_1" (identifier "uVar19") (= "=") (binary_expression "*(uint *)param_1[7] + *param_1" (pointer_expression "*(uint *)param_1[7]" (* "*") (cast_expression "(uint *)param_1[7]" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")))) (+ "+") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);" (assignment_expression "uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1)" (identifier "uVar22") (= "=") (binary_expression "param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1)" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (+ "+") (cast_expression "(uint)CARRY4(*(uint *)param_1[7],*param_1)" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (call_expression "CARRY4(*(uint *)param_1[7],*param_1)" (identifier "CARRY4") (argument_list "(*(uint *)param_1[7],*param_1)" (( "(") (pointer_expression "*(uint *)param_1[7]" (* "*") (cast_expression "(uint *)param_1[7]" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")))) (, ",") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")")))))) (; ";")) (expression_statement "*param_1 = uVar19;" (assignment_expression "*param_1 = uVar19" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "uVar19")) (; ";")) (expression_statement "param_1[1] = uVar22;" (assignment_expression "param_1[1] = uVar22" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar22")) (; ";")) (expression_statement "iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);" (assignment_expression "iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0)" (identifier "iVar13") (= "=") (call_expression "SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0)" (identifier "SetImageProgress") (argument_list "(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0)" (( "(") (identifier "uVar2") (, ",") (binary_expression "&UNK_00142477 + unaff_EDI" (pointer_expression "&UNK_00142477" (& "&") (identifier "UNK_00142477")) (+ "+") (identifier "unaff_EDI")) (, ",") (identifier "uVar19") (, ",") (identifier "uVar22") (, ",") (identifier "uVar12") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar13 == 0) {\n            param_1[9] = 0;\n          }" (if "if") (parenthesized_expression "(iVar13 == 0)" (( "(") (binary_expression "iVar13 == 0" (identifier "iVar13") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            param_1[9] = 0;\n          }" ({ "{") (expression_statement "param_1[9] = 0;" (assignment_expression "param_1[9] = 0" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}"))) (} "}"))) (expression_statement "local_3c = local_3c + iVar3;" (assignment_expression "local_3c = local_3c + iVar3" (identifier "local_3c") (= "=") (binary_expression "local_3c + iVar3" (identifier "local_3c") (+ "+") (identifier "iVar3"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(local_3c < (iVar16 + iVar15) * iVar3)" (( "(") (binary_expression "local_3c < (iVar16 + iVar15) * iVar3" (identifier "local_3c") (< "<") (binary_expression "(iVar16 + iVar15) * iVar3" (parenthesized_expression "(iVar16 + iVar15)" (( "(") (binary_expression "iVar16 + iVar15" (identifier "iVar16") (+ "+") (identifier "iVar15")) () ")")) (* "*") (identifier "iVar3"))) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __thiscall function_1(type_1 *this)

{
  type_2 *image;
  size_t var_4;
  type_2 *pIVar2;
  type_3 *cache_view;
  type_3 *cache_view_00;
  type_4 *exception;
  size_t var_20;
  size_t var_26;
  type_5 *var_24;
  type_5 *pPVar6;
  type_6 PVar7;
  type_7 uVar8;
  int var_6;
  int var_7;
  int var_5;
  int var_8;
  size_t var_10;
  type_8 *var_15;
  type_8 *var_17;
  type_9 var_28;
  type_8 *var_23;
  type_5 *var_22;
  int var_31;
  size_t var_18;
  size_t var_25;
  type_8 *local_74;
  int var_19;
  size_t var_12;
  int var_11;
  int var_13;
  
  var_1();
  image = this->image;
  var_4 = *this->tile_height;
  var_6 = var_2();
  var_7 = var_3();
  var_5 = (int)((var_4 - 1) + image->rows) / (int)var_4;
  var_8 = var_5 / var_6;
  var_5 = var_5 % var_6;
  if (var_7 < var_5) {
    var_8 = var_8 + 1;
    var_5 = 0;
  }
  var_5 = var_5 + var_7 * var_8;
  if (var_5 < var_8 + var_5) {
    pIVar2 = this->rotate_image;
    cache_view = this->rotate_view;
    cache_view_00 = this->image_view;
    exception = this->exception;
    var_13 = var_5 * var_4;
    do {
      if (this->status != var_9) {
        var_10 = image->var_18;
        if (0 < (int)var_10) {
          var_11 = 0;
          var_12 = *this->tile_width;
          do {
            var_18 = var_10 - var_11;
            if ((int)(var_12 + var_11) <= (int)var_10) {
              var_18 = var_12;
            }
            var_10 = image->rows - var_13;
            if ((int)(*this->tile_height + var_13) <= (int)image->rows) {
              var_10 = *this->tile_height;
            }
            var_15 = var_14
                                (cache_view_00,var_11,var_13,var_18,var_10,exception);
            if (var_15 == (type_8 *)0x0) {
              this->status = var_9;
              break;
            }
            if (0 < (int)var_18) {
              var_19 = var_11;
              do {
                if (this->status != var_9) {
                  var_17 = var_16
                                      (cache_view,(pIVar2->var_18 - var_13) - var_10,var_19,
                                       var_10,1,exception);
                  if (var_17 != (type_8 *)0x0) {
                    var_20 = image->number_channels;
                    local_74 = (type_8 *)
                               ((((var_10 - 1) * var_18 - var_11) + var_19) * var_20 * 8 +
                               (int)var_15);
                    if (0 < (int)var_10) {
                      var_25 = 0;
                      var_26 = pIVar2->number_channels;
                      do {
                        if (0 < (int)var_20) {
                          var_24 = image->channel_map;
                          pPVar6 = pIVar2->channel_map;
                          var_23 = local_74;
                          var_22 = var_24;
                          do {
                            PVar7 = var_22->channel;
                            if ((var_24[PVar7].traits != var_21) &&
                               (pPVar6[PVar7].traits != var_21)) {
                              var_17[pPVar6[PVar7].offset] = *var_23;
                            }
                            var_22 = var_22 + 1;
                            var_23 = var_23 + 1;
                          } while (var_22 != var_24 + var_20);
                        }
                        var_25 = var_25 + 1;
                        local_74 = (type_8 *)((int)local_74 - var_20 * 8 * var_18);
                        var_17 = var_17 + var_26;
                      } while (var_25 != var_10);
                    }
                    var_28 = var_27(cache_view,exception);
                    if (var_28 != var_9) goto LAB_00185782;
                  }
                  this->status = var_9;
                }
LAB_00185782:
                var_19 = var_19 + 1;
              } while (var_18 + var_11 != var_19);
            }
            var_12 = *this->tile_width;
            var_11 = var_11 + var_12;
            var_10 = image->var_18;
          } while (var_11 < (int)var_10);
        }
        if (image->progress_monitor != (type_10)0x0) {
          uVar8 = image->rows;
          var_6 = *this->tile_height + (int)this->progress;
          var_7 = *(int *)((int)&this->progress + 4) +
                   (type_7)var_29(*this->tile_height,(type_7)this->progress);
          *(int *)&this->progress = var_6;
          *(int *)((int)&this->progress + 4) = var_7;
          var_28 = var_30(image,(char *)(var_31 + 0x142477),var_32(var_7,var_6),
                                    (type_11)uVar8);
          if (var_28 == var_9) {
            this->status = var_9;
          }
        }
      }
      var_13 = var_13 + var_4;
    } while (var_13 < (int)((var_8 + var_5) * var_4));
  }
  return;
}


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

void MASKED(uint *param_1)

{
  int iVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  uint uVar5;
  uint uVar6;
  uint uVar7;
  int iVar8;
  int iVar9;
  int *piVar10;
  int iVar11;
  undefined4 uVar12;
  int iVar13;
  int iVar14;
  int iVar15;
  int iVar16;
  int iVar17;
  int iVar18;
  uint uVar19;
  undefined8 *puVar20;
  int *piVar21;
  uint uVar22;
  int unaff_EDI;
  int local_78;
  undefined8 *local_74;
  int local_70;
  int local_44;
  int local_40;
  int local_3c;
  
  FUN_0004c803();
  uVar2 = param_1[2];
  iVar3 = *(int *)param_1[7];
  iVar13 = omp_get_num_threads();
  iVar14 = omp_get_thread_num();
  iVar15 = (iVar3 + -1 + *(int *)(uVar2 + 0x1c)) / iVar3;
  iVar16 = iVar15 / iVar13;
  iVar15 = iVar15 % iVar13;
  if (iVar14 < iVar15) {
    iVar16 = iVar16 + 1;
    iVar15 = 0;
  }
  iVar15 = iVar15 + iVar14 * iVar16;
  if (iVar15 < iVar16 + iVar15) {
    uVar4 = param_1[6];
    uVar5 = param_1[5];
    uVar6 = param_1[4];
    uVar7 = param_1[3];
    local_3c = iVar15 * iVar3;
    do {
      if (param_1[9] != 0) {
        iVar13 = *(int *)(uVar2 + 0x18);
        if (0 < iVar13) {
          local_40 = 0;
          local_44 = *(int *)param_1[8];
          do {
            iVar14 = iVar13 - local_40;
            if (local_44 + local_40 <= iVar13) {
              iVar14 = local_44;
            }
            iVar13 = *(int *)(uVar2 + 0x1c) - local_3c;
            if (*(int *)param_1[7] + local_3c <= *(int *)(uVar2 + 0x1c)) {
              iVar13 = *(int *)param_1[7];
            }
            iVar17 = GetCacheViewVirtualPixels(uVar6,local_40,local_3c,iVar14,iVar13,uVar7);
            if (iVar17 == 0) {
              param_1[9] = 0;
              break;
            }
            if (0 < iVar14) {
              local_70 = local_40;
              do {
                if (param_1[9] != 0) {
                  iVar18 = QueueCacheViewAuthenticPixels
                                     (uVar5,(*(int *)(uVar4 + 0x18) - local_3c) - iVar13,local_70,
                                      iVar13,1,uVar7);
                  if (iVar18 != 0) {
                    iVar8 = *(int *)(uVar2 + 0x298);
                    local_74 = (undefined8 *)
                               ((((iVar13 + -1) * iVar14 - local_40) + local_70) * iVar8 * 8 +
                               iVar17);
                    if (0 < iVar13) {
                      local_78 = 0;
                      iVar9 = *(int *)(uVar4 + 0x298);
                      do {
                        if (0 < iVar8) {
                          piVar10 = *(int **)(uVar2 + 0x2a8);
                          iVar11 = *(int *)(uVar4 + 0x2a8);
                          puVar20 = local_74;
                          piVar21 = piVar10;
                          do {
                            iVar1 = iVar11 + *piVar21 * 0xc;
                            if ((piVar10[*piVar21 * 3 + 1] != 0) && (*(int *)(iVar1 + 4) != 0)) {
                              *(undefined8 *)(iVar18 + *(int *)(iVar1 + 8) * 8) = *puVar20;
                            }
                            piVar21 = piVar21 + 3;
                            puVar20 = puVar20 + 1;
                          } while (piVar21 != piVar10 + iVar8 * 3);
                        }
                        local_78 = local_78 + 1;
                        local_74 = (undefined8 *)((int)local_74 - iVar8 * 8 * iVar14);
                        iVar18 = iVar18 + iVar9 * 8;
                      } while (local_78 != iVar13);
                    }
                    iVar18 = SyncCacheViewAuthenticPixels(uVar5,uVar7);
                    if (iVar18 != 0) goto LAB_00185782;
                  }
                  param_1[9] = 0;
                }
LAB_00185782:
                local_70 = local_70 + 1;
              } while (iVar14 + local_40 != local_70);
            }
            local_44 = *(int *)param_1[8];
            local_40 = local_40 + local_44;
            iVar13 = *(int *)(uVar2 + 0x18);
          } while (local_40 < iVar13);
        }
        if (*(int *)(uVar2 + 0x300) != 0) {
          uVar12 = *(undefined4 *)(uVar2 + 0x1c);
          uVar19 = *(uint *)param_1[7] + *param_1;
          uVar22 = param_1[1] + (uint)CARRY4(*(uint *)param_1[7],*param_1);
          *param_1 = uVar19;
          param_1[1] = uVar22;
          iVar13 = SetImageProgress(uVar2,&UNK_00142477 + unaff_EDI,uVar19,uVar22,uVar12,0);
          if (iVar13 == 0) {
            param_1[9] = 0;
          }
        }
      }
      local_3c = local_3c + iVar3;
    } while (local_3c < (iVar16 + iVar15) * iVar3);
  }
  return;
}

