
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Enum "ChannelType": Some values do not have unique names */
/* WARNING: Enum "GravityType": Some values do not have unique names */
/* WARNING: Enum "DisposeType": 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 */
/* WARNING: Enum "LogEventType": Some values do not have unique names */

MagickBooleanType
WriteImages(ImageInfo *image_info,Image *images,char *filename,ExceptionInfo *exception)

{
  size_t *psVar1;
  int iVar2;
  ImageInfo *image_info_00;
  Image *images_00;
  Image *pIVar3;
  ExceptionInfo *exception_00;
  size_t sVar4;
  Image *pIVar5;
  MagickProgressMonitor progress_monitor;
  uint uVar6;
  MagickBooleanType MVar7;
  int iVar8;
  int in_GS_OFFSET;
  bool bVar9;
  MagickBooleanType local_4c;
  uint local_3c;
  MagickOffsetType progress;
  
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  if (image_info == (ImageInfo *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,
                  "WriteImages");
  }
  if (image_info->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,
                  "WriteImages");
  }
  if (images == (Image *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages");
  }
  if (images->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,
                  "WriteImages");
  }
  if (images->debug != MagickFalse) {
    LogMagickEvent(TraceEvent,"MagickCore/constitute.c","WriteImages",0x557,"%s",images->filename);
  }
  if (exception == (ExceptionInfo *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,
                  "WriteImages");
  }
  image_info_00 = CloneImageInfo(image_info);
  image_info_00->magick[0] = '\0';
  images_00 = GetFirstImageInList(images);
  pIVar3 = images_00;
  if (filename != (char *)0x0) {
    for (; pIVar3 != (Image *)0x0; pIVar3 = GetNextImageInList(pIVar3)) {
      CopyMagickString(pIVar3->filename,filename,0x1000);
    }
  }
  CopyMagickString(image_info_00->filename,images_00->filename,0x1000);
  exception_00 = AcquireExceptionInfo();
  sVar4 = GetImageListLength(images_00);
  SetImageInfo(image_info_00,sVar4,exception_00);
  DestroyExceptionInfo(exception_00);
  pIVar3 = images_00;
  if (image_info_00->magick[0] == '\0') {
    CopyMagickString(image_info_00->magick,images_00->magick,0x1000);
  }
  do {
    pIVar5 = GetNextImageInList(pIVar3);
    if (pIVar5 == (Image *)0x0) {
      local_4c = MagickTrue;
      local_3c = GetImageListLength(images_00);
      if (images_00 == (Image *)0x0) goto LAB_00079b0b;
      goto LAB_000799f5;
    }
    psVar1 = &pIVar3->scene;
    pIVar3 = pIVar5;
  } while (*psVar1 < pIVar5->scene);
  sVar4 = images_00->scene;
  pIVar3 = images_00;
  do {
    pIVar3->scene = sVar4;
    sVar4 = sVar4 + 1;
    pIVar3 = GetNextImageInList(pIVar3);
  } while (pIVar3 != (Image *)0x0);
  local_3c = GetImageListLength(images_00);
LAB_000799f5:
  progress = 0;
  local_4c = MagickTrue;
  do {
    if (local_3c == 1) {
      MVar7 = WriteImage(image_info_00,images_00,exception);
      local_4c = local_4c & MVar7;
      if (image_info_00->adjoin != MagickFalse) break;
    }
    else {
      progress_monitor =
           SetImageProgressMonitor(images_00,(MagickProgressMonitor)0x0,images_00->client_data);
      MVar7 = WriteImage(image_info_00,images_00,exception);
      local_4c = local_4c & MVar7;
      SetImageProgressMonitor(images_00,progress_monitor,images_00->client_data);
      if (image_info_00->adjoin != MagickFalse) break;
      uVar6 = (uint)progress;
      iVar8 = progress._4_4_;
      do {
        LOCK();
        bVar9 = CONCAT44(iVar8,uVar6) == progress;
        if (bVar9) {
          progress = CONCAT44(iVar8 + (uint)(0xfffffffe < uVar6),uVar6 + 1);
        }
        else {
          iVar8 = (int)((ulonglong)progress >> 0x20);
          uVar6 = (uint)progress;
        }
        UNLOCK();
      } while (!bVar9);
      MVar7 = SetImageProgress(images_00,"Write/Image",progress,(ulonglong)local_3c);
      if (MVar7 == MagickFalse) break;
    }
    images_00 = GetNextImageInList(images_00);
  } while (images_00 != (Image *)0x0);
LAB_00079b0b:
  DestroyImageInfo(image_info_00);
  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return local_4c;
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

uint WriteImages(int param_1,int param_2,int param_3,int param_4)

{
  uint *puVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  undefined4 uVar6;
  undefined4 uVar7;
  int iVar8;
  uint uVar9;
  int in_GS_OFFSET;
  bool bVar10;
  uint local_4c;
  int local_3c;
  undefined8 local_2c;
  
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,
                  "WriteImages");
  }
  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,
                  "WriteImages");
  }
  if (param_2 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages");
  }
  if (*(int *)(param_2 + 0x3344) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,
                  "WriteImages");
  }
  if (*(int *)(param_2 + 0x3328) != 0) {
    LogMagickEvent(0x8000,"MagickCore/constitute.c","WriteImages",0x557,&DAT_002b6e4e,
                   param_2 + 0x318);
  }
  if (param_4 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,
                  "WriteImages");
  }
  iVar3 = CloneImageInfo(param_1);
  *(undefined1 *)(iVar3 + 0x1f0) = 0;
  iVar4 = GetFirstImageInList(param_2);
  iVar5 = iVar4;
  if (param_3 != 0) {
    for (; iVar5 != 0; iVar5 = GetNextImageInList(iVar5)) {
      CopyMagickString(iVar5 + 0x318,param_3,0x1000);
    }
  }
  CopyMagickString(iVar3 + 0x21f0,iVar4 + 0x318,0x1000);
  uVar6 = AcquireExceptionInfo();
  uVar7 = GetImageListLength(iVar4);
  SetImageInfo(iVar3,uVar7,uVar6);
  DestroyExceptionInfo(uVar6);
  iVar5 = iVar4;
  if (*(char *)(iVar3 + 0x1f0) == '\0') {
    CopyMagickString(iVar3 + 0x1f0,iVar4 + 0x2318,0x1000);
  }
  do {
    iVar8 = GetNextImageInList(iVar5);
    if (iVar8 == 0) {
      local_4c = 1;
      local_3c = GetImageListLength(iVar4);
      if (iVar4 == 0) goto LAB_00079b0b;
      goto LAB_000799f5;
    }
    puVar1 = (uint *)(iVar5 + 0x244);
    iVar5 = iVar8;
  } while (*puVar1 < *(uint *)(iVar8 + 0x244));
  iVar5 = *(int *)(iVar4 + 0x244);
  iVar8 = iVar4;
  do {
    *(int *)(iVar8 + 0x244) = iVar5;
    iVar5 = iVar5 + 1;
    iVar8 = GetNextImageInList(iVar8);
  } while (iVar8 != 0);
  local_3c = GetImageListLength(iVar4);
LAB_000799f5:
  local_2c = 0;
  local_4c = 1;
  do {
    if (local_3c == 1) {
      uVar9 = WriteImage(iVar3,iVar4,param_4);
      local_4c = local_4c & uVar9;
      if (*(int *)(iVar3 + 0xc) != 0) break;
    }
    else {
      uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));
      uVar9 = WriteImage(iVar3,iVar4,param_4);
      local_4c = local_4c & uVar9;
      SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));
      if (*(int *)(iVar3 + 0xc) != 0) break;
      uVar9 = (uint)local_2c;
      iVar5 = local_2c._4_4_;
      do {
        LOCK();
        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;
        if (bVar10) {
          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);
        }
        else {
          iVar5 = (int)((ulonglong)local_2c >> 0x20);
          uVar9 = (uint)local_2c;
        }
        UNLOCK();
      } while (!bVar10);
      iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);
      if (iVar5 == 0) break;
    }
    iVar4 = GetNextImageInList(iVar4);
  } while (iVar4 != 0);
LAB_00079b0b:
  DestroyImageInfo(iVar3);
  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0029eab0();
  }
  return local_4c;
}


PUSH EBP
PUSH EDI
PUSH ESI
CALL 0x00054244
ADD ESI,0x35f7a8
PUSH EBX
SUB ESP,0x4c
MOV EAX,dword ptr [ESP + 0x68]
MOV EBP,dword ptr [ESP + 0x60]
MOV EDI,dword ptr [ESP + 0x64]
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,dword ptr [ESP + 0x6c]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x3c],EAX
XOR EAX,EAX
TEST EBP,EBP
JZ 0x00079c29
CMP dword ptr [EBP + 0x31f4],0xabacadab
JNZ 0x00079c08
TEST EDI,EDI
JZ 0x00079c91
CMP dword ptr [EDI + 0x3344],0xabacadab
JNZ 0x00079c70
MOV EAX,dword ptr [EDI + 0x3328]
TEST EAX,EAX
JNZ 0x00079bd0
MOV EBX,dword ptr [ESP + 0xc]
TEST EBX,EBX
JZ 0x00079c4f
SUB ESP,0xc
MOV EBX,ESI
PUSH EBP
CALL 0x000324c0
MOV byte ptr [EAX + 0x1f0],0x0
MOV dword ptr [ESP + 0x38],EAX
MOV dword ptr [ESP],EDI
CALL 0x00031a70
ADD ESP,0x10
MOV EDI,EAX
MOV EAX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JZ 0x00079934
TEST EDI,EDI
JZ 0x00079934
MOV dword ptr [ESP + 0x10],EDI
MOV EBP,EAX
LEA ESI,[ESI]
LEA EAX,[EDI + 0x318]
SUB ESP,0x4
MOV EBX,ESI
PUSH 0x1000
PUSH EBP
PUSH EAX
CALL 0x00030b70
MOV dword ptr [ESP],EDI
CALL 0x000319e0
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JNZ 0x00079908
MOV EDI,dword ptr [ESP + 0x10]
LEA EAX,[EDI + 0x318]
SUB ESP,0x4
MOV EBX,ESI
PUSH 0x1000
PUSH EAX
MOV EAX,dword ptr [ESP + 0x34]
ADD EAX,0x21f0
PUSH EAX
CALL 0x00030b70
ADD ESP,0x10
CALL 0x00032f50
SUB ESP,0xc
PUSH EDI
MOV EBP,EAX
CALL 0x00032180
ADD ESP,0xc
PUSH EBP
PUSH EAX
PUSH dword ptr [ESP + 0x34]
CALL 0x00031490
MOV dword ptr [ESP],EBP
CALL 0x000335b0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x28]
CMP byte ptr [EAX + 0x1f0],0x0
JZ 0x00079b40
MOV EBP,EDI
JMP 0x000799ac
MOV EDX,dword ptr [EBP + 0x244]
MOV EBP,EAX
CMP EDX,dword ptr [EAX + 0x244]
JNC 0x00079b70
SUB ESP,0xc
MOV EBX,ESI
PUSH EBP
CALL 0x000319e0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00079998
MOV dword ptr [ESP + 0x30],0x0
SUB ESP,0xc
MOV EBX,ESI
MOV EBP,0x1
MOV dword ptr [ESP + 0x40],0x0
PUSH EDI
CALL 0x00032180
ADD ESP,0x10
MOV dword ptr [ESP + 0x20],EAX
MOV dword ptr [ESP + 0x24],0x0
TEST EDI,EDI
JZ 0x00079b0b
MOV EDX,dword ptr [ESP + 0x20]
MOV EBP,0x1
MOV ECX,dword ptr [ESP + 0x24]
MOV dword ptr [ESP + 0x10],EBP
MOV EBP,dword ptr [ESP + 0x28]
MOV EAX,EDX
XOR EAX,0x1
MOV EDX,ECX
OR EDX,EAX
LEA EAX,[ESI + 0xffed30d7]
MOV dword ptr [ESP + 0x14],EDX
MOV dword ptr [ESP + 0x2c],EAX
JMP 0x00079add
SUB ESP,0x4
MOV EBX,ESI
PUSH dword ptr [EDI + 0x304]
PUSH 0x0
PUSH EDI
CALL 0x00031ce0
MOV dword ptr [ESP + 0x28],EAX
ADD ESP,0xc
PUSH dword ptr [ESP + 0x10]
PUSH EDI
PUSH EBP
CALL 0x00032d30
AND dword ptr [ESP + 0x20],EAX
ADD ESP,0xc
PUSH dword ptr [EDI + 0x304]
MOV EDX,dword ptr [ESP + 0x20]
PUSH EDX
PUSH EDI
CALL 0x00031ce0
MOV EDX,dword ptr [EBP + 0xc]
ADD ESP,0x10
TEST EDX,EDX
JNZ 0x00079b07
MOV EAX,dword ptr [ESP + 0x30]
MOV EDX,dword ptr [ESP + 0x34]
MOV ECX,EAX
MOV EBX,EDX
ADD ECX,0x1
ADC EBX,0x0
MOV dword ptr [ESP + 0x18],ECX
MOV dword ptr [ESP + 0x1c],EBX
MOV EBX,ECX
MOV ECX,dword ptr [ESP + 0x1c]
CMPXCHG8B.LOCK qword ptr [ESP + 0x30]
JNZ 0x00079a83
SUB ESP,0x8
MOV EBX,ESI
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x44]
PUSH dword ptr [ESP + 0x44]
PUSH dword ptr [ESP + 0x44]
PUSH EDI
CALL 0x00033840
ADD ESP,0x20
TEST EAX,EAX
JZ 0x00079b07
SUB ESP,0xc
MOV EBX,ESI
PUSH EDI
CALL 0x000319e0
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x00079b07
MOV ECX,dword ptr [ESP + 0x14]
TEST ECX,ECX
JNZ 0x00079a30
SUB ESP,0x4
MOV EBX,ESI
PUSH dword ptr [ESP + 0x10]
PUSH EDI
PUSH EBP
CALL 0x00032d30
AND dword ptr [ESP + 0x20],EAX
ADD ESP,0x10
MOV EAX,dword ptr [EBP + 0xc]
TEST EAX,EAX
JZ 0x00079ac9
MOV EBP,dword ptr [ESP + 0x10]
SUB ESP,0xc
MOV EBX,ESI
PUSH dword ptr [ESP + 0x34]
CALL 0x00031450
ADD ESP,0x10
MOV EAX,EBP
MOV EDX,dword ptr [ESP + 0x3c]
XOR EDX,dword ptr GS:[0x14]
JNZ 0x00079c4a
ADD ESP,0x4c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EDI + 0x2318]
SUB ESP,0x4
PUSH 0x1000
PUSH EAX
MOV EAX,dword ptr [ESP + 0x34]
ADD EAX,0x1f0
PUSH EAX
CALL 0x00030b70
ADD ESP,0x10
JMP 0x00079991
MOV EBP,dword ptr [EDI + 0x244]
MOV EAX,EDI
NOP
LEA ESI,[ESI]
SUB ESP,0xc
MOV dword ptr [EAX + 0x244],EBP
MOV EBX,ESI
ADD EBP,0x1
PUSH EAX
CALL 0x000319e0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00079b80
MOV dword ptr [ESP + 0x30],0x0
SUB ESP,0xc
MOV dword ptr [ESP + 0x40],0x0
PUSH EDI
CALL 0x00032180
ADD ESP,0x10
MOV dword ptr [ESP + 0x20],EAX
MOV dword ptr [ESP + 0x24],0x0
JMP 0x000799f5
LEA EAX,[EDI + 0x318]
SUB ESP,0x8
MOV EBX,ESI
PUSH EAX
LEA EAX,[ESI + 0xffedde4e]
PUSH EAX
LEA EAX,[ESI + 0xffed3234]
PUSH 0x557
PUSH EAX
LEA EAX,[ESI + 0xffed2f8c]
PUSH EAX
PUSH 0x8000
CALL 0x000323b0
ADD ESP,0x20
JMP 0x000798c4
LEA EAX,[ESI + 0xffed3240]
MOV EBX,ESI
PUSH EAX
LEA EAX,[ESI + 0xffed2f8c]
PUSH 0x553
PUSH EAX
LEA EAX,[ESI + 0xffec5b28]
PUSH EAX
CALL 0x000313d0
LEA EAX,[ESI + 0xffed3240]
MOV EBX,ESI
PUSH EAX
LEA EAX,[ESI + 0xffed2f8c]
PUSH 0x552
PUSH EAX
LEA EAX,[ESI + 0xffec5b00]
PUSH EAX
CALL 0x000313d0
CALL 0x0029eab0
LEA EAX,[ESI + 0xffed3240]
MOV EBX,ESI
PUSH EAX
LEA EAX,[ESI + 0xffed2f8c]
PUSH 0x558
PUSH EAX
LEA EAX,[ESI + 0xffec6a3c]
PUSH EAX
CALL 0x000313d0
LEA EAX,[ESI + 0xffed3240]
MOV EBX,ESI
PUSH EAX
LEA EAX,[ESI + 0xffed2f8c]
PUSH 0x555
PUSH EAX
LEA EAX,[ESI + 0xffec6b9c]
PUSH EAX
CALL 0x000313d0
LEA EAX,[ESI + 0xffed3240]
MOV EBX,ESI
PUSH EAX
LEA EAX,[ESI + 0xffed2f8c]
PUSH 0x554
PUSH EAX
LEA EAX,[ESI + 0xfff3700d]
PUSH EAX
CALL 0x000313d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nuint WriteImages(int param_1,int param_2,int param_3,int param_4)\n\n{\n  uint *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int iVar8;\n  uint uVar9;\n  int in_GS_OFFSET;\n  bool bVar10;\n  uint local_4c;\n  int local_3c;\n  undefined8 local_2c;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages");\n  }\n  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages");\n  }\n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages");\n  }\n  if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages");\n  }\n  if (*(int *)(param_2 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","WriteImages",0x557,&DAT_002b6e4e,\n                   param_2 + 0x318);\n  }\n  if (param_4 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages");\n  }\n  iVar3 = CloneImageInfo(param_1);\n  *(undefined1 *)(iVar3 + 0x1f0) = 0;\n  iVar4 = GetFirstImageInList(param_2);\n  iVar5 = iVar4;\n  if (param_3 != 0) {\n    for (; iVar5 != 0; iVar5 = GetNextImageInList(iVar5)) {\n      CopyMagickString(iVar5 + 0x318,param_3,0x1000);\n    }\n  }\n  CopyMagickString(iVar3 + 0x21f0,iVar4 + 0x318,0x1000);\n  uVar6 = AcquireExceptionInfo();\n  uVar7 = GetImageListLength(iVar4);\n  SetImageInfo(iVar3,uVar7,uVar6);\n  DestroyExceptionInfo(uVar6);\n  iVar5 = iVar4;\n  if (*(char *)(iVar3 + 0x1f0) == '\0') {\n    CopyMagickString(iVar3 + 0x1f0,iVar4 + 0x2318,0x1000);\n  }\n  do {\n    iVar8 = GetNextImageInList(iVar5);\n    if (iVar8 == 0) {\n      local_4c = 1;\n      local_3c = GetImageListLength(iVar4);\n      if (iVar4 == 0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }\n    puVar1 = (uint *)(iVar5 + 0x244);\n    iVar5 = iVar8;\n  } while (*puVar1 < *(uint *)(iVar8 + 0x244));\n  iVar5 = *(int *)(iVar4 + 0x244);\n  iVar8 = iVar4;\n  do {\n    *(int *)(iVar8 + 0x244) = iVar5;\n    iVar5 = iVar5 + 1;\n    iVar8 = GetNextImageInList(iVar8);\n  } while (iVar8 != 0);\n  local_3c = GetImageListLength(iVar4);\nLAB_000799f5:\n  local_2c = 0;\n  local_4c = 1;\n  do {\n    if (local_3c == 1) {\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n    }\n    else {\n      uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n      uVar9 = (uint)local_2c;\n      iVar5 = local_2c._4_4_;\n      do {\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      } while (!bVar10);\n      iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);\n      if (iVar5 == 0) break;\n    }\n    iVar4 = GetNextImageInList(iVar4);\n  } while (iVar4 != 0);\nLAB_00079b0b:\n  DestroyImageInfo(iVar3);\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }\n  return local_4c;\n}\n\n" comment (function_definition "uint WriteImages(int param_1,int param_2,int param_3,int param_4)\n\n{\n  uint *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int iVar8;\n  uint uVar9;\n  int in_GS_OFFSET;\n  bool bVar10;\n  uint local_4c;\n  int local_3c;\n  undefined8 local_2c;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages");\n  }\n  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages");\n  }\n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages");\n  }\n  if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages");\n  }\n  if (*(int *)(param_2 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","WriteImages",0x557,&DAT_002b6e4e,\n                   param_2 + 0x318);\n  }\n  if (param_4 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages");\n  }\n  iVar3 = CloneImageInfo(param_1);\n  *(undefined1 *)(iVar3 + 0x1f0) = 0;\n  iVar4 = GetFirstImageInList(param_2);\n  iVar5 = iVar4;\n  if (param_3 != 0) {\n    for (; iVar5 != 0; iVar5 = GetNextImageInList(iVar5)) {\n      CopyMagickString(iVar5 + 0x318,param_3,0x1000);\n    }\n  }\n  CopyMagickString(iVar3 + 0x21f0,iVar4 + 0x318,0x1000);\n  uVar6 = AcquireExceptionInfo();\n  uVar7 = GetImageListLength(iVar4);\n  SetImageInfo(iVar3,uVar7,uVar6);\n  DestroyExceptionInfo(uVar6);\n  iVar5 = iVar4;\n  if (*(char *)(iVar3 + 0x1f0) == '\0') {\n    CopyMagickString(iVar3 + 0x1f0,iVar4 + 0x2318,0x1000);\n  }\n  do {\n    iVar8 = GetNextImageInList(iVar5);\n    if (iVar8 == 0) {\n      local_4c = 1;\n      local_3c = GetImageListLength(iVar4);\n      if (iVar4 == 0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }\n    puVar1 = (uint *)(iVar5 + 0x244);\n    iVar5 = iVar8;\n  } while (*puVar1 < *(uint *)(iVar8 + 0x244));\n  iVar5 = *(int *)(iVar4 + 0x244);\n  iVar8 = iVar4;\n  do {\n    *(int *)(iVar8 + 0x244) = iVar5;\n    iVar5 = iVar5 + 1;\n    iVar8 = GetNextImageInList(iVar8);\n  } while (iVar8 != 0);\n  local_3c = GetImageListLength(iVar4);\nLAB_000799f5:\n  local_2c = 0;\n  local_4c = 1;\n  do {\n    if (local_3c == 1) {\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n    }\n    else {\n      uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n      uVar9 = (uint)local_2c;\n      iVar5 = local_2c._4_4_;\n      do {\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      } while (!bVar10);\n      iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);\n      if (iVar5 == 0) break;\n    }\n    iVar4 = GetNextImageInList(iVar4);\n  } while (iVar4 != 0);\nLAB_00079b0b:\n  DestroyImageInfo(iVar3);\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }\n  return local_4c;\n}" type_identifier (function_declarator "WriteImages(int param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int iVar8;\n  uint uVar9;\n  int in_GS_OFFSET;\n  bool bVar10;\n  uint local_4c;\n  int local_3c;\n  undefined8 local_2c;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages");\n  }\n  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages");\n  }\n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages");\n  }\n  if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages");\n  }\n  if (*(int *)(param_2 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","WriteImages",0x557,&DAT_002b6e4e,\n                   param_2 + 0x318);\n  }\n  if (param_4 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages");\n  }\n  iVar3 = CloneImageInfo(param_1);\n  *(undefined1 *)(iVar3 + 0x1f0) = 0;\n  iVar4 = GetFirstImageInList(param_2);\n  iVar5 = iVar4;\n  if (param_3 != 0) {\n    for (; iVar5 != 0; iVar5 = GetNextImageInList(iVar5)) {\n      CopyMagickString(iVar5 + 0x318,param_3,0x1000);\n    }\n  }\n  CopyMagickString(iVar3 + 0x21f0,iVar4 + 0x318,0x1000);\n  uVar6 = AcquireExceptionInfo();\n  uVar7 = GetImageListLength(iVar4);\n  SetImageInfo(iVar3,uVar7,uVar6);\n  DestroyExceptionInfo(uVar6);\n  iVar5 = iVar4;\n  if (*(char *)(iVar3 + 0x1f0) == '\0') {\n    CopyMagickString(iVar3 + 0x1f0,iVar4 + 0x2318,0x1000);\n  }\n  do {\n    iVar8 = GetNextImageInList(iVar5);\n    if (iVar8 == 0) {\n      local_4c = 1;\n      local_3c = GetImageListLength(iVar4);\n      if (iVar4 == 0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }\n    puVar1 = (uint *)(iVar5 + 0x244);\n    iVar5 = iVar8;\n  } while (*puVar1 < *(uint *)(iVar8 + 0x244));\n  iVar5 = *(int *)(iVar4 + 0x244);\n  iVar8 = iVar4;\n  do {\n    *(int *)(iVar8 + 0x244) = iVar5;\n    iVar5 = iVar5 + 1;\n    iVar8 = GetNextImageInList(iVar8);\n  } while (iVar8 != 0);\n  local_3c = GetImageListLength(iVar4);\nLAB_000799f5:\n  local_2c = 0;\n  local_4c = 1;\n  do {\n    if (local_3c == 1) {\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n    }\n    else {\n      uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n      uVar9 = (uint)local_2c;\n      iVar5 = local_2c._4_4_;\n      do {\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      } while (!bVar10);\n      iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);\n      if (iVar5 == 0) break;\n    }\n    iVar4 = GetNextImageInList(iVar4);\n  } while (iVar4 != 0);\nLAB_00079b0b:\n  DestroyImageInfo(iVar3);\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }\n  return local_4c;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar10;" primitive_type identifier ;) (declaration "uint local_4c;" type_identifier identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "undefined8 local_2c;" type_identifier identifier ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages");\n  }" { comment (expression_statement "__assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages");" (call_expression "__assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages")" identifier (argument_list "("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages")" ( (string_literal ""image_info != (const ImageInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/constitute.c"" " string_content ") , number_literal , (string_literal ""WriteImages"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages");\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x31f4) != -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x31f4) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x31f4)" * (cast_expression "(int *)(param_1 + 0x31f4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x31f4)" ( (binary_expression "param_1 + 0x31f4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages");\n  }" { comment (expression_statement "__assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages");" (call_expression "__assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages")" identifier (argument_list "("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages")" ( (string_literal ""image_info->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/constitute.c"" " string_content ") , number_literal , (string_literal ""WriteImages"" " string_content ") ))) ;) })) (if_statement "if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages");\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages");\n  }" { comment (expression_statement "__assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages");" (call_expression "__assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages")" identifier (argument_list "("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages")" ( (string_literal ""images != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/constitute.c"" " string_content ") , number_literal , (string_literal ""WriteImages"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages");\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x3344) != -0x54535255)" ( (binary_expression "*(int *)(param_2 + 0x3344) != -0x54535255" (pointer_expression "*(int *)(param_2 + 0x3344)" * (cast_expression "(int *)(param_2 + 0x3344)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3344)" ( (binary_expression "param_2 + 0x3344" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages");\n  }" { comment (expression_statement "__assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages");" (call_expression "__assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages")" identifier (argument_list "("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages")" ( (string_literal ""images->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/constitute.c"" " string_content ") , number_literal , (string_literal ""WriteImages"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_2 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","WriteImages",0x557,&DAT_002b6e4e,\n                   param_2 + 0x318);\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x3328) != 0)" ( (binary_expression "*(int *)(param_2 + 0x3328) != 0" (pointer_expression "*(int *)(param_2 + 0x3328)" * (cast_expression "(int *)(param_2 + 0x3328)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3328)" ( (binary_expression "param_2 + 0x3328" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","WriteImages",0x557,&DAT_002b6e4e,\n                   param_2 + 0x318);\n  }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/constitute.c","WriteImages",0x557,&DAT_002b6e4e,\n                   param_2 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/constitute.c","WriteImages",0x557,&DAT_002b6e4e,\n                   param_2 + 0x318)" identifier (argument_list "(0x8000,"MagickCore/constitute.c","WriteImages",0x557,&DAT_002b6e4e,\n                   param_2 + 0x318)" ( number_literal , (string_literal ""MagickCore/constitute.c"" " string_content ") , (string_literal ""WriteImages"" " string_content ") , number_literal , (pointer_expression "&DAT_002b6e4e" & identifier) , (binary_expression "param_2 + 0x318" identifier + number_literal) ))) ;) })) (if_statement "if (param_4 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages");\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages");\n  }" { comment (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/constitute.c"" " string_content ") , number_literal , (string_literal ""WriteImages"" " string_content ") ))) ;) })) (expression_statement "iVar3 = CloneImageInfo(param_1);" (assignment_expression "iVar3 = CloneImageInfo(param_1)" identifier = (call_expression "CloneImageInfo(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "*(undefined1 *)(iVar3 + 0x1f0) = 0;" (assignment_expression "*(undefined1 *)(iVar3 + 0x1f0) = 0" (pointer_expression "*(undefined1 *)(iVar3 + 0x1f0)" * (cast_expression "(undefined1 *)(iVar3 + 0x1f0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1f0)" ( (binary_expression "iVar3 + 0x1f0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar4 = GetFirstImageInList(param_2);" (assignment_expression "iVar4 = GetFirstImageInList(param_2)" identifier = (call_expression "GetFirstImageInList(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) (if_statement "if (param_3 != 0) {\n    for (; iVar5 != 0; iVar5 = GetNextImageInList(iVar5)) {\n      CopyMagickString(iVar5 + 0x318,param_3,0x1000);\n    }\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    for (; iVar5 != 0; iVar5 = GetNextImageInList(iVar5)) {\n      CopyMagickString(iVar5 + 0x318,param_3,0x1000);\n    }\n  }" { (for_statement "for (; iVar5 != 0; iVar5 = GetNextImageInList(iVar5)) {\n      CopyMagickString(iVar5 + 0x318,param_3,0x1000);\n    }" for ( ; (binary_expression "iVar5 != 0" identifier != number_literal) ; (assignment_expression "iVar5 = GetNextImageInList(iVar5)" identifier = (call_expression "GetNextImageInList(iVar5)" identifier (argument_list "(iVar5)" ( identifier )))) ) (compound_statement "{\n      CopyMagickString(iVar5 + 0x318,param_3,0x1000);\n    }" { (expression_statement "CopyMagickString(iVar5 + 0x318,param_3,0x1000);" (call_expression "CopyMagickString(iVar5 + 0x318,param_3,0x1000)" identifier (argument_list "(iVar5 + 0x318,param_3,0x1000)" ( (binary_expression "iVar5 + 0x318" identifier + number_literal) , identifier , number_literal ))) ;) })) })) (expression_statement "CopyMagickString(iVar3 + 0x21f0,iVar4 + 0x318,0x1000);" (call_expression "CopyMagickString(iVar3 + 0x21f0,iVar4 + 0x318,0x1000)" identifier (argument_list "(iVar3 + 0x21f0,iVar4 + 0x318,0x1000)" ( (binary_expression "iVar3 + 0x21f0" identifier + number_literal) , (binary_expression "iVar4 + 0x318" identifier + number_literal) , number_literal ))) ;) (expression_statement "uVar6 = AcquireExceptionInfo();" (assignment_expression "uVar6 = AcquireExceptionInfo()" identifier = (call_expression "AcquireExceptionInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar7 = GetImageListLength(iVar4);" (assignment_expression "uVar7 = GetImageListLength(iVar4)" identifier = (call_expression "GetImageListLength(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "SetImageInfo(iVar3,uVar7,uVar6);" (call_expression "SetImageInfo(iVar3,uVar7,uVar6)" identifier (argument_list "(iVar3,uVar7,uVar6)" ( identifier , identifier , identifier ))) ;) (expression_statement "DestroyExceptionInfo(uVar6);" (call_expression "DestroyExceptionInfo(uVar6)" identifier (argument_list "(uVar6)" ( identifier ))) ;) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) (if_statement "if (*(char *)(iVar3 + 0x1f0) == '\0') {\n    CopyMagickString(iVar3 + 0x1f0,iVar4 + 0x2318,0x1000);\n  }" if (parenthesized_expression "(*(char *)(iVar3 + 0x1f0) == '\0')" ( (binary_expression "*(char *)(iVar3 + 0x1f0) == '\0'" (pointer_expression "*(char *)(iVar3 + 0x1f0)" * (cast_expression "(char *)(iVar3 + 0x1f0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1f0)" ( (binary_expression "iVar3 + 0x1f0" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    CopyMagickString(iVar3 + 0x1f0,iVar4 + 0x2318,0x1000);\n  }" { (expression_statement "CopyMagickString(iVar3 + 0x1f0,iVar4 + 0x2318,0x1000);" (call_expression "CopyMagickString(iVar3 + 0x1f0,iVar4 + 0x2318,0x1000)" identifier (argument_list "(iVar3 + 0x1f0,iVar4 + 0x2318,0x1000)" ( (binary_expression "iVar3 + 0x1f0" identifier + number_literal) , (binary_expression "iVar4 + 0x2318" identifier + number_literal) , number_literal ))) ;) })) (do_statement "do {\n    iVar8 = GetNextImageInList(iVar5);\n    if (iVar8 == 0) {\n      local_4c = 1;\n      local_3c = GetImageListLength(iVar4);\n      if (iVar4 == 0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }\n    puVar1 = (uint *)(iVar5 + 0x244);\n    iVar5 = iVar8;\n  } while (*puVar1 < *(uint *)(iVar8 + 0x244));" do (compound_statement "{\n    iVar8 = GetNextImageInList(iVar5);\n    if (iVar8 == 0) {\n      local_4c = 1;\n      local_3c = GetImageListLength(iVar4);\n      if (iVar4 == 0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }\n    puVar1 = (uint *)(iVar5 + 0x244);\n    iVar5 = iVar8;\n  }" { (expression_statement "iVar8 = GetNextImageInList(iVar5);" (assignment_expression "iVar8 = GetNextImageInList(iVar5)" identifier = (call_expression "GetNextImageInList(iVar5)" identifier (argument_list "(iVar5)" ( identifier )))) ;) (if_statement "if (iVar8 == 0) {\n      local_4c = 1;\n      local_3c = GetImageListLength(iVar4);\n      if (iVar4 == 0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n      local_4c = 1;\n      local_3c = GetImageListLength(iVar4);\n      if (iVar4 == 0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }" { (expression_statement "local_4c = 1;" (assignment_expression "local_4c = 1" identifier = number_literal) ;) (expression_statement "local_3c = GetImageListLength(iVar4);" (assignment_expression "local_3c = GetImageListLength(iVar4)" identifier = (call_expression "GetImageListLength(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (if_statement "if (iVar4 == 0) goto LAB_00079b0b;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00079b0b;" goto statement_identifier ;)) (goto_statement "goto LAB_000799f5;" goto statement_identifier ;) })) (expression_statement "puVar1 = (uint *)(iVar5 + 0x244);" (assignment_expression "puVar1 = (uint *)(iVar5 + 0x244)" identifier = (cast_expression "(uint *)(iVar5 + 0x244)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x244)" ( (binary_expression "iVar5 + 0x244" identifier + number_literal) )))) ;) (expression_statement "iVar5 = iVar8;" (assignment_expression "iVar5 = iVar8" identifier = identifier) ;) }) while (parenthesized_expression "(*puVar1 < *(uint *)(iVar8 + 0x244))" ( (binary_expression "*puVar1 < *(uint *)(iVar8 + 0x244)" (pointer_expression "*puVar1" * identifier) < (pointer_expression "*(uint *)(iVar8 + 0x244)" * (cast_expression "(uint *)(iVar8 + 0x244)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x244)" ( (binary_expression "iVar8 + 0x244" identifier + number_literal) ))))) )) ;) (expression_statement "iVar5 = *(int *)(iVar4 + 0x244);" (assignment_expression "iVar5 = *(int *)(iVar4 + 0x244)" identifier = (pointer_expression "*(int *)(iVar4 + 0x244)" * (cast_expression "(int *)(iVar4 + 0x244)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x244)" ( (binary_expression "iVar4 + 0x244" identifier + number_literal) ))))) ;) (expression_statement "iVar8 = iVar4;" (assignment_expression "iVar8 = iVar4" identifier = identifier) ;) (do_statement "do {\n    *(int *)(iVar8 + 0x244) = iVar5;\n    iVar5 = iVar5 + 1;\n    iVar8 = GetNextImageInList(iVar8);\n  } while (iVar8 != 0);" do (compound_statement "{\n    *(int *)(iVar8 + 0x244) = iVar5;\n    iVar5 = iVar5 + 1;\n    iVar8 = GetNextImageInList(iVar8);\n  }" { (expression_statement "*(int *)(iVar8 + 0x244) = iVar5;" (assignment_expression "*(int *)(iVar8 + 0x244) = iVar5" (pointer_expression "*(int *)(iVar8 + 0x244)" * (cast_expression "(int *)(iVar8 + 0x244)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x244)" ( (binary_expression "iVar8 + 0x244" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "iVar8 = GetNextImageInList(iVar8);" (assignment_expression "iVar8 = GetNextImageInList(iVar8)" identifier = (call_expression "GetNextImageInList(iVar8)" identifier (argument_list "(iVar8)" ( identifier )))) ;) }) while (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) ;) (expression_statement "local_3c = GetImageListLength(iVar4);" (assignment_expression "local_3c = GetImageListLength(iVar4)" identifier = (call_expression "GetImageListLength(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (labeled_statement "LAB_000799f5:\n  local_2c = 0;" statement_identifier : (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;)) (expression_statement "local_4c = 1;" (assignment_expression "local_4c = 1" identifier = number_literal) ;) (do_statement "do {\n    if (local_3c == 1) {\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n    }\n    else {\n      uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n      uVar9 = (uint)local_2c;\n      iVar5 = local_2c._4_4_;\n      do {\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      } while (!bVar10);\n      iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);\n      if (iVar5 == 0) break;\n    }\n    iVar4 = GetNextImageInList(iVar4);\n  } while (iVar4 != 0);" do (compound_statement "{\n    if (local_3c == 1) {\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n    }\n    else {\n      uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n      uVar9 = (uint)local_2c;\n      iVar5 = local_2c._4_4_;\n      do {\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      } while (!bVar10);\n      iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);\n      if (iVar5 == 0) break;\n    }\n    iVar4 = GetNextImageInList(iVar4);\n  }" { (if_statement "if (local_3c == 1) {\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n    }\n    else {\n      uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n      uVar9 = (uint)local_2c;\n      iVar5 = local_2c._4_4_;\n      do {\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      } while (!bVar10);\n      iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);\n      if (iVar5 == 0) break;\n    }" if (parenthesized_expression "(local_3c == 1)" ( (binary_expression "local_3c == 1" identifier == number_literal) )) (compound_statement "{\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n    }" { (expression_statement "uVar9 = WriteImage(iVar3,iVar4,param_4);" (assignment_expression "uVar9 = WriteImage(iVar3,iVar4,param_4)" identifier = (call_expression "WriteImage(iVar3,iVar4,param_4)" identifier (argument_list "(iVar3,iVar4,param_4)" ( identifier , identifier , identifier )))) ;) (expression_statement "local_4c = local_4c & uVar9;" (assignment_expression "local_4c = local_4c & uVar9" identifier = (binary_expression "local_4c & uVar9" identifier & identifier)) ;) (if_statement "if (*(int *)(iVar3 + 0xc) != 0) break;" if (parenthesized_expression "(*(int *)(iVar3 + 0xc) != 0)" ( (binary_expression "*(int *)(iVar3 + 0xc) != 0" (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) != number_literal) )) (break_statement "break;" break ;)) }) (else_clause "else {\n      uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n      uVar9 = (uint)local_2c;\n      iVar5 = local_2c._4_4_;\n      do {\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      } while (!bVar10);\n      iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);\n      if (iVar5 == 0) break;\n    }" else (compound_statement "{\n      uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n      uVar9 = (uint)local_2c;\n      iVar5 = local_2c._4_4_;\n      do {\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      } while (!bVar10);\n      iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);\n      if (iVar5 == 0) break;\n    }" { (expression_statement "uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));" (assignment_expression "uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304))" identifier = (call_expression "SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304))" identifier (argument_list "(iVar4,0,*(undefined4 *)(iVar4 + 0x304))" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(iVar4 + 0x304)" * (cast_expression "(undefined4 *)(iVar4 + 0x304)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x304)" ( (binary_expression "iVar4 + 0x304" identifier + number_literal) )))) )))) ;) (expression_statement "uVar9 = WriteImage(iVar3,iVar4,param_4);" (assignment_expression "uVar9 = WriteImage(iVar3,iVar4,param_4)" identifier = (call_expression "WriteImage(iVar3,iVar4,param_4)" identifier (argument_list "(iVar3,iVar4,param_4)" ( identifier , identifier , identifier )))) ;) (expression_statement "local_4c = local_4c & uVar9;" (assignment_expression "local_4c = local_4c & uVar9" identifier = (binary_expression "local_4c & uVar9" identifier & identifier)) ;) (expression_statement "SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));" (call_expression "SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304))" identifier (argument_list "(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304))" ( identifier , identifier , (pointer_expression "*(undefined4 *)(iVar4 + 0x304)" * (cast_expression "(undefined4 *)(iVar4 + 0x304)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x304)" ( (binary_expression "iVar4 + 0x304" identifier + number_literal) )))) ))) ;) (if_statement "if (*(int *)(iVar3 + 0xc) != 0) break;" if (parenthesized_expression "(*(int *)(iVar3 + 0xc) != 0)" ( (binary_expression "*(int *)(iVar3 + 0xc) != 0" (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) != number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar9 = (uint)local_2c;" (assignment_expression "uVar9 = (uint)local_2c" identifier = (cast_expression "(uint)local_2c" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "iVar5 = local_2c._4_4_;" (assignment_expression "iVar5 = local_2c._4_4_" identifier = (field_expression "local_2c._4_4_" identifier . field_identifier)) ;) (do_statement "do {\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      } while (!bVar10);" do (compound_statement "{\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "bVar10 = CONCAT44(iVar5,uVar9) == local_2c;" (assignment_expression "bVar10 = CONCAT44(iVar5,uVar9) == local_2c" identifier = (binary_expression "CONCAT44(iVar5,uVar9) == local_2c" (call_expression "CONCAT44(iVar5,uVar9)" identifier (argument_list "(iVar5,uVar9)" ( identifier , identifier ))) == identifier)) ;) (if_statement "if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }" if (parenthesized_expression "(bVar10)" ( identifier )) (compound_statement "{\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }" { (expression_statement "local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);" (assignment_expression "local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1)" identifier = (call_expression "CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1)" identifier (argument_list "(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1)" ( (binary_expression "iVar5 + (uint)(0xfffffffe < uVar9)" identifier + (call_expression "(uint)(0xfffffffe < uVar9)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0xfffffffe < uVar9)" ( (binary_expression "0xfffffffe < uVar9" number_literal < identifier) )))) , (binary_expression "uVar9 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }" else (compound_statement "{\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }" { (expression_statement "iVar5 = (int)((ulonglong)local_2c >> 0x20);" (assignment_expression "iVar5 = (int)((ulonglong)local_2c >> 0x20)" identifier = (cast_expression "(int)((ulonglong)local_2c >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)local_2c >> 0x20)" ( (binary_expression "(ulonglong)local_2c >> 0x20" (cast_expression "(ulonglong)local_2c" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar9 = (uint)local_2c;" (assignment_expression "uVar9 = (uint)local_2c" identifier = (cast_expression "(uint)local_2c" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) }))) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }) while (parenthesized_expression "(!bVar10)" ( (unary_expression "!bVar10" ! identifier) )) ;) (expression_statement "iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);" (assignment_expression "iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0)" identifier = (call_expression "SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0)" identifier (argument_list "(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0)" ( identifier , (string_literal ""Write/Image"" " string_content ") , (cast_expression "(uint)local_2c" ( (type_descriptor "uint" type_identifier) ) identifier) , (field_expression "local_2c._4_4_" identifier . field_identifier) , identifier , number_literal )))) ;) (if_statement "if (iVar5 == 0) break;" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) }))) (expression_statement "iVar4 = GetNextImageInList(iVar4);" (assignment_expression "iVar4 = GetNextImageInList(iVar4)" identifier = (call_expression "GetNextImageInList(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) }) while (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) ;) (labeled_statement "LAB_00079b0b:\n  DestroyImageInfo(iVar3);" statement_identifier : (expression_statement "DestroyImageInfo(iVar3);" (call_expression "DestroyImageInfo(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;)) (if_statement "if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }" if (parenthesized_expression "(iVar2 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }" { comment (expression_statement "FUN_0029eab0();" (call_expression "FUN_0029eab0()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return local_4c;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* WARNING: Enum "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* WARNING: Enum "DisposeType": Some values do not have unique names */\n/* WARNING: Enum "PixelChannel": Some values do not have unique names */\n/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n/* WARNING: Enum "LogEventType": Some values do not have unique names */\n\nMagickBooleanType\nWriteImages(ImageInfo *image_info,Image *images,char *filename,ExceptionInfo *exception)\n\n{\n  size_t *psVar1;\n  int iVar2;\n  ImageInfo *image_info_00;\n  Image *images_00;\n  Image *pIVar3;\n  ExceptionInfo *exception_00;\n  size_t sVar4;\n  Image *pIVar5;\n  MagickProgressMonitor progress_monitor;\n  uint uVar6;\n  MagickBooleanType MVar7;\n  int iVar8;\n  int in_GS_OFFSET;\n  bool bVar9;\n  MagickBooleanType local_4c;\n  uint local_3c;\n  MagickOffsetType progress;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (image_info == (ImageInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages");\n  }\n  if (image_info->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages");\n  }\n  if (images == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages");\n  }\n  if (images->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages");\n  }\n  if (images->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/constitute.c","WriteImages",0x557,"%s",images->filename);\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages");\n  }\n  image_info_00 = CloneImageInfo(image_info);\n  image_info_00->magick[0] = '\0';\n  images_00 = GetFirstImageInList(images);\n  pIVar3 = images_00;\n  if (filename != (char *)0x0) {\n    for (; pIVar3 != (Image *)0x0; pIVar3 = GetNextImageInList(pIVar3)) {\n      CopyMagickString(pIVar3->filename,filename,0x1000);\n    }\n  }\n  CopyMagickString(image_info_00->filename,images_00->filename,0x1000);\n  exception_00 = AcquireExceptionInfo();\n  sVar4 = GetImageListLength(images_00);\n  SetImageInfo(image_info_00,sVar4,exception_00);\n  DestroyExceptionInfo(exception_00);\n  pIVar3 = images_00;\n  if (image_info_00->magick[0] == '\0') {\n    CopyMagickString(image_info_00->magick,images_00->magick,0x1000);\n  }\n  do {\n    pIVar5 = GetNextImageInList(pIVar3);\n    if (pIVar5 == (Image *)0x0) {\n      local_4c = MagickTrue;\n      local_3c = GetImageListLength(images_00);\n      if (images_00 == (Image *)0x0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }\n    psVar1 = &pIVar3->scene;\n    pIVar3 = pIVar5;\n  } while (*psVar1 < pIVar5->scene);\n  sVar4 = images_00->scene;\n  pIVar3 = images_00;\n  do {\n    pIVar3->scene = sVar4;\n    sVar4 = sVar4 + 1;\n    pIVar3 = GetNextImageInList(pIVar3);\n  } while (pIVar3 != (Image *)0x0);\n  local_3c = GetImageListLength(images_00);\nLAB_000799f5:\n  progress = 0;\n  local_4c = MagickTrue;\n  do {\n    if (local_3c == 1) {\n      MVar7 = WriteImage(image_info_00,images_00,exception);\n      local_4c = local_4c & MVar7;\n      if (image_info_00->adjoin != MagickFalse) break;\n    }\n    else {\n      progress_monitor =\n           SetImageProgressMonitor(images_00,(MagickProgressMonitor)0x0,images_00->client_data);\n      MVar7 = WriteImage(image_info_00,images_00,exception);\n      local_4c = local_4c & MVar7;\n      SetImageProgressMonitor(images_00,progress_monitor,images_00->client_data);\n      if (image_info_00->adjoin != MagickFalse) break;\n      uVar6 = (uint)progress;\n      iVar8 = progress._4_4_;\n      do {\n        LOCK();\n        bVar9 = CONCAT44(iVar8,uVar6) == progress;\n        if (bVar9) {\n          progress = CONCAT44(iVar8 + (uint)(0xfffffffe < uVar6),uVar6 + 1);\n        }\n        else {\n          iVar8 = (int)((ulonglong)progress >> 0x20);\n          uVar6 = (uint)progress;\n        }\n        UNLOCK();\n      } while (!bVar9);\n      MVar7 = SetImageProgress(images_00,"Write/Image",progress,(ulonglong)local_3c);\n      if (MVar7 == MagickFalse) break;\n    }\n    images_00 = GetNextImageInList(images_00);\n  } while (images_00 != (Image *)0x0);\nLAB_00079b0b:\n  DestroyImageInfo(image_info_00);\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return local_4c;\n}\n\n" comment comment comment comment comment comment comment (function_definition "MagickBooleanType\nWriteImages(ImageInfo *image_info,Image *images,char *filename,ExceptionInfo *exception)\n\n{\n  size_t *psVar1;\n  int iVar2;\n  ImageInfo *image_info_00;\n  Image *images_00;\n  Image *pIVar3;\n  ExceptionInfo *exception_00;\n  size_t sVar4;\n  Image *pIVar5;\n  MagickProgressMonitor progress_monitor;\n  uint uVar6;\n  MagickBooleanType MVar7;\n  int iVar8;\n  int in_GS_OFFSET;\n  bool bVar9;\n  MagickBooleanType local_4c;\n  uint local_3c;\n  MagickOffsetType progress;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (image_info == (ImageInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages");\n  }\n  if (image_info->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages");\n  }\n  if (images == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages");\n  }\n  if (images->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages");\n  }\n  if (images->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/constitute.c","WriteImages",0x557,"%s",images->filename);\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages");\n  }\n  image_info_00 = CloneImageInfo(image_info);\n  image_info_00->magick[0] = '\0';\n  images_00 = GetFirstImageInList(images);\n  pIVar3 = images_00;\n  if (filename != (char *)0x0) {\n    for (; pIVar3 != (Image *)0x0; pIVar3 = GetNextImageInList(pIVar3)) {\n      CopyMagickString(pIVar3->filename,filename,0x1000);\n    }\n  }\n  CopyMagickString(image_info_00->filename,images_00->filename,0x1000);\n  exception_00 = AcquireExceptionInfo();\n  sVar4 = GetImageListLength(images_00);\n  SetImageInfo(image_info_00,sVar4,exception_00);\n  DestroyExceptionInfo(exception_00);\n  pIVar3 = images_00;\n  if (image_info_00->magick[0] == '\0') {\n    CopyMagickString(image_info_00->magick,images_00->magick,0x1000);\n  }\n  do {\n    pIVar5 = GetNextImageInList(pIVar3);\n    if (pIVar5 == (Image *)0x0) {\n      local_4c = MagickTrue;\n      local_3c = GetImageListLength(images_00);\n      if (images_00 == (Image *)0x0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }\n    psVar1 = &pIVar3->scene;\n    pIVar3 = pIVar5;\n  } while (*psVar1 < pIVar5->scene);\n  sVar4 = images_00->scene;\n  pIVar3 = images_00;\n  do {\n    pIVar3->scene = sVar4;\n    sVar4 = sVar4 + 1;\n    pIVar3 = GetNextImageInList(pIVar3);\n  } while (pIVar3 != (Image *)0x0);\n  local_3c = GetImageListLength(images_00);\nLAB_000799f5:\n  progress = 0;\n  local_4c = MagickTrue;\n  do {\n    if (local_3c == 1) {\n      MVar7 = WriteImage(image_info_00,images_00,exception);\n      local_4c = local_4c & MVar7;\n      if (image_info_00->adjoin != MagickFalse) break;\n    }\n    else {\n      progress_monitor =\n           SetImageProgressMonitor(images_00,(MagickProgressMonitor)0x0,images_00->client_data);\n      MVar7 = WriteImage(image_info_00,images_00,exception);\n      local_4c = local_4c & MVar7;\n      SetImageProgressMonitor(images_00,progress_monitor,images_00->client_data);\n      if (image_info_00->adjoin != MagickFalse) break;\n      uVar6 = (uint)progress;\n      iVar8 = progress._4_4_;\n      do {\n        LOCK();\n        bVar9 = CONCAT44(iVar8,uVar6) == progress;\n        if (bVar9) {\n          progress = CONCAT44(iVar8 + (uint)(0xfffffffe < uVar6),uVar6 + 1);\n        }\n        else {\n          iVar8 = (int)((ulonglong)progress >> 0x20);\n          uVar6 = (uint)progress;\n        }\n        UNLOCK();\n      } while (!bVar9);\n      MVar7 = SetImageProgress(images_00,"Write/Image",progress,(ulonglong)local_3c);\n      if (MVar7 == MagickFalse) break;\n    }\n    images_00 = GetNextImageInList(images_00);\n  } while (images_00 != (Image *)0x0);\nLAB_00079b0b:\n  DestroyImageInfo(image_info_00);\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return local_4c;\n}" type_identifier (function_declarator "WriteImages(ImageInfo *image_info,Image *images,char *filename,ExceptionInfo *exception)" identifier (parameter_list "(ImageInfo *image_info,Image *images,char *filename,ExceptionInfo *exception)" ( (parameter_declaration "ImageInfo *image_info" type_identifier (pointer_declarator "*image_info" * identifier)) , (parameter_declaration "Image *images" type_identifier (pointer_declarator "*images" * identifier)) , (parameter_declaration "char *filename" primitive_type (pointer_declarator "*filename" * identifier)) , (parameter_declaration "ExceptionInfo *exception" type_identifier (pointer_declarator "*exception" * identifier)) ))) (compound_statement "{\n  size_t *psVar1;\n  int iVar2;\n  ImageInfo *image_info_00;\n  Image *images_00;\n  Image *pIVar3;\n  ExceptionInfo *exception_00;\n  size_t sVar4;\n  Image *pIVar5;\n  MagickProgressMonitor progress_monitor;\n  uint uVar6;\n  MagickBooleanType MVar7;\n  int iVar8;\n  int in_GS_OFFSET;\n  bool bVar9;\n  MagickBooleanType local_4c;\n  uint local_3c;\n  MagickOffsetType progress;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (image_info == (ImageInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages");\n  }\n  if (image_info->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages");\n  }\n  if (images == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages");\n  }\n  if (images->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages");\n  }\n  if (images->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/constitute.c","WriteImages",0x557,"%s",images->filename);\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages");\n  }\n  image_info_00 = CloneImageInfo(image_info);\n  image_info_00->magick[0] = '\0';\n  images_00 = GetFirstImageInList(images);\n  pIVar3 = images_00;\n  if (filename != (char *)0x0) {\n    for (; pIVar3 != (Image *)0x0; pIVar3 = GetNextImageInList(pIVar3)) {\n      CopyMagickString(pIVar3->filename,filename,0x1000);\n    }\n  }\n  CopyMagickString(image_info_00->filename,images_00->filename,0x1000);\n  exception_00 = AcquireExceptionInfo();\n  sVar4 = GetImageListLength(images_00);\n  SetImageInfo(image_info_00,sVar4,exception_00);\n  DestroyExceptionInfo(exception_00);\n  pIVar3 = images_00;\n  if (image_info_00->magick[0] == '\0') {\n    CopyMagickString(image_info_00->magick,images_00->magick,0x1000);\n  }\n  do {\n    pIVar5 = GetNextImageInList(pIVar3);\n    if (pIVar5 == (Image *)0x0) {\n      local_4c = MagickTrue;\n      local_3c = GetImageListLength(images_00);\n      if (images_00 == (Image *)0x0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }\n    psVar1 = &pIVar3->scene;\n    pIVar3 = pIVar5;\n  } while (*psVar1 < pIVar5->scene);\n  sVar4 = images_00->scene;\n  pIVar3 = images_00;\n  do {\n    pIVar3->scene = sVar4;\n    sVar4 = sVar4 + 1;\n    pIVar3 = GetNextImageInList(pIVar3);\n  } while (pIVar3 != (Image *)0x0);\n  local_3c = GetImageListLength(images_00);\nLAB_000799f5:\n  progress = 0;\n  local_4c = MagickTrue;\n  do {\n    if (local_3c == 1) {\n      MVar7 = WriteImage(image_info_00,images_00,exception);\n      local_4c = local_4c & MVar7;\n      if (image_info_00->adjoin != MagickFalse) break;\n    }\n    else {\n      progress_monitor =\n           SetImageProgressMonitor(images_00,(MagickProgressMonitor)0x0,images_00->client_data);\n      MVar7 = WriteImage(image_info_00,images_00,exception);\n      local_4c = local_4c & MVar7;\n      SetImageProgressMonitor(images_00,progress_monitor,images_00->client_data);\n      if (image_info_00->adjoin != MagickFalse) break;\n      uVar6 = (uint)progress;\n      iVar8 = progress._4_4_;\n      do {\n        LOCK();\n        bVar9 = CONCAT44(iVar8,uVar6) == progress;\n        if (bVar9) {\n          progress = CONCAT44(iVar8 + (uint)(0xfffffffe < uVar6),uVar6 + 1);\n        }\n        else {\n          iVar8 = (int)((ulonglong)progress >> 0x20);\n          uVar6 = (uint)progress;\n        }\n        UNLOCK();\n      } while (!bVar9);\n      MVar7 = SetImageProgress(images_00,"Write/Image",progress,(ulonglong)local_3c);\n      if (MVar7 == MagickFalse) break;\n    }\n    images_00 = GetNextImageInList(images_00);\n  } while (images_00 != (Image *)0x0);\nLAB_00079b0b:\n  DestroyImageInfo(image_info_00);\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return local_4c;\n}" { (declaration "size_t *psVar1;" primitive_type (pointer_declarator "*psVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "ImageInfo *image_info_00;" type_identifier (pointer_declarator "*image_info_00" * identifier) ;) (declaration "Image *images_00;" type_identifier (pointer_declarator "*images_00" * identifier) ;) (declaration "Image *pIVar3;" type_identifier (pointer_declarator "*pIVar3" * identifier) ;) (declaration "ExceptionInfo *exception_00;" type_identifier (pointer_declarator "*exception_00" * identifier) ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "Image *pIVar5;" type_identifier (pointer_declarator "*pIVar5" * identifier) ;) (declaration "MagickProgressMonitor progress_monitor;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "MagickBooleanType MVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar9;" primitive_type identifier ;) (declaration "MagickBooleanType local_4c;" type_identifier identifier ;) (declaration "uint local_3c;" type_identifier identifier ;) (declaration "MagickOffsetType progress;" type_identifier identifier ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (image_info == (ImageInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages");\n  }" if (parenthesized_expression "(image_info == (ImageInfo *)0x0)" ( (binary_expression "image_info == (ImageInfo *)0x0" identifier == (cast_expression "(ImageInfo *)0x0" ( (type_descriptor "ImageInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages");\n  }" { comment (expression_statement "__assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages");" (call_expression "__assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages")" identifier (argument_list "("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages")" ( (string_literal ""image_info != (const ImageInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/constitute.c"" " string_content ") , number_literal , (string_literal ""WriteImages"" " string_content ") ))) ;) })) (if_statement "if (image_info->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages");\n  }" if (parenthesized_expression "(image_info->signature != 0xabacadab)" ( (binary_expression "image_info->signature != 0xabacadab" (field_expression "image_info->signature" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages");\n  }" { comment (expression_statement "__assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages");" (call_expression "__assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages")" identifier (argument_list "("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages")" ( (string_literal ""image_info->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/constitute.c"" " string_content ") , number_literal , (string_literal ""WriteImages"" " string_content ") ))) ;) })) (if_statement "if (images == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages");\n  }" if (parenthesized_expression "(images == (Image *)0x0)" ( (binary_expression "images == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages");\n  }" { comment (expression_statement "__assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages");" (call_expression "__assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages")" identifier (argument_list "("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages")" ( (string_literal ""images != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/constitute.c"" " string_content ") , number_literal , (string_literal ""WriteImages"" " string_content ") ))) ;) })) (if_statement "if (images->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages");\n  }" if (parenthesized_expression "(images->signature != 0xabacadab)" ( (binary_expression "images->signature != 0xabacadab" (field_expression "images->signature" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages");\n  }" { comment (expression_statement "__assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages");" (call_expression "__assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages")" identifier (argument_list "("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages")" ( (string_literal ""images->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/constitute.c"" " string_content ") , number_literal , (string_literal ""WriteImages"" " string_content ") ))) ;) })) (if_statement "if (images->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/constitute.c","WriteImages",0x557,"%s",images->filename);\n  }" if (parenthesized_expression "(images->debug != MagickFalse)" ( (binary_expression "images->debug != MagickFalse" (field_expression "images->debug" identifier -> field_identifier) != identifier) )) (compound_statement "{\n    LogMagickEvent(TraceEvent,"MagickCore/constitute.c","WriteImages",0x557,"%s",images->filename);\n  }" { (expression_statement "LogMagickEvent(TraceEvent,"MagickCore/constitute.c","WriteImages",0x557,"%s",images->filename);" (call_expression "LogMagickEvent(TraceEvent,"MagickCore/constitute.c","WriteImages",0x557,"%s",images->filename)" identifier (argument_list "(TraceEvent,"MagickCore/constitute.c","WriteImages",0x557,"%s",images->filename)" ( identifier , (string_literal ""MagickCore/constitute.c"" " string_content ") , (string_literal ""WriteImages"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (field_expression "images->filename" identifier -> field_identifier) ))) ;) })) (if_statement "if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages");\n  }" if (parenthesized_expression "(exception == (ExceptionInfo *)0x0)" ( (binary_expression "exception == (ExceptionInfo *)0x0" identifier == (cast_expression "(ExceptionInfo *)0x0" ( (type_descriptor "ExceptionInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages");\n  }" { comment (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/constitute.c"" " string_content ") , number_literal , (string_literal ""WriteImages"" " string_content ") ))) ;) })) (expression_statement "image_info_00 = CloneImageInfo(image_info);" (assignment_expression "image_info_00 = CloneImageInfo(image_info)" identifier = (call_expression "CloneImageInfo(image_info)" identifier (argument_list "(image_info)" ( identifier )))) ;) (expression_statement "image_info_00->magick[0] = '\0';" (assignment_expression "image_info_00->magick[0] = '\0'" (subscript_expression "image_info_00->magick[0]" (field_expression "image_info_00->magick" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "images_00 = GetFirstImageInList(images);" (assignment_expression "images_00 = GetFirstImageInList(images)" identifier = (call_expression "GetFirstImageInList(images)" identifier (argument_list "(images)" ( identifier )))) ;) (expression_statement "pIVar3 = images_00;" (assignment_expression "pIVar3 = images_00" identifier = identifier) ;) (if_statement "if (filename != (char *)0x0) {\n    for (; pIVar3 != (Image *)0x0; pIVar3 = GetNextImageInList(pIVar3)) {\n      CopyMagickString(pIVar3->filename,filename,0x1000);\n    }\n  }" if (parenthesized_expression "(filename != (char *)0x0)" ( (binary_expression "filename != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    for (; pIVar3 != (Image *)0x0; pIVar3 = GetNextImageInList(pIVar3)) {\n      CopyMagickString(pIVar3->filename,filename,0x1000);\n    }\n  }" { (for_statement "for (; pIVar3 != (Image *)0x0; pIVar3 = GetNextImageInList(pIVar3)) {\n      CopyMagickString(pIVar3->filename,filename,0x1000);\n    }" for ( ; (binary_expression "pIVar3 != (Image *)0x0" identifier != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "pIVar3 = GetNextImageInList(pIVar3)" identifier = (call_expression "GetNextImageInList(pIVar3)" identifier (argument_list "(pIVar3)" ( identifier )))) ) (compound_statement "{\n      CopyMagickString(pIVar3->filename,filename,0x1000);\n    }" { (expression_statement "CopyMagickString(pIVar3->filename,filename,0x1000);" (call_expression "CopyMagickString(pIVar3->filename,filename,0x1000)" identifier (argument_list "(pIVar3->filename,filename,0x1000)" ( (field_expression "pIVar3->filename" identifier -> field_identifier) , identifier , number_literal ))) ;) })) })) (expression_statement "CopyMagickString(image_info_00->filename,images_00->filename,0x1000);" (call_expression "CopyMagickString(image_info_00->filename,images_00->filename,0x1000)" identifier (argument_list "(image_info_00->filename,images_00->filename,0x1000)" ( (field_expression "image_info_00->filename" identifier -> field_identifier) , (field_expression "images_00->filename" identifier -> field_identifier) , number_literal ))) ;) (expression_statement "exception_00 = AcquireExceptionInfo();" (assignment_expression "exception_00 = AcquireExceptionInfo()" identifier = (call_expression "AcquireExceptionInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "sVar4 = GetImageListLength(images_00);" (assignment_expression "sVar4 = GetImageListLength(images_00)" identifier = (call_expression "GetImageListLength(images_00)" identifier (argument_list "(images_00)" ( identifier )))) ;) (expression_statement "SetImageInfo(image_info_00,sVar4,exception_00);" (call_expression "SetImageInfo(image_info_00,sVar4,exception_00)" identifier (argument_list "(image_info_00,sVar4,exception_00)" ( identifier , identifier , identifier ))) ;) (expression_statement "DestroyExceptionInfo(exception_00);" (call_expression "DestroyExceptionInfo(exception_00)" identifier (argument_list "(exception_00)" ( identifier ))) ;) (expression_statement "pIVar3 = images_00;" (assignment_expression "pIVar3 = images_00" identifier = identifier) ;) (if_statement "if (image_info_00->magick[0] == '\0') {\n    CopyMagickString(image_info_00->magick,images_00->magick,0x1000);\n  }" if (parenthesized_expression "(image_info_00->magick[0] == '\0')" ( (binary_expression "image_info_00->magick[0] == '\0'" (subscript_expression "image_info_00->magick[0]" (field_expression "image_info_00->magick" identifier -> field_identifier) [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    CopyMagickString(image_info_00->magick,images_00->magick,0x1000);\n  }" { (expression_statement "CopyMagickString(image_info_00->magick,images_00->magick,0x1000);" (call_expression "CopyMagickString(image_info_00->magick,images_00->magick,0x1000)" identifier (argument_list "(image_info_00->magick,images_00->magick,0x1000)" ( (field_expression "image_info_00->magick" identifier -> field_identifier) , (field_expression "images_00->magick" identifier -> field_identifier) , number_literal ))) ;) })) (do_statement "do {\n    pIVar5 = GetNextImageInList(pIVar3);\n    if (pIVar5 == (Image *)0x0) {\n      local_4c = MagickTrue;\n      local_3c = GetImageListLength(images_00);\n      if (images_00 == (Image *)0x0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }\n    psVar1 = &pIVar3->scene;\n    pIVar3 = pIVar5;\n  } while (*psVar1 < pIVar5->scene);" do (compound_statement "{\n    pIVar5 = GetNextImageInList(pIVar3);\n    if (pIVar5 == (Image *)0x0) {\n      local_4c = MagickTrue;\n      local_3c = GetImageListLength(images_00);\n      if (images_00 == (Image *)0x0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }\n    psVar1 = &pIVar3->scene;\n    pIVar3 = pIVar5;\n  }" { (expression_statement "pIVar5 = GetNextImageInList(pIVar3);" (assignment_expression "pIVar5 = GetNextImageInList(pIVar3)" identifier = (call_expression "GetNextImageInList(pIVar3)" identifier (argument_list "(pIVar3)" ( identifier )))) ;) (if_statement "if (pIVar5 == (Image *)0x0) {\n      local_4c = MagickTrue;\n      local_3c = GetImageListLength(images_00);\n      if (images_00 == (Image *)0x0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }" if (parenthesized_expression "(pIVar5 == (Image *)0x0)" ( (binary_expression "pIVar5 == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      local_4c = MagickTrue;\n      local_3c = GetImageListLength(images_00);\n      if (images_00 == (Image *)0x0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }" { (expression_statement "local_4c = MagickTrue;" (assignment_expression "local_4c = MagickTrue" identifier = identifier) ;) (expression_statement "local_3c = GetImageListLength(images_00);" (assignment_expression "local_3c = GetImageListLength(images_00)" identifier = (call_expression "GetImageListLength(images_00)" identifier (argument_list "(images_00)" ( identifier )))) ;) (if_statement "if (images_00 == (Image *)0x0) goto LAB_00079b0b;" if (parenthesized_expression "(images_00 == (Image *)0x0)" ( (binary_expression "images_00 == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00079b0b;" goto statement_identifier ;)) (goto_statement "goto LAB_000799f5;" goto statement_identifier ;) })) (expression_statement "psVar1 = &pIVar3->scene;" (assignment_expression "psVar1 = &pIVar3->scene" identifier = (pointer_expression "&pIVar3->scene" & (field_expression "pIVar3->scene" identifier -> field_identifier))) ;) (expression_statement "pIVar3 = pIVar5;" (assignment_expression "pIVar3 = pIVar5" identifier = identifier) ;) }) while (parenthesized_expression "(*psVar1 < pIVar5->scene)" ( (binary_expression "*psVar1 < pIVar5->scene" (pointer_expression "*psVar1" * identifier) < (field_expression "pIVar5->scene" identifier -> field_identifier)) )) ;) (expression_statement "sVar4 = images_00->scene;" (assignment_expression "sVar4 = images_00->scene" identifier = (field_expression "images_00->scene" identifier -> field_identifier)) ;) (expression_statement "pIVar3 = images_00;" (assignment_expression "pIVar3 = images_00" identifier = identifier) ;) (do_statement "do {\n    pIVar3->scene = sVar4;\n    sVar4 = sVar4 + 1;\n    pIVar3 = GetNextImageInList(pIVar3);\n  } while (pIVar3 != (Image *)0x0);" do (compound_statement "{\n    pIVar3->scene = sVar4;\n    sVar4 = sVar4 + 1;\n    pIVar3 = GetNextImageInList(pIVar3);\n  }" { (expression_statement "pIVar3->scene = sVar4;" (assignment_expression "pIVar3->scene = sVar4" (field_expression "pIVar3->scene" identifier -> field_identifier) = identifier) ;) (expression_statement "sVar4 = sVar4 + 1;" (assignment_expression "sVar4 = sVar4 + 1" identifier = (binary_expression "sVar4 + 1" identifier + number_literal)) ;) (expression_statement "pIVar3 = GetNextImageInList(pIVar3);" (assignment_expression "pIVar3 = GetNextImageInList(pIVar3)" identifier = (call_expression "GetNextImageInList(pIVar3)" identifier (argument_list "(pIVar3)" ( identifier )))) ;) }) while (parenthesized_expression "(pIVar3 != (Image *)0x0)" ( (binary_expression "pIVar3 != (Image *)0x0" identifier != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "local_3c = GetImageListLength(images_00);" (assignment_expression "local_3c = GetImageListLength(images_00)" identifier = (call_expression "GetImageListLength(images_00)" identifier (argument_list "(images_00)" ( identifier )))) ;) (labeled_statement "LAB_000799f5:\n  progress = 0;" statement_identifier : (expression_statement "progress = 0;" (assignment_expression "progress = 0" identifier = number_literal) ;)) (expression_statement "local_4c = MagickTrue;" (assignment_expression "local_4c = MagickTrue" identifier = identifier) ;) (do_statement "do {\n    if (local_3c == 1) {\n      MVar7 = WriteImage(image_info_00,images_00,exception);\n      local_4c = local_4c & MVar7;\n      if (image_info_00->adjoin != MagickFalse) break;\n    }\n    else {\n      progress_monitor =\n           SetImageProgressMonitor(images_00,(MagickProgressMonitor)0x0,images_00->client_data);\n      MVar7 = WriteImage(image_info_00,images_00,exception);\n      local_4c = local_4c & MVar7;\n      SetImageProgressMonitor(images_00,progress_monitor,images_00->client_data);\n      if (image_info_00->adjoin != MagickFalse) break;\n      uVar6 = (uint)progress;\n      iVar8 = progress._4_4_;\n      do {\n        LOCK();\n        bVar9 = CONCAT44(iVar8,uVar6) == progress;\n        if (bVar9) {\n          progress = CONCAT44(iVar8 + (uint)(0xfffffffe < uVar6),uVar6 + 1);\n        }\n        else {\n          iVar8 = (int)((ulonglong)progress >> 0x20);\n          uVar6 = (uint)progress;\n        }\n        UNLOCK();\n      } while (!bVar9);\n      MVar7 = SetImageProgress(images_00,"Write/Image",progress,(ulonglong)local_3c);\n      if (MVar7 == MagickFalse) break;\n    }\n    images_00 = GetNextImageInList(images_00);\n  } while (images_00 != (Image *)0x0);" do (compound_statement "{\n    if (local_3c == 1) {\n      MVar7 = WriteImage(image_info_00,images_00,exception);\n      local_4c = local_4c & MVar7;\n      if (image_info_00->adjoin != MagickFalse) break;\n    }\n    else {\n      progress_monitor =\n           SetImageProgressMonitor(images_00,(MagickProgressMonitor)0x0,images_00->client_data);\n      MVar7 = WriteImage(image_info_00,images_00,exception);\n      local_4c = local_4c & MVar7;\n      SetImageProgressMonitor(images_00,progress_monitor,images_00->client_data);\n      if (image_info_00->adjoin != MagickFalse) break;\n      uVar6 = (uint)progress;\n      iVar8 = progress._4_4_;\n      do {\n        LOCK();\n        bVar9 = CONCAT44(iVar8,uVar6) == progress;\n        if (bVar9) {\n          progress = CONCAT44(iVar8 + (uint)(0xfffffffe < uVar6),uVar6 + 1);\n        }\n        else {\n          iVar8 = (int)((ulonglong)progress >> 0x20);\n          uVar6 = (uint)progress;\n        }\n        UNLOCK();\n      } while (!bVar9);\n      MVar7 = SetImageProgress(images_00,"Write/Image",progress,(ulonglong)local_3c);\n      if (MVar7 == MagickFalse) break;\n    }\n    images_00 = GetNextImageInList(images_00);\n  }" { (if_statement "if (local_3c == 1) {\n      MVar7 = WriteImage(image_info_00,images_00,exception);\n      local_4c = local_4c & MVar7;\n      if (image_info_00->adjoin != MagickFalse) break;\n    }\n    else {\n      progress_monitor =\n           SetImageProgressMonitor(images_00,(MagickProgressMonitor)0x0,images_00->client_data);\n      MVar7 = WriteImage(image_info_00,images_00,exception);\n      local_4c = local_4c & MVar7;\n      SetImageProgressMonitor(images_00,progress_monitor,images_00->client_data);\n      if (image_info_00->adjoin != MagickFalse) break;\n      uVar6 = (uint)progress;\n      iVar8 = progress._4_4_;\n      do {\n        LOCK();\n        bVar9 = CONCAT44(iVar8,uVar6) == progress;\n        if (bVar9) {\n          progress = CONCAT44(iVar8 + (uint)(0xfffffffe < uVar6),uVar6 + 1);\n        }\n        else {\n          iVar8 = (int)((ulonglong)progress >> 0x20);\n          uVar6 = (uint)progress;\n        }\n        UNLOCK();\n      } while (!bVar9);\n      MVar7 = SetImageProgress(images_00,"Write/Image",progress,(ulonglong)local_3c);\n      if (MVar7 == MagickFalse) break;\n    }" if (parenthesized_expression "(local_3c == 1)" ( (binary_expression "local_3c == 1" identifier == number_literal) )) (compound_statement "{\n      MVar7 = WriteImage(image_info_00,images_00,exception);\n      local_4c = local_4c & MVar7;\n      if (image_info_00->adjoin != MagickFalse) break;\n    }" { (expression_statement "MVar7 = WriteImage(image_info_00,images_00,exception);" (assignment_expression "MVar7 = WriteImage(image_info_00,images_00,exception)" identifier = (call_expression "WriteImage(image_info_00,images_00,exception)" identifier (argument_list "(image_info_00,images_00,exception)" ( identifier , identifier , identifier )))) ;) (expression_statement "local_4c = local_4c & MVar7;" (assignment_expression "local_4c = local_4c & MVar7" identifier = (binary_expression "local_4c & MVar7" identifier & identifier)) ;) (if_statement "if (image_info_00->adjoin != MagickFalse) break;" if (parenthesized_expression "(image_info_00->adjoin != MagickFalse)" ( (binary_expression "image_info_00->adjoin != MagickFalse" (field_expression "image_info_00->adjoin" identifier -> field_identifier) != identifier) )) (break_statement "break;" break ;)) }) (else_clause "else {\n      progress_monitor =\n           SetImageProgressMonitor(images_00,(MagickProgressMonitor)0x0,images_00->client_data);\n      MVar7 = WriteImage(image_info_00,images_00,exception);\n      local_4c = local_4c & MVar7;\n      SetImageProgressMonitor(images_00,progress_monitor,images_00->client_data);\n      if (image_info_00->adjoin != MagickFalse) break;\n      uVar6 = (uint)progress;\n      iVar8 = progress._4_4_;\n      do {\n        LOCK();\n        bVar9 = CONCAT44(iVar8,uVar6) == progress;\n        if (bVar9) {\n          progress = CONCAT44(iVar8 + (uint)(0xfffffffe < uVar6),uVar6 + 1);\n        }\n        else {\n          iVar8 = (int)((ulonglong)progress >> 0x20);\n          uVar6 = (uint)progress;\n        }\n        UNLOCK();\n      } while (!bVar9);\n      MVar7 = SetImageProgress(images_00,"Write/Image",progress,(ulonglong)local_3c);\n      if (MVar7 == MagickFalse) break;\n    }" else (compound_statement "{\n      progress_monitor =\n           SetImageProgressMonitor(images_00,(MagickProgressMonitor)0x0,images_00->client_data);\n      MVar7 = WriteImage(image_info_00,images_00,exception);\n      local_4c = local_4c & MVar7;\n      SetImageProgressMonitor(images_00,progress_monitor,images_00->client_data);\n      if (image_info_00->adjoin != MagickFalse) break;\n      uVar6 = (uint)progress;\n      iVar8 = progress._4_4_;\n      do {\n        LOCK();\n        bVar9 = CONCAT44(iVar8,uVar6) == progress;\n        if (bVar9) {\n          progress = CONCAT44(iVar8 + (uint)(0xfffffffe < uVar6),uVar6 + 1);\n        }\n        else {\n          iVar8 = (int)((ulonglong)progress >> 0x20);\n          uVar6 = (uint)progress;\n        }\n        UNLOCK();\n      } while (!bVar9);\n      MVar7 = SetImageProgress(images_00,"Write/Image",progress,(ulonglong)local_3c);\n      if (MVar7 == MagickFalse) break;\n    }" { (expression_statement "progress_monitor =\n           SetImageProgressMonitor(images_00,(MagickProgressMonitor)0x0,images_00->client_data);" (assignment_expression "progress_monitor =\n           SetImageProgressMonitor(images_00,(MagickProgressMonitor)0x0,images_00->client_data)" identifier = (call_expression "SetImageProgressMonitor(images_00,(MagickProgressMonitor)0x0,images_00->client_data)" identifier (argument_list "(images_00,(MagickProgressMonitor)0x0,images_00->client_data)" ( identifier , (cast_expression "(MagickProgressMonitor)0x0" ( (type_descriptor "MagickProgressMonitor" type_identifier) ) number_literal) , (field_expression "images_00->client_data" identifier -> field_identifier) )))) ;) (expression_statement "MVar7 = WriteImage(image_info_00,images_00,exception);" (assignment_expression "MVar7 = WriteImage(image_info_00,images_00,exception)" identifier = (call_expression "WriteImage(image_info_00,images_00,exception)" identifier (argument_list "(image_info_00,images_00,exception)" ( identifier , identifier , identifier )))) ;) (expression_statement "local_4c = local_4c & MVar7;" (assignment_expression "local_4c = local_4c & MVar7" identifier = (binary_expression "local_4c & MVar7" identifier & identifier)) ;) (expression_statement "SetImageProgressMonitor(images_00,progress_monitor,images_00->client_data);" (call_expression "SetImageProgressMonitor(images_00,progress_monitor,images_00->client_data)" identifier (argument_list "(images_00,progress_monitor,images_00->client_data)" ( identifier , identifier , (field_expression "images_00->client_data" identifier -> field_identifier) ))) ;) (if_statement "if (image_info_00->adjoin != MagickFalse) break;" if (parenthesized_expression "(image_info_00->adjoin != MagickFalse)" ( (binary_expression "image_info_00->adjoin != MagickFalse" (field_expression "image_info_00->adjoin" identifier -> field_identifier) != identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar6 = (uint)progress;" (assignment_expression "uVar6 = (uint)progress" identifier = (cast_expression "(uint)progress" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "iVar8 = progress._4_4_;" (assignment_expression "iVar8 = progress._4_4_" identifier = (field_expression "progress._4_4_" identifier . field_identifier)) ;) (do_statement "do {\n        LOCK();\n        bVar9 = CONCAT44(iVar8,uVar6) == progress;\n        if (bVar9) {\n          progress = CONCAT44(iVar8 + (uint)(0xfffffffe < uVar6),uVar6 + 1);\n        }\n        else {\n          iVar8 = (int)((ulonglong)progress >> 0x20);\n          uVar6 = (uint)progress;\n        }\n        UNLOCK();\n      } while (!bVar9);" do (compound_statement "{\n        LOCK();\n        bVar9 = CONCAT44(iVar8,uVar6) == progress;\n        if (bVar9) {\n          progress = CONCAT44(iVar8 + (uint)(0xfffffffe < uVar6),uVar6 + 1);\n        }\n        else {\n          iVar8 = (int)((ulonglong)progress >> 0x20);\n          uVar6 = (uint)progress;\n        }\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "bVar9 = CONCAT44(iVar8,uVar6) == progress;" (assignment_expression "bVar9 = CONCAT44(iVar8,uVar6) == progress" identifier = (binary_expression "CONCAT44(iVar8,uVar6) == progress" (call_expression "CONCAT44(iVar8,uVar6)" identifier (argument_list "(iVar8,uVar6)" ( identifier , identifier ))) == identifier)) ;) (if_statement "if (bVar9) {\n          progress = CONCAT44(iVar8 + (uint)(0xfffffffe < uVar6),uVar6 + 1);\n        }\n        else {\n          iVar8 = (int)((ulonglong)progress >> 0x20);\n          uVar6 = (uint)progress;\n        }" if (parenthesized_expression "(bVar9)" ( identifier )) (compound_statement "{\n          progress = CONCAT44(iVar8 + (uint)(0xfffffffe < uVar6),uVar6 + 1);\n        }" { (expression_statement "progress = CONCAT44(iVar8 + (uint)(0xfffffffe < uVar6),uVar6 + 1);" (assignment_expression "progress = CONCAT44(iVar8 + (uint)(0xfffffffe < uVar6),uVar6 + 1)" identifier = (call_expression "CONCAT44(iVar8 + (uint)(0xfffffffe < uVar6),uVar6 + 1)" identifier (argument_list "(iVar8 + (uint)(0xfffffffe < uVar6),uVar6 + 1)" ( (binary_expression "iVar8 + (uint)(0xfffffffe < uVar6)" identifier + (call_expression "(uint)(0xfffffffe < uVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0xfffffffe < uVar6)" ( (binary_expression "0xfffffffe < uVar6" number_literal < identifier) )))) , (binary_expression "uVar6 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n          iVar8 = (int)((ulonglong)progress >> 0x20);\n          uVar6 = (uint)progress;\n        }" else (compound_statement "{\n          iVar8 = (int)((ulonglong)progress >> 0x20);\n          uVar6 = (uint)progress;\n        }" { (expression_statement "iVar8 = (int)((ulonglong)progress >> 0x20);" (assignment_expression "iVar8 = (int)((ulonglong)progress >> 0x20)" identifier = (cast_expression "(int)((ulonglong)progress >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)progress >> 0x20)" ( (binary_expression "(ulonglong)progress >> 0x20" (cast_expression "(ulonglong)progress" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar6 = (uint)progress;" (assignment_expression "uVar6 = (uint)progress" identifier = (cast_expression "(uint)progress" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) }))) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }) while (parenthesized_expression "(!bVar9)" ( (unary_expression "!bVar9" ! identifier) )) ;) (expression_statement "MVar7 = SetImageProgress(images_00,"Write/Image",progress,(ulonglong)local_3c);" (assignment_expression "MVar7 = SetImageProgress(images_00,"Write/Image",progress,(ulonglong)local_3c)" identifier = (call_expression "SetImageProgress(images_00,"Write/Image",progress,(ulonglong)local_3c)" identifier (argument_list "(images_00,"Write/Image",progress,(ulonglong)local_3c)" ( identifier , (string_literal ""Write/Image"" " string_content ") , identifier , (cast_expression "(ulonglong)local_3c" ( (type_descriptor "ulonglong" type_identifier) ) identifier) )))) ;) (if_statement "if (MVar7 == MagickFalse) break;" if (parenthesized_expression "(MVar7 == MagickFalse)" ( (binary_expression "MVar7 == MagickFalse" identifier == identifier) )) (break_statement "break;" break ;)) }))) (expression_statement "images_00 = GetNextImageInList(images_00);" (assignment_expression "images_00 = GetNextImageInList(images_00)" identifier = (call_expression "GetNextImageInList(images_00)" identifier (argument_list "(images_00)" ( identifier )))) ;) }) while (parenthesized_expression "(images_00 != (Image *)0x0)" ( (binary_expression "images_00 != (Image *)0x0" identifier != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (labeled_statement "LAB_00079b0b:\n  DestroyImageInfo(image_info_00);" statement_identifier : (expression_statement "DestroyImageInfo(image_info_00);" (call_expression "DestroyImageInfo(image_info_00)" identifier (argument_list "(image_info_00)" ( identifier ))) ;)) (if_statement "if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar2 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return local_4c;" return identifier ;) })))
(translation_unit "uint WriteImages(int param_1,int param_2,int param_3,int param_4)\n\n{\n  uint *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int iVar8;\n  uint uVar9;\n  int in_GS_OFFSET;\n  bool bVar10;\n  uint local_4c;\n  int local_3c;\n  undefined8 local_2c;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages");\n  }\n  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages");\n  }\n  if (param_2 == 0) {\n                    \n    __assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages");\n  }\n  if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages");\n  }\n  if (*(int *)(param_2 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","WriteImages",0x557,&DAT_002b6e4e,\n                   param_2 + 0x318);\n  }\n  if (param_4 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages");\n  }\n  iVar3 = CloneImageInfo(param_1);\n  *(undefined1 *)(iVar3 + 0x1f0) = 0;\n  iVar4 = GetFirstImageInList(param_2);\n  iVar5 = iVar4;\n  if (param_3 != 0) {\n    for (; iVar5 != 0; iVar5 = GetNextImageInList(iVar5)) {\n      CopyMagickString(iVar5 + 0x318,param_3,0x1000);\n    }\n  }\n  CopyMagickString(iVar3 + 0x21f0,iVar4 + 0x318,0x1000);\n  uVar6 = AcquireExceptionInfo();\n  uVar7 = GetImageListLength(iVar4);\n  SetImageInfo(iVar3,uVar7,uVar6);\n  DestroyExceptionInfo(uVar6);\n  iVar5 = iVar4;\n  if (*(char *)(iVar3 + 0x1f0) == '\0') {\n    CopyMagickString(iVar3 + 0x1f0,iVar4 + 0x2318,0x1000);\n  }\n  do {\n    iVar8 = GetNextImageInList(iVar5);\n    if (iVar8 == 0) {\n      local_4c = 1;\n      local_3c = GetImageListLength(iVar4);\n      if (iVar4 == 0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }\n    puVar1 = (uint *)(iVar5 + 0x244);\n    iVar5 = iVar8;\n  } while (*puVar1 < *(uint *)(iVar8 + 0x244));\n  iVar5 = *(int *)(iVar4 + 0x244);\n  iVar8 = iVar4;\n  do {\n    *(int *)(iVar8 + 0x244) = iVar5;\n    iVar5 = iVar5 + 1;\n    iVar8 = GetNextImageInList(iVar8);\n  } while (iVar8 != 0);\n  local_3c = GetImageListLength(iVar4);\nLAB_000799f5:\n  local_2c = 0;\n  local_4c = 1;\n  do {\n    if (local_3c == 1) {\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n    }\n    else {\n      uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n      uVar9 = (uint)local_2c;\n      iVar5 = local_2c._4_4_;\n      do {\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      } while (!bVar10);\n      iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);\n      if (iVar5 == 0) break;\n    }\n    iVar4 = GetNextImageInList(iVar4);\n  } while (iVar4 != 0);\nLAB_00079b0b:\n  DestroyImageInfo(iVar3);\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return local_4c;\n}\n\n" (function_definition "uint WriteImages(int param_1,int param_2,int param_3,int param_4)\n\n{\n  uint *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int iVar8;\n  uint uVar9;\n  int in_GS_OFFSET;\n  bool bVar10;\n  uint local_4c;\n  int local_3c;\n  undefined8 local_2c;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages");\n  }\n  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages");\n  }\n  if (param_2 == 0) {\n                    \n    __assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages");\n  }\n  if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages");\n  }\n  if (*(int *)(param_2 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","WriteImages",0x557,&DAT_002b6e4e,\n                   param_2 + 0x318);\n  }\n  if (param_4 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages");\n  }\n  iVar3 = CloneImageInfo(param_1);\n  *(undefined1 *)(iVar3 + 0x1f0) = 0;\n  iVar4 = GetFirstImageInList(param_2);\n  iVar5 = iVar4;\n  if (param_3 != 0) {\n    for (; iVar5 != 0; iVar5 = GetNextImageInList(iVar5)) {\n      CopyMagickString(iVar5 + 0x318,param_3,0x1000);\n    }\n  }\n  CopyMagickString(iVar3 + 0x21f0,iVar4 + 0x318,0x1000);\n  uVar6 = AcquireExceptionInfo();\n  uVar7 = GetImageListLength(iVar4);\n  SetImageInfo(iVar3,uVar7,uVar6);\n  DestroyExceptionInfo(uVar6);\n  iVar5 = iVar4;\n  if (*(char *)(iVar3 + 0x1f0) == '\0') {\n    CopyMagickString(iVar3 + 0x1f0,iVar4 + 0x2318,0x1000);\n  }\n  do {\n    iVar8 = GetNextImageInList(iVar5);\n    if (iVar8 == 0) {\n      local_4c = 1;\n      local_3c = GetImageListLength(iVar4);\n      if (iVar4 == 0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }\n    puVar1 = (uint *)(iVar5 + 0x244);\n    iVar5 = iVar8;\n  } while (*puVar1 < *(uint *)(iVar8 + 0x244));\n  iVar5 = *(int *)(iVar4 + 0x244);\n  iVar8 = iVar4;\n  do {\n    *(int *)(iVar8 + 0x244) = iVar5;\n    iVar5 = iVar5 + 1;\n    iVar8 = GetNextImageInList(iVar8);\n  } while (iVar8 != 0);\n  local_3c = GetImageListLength(iVar4);\nLAB_000799f5:\n  local_2c = 0;\n  local_4c = 1;\n  do {\n    if (local_3c == 1) {\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n    }\n    else {\n      uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n      uVar9 = (uint)local_2c;\n      iVar5 = local_2c._4_4_;\n      do {\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      } while (!bVar10);\n      iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);\n      if (iVar5 == 0) break;\n    }\n    iVar4 = GetNextImageInList(iVar4);\n  } while (iVar4 != 0);\nLAB_00079b0b:\n  DestroyImageInfo(iVar3);\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return local_4c;\n}" type_identifier (function_declarator "WriteImages(int param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int iVar8;\n  uint uVar9;\n  int in_GS_OFFSET;\n  bool bVar10;\n  uint local_4c;\n  int local_3c;\n  undefined8 local_2c;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages");\n  }\n  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages");\n  }\n  if (param_2 == 0) {\n                    \n    __assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages");\n  }\n  if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages");\n  }\n  if (*(int *)(param_2 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","WriteImages",0x557,&DAT_002b6e4e,\n                   param_2 + 0x318);\n  }\n  if (param_4 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages");\n  }\n  iVar3 = CloneImageInfo(param_1);\n  *(undefined1 *)(iVar3 + 0x1f0) = 0;\n  iVar4 = GetFirstImageInList(param_2);\n  iVar5 = iVar4;\n  if (param_3 != 0) {\n    for (; iVar5 != 0; iVar5 = GetNextImageInList(iVar5)) {\n      CopyMagickString(iVar5 + 0x318,param_3,0x1000);\n    }\n  }\n  CopyMagickString(iVar3 + 0x21f0,iVar4 + 0x318,0x1000);\n  uVar6 = AcquireExceptionInfo();\n  uVar7 = GetImageListLength(iVar4);\n  SetImageInfo(iVar3,uVar7,uVar6);\n  DestroyExceptionInfo(uVar6);\n  iVar5 = iVar4;\n  if (*(char *)(iVar3 + 0x1f0) == '\0') {\n    CopyMagickString(iVar3 + 0x1f0,iVar4 + 0x2318,0x1000);\n  }\n  do {\n    iVar8 = GetNextImageInList(iVar5);\n    if (iVar8 == 0) {\n      local_4c = 1;\n      local_3c = GetImageListLength(iVar4);\n      if (iVar4 == 0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }\n    puVar1 = (uint *)(iVar5 + 0x244);\n    iVar5 = iVar8;\n  } while (*puVar1 < *(uint *)(iVar8 + 0x244));\n  iVar5 = *(int *)(iVar4 + 0x244);\n  iVar8 = iVar4;\n  do {\n    *(int *)(iVar8 + 0x244) = iVar5;\n    iVar5 = iVar5 + 1;\n    iVar8 = GetNextImageInList(iVar8);\n  } while (iVar8 != 0);\n  local_3c = GetImageListLength(iVar4);\nLAB_000799f5:\n  local_2c = 0;\n  local_4c = 1;\n  do {\n    if (local_3c == 1) {\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n    }\n    else {\n      uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n      uVar9 = (uint)local_2c;\n      iVar5 = local_2c._4_4_;\n      do {\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      } while (!bVar10);\n      iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);\n      if (iVar5 == 0) break;\n    }\n    iVar4 = GetNextImageInList(iVar4);\n  } while (iVar4 != 0);\nLAB_00079b0b:\n  DestroyImageInfo(iVar3);\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return local_4c;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar10;" primitive_type identifier ;) (declaration "uint local_4c;" type_identifier identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "undefined8 local_2c;" type_identifier identifier ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages");\n  }" { (expression_statement "__assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages");" (call_expression "__assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages")" identifier (argument_list "("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages")" ( (string_literal ""image_info != (const ImageInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/constitute.c"" " string_content ") , number_literal , (string_literal ""WriteImages"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages");\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x31f4) != -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x31f4) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x31f4)" * (cast_expression "(int *)(param_1 + 0x31f4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x31f4)" ( (binary_expression "param_1 + 0x31f4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages");\n  }" { (expression_statement "__assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages");" (call_expression "__assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages")" identifier (argument_list "("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages")" ( (string_literal ""image_info->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/constitute.c"" " string_content ") , number_literal , (string_literal ""WriteImages"" " string_content ") ))) ;) })) (if_statement "if (param_2 == 0) {\n                    \n    __assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages");\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages");\n  }" { (expression_statement "__assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages");" (call_expression "__assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages")" identifier (argument_list "("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages")" ( (string_literal ""images != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/constitute.c"" " string_content ") , number_literal , (string_literal ""WriteImages"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages");\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x3344) != -0x54535255)" ( (binary_expression "*(int *)(param_2 + 0x3344) != -0x54535255" (pointer_expression "*(int *)(param_2 + 0x3344)" * (cast_expression "(int *)(param_2 + 0x3344)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3344)" ( (binary_expression "param_2 + 0x3344" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages");\n  }" { (expression_statement "__assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages");" (call_expression "__assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages")" identifier (argument_list "("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages")" ( (string_literal ""images->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/constitute.c"" " string_content ") , number_literal , (string_literal ""WriteImages"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_2 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","WriteImages",0x557,&DAT_002b6e4e,\n                   param_2 + 0x318);\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x3328) != 0)" ( (binary_expression "*(int *)(param_2 + 0x3328) != 0" (pointer_expression "*(int *)(param_2 + 0x3328)" * (cast_expression "(int *)(param_2 + 0x3328)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3328)" ( (binary_expression "param_2 + 0x3328" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","WriteImages",0x557,&DAT_002b6e4e,\n                   param_2 + 0x318);\n  }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/constitute.c","WriteImages",0x557,&DAT_002b6e4e,\n                   param_2 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/constitute.c","WriteImages",0x557,&DAT_002b6e4e,\n                   param_2 + 0x318)" identifier (argument_list "(0x8000,"MagickCore/constitute.c","WriteImages",0x557,&DAT_002b6e4e,\n                   param_2 + 0x318)" ( number_literal , (string_literal ""MagickCore/constitute.c"" " string_content ") , (string_literal ""WriteImages"" " string_content ") , number_literal , (pointer_expression "&DAT_002b6e4e" & identifier) , (binary_expression "param_2 + 0x318" identifier + number_literal) ))) ;) })) (if_statement "if (param_4 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages");\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages");\n  }" { (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/constitute.c"" " string_content ") , number_literal , (string_literal ""WriteImages"" " string_content ") ))) ;) })) (expression_statement "iVar3 = CloneImageInfo(param_1);" (assignment_expression "iVar3 = CloneImageInfo(param_1)" identifier = (call_expression "CloneImageInfo(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "*(undefined1 *)(iVar3 + 0x1f0) = 0;" (assignment_expression "*(undefined1 *)(iVar3 + 0x1f0) = 0" (pointer_expression "*(undefined1 *)(iVar3 + 0x1f0)" * (cast_expression "(undefined1 *)(iVar3 + 0x1f0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1f0)" ( (binary_expression "iVar3 + 0x1f0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar4 = GetFirstImageInList(param_2);" (assignment_expression "iVar4 = GetFirstImageInList(param_2)" identifier = (call_expression "GetFirstImageInList(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) (if_statement "if (param_3 != 0) {\n    for (; iVar5 != 0; iVar5 = GetNextImageInList(iVar5)) {\n      CopyMagickString(iVar5 + 0x318,param_3,0x1000);\n    }\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    for (; iVar5 != 0; iVar5 = GetNextImageInList(iVar5)) {\n      CopyMagickString(iVar5 + 0x318,param_3,0x1000);\n    }\n  }" { (for_statement "for (; iVar5 != 0; iVar5 = GetNextImageInList(iVar5)) {\n      CopyMagickString(iVar5 + 0x318,param_3,0x1000);\n    }" for ( ; (binary_expression "iVar5 != 0" identifier != number_literal) ; (assignment_expression "iVar5 = GetNextImageInList(iVar5)" identifier = (call_expression "GetNextImageInList(iVar5)" identifier (argument_list "(iVar5)" ( identifier )))) ) (compound_statement "{\n      CopyMagickString(iVar5 + 0x318,param_3,0x1000);\n    }" { (expression_statement "CopyMagickString(iVar5 + 0x318,param_3,0x1000);" (call_expression "CopyMagickString(iVar5 + 0x318,param_3,0x1000)" identifier (argument_list "(iVar5 + 0x318,param_3,0x1000)" ( (binary_expression "iVar5 + 0x318" identifier + number_literal) , identifier , number_literal ))) ;) })) })) (expression_statement "CopyMagickString(iVar3 + 0x21f0,iVar4 + 0x318,0x1000);" (call_expression "CopyMagickString(iVar3 + 0x21f0,iVar4 + 0x318,0x1000)" identifier (argument_list "(iVar3 + 0x21f0,iVar4 + 0x318,0x1000)" ( (binary_expression "iVar3 + 0x21f0" identifier + number_literal) , (binary_expression "iVar4 + 0x318" identifier + number_literal) , number_literal ))) ;) (expression_statement "uVar6 = AcquireExceptionInfo();" (assignment_expression "uVar6 = AcquireExceptionInfo()" identifier = (call_expression "AcquireExceptionInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar7 = GetImageListLength(iVar4);" (assignment_expression "uVar7 = GetImageListLength(iVar4)" identifier = (call_expression "GetImageListLength(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "SetImageInfo(iVar3,uVar7,uVar6);" (call_expression "SetImageInfo(iVar3,uVar7,uVar6)" identifier (argument_list "(iVar3,uVar7,uVar6)" ( identifier , identifier , identifier ))) ;) (expression_statement "DestroyExceptionInfo(uVar6);" (call_expression "DestroyExceptionInfo(uVar6)" identifier (argument_list "(uVar6)" ( identifier ))) ;) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) (if_statement "if (*(char *)(iVar3 + 0x1f0) == '\0') {\n    CopyMagickString(iVar3 + 0x1f0,iVar4 + 0x2318,0x1000);\n  }" if (parenthesized_expression "(*(char *)(iVar3 + 0x1f0) == '\0')" ( (binary_expression "*(char *)(iVar3 + 0x1f0) == '\0'" (pointer_expression "*(char *)(iVar3 + 0x1f0)" * (cast_expression "(char *)(iVar3 + 0x1f0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1f0)" ( (binary_expression "iVar3 + 0x1f0" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    CopyMagickString(iVar3 + 0x1f0,iVar4 + 0x2318,0x1000);\n  }" { (expression_statement "CopyMagickString(iVar3 + 0x1f0,iVar4 + 0x2318,0x1000);" (call_expression "CopyMagickString(iVar3 + 0x1f0,iVar4 + 0x2318,0x1000)" identifier (argument_list "(iVar3 + 0x1f0,iVar4 + 0x2318,0x1000)" ( (binary_expression "iVar3 + 0x1f0" identifier + number_literal) , (binary_expression "iVar4 + 0x2318" identifier + number_literal) , number_literal ))) ;) })) (do_statement "do {\n    iVar8 = GetNextImageInList(iVar5);\n    if (iVar8 == 0) {\n      local_4c = 1;\n      local_3c = GetImageListLength(iVar4);\n      if (iVar4 == 0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }\n    puVar1 = (uint *)(iVar5 + 0x244);\n    iVar5 = iVar8;\n  } while (*puVar1 < *(uint *)(iVar8 + 0x244));" do (compound_statement "{\n    iVar8 = GetNextImageInList(iVar5);\n    if (iVar8 == 0) {\n      local_4c = 1;\n      local_3c = GetImageListLength(iVar4);\n      if (iVar4 == 0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }\n    puVar1 = (uint *)(iVar5 + 0x244);\n    iVar5 = iVar8;\n  }" { (expression_statement "iVar8 = GetNextImageInList(iVar5);" (assignment_expression "iVar8 = GetNextImageInList(iVar5)" identifier = (call_expression "GetNextImageInList(iVar5)" identifier (argument_list "(iVar5)" ( identifier )))) ;) (if_statement "if (iVar8 == 0) {\n      local_4c = 1;\n      local_3c = GetImageListLength(iVar4);\n      if (iVar4 == 0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n      local_4c = 1;\n      local_3c = GetImageListLength(iVar4);\n      if (iVar4 == 0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }" { (expression_statement "local_4c = 1;" (assignment_expression "local_4c = 1" identifier = number_literal) ;) (expression_statement "local_3c = GetImageListLength(iVar4);" (assignment_expression "local_3c = GetImageListLength(iVar4)" identifier = (call_expression "GetImageListLength(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (if_statement "if (iVar4 == 0) goto LAB_00079b0b;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00079b0b;" goto statement_identifier ;)) (goto_statement "goto LAB_000799f5;" goto statement_identifier ;) })) (expression_statement "puVar1 = (uint *)(iVar5 + 0x244);" (assignment_expression "puVar1 = (uint *)(iVar5 + 0x244)" identifier = (cast_expression "(uint *)(iVar5 + 0x244)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x244)" ( (binary_expression "iVar5 + 0x244" identifier + number_literal) )))) ;) (expression_statement "iVar5 = iVar8;" (assignment_expression "iVar5 = iVar8" identifier = identifier) ;) }) while (parenthesized_expression "(*puVar1 < *(uint *)(iVar8 + 0x244))" ( (binary_expression "*puVar1 < *(uint *)(iVar8 + 0x244)" (pointer_expression "*puVar1" * identifier) < (pointer_expression "*(uint *)(iVar8 + 0x244)" * (cast_expression "(uint *)(iVar8 + 0x244)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x244)" ( (binary_expression "iVar8 + 0x244" identifier + number_literal) ))))) )) ;) (expression_statement "iVar5 = *(int *)(iVar4 + 0x244);" (assignment_expression "iVar5 = *(int *)(iVar4 + 0x244)" identifier = (pointer_expression "*(int *)(iVar4 + 0x244)" * (cast_expression "(int *)(iVar4 + 0x244)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x244)" ( (binary_expression "iVar4 + 0x244" identifier + number_literal) ))))) ;) (expression_statement "iVar8 = iVar4;" (assignment_expression "iVar8 = iVar4" identifier = identifier) ;) (do_statement "do {\n    *(int *)(iVar8 + 0x244) = iVar5;\n    iVar5 = iVar5 + 1;\n    iVar8 = GetNextImageInList(iVar8);\n  } while (iVar8 != 0);" do (compound_statement "{\n    *(int *)(iVar8 + 0x244) = iVar5;\n    iVar5 = iVar5 + 1;\n    iVar8 = GetNextImageInList(iVar8);\n  }" { (expression_statement "*(int *)(iVar8 + 0x244) = iVar5;" (assignment_expression "*(int *)(iVar8 + 0x244) = iVar5" (pointer_expression "*(int *)(iVar8 + 0x244)" * (cast_expression "(int *)(iVar8 + 0x244)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x244)" ( (binary_expression "iVar8 + 0x244" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "iVar8 = GetNextImageInList(iVar8);" (assignment_expression "iVar8 = GetNextImageInList(iVar8)" identifier = (call_expression "GetNextImageInList(iVar8)" identifier (argument_list "(iVar8)" ( identifier )))) ;) }) while (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) ;) (expression_statement "local_3c = GetImageListLength(iVar4);" (assignment_expression "local_3c = GetImageListLength(iVar4)" identifier = (call_expression "GetImageListLength(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (labeled_statement "LAB_000799f5:\n  local_2c = 0;" statement_identifier : (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;)) (expression_statement "local_4c = 1;" (assignment_expression "local_4c = 1" identifier = number_literal) ;) (do_statement "do {\n    if (local_3c == 1) {\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n    }\n    else {\n      uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n      uVar9 = (uint)local_2c;\n      iVar5 = local_2c._4_4_;\n      do {\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      } while (!bVar10);\n      iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);\n      if (iVar5 == 0) break;\n    }\n    iVar4 = GetNextImageInList(iVar4);\n  } while (iVar4 != 0);" do (compound_statement "{\n    if (local_3c == 1) {\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n    }\n    else {\n      uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n      uVar9 = (uint)local_2c;\n      iVar5 = local_2c._4_4_;\n      do {\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      } while (!bVar10);\n      iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);\n      if (iVar5 == 0) break;\n    }\n    iVar4 = GetNextImageInList(iVar4);\n  }" { (if_statement "if (local_3c == 1) {\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n    }\n    else {\n      uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n      uVar9 = (uint)local_2c;\n      iVar5 = local_2c._4_4_;\n      do {\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      } while (!bVar10);\n      iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);\n      if (iVar5 == 0) break;\n    }" if (parenthesized_expression "(local_3c == 1)" ( (binary_expression "local_3c == 1" identifier == number_literal) )) (compound_statement "{\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n    }" { (expression_statement "uVar9 = WriteImage(iVar3,iVar4,param_4);" (assignment_expression "uVar9 = WriteImage(iVar3,iVar4,param_4)" identifier = (call_expression "WriteImage(iVar3,iVar4,param_4)" identifier (argument_list "(iVar3,iVar4,param_4)" ( identifier , identifier , identifier )))) ;) (expression_statement "local_4c = local_4c & uVar9;" (assignment_expression "local_4c = local_4c & uVar9" identifier = (binary_expression "local_4c & uVar9" identifier & identifier)) ;) (if_statement "if (*(int *)(iVar3 + 0xc) != 0) break;" if (parenthesized_expression "(*(int *)(iVar3 + 0xc) != 0)" ( (binary_expression "*(int *)(iVar3 + 0xc) != 0" (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) != number_literal) )) (break_statement "break;" break ;)) }) (else_clause "else {\n      uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n      uVar9 = (uint)local_2c;\n      iVar5 = local_2c._4_4_;\n      do {\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      } while (!bVar10);\n      iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);\n      if (iVar5 == 0) break;\n    }" else (compound_statement "{\n      uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n      uVar9 = (uint)local_2c;\n      iVar5 = local_2c._4_4_;\n      do {\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      } while (!bVar10);\n      iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);\n      if (iVar5 == 0) break;\n    }" { (expression_statement "uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));" (assignment_expression "uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304))" identifier = (call_expression "SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304))" identifier (argument_list "(iVar4,0,*(undefined4 *)(iVar4 + 0x304))" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(iVar4 + 0x304)" * (cast_expression "(undefined4 *)(iVar4 + 0x304)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x304)" ( (binary_expression "iVar4 + 0x304" identifier + number_literal) )))) )))) ;) (expression_statement "uVar9 = WriteImage(iVar3,iVar4,param_4);" (assignment_expression "uVar9 = WriteImage(iVar3,iVar4,param_4)" identifier = (call_expression "WriteImage(iVar3,iVar4,param_4)" identifier (argument_list "(iVar3,iVar4,param_4)" ( identifier , identifier , identifier )))) ;) (expression_statement "local_4c = local_4c & uVar9;" (assignment_expression "local_4c = local_4c & uVar9" identifier = (binary_expression "local_4c & uVar9" identifier & identifier)) ;) (expression_statement "SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));" (call_expression "SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304))" identifier (argument_list "(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304))" ( identifier , identifier , (pointer_expression "*(undefined4 *)(iVar4 + 0x304)" * (cast_expression "(undefined4 *)(iVar4 + 0x304)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x304)" ( (binary_expression "iVar4 + 0x304" identifier + number_literal) )))) ))) ;) (if_statement "if (*(int *)(iVar3 + 0xc) != 0) break;" if (parenthesized_expression "(*(int *)(iVar3 + 0xc) != 0)" ( (binary_expression "*(int *)(iVar3 + 0xc) != 0" (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) != number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar9 = (uint)local_2c;" (assignment_expression "uVar9 = (uint)local_2c" identifier = (cast_expression "(uint)local_2c" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "iVar5 = local_2c._4_4_;" (assignment_expression "iVar5 = local_2c._4_4_" identifier = (field_expression "local_2c._4_4_" identifier . field_identifier)) ;) (do_statement "do {\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      } while (!bVar10);" do (compound_statement "{\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "bVar10 = CONCAT44(iVar5,uVar9) == local_2c;" (assignment_expression "bVar10 = CONCAT44(iVar5,uVar9) == local_2c" identifier = (binary_expression "CONCAT44(iVar5,uVar9) == local_2c" (call_expression "CONCAT44(iVar5,uVar9)" identifier (argument_list "(iVar5,uVar9)" ( identifier , identifier ))) == identifier)) ;) (if_statement "if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }" if (parenthesized_expression "(bVar10)" ( identifier )) (compound_statement "{\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }" { (expression_statement "local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);" (assignment_expression "local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1)" identifier = (call_expression "CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1)" identifier (argument_list "(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1)" ( (binary_expression "iVar5 + (uint)(0xfffffffe < uVar9)" identifier + (call_expression "(uint)(0xfffffffe < uVar9)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0xfffffffe < uVar9)" ( (binary_expression "0xfffffffe < uVar9" number_literal < identifier) )))) , (binary_expression "uVar9 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }" else (compound_statement "{\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }" { (expression_statement "iVar5 = (int)((ulonglong)local_2c >> 0x20);" (assignment_expression "iVar5 = (int)((ulonglong)local_2c >> 0x20)" identifier = (cast_expression "(int)((ulonglong)local_2c >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)local_2c >> 0x20)" ( (binary_expression "(ulonglong)local_2c >> 0x20" (cast_expression "(ulonglong)local_2c" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar9 = (uint)local_2c;" (assignment_expression "uVar9 = (uint)local_2c" identifier = (cast_expression "(uint)local_2c" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) }))) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }) while (parenthesized_expression "(!bVar10)" ( (unary_expression "!bVar10" ! identifier) )) ;) (expression_statement "iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);" (assignment_expression "iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0)" identifier = (call_expression "SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0)" identifier (argument_list "(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0)" ( identifier , (string_literal ""Write/Image"" " string_content ") , (cast_expression "(uint)local_2c" ( (type_descriptor "uint" type_identifier) ) identifier) , (field_expression "local_2c._4_4_" identifier . field_identifier) , identifier , number_literal )))) ;) (if_statement "if (iVar5 == 0) break;" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) }))) (expression_statement "iVar4 = GetNextImageInList(iVar4);" (assignment_expression "iVar4 = GetNextImageInList(iVar4)" identifier = (call_expression "GetNextImageInList(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) }) while (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) ;) (labeled_statement "LAB_00079b0b:\n  DestroyImageInfo(iVar3);" statement_identifier : (expression_statement "DestroyImageInfo(iVar3);" (call_expression "DestroyImageInfo(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;)) (if_statement "if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }" if (parenthesized_expression "(iVar2 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_0029eab0();\n  }" { (expression_statement "FUN_0029eab0();" (call_expression "FUN_0029eab0()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return local_4c;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (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 (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (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 (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (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 (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , (pointer_expression & IDENT) , (binary_expression IDENT + LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (for_statement for ( ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , LIT ))) ;) })) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT ))) ;) })) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (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) )) (break_statement break ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (field_expression IDENT . field_identifier)) ;) (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (call_expression IDENT (argument_list ( IDENT , IDENT ))) == IDENT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT < IDENT) )))) , (binary_expression IDENT + LIT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }) while (parenthesized_expression ( (unary_expression ! IDENT) )) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (cast_expression ( (type_descriptor TYPE) ) IDENT) , (field_expression IDENT . field_identifier) , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "uint WriteImages(int param_1,int param_2,int param_3,int param_4)\n\n{\n  uint *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int iVar8;\n  uint uVar9;\n  int in_GS_OFFSET;\n  bool bVar10;\n  uint local_4c;\n  int local_3c;\n  undefined8 local_2c;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages");\n  }\n  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages");\n  }\n  if (param_2 == 0) {\n                    \n    __assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages");\n  }\n  if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages");\n  }\n  if (*(int *)(param_2 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","WriteImages",0x557,&DAT_002b6e4e,\n                   param_2 + 0x318);\n  }\n  if (param_4 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages");\n  }\n  iVar3 = CloneImageInfo(param_1);\n  *(undefined1 *)(iVar3 + 0x1f0) = 0;\n  iVar4 = GetFirstImageInList(param_2);\n  iVar5 = iVar4;\n  if (param_3 != 0) {\n    for (; iVar5 != 0; iVar5 = GetNextImageInList(iVar5)) {\n      CopyMagickString(iVar5 + 0x318,param_3,0x1000);\n    }\n  }\n  CopyMagickString(iVar3 + 0x21f0,iVar4 + 0x318,0x1000);\n  uVar6 = AcquireExceptionInfo();\n  uVar7 = GetImageListLength(iVar4);\n  SetImageInfo(iVar3,uVar7,uVar6);\n  DestroyExceptionInfo(uVar6);\n  iVar5 = iVar4;\n  if (*(char *)(iVar3 + 0x1f0) == '\0') {\n    CopyMagickString(iVar3 + 0x1f0,iVar4 + 0x2318,0x1000);\n  }\n  do {\n    iVar8 = GetNextImageInList(iVar5);\n    if (iVar8 == 0) {\n      local_4c = 1;\n      local_3c = GetImageListLength(iVar4);\n      if (iVar4 == 0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }\n    puVar1 = (uint *)(iVar5 + 0x244);\n    iVar5 = iVar8;\n  } while (*puVar1 < *(uint *)(iVar8 + 0x244));\n  iVar5 = *(int *)(iVar4 + 0x244);\n  iVar8 = iVar4;\n  do {\n    *(int *)(iVar8 + 0x244) = iVar5;\n    iVar5 = iVar5 + 1;\n    iVar8 = GetNextImageInList(iVar8);\n  } while (iVar8 != 0);\n  local_3c = GetImageListLength(iVar4);\nLAB_000799f5:\n  local_2c = 0;\n  local_4c = 1;\n  do {\n    if (local_3c == 1) {\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n    }\n    else {\n      uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n      uVar9 = (uint)local_2c;\n      iVar5 = local_2c._4_4_;\n      do {\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      } while (!bVar10);\n      iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);\n      if (iVar5 == 0) break;\n    }\n    iVar4 = GetNextImageInList(iVar4);\n  } while (iVar4 != 0);\nLAB_00079b0b:\n  DestroyImageInfo(iVar3);\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return local_4c;\n}" (type_identifier "uint") (function_declarator "WriteImages(int param_1,int param_2,int param_3,int param_4)" (identifier "WriteImages") (parameter_list "(int param_1,int param_2,int param_3,int param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int iVar8;\n  uint uVar9;\n  int in_GS_OFFSET;\n  bool bVar10;\n  uint local_4c;\n  int local_3c;\n  undefined8 local_2c;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages");\n  }\n  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages");\n  }\n  if (param_2 == 0) {\n                    \n    __assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages");\n  }\n  if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages");\n  }\n  if (*(int *)(param_2 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","WriteImages",0x557,&DAT_002b6e4e,\n                   param_2 + 0x318);\n  }\n  if (param_4 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages");\n  }\n  iVar3 = CloneImageInfo(param_1);\n  *(undefined1 *)(iVar3 + 0x1f0) = 0;\n  iVar4 = GetFirstImageInList(param_2);\n  iVar5 = iVar4;\n  if (param_3 != 0) {\n    for (; iVar5 != 0; iVar5 = GetNextImageInList(iVar5)) {\n      CopyMagickString(iVar5 + 0x318,param_3,0x1000);\n    }\n  }\n  CopyMagickString(iVar3 + 0x21f0,iVar4 + 0x318,0x1000);\n  uVar6 = AcquireExceptionInfo();\n  uVar7 = GetImageListLength(iVar4);\n  SetImageInfo(iVar3,uVar7,uVar6);\n  DestroyExceptionInfo(uVar6);\n  iVar5 = iVar4;\n  if (*(char *)(iVar3 + 0x1f0) == '\0') {\n    CopyMagickString(iVar3 + 0x1f0,iVar4 + 0x2318,0x1000);\n  }\n  do {\n    iVar8 = GetNextImageInList(iVar5);\n    if (iVar8 == 0) {\n      local_4c = 1;\n      local_3c = GetImageListLength(iVar4);\n      if (iVar4 == 0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }\n    puVar1 = (uint *)(iVar5 + 0x244);\n    iVar5 = iVar8;\n  } while (*puVar1 < *(uint *)(iVar8 + 0x244));\n  iVar5 = *(int *)(iVar4 + 0x244);\n  iVar8 = iVar4;\n  do {\n    *(int *)(iVar8 + 0x244) = iVar5;\n    iVar5 = iVar5 + 1;\n    iVar8 = GetNextImageInList(iVar8);\n  } while (iVar8 != 0);\n  local_3c = GetImageListLength(iVar4);\nLAB_000799f5:\n  local_2c = 0;\n  local_4c = 1;\n  do {\n    if (local_3c == 1) {\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n    }\n    else {\n      uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n      uVar9 = (uint)local_2c;\n      iVar5 = local_2c._4_4_;\n      do {\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      } while (!bVar10);\n      iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);\n      if (iVar5 == 0) break;\n    }\n    iVar4 = GetNextImageInList(iVar4);\n  } while (iVar4 != 0);\nLAB_00079b0b:\n  DestroyImageInfo(iVar3);\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return local_4c;\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "bool bVar10;" (primitive_type "bool") (identifier "bVar10") (; ";")) (declaration "uint local_4c;" (type_identifier "uint") (identifier "local_4c") (; ";")) (declaration "int local_3c;" (primitive_type "int") (identifier "local_3c") (; ";")) (declaration "undefined8 local_2c;" (type_identifier "undefined8") (identifier "local_2c") (; ";")) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages");\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages");\n  }" ({ "{") (expression_statement "__assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages");" (call_expression "__assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages")" (identifier "__assert_fail") (argument_list "("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,\n                  "WriteImages")" (( "(") (string_literal ""image_info != (const ImageInfo *) NULL"" (" """) (string_content "image_info != (const ImageInfo *) NULL") (" """)) (, ",") (string_literal ""MagickCore/constitute.c"" (" """) (string_content "MagickCore/constitute.c") (" """)) (, ",") (number_literal "0x552") (, ",") (string_literal ""WriteImages"" (" """) (string_content "WriteImages") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages");\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x31f4) != -0x54535255)" (( "(") (binary_expression "*(int *)(param_1 + 0x31f4) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x31f4)" (* "*") (cast_expression "(int *)(param_1 + 0x31f4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x31f4)" (( "(") (binary_expression "param_1 + 0x31f4" (identifier "param_1") (+ "+") (number_literal "0x31f4")) () ")")))) (!= "!=") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages");\n  }" ({ "{") (expression_statement "__assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages");" (call_expression "__assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages")" (identifier "__assert_fail") (argument_list "("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,\n                  "WriteImages")" (( "(") (string_literal ""image_info->signature == MagickCoreSignature"" (" """) (string_content "image_info->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/constitute.c"" (" """) (string_content "MagickCore/constitute.c") (" """)) (, ",") (number_literal "0x553") (, ",") (string_literal ""WriteImages"" (" """) (string_content "WriteImages") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (param_2 == 0) {\n                    \n    __assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages");\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages");\n  }" ({ "{") (expression_statement "__assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages");" (call_expression "__assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages")" (identifier "__assert_fail") (argument_list "("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages")" (( "(") (string_literal ""images != (Image *) NULL"" (" """) (string_content "images != (Image *) NULL") (" """)) (, ",") (string_literal ""MagickCore/constitute.c"" (" """) (string_content "MagickCore/constitute.c") (" """)) (, ",") (number_literal "0x554") (, ",") (string_literal ""WriteImages"" (" """) (string_content "WriteImages") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages");\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x3344) != -0x54535255)" (( "(") (binary_expression "*(int *)(param_2 + 0x3344) != -0x54535255" (pointer_expression "*(int *)(param_2 + 0x3344)" (* "*") (cast_expression "(int *)(param_2 + 0x3344)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x3344)" (( "(") (binary_expression "param_2 + 0x3344" (identifier "param_2") (+ "+") (number_literal "0x3344")) () ")")))) (!= "!=") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages");\n  }" ({ "{") (expression_statement "__assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages");" (call_expression "__assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages")" (identifier "__assert_fail") (argument_list "("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,\n                  "WriteImages")" (( "(") (string_literal ""images->signature == MagickCoreSignature"" (" """) (string_content "images->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/constitute.c"" (" """) (string_content "MagickCore/constitute.c") (" """)) (, ",") (number_literal "0x555") (, ",") (string_literal ""WriteImages"" (" """) (string_content "WriteImages") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_2 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","WriteImages",0x557,&DAT_002b6e4e,\n                   param_2 + 0x318);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x3328) != 0)" (( "(") (binary_expression "*(int *)(param_2 + 0x3328) != 0" (pointer_expression "*(int *)(param_2 + 0x3328)" (* "*") (cast_expression "(int *)(param_2 + 0x3328)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x3328)" (( "(") (binary_expression "param_2 + 0x3328" (identifier "param_2") (+ "+") (number_literal "0x3328")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","WriteImages",0x557,&DAT_002b6e4e,\n                   param_2 + 0x318);\n  }" ({ "{") (expression_statement "LogMagickEvent(0x8000,"MagickCore/constitute.c","WriteImages",0x557,&DAT_002b6e4e,\n                   param_2 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/constitute.c","WriteImages",0x557,&DAT_002b6e4e,\n                   param_2 + 0x318)" (identifier "LogMagickEvent") (argument_list "(0x8000,"MagickCore/constitute.c","WriteImages",0x557,&DAT_002b6e4e,\n                   param_2 + 0x318)" (( "(") (number_literal "0x8000") (, ",") (string_literal ""MagickCore/constitute.c"" (" """) (string_content "MagickCore/constitute.c") (" """)) (, ",") (string_literal ""WriteImages"" (" """) (string_content "WriteImages") (" """)) (, ",") (number_literal "0x557") (, ",") (pointer_expression "&DAT_002b6e4e" (& "&") (identifier "DAT_002b6e4e")) (, ",") (binary_expression "param_2 + 0x318" (identifier "param_2") (+ "+") (number_literal "0x318")) () ")"))) (; ";")) (} "}"))) (if_statement "if (param_4 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages");\n  }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages");\n  }" ({ "{") (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages")" (identifier "__assert_fail") (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,\n                  "WriteImages")" (( "(") (string_literal ""exception != (ExceptionInfo *) NULL"" (" """) (string_content "exception != (ExceptionInfo *) NULL") (" """)) (, ",") (string_literal ""MagickCore/constitute.c"" (" """) (string_content "MagickCore/constitute.c") (" """)) (, ",") (number_literal "0x558") (, ",") (string_literal ""WriteImages"" (" """) (string_content "WriteImages") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar3 = CloneImageInfo(param_1);" (assignment_expression "iVar3 = CloneImageInfo(param_1)" (identifier "iVar3") (= "=") (call_expression "CloneImageInfo(param_1)" (identifier "CloneImageInfo") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "*(undefined1 *)(iVar3 + 0x1f0) = 0;" (assignment_expression "*(undefined1 *)(iVar3 + 0x1f0) = 0" (pointer_expression "*(undefined1 *)(iVar3 + 0x1f0)" (* "*") (cast_expression "(undefined1 *)(iVar3 + 0x1f0)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1f0)" (( "(") (binary_expression "iVar3 + 0x1f0" (identifier "iVar3") (+ "+") (number_literal "0x1f0")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar4 = GetFirstImageInList(param_2);" (assignment_expression "iVar4 = GetFirstImageInList(param_2)" (identifier "iVar4") (= "=") (call_expression "GetFirstImageInList(param_2)" (identifier "GetFirstImageInList") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" (identifier "iVar5") (= "=") (identifier "iVar4")) (; ";")) (if_statement "if (param_3 != 0) {\n    for (; iVar5 != 0; iVar5 = GetNextImageInList(iVar5)) {\n      CopyMagickString(iVar5 + 0x318,param_3,0x1000);\n    }\n  }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    for (; iVar5 != 0; iVar5 = GetNextImageInList(iVar5)) {\n      CopyMagickString(iVar5 + 0x318,param_3,0x1000);\n    }\n  }" ({ "{") (for_statement "for (; iVar5 != 0; iVar5 = GetNextImageInList(iVar5)) {\n      CopyMagickString(iVar5 + 0x318,param_3,0x1000);\n    }" (for "for") (( "(") (; ";") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar5 = GetNextImageInList(iVar5)" (identifier "iVar5") (= "=") (call_expression "GetNextImageInList(iVar5)" (identifier "GetNextImageInList") (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")")))) () ")") (compound_statement "{\n      CopyMagickString(iVar5 + 0x318,param_3,0x1000);\n    }" ({ "{") (expression_statement "CopyMagickString(iVar5 + 0x318,param_3,0x1000);" (call_expression "CopyMagickString(iVar5 + 0x318,param_3,0x1000)" (identifier "CopyMagickString") (argument_list "(iVar5 + 0x318,param_3,0x1000)" (( "(") (binary_expression "iVar5 + 0x318" (identifier "iVar5") (+ "+") (number_literal "0x318")) (, ",") (identifier "param_3") (, ",") (number_literal "0x1000") () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "CopyMagickString(iVar3 + 0x21f0,iVar4 + 0x318,0x1000);" (call_expression "CopyMagickString(iVar3 + 0x21f0,iVar4 + 0x318,0x1000)" (identifier "CopyMagickString") (argument_list "(iVar3 + 0x21f0,iVar4 + 0x318,0x1000)" (( "(") (binary_expression "iVar3 + 0x21f0" (identifier "iVar3") (+ "+") (number_literal "0x21f0")) (, ",") (binary_expression "iVar4 + 0x318" (identifier "iVar4") (+ "+") (number_literal "0x318")) (, ",") (number_literal "0x1000") () ")"))) (; ";")) (expression_statement "uVar6 = AcquireExceptionInfo();" (assignment_expression "uVar6 = AcquireExceptionInfo()" (identifier "uVar6") (= "=") (call_expression "AcquireExceptionInfo()" (identifier "AcquireExceptionInfo") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar7 = GetImageListLength(iVar4);" (assignment_expression "uVar7 = GetImageListLength(iVar4)" (identifier "uVar7") (= "=") (call_expression "GetImageListLength(iVar4)" (identifier "GetImageListLength") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "SetImageInfo(iVar3,uVar7,uVar6);" (call_expression "SetImageInfo(iVar3,uVar7,uVar6)" (identifier "SetImageInfo") (argument_list "(iVar3,uVar7,uVar6)" (( "(") (identifier "iVar3") (, ",") (identifier "uVar7") (, ",") (identifier "uVar6") () ")"))) (; ";")) (expression_statement "DestroyExceptionInfo(uVar6);" (call_expression "DestroyExceptionInfo(uVar6)" (identifier "DestroyExceptionInfo") (argument_list "(uVar6)" (( "(") (identifier "uVar6") () ")"))) (; ";")) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" (identifier "iVar5") (= "=") (identifier "iVar4")) (; ";")) (if_statement "if (*(char *)(iVar3 + 0x1f0) == '\0') {\n    CopyMagickString(iVar3 + 0x1f0,iVar4 + 0x2318,0x1000);\n  }" (if "if") (parenthesized_expression "(*(char *)(iVar3 + 0x1f0) == '\0')" (( "(") (binary_expression "*(char *)(iVar3 + 0x1f0) == '\0'" (pointer_expression "*(char *)(iVar3 + 0x1f0)" (* "*") (cast_expression "(char *)(iVar3 + 0x1f0)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1f0)" (( "(") (binary_expression "iVar3 + 0x1f0" (identifier "iVar3") (+ "+") (number_literal "0x1f0")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    CopyMagickString(iVar3 + 0x1f0,iVar4 + 0x2318,0x1000);\n  }" ({ "{") (expression_statement "CopyMagickString(iVar3 + 0x1f0,iVar4 + 0x2318,0x1000);" (call_expression "CopyMagickString(iVar3 + 0x1f0,iVar4 + 0x2318,0x1000)" (identifier "CopyMagickString") (argument_list "(iVar3 + 0x1f0,iVar4 + 0x2318,0x1000)" (( "(") (binary_expression "iVar3 + 0x1f0" (identifier "iVar3") (+ "+") (number_literal "0x1f0")) (, ",") (binary_expression "iVar4 + 0x2318" (identifier "iVar4") (+ "+") (number_literal "0x2318")) (, ",") (number_literal "0x1000") () ")"))) (; ";")) (} "}"))) (do_statement "do {\n    iVar8 = GetNextImageInList(iVar5);\n    if (iVar8 == 0) {\n      local_4c = 1;\n      local_3c = GetImageListLength(iVar4);\n      if (iVar4 == 0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }\n    puVar1 = (uint *)(iVar5 + 0x244);\n    iVar5 = iVar8;\n  } while (*puVar1 < *(uint *)(iVar8 + 0x244));" (do "do") (compound_statement "{\n    iVar8 = GetNextImageInList(iVar5);\n    if (iVar8 == 0) {\n      local_4c = 1;\n      local_3c = GetImageListLength(iVar4);\n      if (iVar4 == 0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }\n    puVar1 = (uint *)(iVar5 + 0x244);\n    iVar5 = iVar8;\n  }" ({ "{") (expression_statement "iVar8 = GetNextImageInList(iVar5);" (assignment_expression "iVar8 = GetNextImageInList(iVar5)" (identifier "iVar8") (= "=") (call_expression "GetNextImageInList(iVar5)" (identifier "GetNextImageInList") (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")")))) (; ";")) (if_statement "if (iVar8 == 0) {\n      local_4c = 1;\n      local_3c = GetImageListLength(iVar4);\n      if (iVar4 == 0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }" (if "if") (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      local_4c = 1;\n      local_3c = GetImageListLength(iVar4);\n      if (iVar4 == 0) goto LAB_00079b0b;\n      goto LAB_000799f5;\n    }" ({ "{") (expression_statement "local_4c = 1;" (assignment_expression "local_4c = 1" (identifier "local_4c") (= "=") (number_literal "1")) (; ";")) (expression_statement "local_3c = GetImageListLength(iVar4);" (assignment_expression "local_3c = GetImageListLength(iVar4)" (identifier "local_3c") (= "=") (call_expression "GetImageListLength(iVar4)" (identifier "GetImageListLength") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (; ";")) (if_statement "if (iVar4 == 0) goto LAB_00079b0b;" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00079b0b;" (goto "goto") (statement_identifier "LAB_00079b0b") (; ";"))) (goto_statement "goto LAB_000799f5;" (goto "goto") (statement_identifier "LAB_000799f5") (; ";")) (} "}"))) (expression_statement "puVar1 = (uint *)(iVar5 + 0x244);" (assignment_expression "puVar1 = (uint *)(iVar5 + 0x244)" (identifier "puVar1") (= "=") (cast_expression "(uint *)(iVar5 + 0x244)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x244)" (( "(") (binary_expression "iVar5 + 0x244" (identifier "iVar5") (+ "+") (number_literal "0x244")) () ")")))) (; ";")) (expression_statement "iVar5 = iVar8;" (assignment_expression "iVar5 = iVar8" (identifier "iVar5") (= "=") (identifier "iVar8")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*puVar1 < *(uint *)(iVar8 + 0x244))" (( "(") (binary_expression "*puVar1 < *(uint *)(iVar8 + 0x244)" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (< "<") (pointer_expression "*(uint *)(iVar8 + 0x244)" (* "*") (cast_expression "(uint *)(iVar8 + 0x244)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x244)" (( "(") (binary_expression "iVar8 + 0x244" (identifier "iVar8") (+ "+") (number_literal "0x244")) () ")"))))) () ")")) (; ";")) (expression_statement "iVar5 = *(int *)(iVar4 + 0x244);" (assignment_expression "iVar5 = *(int *)(iVar4 + 0x244)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(iVar4 + 0x244)" (* "*") (cast_expression "(int *)(iVar4 + 0x244)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x244)" (( "(") (binary_expression "iVar4 + 0x244" (identifier "iVar4") (+ "+") (number_literal "0x244")) () ")"))))) (; ";")) (expression_statement "iVar8 = iVar4;" (assignment_expression "iVar8 = iVar4" (identifier "iVar8") (= "=") (identifier "iVar4")) (; ";")) (do_statement "do {\n    *(int *)(iVar8 + 0x244) = iVar5;\n    iVar5 = iVar5 + 1;\n    iVar8 = GetNextImageInList(iVar8);\n  } while (iVar8 != 0);" (do "do") (compound_statement "{\n    *(int *)(iVar8 + 0x244) = iVar5;\n    iVar5 = iVar5 + 1;\n    iVar8 = GetNextImageInList(iVar8);\n  }" ({ "{") (expression_statement "*(int *)(iVar8 + 0x244) = iVar5;" (assignment_expression "*(int *)(iVar8 + 0x244) = iVar5" (pointer_expression "*(int *)(iVar8 + 0x244)" (* "*") (cast_expression "(int *)(iVar8 + 0x244)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x244)" (( "(") (binary_expression "iVar8 + 0x244" (identifier "iVar8") (+ "+") (number_literal "0x244")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar8 = GetNextImageInList(iVar8);" (assignment_expression "iVar8 = GetNextImageInList(iVar8)" (identifier "iVar8") (= "=") (call_expression "GetNextImageInList(iVar8)" (identifier "GetNextImageInList") (argument_list "(iVar8)" (( "(") (identifier "iVar8") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar8 != 0)" (( "(") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "local_3c = GetImageListLength(iVar4);" (assignment_expression "local_3c = GetImageListLength(iVar4)" (identifier "local_3c") (= "=") (call_expression "GetImageListLength(iVar4)" (identifier "GetImageListLength") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (; ";")) (labeled_statement "LAB_000799f5:\n  local_2c = 0;" (statement_identifier "LAB_000799f5") (: ":") (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" (identifier "local_2c") (= "=") (number_literal "0")) (; ";"))) (expression_statement "local_4c = 1;" (assignment_expression "local_4c = 1" (identifier "local_4c") (= "=") (number_literal "1")) (; ";")) (do_statement "do {\n    if (local_3c == 1) {\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n    }\n    else {\n      uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n      uVar9 = (uint)local_2c;\n      iVar5 = local_2c._4_4_;\n      do {\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      } while (!bVar10);\n      iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);\n      if (iVar5 == 0) break;\n    }\n    iVar4 = GetNextImageInList(iVar4);\n  } while (iVar4 != 0);" (do "do") (compound_statement "{\n    if (local_3c == 1) {\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n    }\n    else {\n      uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n      uVar9 = (uint)local_2c;\n      iVar5 = local_2c._4_4_;\n      do {\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      } while (!bVar10);\n      iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);\n      if (iVar5 == 0) break;\n    }\n    iVar4 = GetNextImageInList(iVar4);\n  }" ({ "{") (if_statement "if (local_3c == 1) {\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n    }\n    else {\n      uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n      uVar9 = (uint)local_2c;\n      iVar5 = local_2c._4_4_;\n      do {\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      } while (!bVar10);\n      iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);\n      if (iVar5 == 0) break;\n    }" (if "if") (parenthesized_expression "(local_3c == 1)" (( "(") (binary_expression "local_3c == 1" (identifier "local_3c") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n    }" ({ "{") (expression_statement "uVar9 = WriteImage(iVar3,iVar4,param_4);" (assignment_expression "uVar9 = WriteImage(iVar3,iVar4,param_4)" (identifier "uVar9") (= "=") (call_expression "WriteImage(iVar3,iVar4,param_4)" (identifier "WriteImage") (argument_list "(iVar3,iVar4,param_4)" (( "(") (identifier "iVar3") (, ",") (identifier "iVar4") (, ",") (identifier "param_4") () ")")))) (; ";")) (expression_statement "local_4c = local_4c & uVar9;" (assignment_expression "local_4c = local_4c & uVar9" (identifier "local_4c") (= "=") (binary_expression "local_4c & uVar9" (identifier "local_4c") (& "&") (identifier "uVar9"))) (; ";")) (if_statement "if (*(int *)(iVar3 + 0xc) != 0) break;" (if "if") (parenthesized_expression "(*(int *)(iVar3 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(iVar3 + 0xc) != 0" (pointer_expression "*(int *)(iVar3 + 0xc)" (* "*") (cast_expression "(int *)(iVar3 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (} "}")) (else_clause "else {\n      uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n      uVar9 = (uint)local_2c;\n      iVar5 = local_2c._4_4_;\n      do {\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      } while (!bVar10);\n      iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);\n      if (iVar5 == 0) break;\n    }" (else "else") (compound_statement "{\n      uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));\n      uVar9 = WriteImage(iVar3,iVar4,param_4);\n      local_4c = local_4c & uVar9;\n      SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));\n      if (*(int *)(iVar3 + 0xc) != 0) break;\n      uVar9 = (uint)local_2c;\n      iVar5 = local_2c._4_4_;\n      do {\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      } while (!bVar10);\n      iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);\n      if (iVar5 == 0) break;\n    }" ({ "{") (expression_statement "uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));" (assignment_expression "uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304))" (identifier "uVar6") (= "=") (call_expression "SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304))" (identifier "SetImageProgressMonitor") (argument_list "(iVar4,0,*(undefined4 *)(iVar4 + 0x304))" (( "(") (identifier "iVar4") (, ",") (number_literal "0") (, ",") (pointer_expression "*(undefined4 *)(iVar4 + 0x304)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x304)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x304)" (( "(") (binary_expression "iVar4 + 0x304" (identifier "iVar4") (+ "+") (number_literal "0x304")) () ")")))) () ")")))) (; ";")) (expression_statement "uVar9 = WriteImage(iVar3,iVar4,param_4);" (assignment_expression "uVar9 = WriteImage(iVar3,iVar4,param_4)" (identifier "uVar9") (= "=") (call_expression "WriteImage(iVar3,iVar4,param_4)" (identifier "WriteImage") (argument_list "(iVar3,iVar4,param_4)" (( "(") (identifier "iVar3") (, ",") (identifier "iVar4") (, ",") (identifier "param_4") () ")")))) (; ";")) (expression_statement "local_4c = local_4c & uVar9;" (assignment_expression "local_4c = local_4c & uVar9" (identifier "local_4c") (= "=") (binary_expression "local_4c & uVar9" (identifier "local_4c") (& "&") (identifier "uVar9"))) (; ";")) (expression_statement "SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));" (call_expression "SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304))" (identifier "SetImageProgressMonitor") (argument_list "(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304))" (( "(") (identifier "iVar4") (, ",") (identifier "uVar6") (, ",") (pointer_expression "*(undefined4 *)(iVar4 + 0x304)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x304)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x304)" (( "(") (binary_expression "iVar4 + 0x304" (identifier "iVar4") (+ "+") (number_literal "0x304")) () ")")))) () ")"))) (; ";")) (if_statement "if (*(int *)(iVar3 + 0xc) != 0) break;" (if "if") (parenthesized_expression "(*(int *)(iVar3 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(iVar3 + 0xc) != 0" (pointer_expression "*(int *)(iVar3 + 0xc)" (* "*") (cast_expression "(int *)(iVar3 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar9 = (uint)local_2c;" (assignment_expression "uVar9 = (uint)local_2c" (identifier "uVar9") (= "=") (cast_expression "(uint)local_2c" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "local_2c"))) (; ";")) (expression_statement "iVar5 = local_2c._4_4_;" (assignment_expression "iVar5 = local_2c._4_4_" (identifier "iVar5") (= "=") (field_expression "local_2c._4_4_" (identifier "local_2c") (. ".") (field_identifier "_4_4_"))) (; ";")) (do_statement "do {\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      } while (!bVar10);" (do "do") (compound_statement "{\n        LOCK();\n        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;\n        if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }\n        UNLOCK();\n      }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "bVar10 = CONCAT44(iVar5,uVar9) == local_2c;" (assignment_expression "bVar10 = CONCAT44(iVar5,uVar9) == local_2c" (identifier "bVar10") (= "=") (binary_expression "CONCAT44(iVar5,uVar9) == local_2c" (call_expression "CONCAT44(iVar5,uVar9)" (identifier "CONCAT44") (argument_list "(iVar5,uVar9)" (( "(") (identifier "iVar5") (, ",") (identifier "uVar9") () ")"))) (== "==") (identifier "local_2c"))) (; ";")) (if_statement "if (bVar10) {\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }\n        else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }" (if "if") (parenthesized_expression "(bVar10)" (( "(") (identifier "bVar10") () ")")) (compound_statement "{\n          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);\n        }" ({ "{") (expression_statement "local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);" (assignment_expression "local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1)" (identifier "local_2c") (= "=") (call_expression "CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1)" (identifier "CONCAT44") (argument_list "(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1)" (( "(") (binary_expression "iVar5 + (uint)(0xfffffffe < uVar9)" (identifier "iVar5") (+ "+") (call_expression "(uint)(0xfffffffe < uVar9)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(0xfffffffe < uVar9)" (( "(") (binary_expression "0xfffffffe < uVar9" (number_literal "0xfffffffe") (< "<") (identifier "uVar9")) () ")")))) (, ",") (binary_expression "uVar9 + 1" (identifier "uVar9") (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }" (else "else") (compound_statement "{\n          iVar5 = (int)((ulonglong)local_2c >> 0x20);\n          uVar9 = (uint)local_2c;\n        }" ({ "{") (expression_statement "iVar5 = (int)((ulonglong)local_2c >> 0x20);" (assignment_expression "iVar5 = (int)((ulonglong)local_2c >> 0x20)" (identifier "iVar5") (= "=") (cast_expression "(int)((ulonglong)local_2c >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)local_2c >> 0x20)" (( "(") (binary_expression "(ulonglong)local_2c >> 0x20" (cast_expression "(ulonglong)local_2c" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "local_2c")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "uVar9 = (uint)local_2c;" (assignment_expression "uVar9 = (uint)local_2c" (identifier "uVar9") (= "=") (cast_expression "(uint)local_2c" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "local_2c"))) (; ";")) (} "}")))) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(!bVar10)" (( "(") (unary_expression "!bVar10" (! "!") (identifier "bVar10")) () ")")) (; ";")) (expression_statement "iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);" (assignment_expression "iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0)" (identifier "iVar5") (= "=") (call_expression "SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0)" (identifier "SetImageProgress") (argument_list "(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0)" (( "(") (identifier "iVar4") (, ",") (string_literal ""Write/Image"" (" """) (string_content "Write/Image") (" """)) (, ",") (cast_expression "(uint)local_2c" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "local_2c")) (, ",") (field_expression "local_2c._4_4_" (identifier "local_2c") (. ".") (field_identifier "_4_4_")) (, ",") (identifier "local_3c") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar5 == 0) break;" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (} "}")))) (expression_statement "iVar4 = GetNextImageInList(iVar4);" (assignment_expression "iVar4 = GetNextImageInList(iVar4)" (identifier "iVar4") (= "=") (call_expression "GetNextImageInList(iVar4)" (identifier "GetNextImageInList") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (; ";")) (labeled_statement "LAB_00079b0b:\n  DestroyImageInfo(iVar3);" (statement_identifier "LAB_00079b0b") (: ":") (expression_statement "DestroyImageInfo(iVar3);" (call_expression "DestroyImageInfo(iVar3)" (identifier "DestroyImageInfo") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";"))) (if_statement "if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }" (if "if") (parenthesized_expression "(iVar2 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar2 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar2") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_0029eab0();\n  }" ({ "{") (expression_statement "FUN_0029eab0();" (call_expression "FUN_0029eab0()" (identifier "FUN_0029eab0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return local_4c;" (return "return") (identifier "local_4c") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Enum "ChannelType": Some values do not have unique names */
/* WARNING: Enum "GravityType": Some values do not have unique names */
/* WARNING: Enum "DisposeType": 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 */
/* WARNING: Enum "LogEventType": Some values do not have unique names */

type_1
function_1(type_2 *var_2,type_3 *var_4,char *var_10,type_4 *var_7)

{
  size_t *psVar1;
  int var_34;
  type_2 *image_info_00;
  type_3 *var_19;
  type_3 *var_11;
  type_4 *exception_00;
  size_t var_20;
  type_3 *var_18;
  type_5 progress_monitor;
  type_6 var_30;
  type_1 var_24;
  int var_29;
  int var_1;
  bool bVar9;
  type_1 var_23;
  type_6 var_21;
  type_7 var_28;
  
  var_34 = *(int *)(var_1 + 0x14);
  if (var_2 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,
                  "WriteImages");
  }
  if (var_2->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    var_3("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,
                  "WriteImages");
  }
  if (var_4 == (type_3 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("images != (Image *) NULL","MagickCore/constitute.c",0x554,"WriteImages");
  }
  if (var_4->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    var_3("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,
                  "WriteImages");
  }
  if (var_4->debug != var_5) {
    var_6(TraceEvent,"MagickCore/constitute.c","WriteImages",0x557,"%s",var_4->var_10);
  }
  if (var_7 == (type_4 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,
                  "WriteImages");
  }
  image_info_00 = var_8(var_2);
  image_info_00->magick[0] = '\0';
  var_19 = var_9(var_4);
  var_11 = var_19;
  if (var_10 != (char *)0x0) {
    for (; var_11 != (type_3 *)0x0; var_11 = var_12(var_11)) {
      var_13(var_11->var_10,var_10,0x1000);
    }
  }
  var_13(image_info_00->var_10,var_19->var_10,0x1000);
  exception_00 = var_14();
  var_20 = var_15(var_19);
  var_16(image_info_00,var_20,exception_00);
  var_17(exception_00);
  var_11 = var_19;
  if (image_info_00->magick[0] == '\0') {
    var_13(image_info_00->magick,var_19->magick,0x1000);
  }
  do {
    var_18 = var_12(var_11);
    if (var_18 == (type_3 *)0x0) {
      var_23 = MagickTrue;
      var_21 = var_15(var_19);
      if (var_19 == (type_3 *)0x0) goto LAB_00079b0b;
      goto LAB_000799f5;
    }
    psVar1 = &var_11->scene;
    var_11 = var_18;
  } while (*psVar1 < var_18->scene);
  var_20 = var_19->scene;
  var_11 = var_19;
  do {
    var_11->scene = var_20;
    var_20 = var_20 + 1;
    var_11 = var_12(var_11);
  } while (var_11 != (type_3 *)0x0);
  var_21 = var_15(var_19);
LAB_000799f5:
  var_28 = 0;
  var_23 = MagickTrue;
  do {
    if (var_21 == 1) {
      var_24 = var_22(image_info_00,var_19,var_7);
      var_23 = var_23 & var_24;
      if (image_info_00->adjoin != var_5) break;
    }
    else {
      progress_monitor =
           var_25(var_19,(type_5)0x0,var_19->client_data);
      var_24 = var_22(image_info_00,var_19,var_7);
      var_23 = var_23 & var_24;
      var_25(var_19,progress_monitor,var_19->client_data);
      if (image_info_00->adjoin != var_5) break;
      var_30 = (type_6)var_28;
      var_29 = var_28._4_4_;
      do {
        var_26();
        bVar9 = var_27(var_29,var_30) == var_28;
        if (bVar9) {
          var_28 = var_27(var_29 + (type_6)(0xfffffffe < var_30),var_30 + 1);
        }
        else {
          var_29 = (int)((type_8)var_28 >> 0x20);
          var_30 = (type_6)var_28;
        }
        var_31();
      } while (!bVar9);
      var_24 = var_32(var_19,"Write/Image",var_28,(type_8)var_21);
      if (var_24 == var_5) break;
    }
    var_19 = var_12(var_19);
  } while (var_19 != (type_3 *)0x0);
LAB_00079b0b:
  var_33(image_info_00);
  if (var_34 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_35();
  }
  return var_23;
}


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

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

uint MASKED(int param_1,int param_2,int param_3,int param_4)

{
  uint *puVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  undefined4 uVar6;
  undefined4 uVar7;
  int iVar8;
  uint uVar9;
  int in_GS_OFFSET;
  bool bVar10;
  uint local_4c;
  int local_3c;
  undefined8 local_2c;
  
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image_info != (const ImageInfo *) NULL","MagickCore/constitute.c",0x552,
                  "MASKED");
  }
  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x553,
                  "MASKED");
  }
  if (param_2 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("images != (Image *) NULL","MagickCore/constitute.c",0x554,"MASKED");
  }
  if (*(int *)(param_2 + 0x3344) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("images->signature == MagickCoreSignature","MagickCore/constitute.c",0x555,
                  "MASKED");
  }
  if (*(int *)(param_2 + 0x3328) != 0) {
    LogMagickEvent(0x8000,"MagickCore/constitute.c","MASKED",0x557,&DAT_002b6e4e,
                   param_2 + 0x318);
  }
  if (param_4 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x558,
                  "MASKED");
  }
  iVar3 = CloneImageInfo(param_1);
  *(undefined1 *)(iVar3 + 0x1f0) = 0;
  iVar4 = GetFirstImageInList(param_2);
  iVar5 = iVar4;
  if (param_3 != 0) {
    for (; iVar5 != 0; iVar5 = GetNextImageInList(iVar5)) {
      CopyMagickString(iVar5 + 0x318,param_3,0x1000);
    }
  }
  CopyMagickString(iVar3 + 0x21f0,iVar4 + 0x318,0x1000);
  uVar6 = AcquireExceptionInfo();
  uVar7 = GetImageListLength(iVar4);
  SetImageInfo(iVar3,uVar7,uVar6);
  DestroyExceptionInfo(uVar6);
  iVar5 = iVar4;
  if (*(char *)(iVar3 + 0x1f0) == '\0') {
    CopyMagickString(iVar3 + 0x1f0,iVar4 + 0x2318,0x1000);
  }
  do {
    iVar8 = GetNextImageInList(iVar5);
    if (iVar8 == 0) {
      local_4c = 1;
      local_3c = GetImageListLength(iVar4);
      if (iVar4 == 0) goto LAB_00079b0b;
      goto LAB_000799f5;
    }
    puVar1 = (uint *)(iVar5 + 0x244);
    iVar5 = iVar8;
  } while (*puVar1 < *(uint *)(iVar8 + 0x244));
  iVar5 = *(int *)(iVar4 + 0x244);
  iVar8 = iVar4;
  do {
    *(int *)(iVar8 + 0x244) = iVar5;
    iVar5 = iVar5 + 1;
    iVar8 = GetNextImageInList(iVar8);
  } while (iVar8 != 0);
  local_3c = GetImageListLength(iVar4);
LAB_000799f5:
  local_2c = 0;
  local_4c = 1;
  do {
    if (local_3c == 1) {
      uVar9 = WriteImage(iVar3,iVar4,param_4);
      local_4c = local_4c & uVar9;
      if (*(int *)(iVar3 + 0xc) != 0) break;
    }
    else {
      uVar6 = SetImageProgressMonitor(iVar4,0,*(undefined4 *)(iVar4 + 0x304));
      uVar9 = WriteImage(iVar3,iVar4,param_4);
      local_4c = local_4c & uVar9;
      SetImageProgressMonitor(iVar4,uVar6,*(undefined4 *)(iVar4 + 0x304));
      if (*(int *)(iVar3 + 0xc) != 0) break;
      uVar9 = (uint)local_2c;
      iVar5 = local_2c._4_4_;
      do {
        LOCK();
        bVar10 = CONCAT44(iVar5,uVar9) == local_2c;
        if (bVar10) {
          local_2c = CONCAT44(iVar5 + (uint)(0xfffffffe < uVar9),uVar9 + 1);
        }
        else {
          iVar5 = (int)((ulonglong)local_2c >> 0x20);
          uVar9 = (uint)local_2c;
        }
        UNLOCK();
      } while (!bVar10);
      iVar5 = SetImageProgress(iVar4,"Write/Image",(uint)local_2c,local_2c._4_4_,local_3c,0);
      if (iVar5 == 0) break;
    }
    iVar4 = GetNextImageInList(iVar4);
  } while (iVar4 != 0);
LAB_00079b0b:
  DestroyImageInfo(iVar3);
  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0029eab0();
  }
  return local_4c;
}

