
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "GravityType": Some values do not have unique names */
/* WARNING: Enum "DisposeType": Some values do not have unique names */
/* WARNING: Enum "ChannelType": Some values do not have unique names */
/* WARNING: Enum "PixelChannel": Some values do not have unique names */
/* WARNING: Enum "ExceptionType": Some values do not have unique names */
/* WARNING: Enum "LogEventType": Some values do not have unique names */

Image * DisposeImages(Image *images,ExceptionInfo *exception)

{
  int iVar1;
  DisposeType DVar2;
  PixelTrait PVar3;
  Image *image;
  Image *image_00;
  Image *image_01;
  Image *image_02;
  size_t sVar4;
  int in_GS_OFFSET;
  Image *local_4c;
  Image *dispose_images;
  RectangleInfo bounds;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (images == (Image *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages");
  }
  if (images->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,
                  "DisposeImages");
  }
  if (images->debug != MagickFalse) {
    LogMagickEvent(TraceEvent,"MagickCore/layer.c","DisposeImages",0x19f,"%s",images->filename);
  }
  if (exception == (ExceptionInfo *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages");
  }
  if (exception->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,
                  "DisposeImages");
  }
  image = GetFirstImageInList(images);
  image_00 = CloneImage(image,(image->page).width,(image->page).height,MagickTrue,exception);
  if (image_00 == (Image *)0x0) {
    image_01 = (Image *)0x0;
  }
  else {
    (image_00->page).width = (image->page).width;
    sVar4 = (image->page).height;
    (image_00->background_color).alpha = 0.0;
    (image_00->page).x = 0;
    (image_00->page).y = 0;
    (image_00->page).height = sVar4;
    image_00->dispose = NoneDispose;
    (image_00->background_color).alpha_trait = BlendPixelTrait;
    SetImageBackgroundColor(image_00,exception);
    dispose_images = NewImageList();
    local_4c = image;
    do {
      image_02 = CloneImage(image_00,0,0,MagickTrue,exception);
      image_01 = image_02;
      if (image_02 == (Image *)0x0) {
LAB_000ec7b0:
        dispose_images = DestroyImageList(dispose_images);
        DestroyImage(image_00);
        goto LAB_000ec7cb;
      }
      PVar3 = image->alpha_trait;
      (image_02->background_color).alpha_trait = BlendPixelTrait;
      CompositeImage(image_02,image,
                     (-(uint)(PVar3 == UndefinedPixelTrait) & 0xffffffd7) + OverCompositeOp,
                     MagickTrue,(image->page).x,(image->page).y,exception);
      if (image->dispose == BackgroundDispose) {
        bounds.y = (image->page).y;
        bounds.x = (image->page).x;
        bounds.width = image->columns;
        if (bounds.x < 0) {
          bounds.width = bounds.width + bounds.x;
          bounds.x = 0;
        }
        if ((int)image_02->columns < (int)(bounds.width + bounds.x)) {
          bounds.width = image_02->columns - bounds.x;
        }
        sVar4 = image->rows + bounds.y;
        bounds.height = image->rows;
        if (bounds.y < 0) {
          bounds.y = 0;
          bounds.height = sVar4;
        }
        if ((int)image_02->rows < (int)sVar4) {
          bounds.height = image_02->rows - bounds.y;
        }
        ClearBounds(image_02,&bounds,exception);
        if (image->dispose != PreviousDispose) goto LAB_000ec5f9;
LAB_000ec77a:
        DestroyImage(image_02);
        image_02 = image_00;
      }
      else {
        if (image->dispose == PreviousDispose) goto LAB_000ec77a;
LAB_000ec5f9:
        DestroyImage(image_00);
      }
      image_01 = CloneImage(image_02,0,0,MagickTrue,exception);
      image_00 = image_02;
      if (image_01 == (Image *)0x0) goto LAB_000ec7b0;
      (image_02->background_color).alpha_trait = BlendPixelTrait;
      CloneImageProfiles(image_01,image);
      CloneImageProperties(image_01,image);
      CloneImageArtifacts(image_01,image);
      DVar2 = image->dispose;
      (image_01->page).x = 0;
      (image_01->page).y = 0;
      image_01->dispose = DVar2;
      AppendImageToList(&dispose_images,image_01);
      local_4c = GetNextImageInList(local_4c);
    } while (local_4c != (Image *)0x0);
    DestroyImage(image_02);
    image_01 = GetFirstImageInList(dispose_images);
  }
LAB_000ec7cb:
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return image_01;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int DisposeImages(int param_1,int param_2)

{
  undefined4 uVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int in_GS_OFFSET;
  int local_4c;
  undefined4 local_34;
  int local_30;
  int local_2c;
  int local_28;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0xec4d9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages");
  }
  if (*(int *)(param_1 + 0x3344) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,
                  "DisposeImages");
  }
  if (*(int *)(param_1 + 0x3328) != 0) {
    LogMagickEvent(0x8000,"MagickCore/layer.c","DisposeImages",0x19f,&DAT_002b6e4e,param_1 + 0x318);
  }
  if (param_2 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages");
  }
  if (*(int *)(param_2 + 0x1c) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,
                  "DisposeImages");
  }
  iVar2 = GetFirstImageInList(param_1);
  iVar3 = CloneImage(iVar2,*(undefined4 *)(iVar2 + 0x200),*(undefined4 *)(iVar2 + 0x204),1,param_2);
  if (iVar3 == 0) {
    iVar5 = 0;
  }
  else {
    *(undefined4 *)(iVar3 + 0x200) = *(undefined4 *)(iVar2 + 0x200);
    uVar1 = *(undefined4 *)(iVar2 + 0x204);
    *(undefined8 *)(iVar3 + 0xbc) = 0;
    *(undefined4 *)(iVar3 + 0x208) = 0;
    *(undefined4 *)(iVar3 + 0x20c) = 0;
    *(undefined4 *)(iVar3 + 0x204) = uVar1;
    *(undefined4 *)(iVar3 + 0x240) = 1;
    *(undefined4 *)(iVar3 + 0x84) = 4;
    SetImageBackgroundColor(iVar3,param_2);
    local_34 = NewImageList();
    local_4c = iVar2;
    do {
      iVar4 = CloneImage(iVar3,0,0,1,param_2);
      iVar5 = iVar4;
      if (iVar4 == 0) {
LAB_000ec7b0:
        local_34 = DestroyImageList(local_34);
        DestroyImage(iVar3);
        goto LAB_000ec7cb;
      }
      iVar5 = *(int *)(iVar2 + 0x294);
      *(undefined4 *)(iVar4 + 0x84) = 4;
      CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,
                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);
      if (*(int *)(iVar2 + 0x240) == 2) {
        local_24 = *(int *)(iVar2 + 0x20c);
        local_28 = *(int *)(iVar2 + 0x208);
        local_30 = *(int *)(iVar2 + 0x18);
        if (local_28 < 0) {
          local_30 = local_30 + local_28;
          local_28 = 0;
        }
        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {
          local_30 = *(int *)(iVar4 + 0x18) - local_28;
        }
        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;
        local_2c = *(int *)(iVar2 + 0x1c);
        if (local_24 < 0) {
          local_24 = 0;
          local_2c = iVar5;
        }
        if (*(int *)(iVar4 + 0x1c) < iVar5) {
          local_2c = *(int *)(iVar4 + 0x1c) - local_24;
        }
        FUN_000e9f60();
        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;
LAB_000ec77a:
        DestroyImage(iVar4);
        iVar4 = iVar3;
      }
      else {
        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;
LAB_000ec5f9:
        DestroyImage(iVar3);
      }
      iVar5 = CloneImage(iVar4,0,0,1,param_2);
      iVar3 = iVar4;
      if (iVar5 == 0) goto LAB_000ec7b0;
      *(undefined4 *)(iVar4 + 0x84) = 4;
      CloneImageProfiles(iVar5,iVar2);
      CloneImageProperties(iVar5,iVar2);
      CloneImageArtifacts(iVar5,iVar2);
      uVar1 = *(undefined4 *)(iVar2 + 0x240);
      *(undefined4 *)(iVar5 + 0x208) = 0;
      *(undefined4 *)(iVar5 + 0x20c) = 0;
      *(undefined4 *)(iVar5 + 0x240) = uVar1;
      AppendImageToList(&local_34,iVar5);
      local_4c = GetNextImageInList(local_4c);
    } while (local_4c != 0);
    DestroyImage(iVar4);
    iVar5 = GetFirstImageInList(local_34);
  }
LAB_000ec7cb:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0029eab0();
  }
  return iVar5;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00038830
ADD EBX,0x2ecb27
SUB ESP,0x4c
MOV EAX,dword ptr [ESP + 0x64]
MOV ESI,dword ptr [ESP + 0x60]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x3c],EAX
XOR EAX,EAX
TEST ESI,ESI
JZ 0x000ec895
CMP dword ptr [ESI + 0x3344],0xabacadab
JNZ 0x000ec876
MOV EAX,dword ptr [ESI + 0x3328]
TEST EAX,EAX
JNZ 0x000ec7f0
MOV EAX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JZ 0x000ec857
MOV EAX,dword ptr [ESP + 0xc]
CMP dword ptr [EAX + 0x1c],0xabacadab
JNZ 0x000ec8b9
SUB ESP,0xc
PUSH ESI
CALL 0x00031a70
MOV ESI,dword ptr [ESP + 0x1c]
MOV EDI,EAX
MOV dword ptr [ESP],ESI
PUSH 0x1
PUSH dword ptr [EAX + 0x204]
PUSH dword ptr [EAX + 0x200]
PUSH EAX
CALL 0x00030b90
ADD ESP,0x20
MOV EBP,EAX
TEST EAX,EAX
JZ 0x000ec850
MOV EAX,dword ptr [EDI + 0x200]
FLDZ
SUB ESP,0x8
MOV dword ptr [EBP + 0x200],EAX
MOV EAX,dword ptr [EDI + 0x204]
FSTP qword ptr [EBP + 0xbc]
MOV dword ptr [EBP + 0x208],0x0
MOV dword ptr [EBP + 0x20c],0x0
MOV dword ptr [EBP + 0x204],EAX
MOV dword ptr [EBP + 0x240],0x1
MOV dword ptr [EBP + 0x84],0x4
PUSH ESI
PUSH EBP
CALL 0x000330a0
ADD ESP,0x10
CALL 0x000330d0
MOV dword ptr [ESP + 0x10],EDI
MOV dword ptr [ESP + 0x28],EAX
LEA EAX,[ESP + 0x2c]
MOV dword ptr [ESP + 0x1c],EAX
LEA EAX,[ESP + 0x28]
MOV dword ptr [ESP + 0x14],EAX
JMP 0x000ec692
CMP EAX,0x3
JZ 0x000ec77a
SUB ESP,0xc
PUSH EBP
MOV EBP,ESI
CALL 0x00032dd0
ADD ESP,0x10
SUB ESP,0xc
PUSH dword ptr [ESP + 0x18]
PUSH 0x1
PUSH 0x0
PUSH 0x0
PUSH EBP
CALL 0x00030b90
ADD ESP,0x20
MOV ESI,EAX
TEST EAX,EAX
JZ 0x000ec7b0
MOV dword ptr [EBP + 0x84],0x4
SUB ESP,0x8
PUSH EDI
PUSH EAX
CALL 0x00031e70
POP EDX
POP ECX
PUSH EDI
PUSH ESI
CALL 0x00032480
POP EAX
POP EDX
PUSH EDI
PUSH ESI
CALL 0x000317e0
MOV EAX,dword ptr [EDI + 0x240]
MOV dword ptr [ESI + 0x208],0x0
MOV dword ptr [ESI + 0x20c],0x0
MOV dword ptr [ESI + 0x240],EAX
POP ECX
POP EAX
PUSH ESI
PUSH dword ptr [ESP + 0x20]
CALL 0x00030a60
POP EAX
PUSH dword ptr [ESP + 0x1c]
CALL 0x000319e0
ADD ESP,0x10
MOV dword ptr [ESP + 0x10],EAX
TEST EAX,EAX
JZ 0x000ec830
SUB ESP,0xc
PUSH dword ptr [ESP + 0x18]
PUSH 0x1
PUSH 0x0
PUSH 0x0
PUSH EBP
CALL 0x00030b90
ADD ESP,0x20
MOV ESI,EAX
TEST EAX,EAX
JZ 0x000ec7b0
CMP dword ptr [EDI + 0x294],0x1
MOV dword ptr [EAX + 0x84],0x4
SBB EAX,EAX
SUB ESP,0x4
PUSH dword ptr [ESP + 0x10]
AND EAX,0xffffffd7
PUSH dword ptr [EDI + 0x20c]
ADD EAX,0x36
PUSH dword ptr [EDI + 0x208]
PUSH 0x1
PUSH EAX
PUSH EDI
PUSH ESI
CALL 0x000337f0
MOV EAX,dword ptr [EDI + 0x240]
ADD ESP,0x20
CMP EAX,0x2
JNZ 0x000ec5f0
MOV EDX,dword ptr [EDI + 0x20c]
MOV EAX,dword ptr [EDI + 0x208]
MOV ECX,dword ptr [EDI + 0x1c]
MOV dword ptr [ESP + 0x38],EDX
MOV EDX,dword ptr [EDI + 0x18]
TEST EAX,EAX
MOV dword ptr [ESP + 0x34],EAX
MOV dword ptr [ESP + 0x30],ECX
MOV dword ptr [ESP + 0x2c],EDX
JS 0x000ec790
MOV dword ptr [ESP + 0x18],EAX
MOV EAX,dword ptr [ESI + 0x18]
ADD EDX,dword ptr [ESP + 0x18]
CMP EDX,EAX
JLE 0x000ec737
SUB EAX,dword ptr [ESP + 0x18]
MOV dword ptr [ESP + 0x2c],EAX
MOV EAX,dword ptr [ESP + 0x38]
ADD ECX,EAX
TEST EAX,EAX
JNS 0x000ec74f
MOV dword ptr [ESP + 0x30],ECX
XOR EAX,EAX
MOV dword ptr [ESP + 0x38],0x0
MOV EDX,dword ptr [ESI + 0x1c]
CMP ECX,EDX
JLE 0x000ec75c
SUB EDX,EAX
MOV dword ptr [ESP + 0x30],EDX
MOV ECX,dword ptr [ESP + 0xc]
MOV EAX,ESI
MOV EDX,dword ptr [ESP + 0x1c]
CALL 0x000e9f60
MOV EAX,dword ptr [EDI + 0x240]
CMP EAX,0x3
JNZ 0x000ec5f9
SUB ESP,0xc
PUSH ESI
CALL 0x00032dd0
ADD ESP,0x10
JMP 0x000ec607
ADD EDX,EAX
MOV dword ptr [ESP + 0x34],0x0
MOV dword ptr [ESP + 0x2c],EDX
MOV dword ptr [ESP + 0x18],0x0
JMP 0x000ec724
SUB ESP,0xc
PUSH dword ptr [ESP + 0x34]
CALL 0x000317a0
MOV dword ptr [ESP + 0x38],EAX
MOV dword ptr [ESP],EBP
CALL 0x00032dd0
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x3c]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x000ec8b4
ADD ESP,0x4c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[ESI + 0x318]
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xffedde4e]
PUSH EAX
LEA EAX,[EBX + 0xffedf364]
PUSH 0x19f
PUSH EAX
LEA EAX,[EBX + 0xffedf083]
PUSH EAX
PUSH 0x8000
CALL 0x000323b0
ADD ESP,0x20
JMP 0x000ec520
SUB ESP,0xc
PUSH EBP
CALL 0x00032dd0
POP EAX
PUSH dword ptr [ESP + 0x34]
CALL 0x00031a70
ADD ESP,0x10
MOV ESI,EAX
JMP 0x000ec7cb
XOR ESI,ESI
JMP 0x000ec7cb
LEA EAX,[EBX + 0xffedf374]
PUSH EAX
LEA EAX,[EBX + 0xffedf083]
PUSH 0x1a0
PUSH EAX
LEA EAX,[EBX + 0xffec6a3c]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffedf374]
PUSH EAX
LEA EAX,[EBX + 0xffedf083]
PUSH 0x19d
PUSH EAX
LEA EAX,[EBX + 0xffec6b9c]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffedf374]
PUSH EAX
LEA EAX,[EBX + 0xffedf083]
PUSH 0x19c
PUSH EAX
LEA EAX,[EBX + 0xfff3700d]
PUSH EAX
CALL 0x000313d0
CALL 0x0029eab0
LEA EAX,[EBX + 0xffedf374]
PUSH EAX
LEA EAX,[EBX + 0xffedf083]
PUSH 0x1a1
PUSH EAX
LEA EAX,[EBX + 0xffec776c]
PUSH EAX
CALL 0x000313d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint DisposeImages(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int local_4c;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xec4d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/layer.c","DisposeImages",0x19f,&DAT_002b6e4e,param_1 + 0x318);\n  }\n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages");\n  }\n  if (*(int *)(param_2 + 0x1c) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages");\n  }\n  iVar2 = GetFirstImageInList(param_1);\n  iVar3 = CloneImage(iVar2,*(undefined4 *)(iVar2 + 0x200),*(undefined4 *)(iVar2 + 0x204),1,param_2);\n  if (iVar3 == 0) {\n    iVar5 = 0;\n  }\n  else {\n    *(undefined4 *)(iVar3 + 0x200) = *(undefined4 *)(iVar2 + 0x200);\n    uVar1 = *(undefined4 *)(iVar2 + 0x204);\n    *(undefined8 *)(iVar3 + 0xbc) = 0;\n    *(undefined4 *)(iVar3 + 0x208) = 0;\n    *(undefined4 *)(iVar3 + 0x20c) = 0;\n    *(undefined4 *)(iVar3 + 0x204) = uVar1;\n    *(undefined4 *)(iVar3 + 0x240) = 1;\n    *(undefined4 *)(iVar3 + 0x84) = 4;\n    SetImageBackgroundColor(iVar3,param_2);\n    local_34 = NewImageList();\n    local_4c = iVar2;\n    do {\n      iVar4 = CloneImage(iVar3,0,0,1,param_2);\n      iVar5 = iVar4;\n      if (iVar4 == 0) {\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }\n      iVar5 = *(int *)(iVar2 + 0x294);\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);\n      if (*(int *)(iVar2 + 0x240) == 2) {\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }\n      else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }\n      iVar5 = CloneImage(iVar4,0,0,1,param_2);\n      iVar3 = iVar4;\n      if (iVar5 == 0) goto LAB_000ec7b0;\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CloneImageProfiles(iVar5,iVar2);\n      CloneImageProperties(iVar5,iVar2);\n      CloneImageArtifacts(iVar5,iVar2);\n      uVar1 = *(undefined4 *)(iVar2 + 0x240);\n      *(undefined4 *)(iVar5 + 0x208) = 0;\n      *(undefined4 *)(iVar5 + 0x20c) = 0;\n      *(undefined4 *)(iVar5 + 0x240) = uVar1;\n      AppendImageToList(&local_34,iVar5);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != 0);\n    DestroyImage(iVar4);\n    iVar5 = GetFirstImageInList(local_34);\n  }\nLAB_000ec7cb:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }\n  return iVar5;\n}\n\n" comment (function_definition "int DisposeImages(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int local_4c;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xec4d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/layer.c","DisposeImages",0x19f,&DAT_002b6e4e,param_1 + 0x318);\n  }\n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages");\n  }\n  if (*(int *)(param_2 + 0x1c) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages");\n  }\n  iVar2 = GetFirstImageInList(param_1);\n  iVar3 = CloneImage(iVar2,*(undefined4 *)(iVar2 + 0x200),*(undefined4 *)(iVar2 + 0x204),1,param_2);\n  if (iVar3 == 0) {\n    iVar5 = 0;\n  }\n  else {\n    *(undefined4 *)(iVar3 + 0x200) = *(undefined4 *)(iVar2 + 0x200);\n    uVar1 = *(undefined4 *)(iVar2 + 0x204);\n    *(undefined8 *)(iVar3 + 0xbc) = 0;\n    *(undefined4 *)(iVar3 + 0x208) = 0;\n    *(undefined4 *)(iVar3 + 0x20c) = 0;\n    *(undefined4 *)(iVar3 + 0x204) = uVar1;\n    *(undefined4 *)(iVar3 + 0x240) = 1;\n    *(undefined4 *)(iVar3 + 0x84) = 4;\n    SetImageBackgroundColor(iVar3,param_2);\n    local_34 = NewImageList();\n    local_4c = iVar2;\n    do {\n      iVar4 = CloneImage(iVar3,0,0,1,param_2);\n      iVar5 = iVar4;\n      if (iVar4 == 0) {\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }\n      iVar5 = *(int *)(iVar2 + 0x294);\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);\n      if (*(int *)(iVar2 + 0x240) == 2) {\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }\n      else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }\n      iVar5 = CloneImage(iVar4,0,0,1,param_2);\n      iVar3 = iVar4;\n      if (iVar5 == 0) goto LAB_000ec7b0;\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CloneImageProfiles(iVar5,iVar2);\n      CloneImageProperties(iVar5,iVar2);\n      CloneImageArtifacts(iVar5,iVar2);\n      uVar1 = *(undefined4 *)(iVar2 + 0x240);\n      *(undefined4 *)(iVar5 + 0x208) = 0;\n      *(undefined4 *)(iVar5 + 0x20c) = 0;\n      *(undefined4 *)(iVar5 + 0x240) = uVar1;\n      AppendImageToList(&local_34,iVar5);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != 0);\n    DestroyImage(iVar4);\n    iVar5 = GetFirstImageInList(local_34);\n  }\nLAB_000ec7cb:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }\n  return iVar5;\n}" primitive_type (function_declarator "DisposeImages(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int local_4c;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xec4d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/layer.c","DisposeImages",0x19f,&DAT_002b6e4e,param_1 + 0x318);\n  }\n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages");\n  }\n  if (*(int *)(param_2 + 0x1c) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages");\n  }\n  iVar2 = GetFirstImageInList(param_1);\n  iVar3 = CloneImage(iVar2,*(undefined4 *)(iVar2 + 0x200),*(undefined4 *)(iVar2 + 0x204),1,param_2);\n  if (iVar3 == 0) {\n    iVar5 = 0;\n  }\n  else {\n    *(undefined4 *)(iVar3 + 0x200) = *(undefined4 *)(iVar2 + 0x200);\n    uVar1 = *(undefined4 *)(iVar2 + 0x204);\n    *(undefined8 *)(iVar3 + 0xbc) = 0;\n    *(undefined4 *)(iVar3 + 0x208) = 0;\n    *(undefined4 *)(iVar3 + 0x20c) = 0;\n    *(undefined4 *)(iVar3 + 0x204) = uVar1;\n    *(undefined4 *)(iVar3 + 0x240) = 1;\n    *(undefined4 *)(iVar3 + 0x84) = 4;\n    SetImageBackgroundColor(iVar3,param_2);\n    local_34 = NewImageList();\n    local_4c = iVar2;\n    do {\n      iVar4 = CloneImage(iVar3,0,0,1,param_2);\n      iVar5 = iVar4;\n      if (iVar4 == 0) {\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }\n      iVar5 = *(int *)(iVar2 + 0x294);\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);\n      if (*(int *)(iVar2 + 0x240) == 2) {\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }\n      else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }\n      iVar5 = CloneImage(iVar4,0,0,1,param_2);\n      iVar3 = iVar4;\n      if (iVar5 == 0) goto LAB_000ec7b0;\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CloneImageProfiles(iVar5,iVar2);\n      CloneImageProperties(iVar5,iVar2);\n      CloneImageArtifacts(iVar5,iVar2);\n      uVar1 = *(undefined4 *)(iVar2 + 0x240);\n      *(undefined4 *)(iVar5 + 0x208) = 0;\n      *(undefined4 *)(iVar5 + 0x20c) = 0;\n      *(undefined4 *)(iVar5 + 0x240) = uVar1;\n      AppendImageToList(&local_34,iVar5);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != 0);\n    DestroyImage(iVar4);\n    iVar5 = GetFirstImageInList(local_34);\n  }\nLAB_000ec7cb:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }\n  return iVar5;\n}" { (declaration "undefined4 uVar1;" type_identifier 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 "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_4c;" primitive_type identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xec4d9;" (assignment_expression "uStack_14 = 0xec4d9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages");\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("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages");\n  }" { comment (expression_statement "__assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages");" (call_expression "__assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages")" identifier (argument_list "("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages")" ( (string_literal ""images != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/layer.c"" " string_content ") , number_literal , (string_literal ""DisposeImages"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages");\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x3344) != -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x3344) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x3344)" * (cast_expression "(int *)(param_1 + 0x3344)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3344)" ( (binary_expression "param_1 + 0x3344" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages");\n  }" { comment (expression_statement "__assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages");" (call_expression "__assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages")" identifier (argument_list "("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages")" ( (string_literal ""images->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/layer.c"" " string_content ") , number_literal , (string_literal ""DisposeImages"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/layer.c","DisposeImages",0x19f,&DAT_002b6e4e,param_1 + 0x318);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x3328) != 0)" ( (binary_expression "*(int *)(param_1 + 0x3328) != 0" (pointer_expression "*(int *)(param_1 + 0x3328)" * (cast_expression "(int *)(param_1 + 0x3328)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3328)" ( (binary_expression "param_1 + 0x3328" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    LogMagickEvent(0x8000,"MagickCore/layer.c","DisposeImages",0x19f,&DAT_002b6e4e,param_1 + 0x318);\n  }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/layer.c","DisposeImages",0x19f,&DAT_002b6e4e,param_1 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/layer.c","DisposeImages",0x19f,&DAT_002b6e4e,param_1 + 0x318)" identifier (argument_list "(0x8000,"MagickCore/layer.c","DisposeImages",0x19f,&DAT_002b6e4e,param_1 + 0x318)" ( number_literal , (string_literal ""MagickCore/layer.c"" " string_content ") , (string_literal ""DisposeImages"" " string_content ") , number_literal , (pointer_expression "&DAT_002b6e4e" & identifier) , (binary_expression "param_1 + 0x318" identifier + number_literal) ))) ;) })) (if_statement "if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages");\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("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages");\n  }" { comment (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/layer.c"" " string_content ") , number_literal , (string_literal ""DisposeImages"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_2 + 0x1c) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages");\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x1c) != -0x54535255)" ( (binary_expression "*(int *)(param_2 + 0x1c) != -0x54535255" (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages");\n  }" { comment (expression_statement "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages");" (call_expression "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages")" identifier (argument_list "("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages")" ( (string_literal ""exception->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/layer.c"" " string_content ") , number_literal , (string_literal ""DisposeImages"" " string_content ") ))) ;) })) (expression_statement "iVar2 = GetFirstImageInList(param_1);" (assignment_expression "iVar2 = GetFirstImageInList(param_1)" identifier = (call_expression "GetFirstImageInList(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar3 = CloneImage(iVar2,*(undefined4 *)(iVar2 + 0x200),*(undefined4 *)(iVar2 + 0x204),1,param_2);" (assignment_expression "iVar3 = CloneImage(iVar2,*(undefined4 *)(iVar2 + 0x200),*(undefined4 *)(iVar2 + 0x204),1,param_2)" identifier = (call_expression "CloneImage(iVar2,*(undefined4 *)(iVar2 + 0x200),*(undefined4 *)(iVar2 + 0x204),1,param_2)" identifier (argument_list "(iVar2,*(undefined4 *)(iVar2 + 0x200),*(undefined4 *)(iVar2 + 0x204),1,param_2)" ( identifier , (pointer_expression "*(undefined4 *)(iVar2 + 0x200)" * (cast_expression "(undefined4 *)(iVar2 + 0x200)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x200)" ( (binary_expression "iVar2 + 0x200" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar2 + 0x204)" * (cast_expression "(undefined4 *)(iVar2 + 0x204)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x204)" ( (binary_expression "iVar2 + 0x204" identifier + number_literal) )))) , number_literal , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n    iVar5 = 0;\n  }\n  else {\n    *(undefined4 *)(iVar3 + 0x200) = *(undefined4 *)(iVar2 + 0x200);\n    uVar1 = *(undefined4 *)(iVar2 + 0x204);\n    *(undefined8 *)(iVar3 + 0xbc) = 0;\n    *(undefined4 *)(iVar3 + 0x208) = 0;\n    *(undefined4 *)(iVar3 + 0x20c) = 0;\n    *(undefined4 *)(iVar3 + 0x204) = uVar1;\n    *(undefined4 *)(iVar3 + 0x240) = 1;\n    *(undefined4 *)(iVar3 + 0x84) = 4;\n    SetImageBackgroundColor(iVar3,param_2);\n    local_34 = NewImageList();\n    local_4c = iVar2;\n    do {\n      iVar4 = CloneImage(iVar3,0,0,1,param_2);\n      iVar5 = iVar4;\n      if (iVar4 == 0) {\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }\n      iVar5 = *(int *)(iVar2 + 0x294);\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);\n      if (*(int *)(iVar2 + 0x240) == 2) {\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }\n      else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }\n      iVar5 = CloneImage(iVar4,0,0,1,param_2);\n      iVar3 = iVar4;\n      if (iVar5 == 0) goto LAB_000ec7b0;\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CloneImageProfiles(iVar5,iVar2);\n      CloneImageProperties(iVar5,iVar2);\n      CloneImageArtifacts(iVar5,iVar2);\n      uVar1 = *(undefined4 *)(iVar2 + 0x240);\n      *(undefined4 *)(iVar5 + 0x208) = 0;\n      *(undefined4 *)(iVar5 + 0x20c) = 0;\n      *(undefined4 *)(iVar5 + 0x240) = uVar1;\n      AppendImageToList(&local_34,iVar5);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != 0);\n    DestroyImage(iVar4);\n    iVar5 = GetFirstImageInList(local_34);\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar5 = 0;\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    *(undefined4 *)(iVar3 + 0x200) = *(undefined4 *)(iVar2 + 0x200);\n    uVar1 = *(undefined4 *)(iVar2 + 0x204);\n    *(undefined8 *)(iVar3 + 0xbc) = 0;\n    *(undefined4 *)(iVar3 + 0x208) = 0;\n    *(undefined4 *)(iVar3 + 0x20c) = 0;\n    *(undefined4 *)(iVar3 + 0x204) = uVar1;\n    *(undefined4 *)(iVar3 + 0x240) = 1;\n    *(undefined4 *)(iVar3 + 0x84) = 4;\n    SetImageBackgroundColor(iVar3,param_2);\n    local_34 = NewImageList();\n    local_4c = iVar2;\n    do {\n      iVar4 = CloneImage(iVar3,0,0,1,param_2);\n      iVar5 = iVar4;\n      if (iVar4 == 0) {\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }\n      iVar5 = *(int *)(iVar2 + 0x294);\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);\n      if (*(int *)(iVar2 + 0x240) == 2) {\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }\n      else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }\n      iVar5 = CloneImage(iVar4,0,0,1,param_2);\n      iVar3 = iVar4;\n      if (iVar5 == 0) goto LAB_000ec7b0;\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CloneImageProfiles(iVar5,iVar2);\n      CloneImageProperties(iVar5,iVar2);\n      CloneImageArtifacts(iVar5,iVar2);\n      uVar1 = *(undefined4 *)(iVar2 + 0x240);\n      *(undefined4 *)(iVar5 + 0x208) = 0;\n      *(undefined4 *)(iVar5 + 0x20c) = 0;\n      *(undefined4 *)(iVar5 + 0x240) = uVar1;\n      AppendImageToList(&local_34,iVar5);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != 0);\n    DestroyImage(iVar4);\n    iVar5 = GetFirstImageInList(local_34);\n  }" else (compound_statement "{\n    *(undefined4 *)(iVar3 + 0x200) = *(undefined4 *)(iVar2 + 0x200);\n    uVar1 = *(undefined4 *)(iVar2 + 0x204);\n    *(undefined8 *)(iVar3 + 0xbc) = 0;\n    *(undefined4 *)(iVar3 + 0x208) = 0;\n    *(undefined4 *)(iVar3 + 0x20c) = 0;\n    *(undefined4 *)(iVar3 + 0x204) = uVar1;\n    *(undefined4 *)(iVar3 + 0x240) = 1;\n    *(undefined4 *)(iVar3 + 0x84) = 4;\n    SetImageBackgroundColor(iVar3,param_2);\n    local_34 = NewImageList();\n    local_4c = iVar2;\n    do {\n      iVar4 = CloneImage(iVar3,0,0,1,param_2);\n      iVar5 = iVar4;\n      if (iVar4 == 0) {\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }\n      iVar5 = *(int *)(iVar2 + 0x294);\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);\n      if (*(int *)(iVar2 + 0x240) == 2) {\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }\n      else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }\n      iVar5 = CloneImage(iVar4,0,0,1,param_2);\n      iVar3 = iVar4;\n      if (iVar5 == 0) goto LAB_000ec7b0;\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CloneImageProfiles(iVar5,iVar2);\n      CloneImageProperties(iVar5,iVar2);\n      CloneImageArtifacts(iVar5,iVar2);\n      uVar1 = *(undefined4 *)(iVar2 + 0x240);\n      *(undefined4 *)(iVar5 + 0x208) = 0;\n      *(undefined4 *)(iVar5 + 0x20c) = 0;\n      *(undefined4 *)(iVar5 + 0x240) = uVar1;\n      AppendImageToList(&local_34,iVar5);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != 0);\n    DestroyImage(iVar4);\n    iVar5 = GetFirstImageInList(local_34);\n  }" { (expression_statement "*(undefined4 *)(iVar3 + 0x200) = *(undefined4 *)(iVar2 + 0x200);" (assignment_expression "*(undefined4 *)(iVar3 + 0x200) = *(undefined4 *)(iVar2 + 0x200)" (pointer_expression "*(undefined4 *)(iVar3 + 0x200)" * (cast_expression "(undefined4 *)(iVar3 + 0x200)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x200)" ( (binary_expression "iVar3 + 0x200" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar2 + 0x200)" * (cast_expression "(undefined4 *)(iVar2 + 0x200)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x200)" ( (binary_expression "iVar2 + 0x200" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(undefined4 *)(iVar2 + 0x204);" (assignment_expression "uVar1 = *(undefined4 *)(iVar2 + 0x204)" identifier = (pointer_expression "*(undefined4 *)(iVar2 + 0x204)" * (cast_expression "(undefined4 *)(iVar2 + 0x204)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x204)" ( (binary_expression "iVar2 + 0x204" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(iVar3 + 0xbc) = 0;" (assignment_expression "*(undefined8 *)(iVar3 + 0xbc) = 0" (pointer_expression "*(undefined8 *)(iVar3 + 0xbc)" * (cast_expression "(undefined8 *)(iVar3 + 0xbc)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xbc)" ( (binary_expression "iVar3 + 0xbc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x208) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x208) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x208)" * (cast_expression "(undefined4 *)(iVar3 + 0x208)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x208)" ( (binary_expression "iVar3 + 0x208" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x20c) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x20c) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x20c)" * (cast_expression "(undefined4 *)(iVar3 + 0x20c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x20c)" ( (binary_expression "iVar3 + 0x20c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x204) = uVar1;" (assignment_expression "*(undefined4 *)(iVar3 + 0x204) = uVar1" (pointer_expression "*(undefined4 *)(iVar3 + 0x204)" * (cast_expression "(undefined4 *)(iVar3 + 0x204)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x204)" ( (binary_expression "iVar3 + 0x204" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x240) = 1;" (assignment_expression "*(undefined4 *)(iVar3 + 0x240) = 1" (pointer_expression "*(undefined4 *)(iVar3 + 0x240)" * (cast_expression "(undefined4 *)(iVar3 + 0x240)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x240)" ( (binary_expression "iVar3 + 0x240" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x84) = 4;" (assignment_expression "*(undefined4 *)(iVar3 + 0x84) = 4" (pointer_expression "*(undefined4 *)(iVar3 + 0x84)" * (cast_expression "(undefined4 *)(iVar3 + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x84)" ( (binary_expression "iVar3 + 0x84" identifier + number_literal) )))) = number_literal) ;) (expression_statement "SetImageBackgroundColor(iVar3,param_2);" (call_expression "SetImageBackgroundColor(iVar3,param_2)" identifier (argument_list "(iVar3,param_2)" ( identifier , identifier ))) ;) (expression_statement "local_34 = NewImageList();" (assignment_expression "local_34 = NewImageList()" identifier = (call_expression "NewImageList()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_4c = iVar2;" (assignment_expression "local_4c = iVar2" identifier = identifier) ;) (do_statement "do {\n      iVar4 = CloneImage(iVar3,0,0,1,param_2);\n      iVar5 = iVar4;\n      if (iVar4 == 0) {\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }\n      iVar5 = *(int *)(iVar2 + 0x294);\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);\n      if (*(int *)(iVar2 + 0x240) == 2) {\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }\n      else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }\n      iVar5 = CloneImage(iVar4,0,0,1,param_2);\n      iVar3 = iVar4;\n      if (iVar5 == 0) goto LAB_000ec7b0;\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CloneImageProfiles(iVar5,iVar2);\n      CloneImageProperties(iVar5,iVar2);\n      CloneImageArtifacts(iVar5,iVar2);\n      uVar1 = *(undefined4 *)(iVar2 + 0x240);\n      *(undefined4 *)(iVar5 + 0x208) = 0;\n      *(undefined4 *)(iVar5 + 0x20c) = 0;\n      *(undefined4 *)(iVar5 + 0x240) = uVar1;\n      AppendImageToList(&local_34,iVar5);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != 0);" do (compound_statement "{\n      iVar4 = CloneImage(iVar3,0,0,1,param_2);\n      iVar5 = iVar4;\n      if (iVar4 == 0) {\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }\n      iVar5 = *(int *)(iVar2 + 0x294);\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);\n      if (*(int *)(iVar2 + 0x240) == 2) {\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }\n      else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }\n      iVar5 = CloneImage(iVar4,0,0,1,param_2);\n      iVar3 = iVar4;\n      if (iVar5 == 0) goto LAB_000ec7b0;\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CloneImageProfiles(iVar5,iVar2);\n      CloneImageProperties(iVar5,iVar2);\n      CloneImageArtifacts(iVar5,iVar2);\n      uVar1 = *(undefined4 *)(iVar2 + 0x240);\n      *(undefined4 *)(iVar5 + 0x208) = 0;\n      *(undefined4 *)(iVar5 + 0x20c) = 0;\n      *(undefined4 *)(iVar5 + 0x240) = uVar1;\n      AppendImageToList(&local_34,iVar5);\n      local_4c = GetNextImageInList(local_4c);\n    }" { (expression_statement "iVar4 = CloneImage(iVar3,0,0,1,param_2);" (assignment_expression "iVar4 = CloneImage(iVar3,0,0,1,param_2)" identifier = (call_expression "CloneImage(iVar3,0,0,1,param_2)" identifier (argument_list "(iVar3,0,0,1,param_2)" ( identifier , number_literal , number_literal , number_literal , identifier )))) ;) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) (if_statement "if (iVar4 == 0) {\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }" { (labeled_statement "LAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);" statement_identifier : (expression_statement "local_34 = DestroyImageList(local_34);" (assignment_expression "local_34 = DestroyImageList(local_34)" identifier = (call_expression "DestroyImageList(local_34)" identifier (argument_list "(local_34)" ( identifier )))) ;)) (expression_statement "DestroyImage(iVar3);" (call_expression "DestroyImage(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (goto_statement "goto LAB_000ec7cb;" goto statement_identifier ;) })) (expression_statement "iVar5 = *(int *)(iVar2 + 0x294);" (assignment_expression "iVar5 = *(int *)(iVar2 + 0x294)" identifier = (pointer_expression "*(int *)(iVar2 + 0x294)" * (cast_expression "(int *)(iVar2 + 0x294)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x294)" ( (binary_expression "iVar2 + 0x294" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar4 + 0x84) = 4;" (assignment_expression "*(undefined4 *)(iVar4 + 0x84) = 4" (pointer_expression "*(undefined4 *)(iVar4 + 0x84)" * (cast_expression "(undefined4 *)(iVar4 + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x84)" ( (binary_expression "iVar4 + 0x84" identifier + number_literal) )))) = number_literal) ;) (expression_statement "CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);" (call_expression "CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2)" identifier (argument_list "(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2)" ( identifier , identifier , (binary_expression "(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36" (parenthesized_expression "(-(uint)(iVar5 == 0) & 0xffffffd7)" ( (binary_expression "-(uint)(iVar5 == 0) & 0xffffffd7" (unary_expression "-(uint)(iVar5 == 0)" - (call_expression "(uint)(iVar5 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )))) & number_literal) )) + number_literal) , number_literal , (pointer_expression "*(undefined4 *)(iVar2 + 0x208)" * (cast_expression "(undefined4 *)(iVar2 + 0x208)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x208)" ( (binary_expression "iVar2 + 0x208" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar2 + 0x20c)" * (cast_expression "(undefined4 *)(iVar2 + 0x20c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x20c)" ( (binary_expression "iVar2 + 0x20c" identifier + number_literal) )))) , identifier ))) ;) (if_statement "if (*(int *)(iVar2 + 0x240) == 2) {\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }\n      else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }" if (parenthesized_expression "(*(int *)(iVar2 + 0x240) == 2)" ( (binary_expression "*(int *)(iVar2 + 0x240) == 2" (pointer_expression "*(int *)(iVar2 + 0x240)" * (cast_expression "(int *)(iVar2 + 0x240)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x240)" ( (binary_expression "iVar2 + 0x240" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }" { (expression_statement "local_24 = *(int *)(iVar2 + 0x20c);" (assignment_expression "local_24 = *(int *)(iVar2 + 0x20c)" identifier = (pointer_expression "*(int *)(iVar2 + 0x20c)" * (cast_expression "(int *)(iVar2 + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x20c)" ( (binary_expression "iVar2 + 0x20c" identifier + number_literal) ))))) ;) (expression_statement "local_28 = *(int *)(iVar2 + 0x208);" (assignment_expression "local_28 = *(int *)(iVar2 + 0x208)" identifier = (pointer_expression "*(int *)(iVar2 + 0x208)" * (cast_expression "(int *)(iVar2 + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x208)" ( (binary_expression "iVar2 + 0x208" identifier + number_literal) ))))) ;) (expression_statement "local_30 = *(int *)(iVar2 + 0x18);" (assignment_expression "local_30 = *(int *)(iVar2 + 0x18)" identifier = (pointer_expression "*(int *)(iVar2 + 0x18)" * (cast_expression "(int *)(iVar2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }" if (parenthesized_expression "(local_28 < 0)" ( (binary_expression "local_28 < 0" identifier < number_literal) )) (compound_statement "{\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }" { (expression_statement "local_30 = local_30 + local_28;" (assignment_expression "local_30 = local_30 + local_28" identifier = (binary_expression "local_30 + local_28" identifier + identifier)) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) })) (if_statement "if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }" if (parenthesized_expression "(*(int *)(iVar4 + 0x18) < local_30 + local_28)" ( (binary_expression "*(int *)(iVar4 + 0x18) < local_30 + local_28" (pointer_expression "*(int *)(iVar4 + 0x18)" * (cast_expression "(int *)(iVar4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x18)" ( (binary_expression "iVar4 + 0x18" identifier + number_literal) )))) < (binary_expression "local_30 + local_28" identifier + identifier)) )) (compound_statement "{\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }" { (expression_statement "local_30 = *(int *)(iVar4 + 0x18) - local_28;" (assignment_expression "local_30 = *(int *)(iVar4 + 0x18) - local_28" identifier = (binary_expression "*(int *)(iVar4 + 0x18) - local_28" (pointer_expression "*(int *)(iVar4 + 0x18)" * (cast_expression "(int *)(iVar4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x18)" ( (binary_expression "iVar4 + 0x18" identifier + number_literal) )))) - identifier)) ;) })) (expression_statement "iVar5 = *(int *)(iVar2 + 0x1c) + local_24;" (assignment_expression "iVar5 = *(int *)(iVar2 + 0x1c) + local_24" identifier = (binary_expression "*(int *)(iVar2 + 0x1c) + local_24" (pointer_expression "*(int *)(iVar2 + 0x1c)" * (cast_expression "(int *)(iVar2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) )))) + identifier)) ;) (expression_statement "local_2c = *(int *)(iVar2 + 0x1c);" (assignment_expression "local_2c = *(int *)(iVar2 + 0x1c)" identifier = (pointer_expression "*(int *)(iVar2 + 0x1c)" * (cast_expression "(int *)(iVar2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) ))))) ;) (if_statement "if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }" if (parenthesized_expression "(local_24 < 0)" ( (binary_expression "local_24 < 0" identifier < number_literal) )) (compound_statement "{\n          local_24 = 0;\n          local_2c = iVar5;\n        }" { (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_2c = iVar5;" (assignment_expression "local_2c = iVar5" identifier = identifier) ;) })) (if_statement "if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }" if (parenthesized_expression "(*(int *)(iVar4 + 0x1c) < iVar5)" ( (binary_expression "*(int *)(iVar4 + 0x1c) < iVar5" (pointer_expression "*(int *)(iVar4 + 0x1c)" * (cast_expression "(int *)(iVar4 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x1c)" ( (binary_expression "iVar4 + 0x1c" identifier + number_literal) )))) < identifier) )) (compound_statement "{\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }" { (expression_statement "local_2c = *(int *)(iVar4 + 0x1c) - local_24;" (assignment_expression "local_2c = *(int *)(iVar4 + 0x1c) - local_24" identifier = (binary_expression "*(int *)(iVar4 + 0x1c) - local_24" (pointer_expression "*(int *)(iVar4 + 0x1c)" * (cast_expression "(int *)(iVar4 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x1c)" ( (binary_expression "iVar4 + 0x1c" identifier + number_literal) )))) - identifier)) ;) })) (expression_statement "FUN_000e9f60();" (call_expression "FUN_000e9f60()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;" if (parenthesized_expression "(*(int *)(iVar2 + 0x240) != 3)" ( (binary_expression "*(int *)(iVar2 + 0x240) != 3" (pointer_expression "*(int *)(iVar2 + 0x240)" * (cast_expression "(int *)(iVar2 + 0x240)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x240)" ( (binary_expression "iVar2 + 0x240" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_000ec5f9;" goto statement_identifier ;)) (labeled_statement "LAB_000ec77a:\n        DestroyImage(iVar4);" statement_identifier : (expression_statement "DestroyImage(iVar4);" (call_expression "DestroyImage(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;)) (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;) }) (else_clause "else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }" else (compound_statement "{\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }" { (if_statement "if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;" if (parenthesized_expression "(*(int *)(iVar2 + 0x240) == 3)" ( (binary_expression "*(int *)(iVar2 + 0x240) == 3" (pointer_expression "*(int *)(iVar2 + 0x240)" * (cast_expression "(int *)(iVar2 + 0x240)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x240)" ( (binary_expression "iVar2 + 0x240" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_000ec77a;" goto statement_identifier ;)) (labeled_statement "LAB_000ec5f9:\n        DestroyImage(iVar3);" statement_identifier : (expression_statement "DestroyImage(iVar3);" (call_expression "DestroyImage(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;)) }))) (expression_statement "iVar5 = CloneImage(iVar4,0,0,1,param_2);" (assignment_expression "iVar5 = CloneImage(iVar4,0,0,1,param_2)" identifier = (call_expression "CloneImage(iVar4,0,0,1,param_2)" identifier (argument_list "(iVar4,0,0,1,param_2)" ( identifier , number_literal , number_literal , number_literal , identifier )))) ;) (expression_statement "iVar3 = iVar4;" (assignment_expression "iVar3 = iVar4" identifier = identifier) ;) (if_statement "if (iVar5 == 0) goto LAB_000ec7b0;" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000ec7b0;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)(iVar4 + 0x84) = 4;" (assignment_expression "*(undefined4 *)(iVar4 + 0x84) = 4" (pointer_expression "*(undefined4 *)(iVar4 + 0x84)" * (cast_expression "(undefined4 *)(iVar4 + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x84)" ( (binary_expression "iVar4 + 0x84" identifier + number_literal) )))) = number_literal) ;) (expression_statement "CloneImageProfiles(iVar5,iVar2);" (call_expression "CloneImageProfiles(iVar5,iVar2)" identifier (argument_list "(iVar5,iVar2)" ( identifier , identifier ))) ;) (expression_statement "CloneImageProperties(iVar5,iVar2);" (call_expression "CloneImageProperties(iVar5,iVar2)" identifier (argument_list "(iVar5,iVar2)" ( identifier , identifier ))) ;) (expression_statement "CloneImageArtifacts(iVar5,iVar2);" (call_expression "CloneImageArtifacts(iVar5,iVar2)" identifier (argument_list "(iVar5,iVar2)" ( identifier , identifier ))) ;) (expression_statement "uVar1 = *(undefined4 *)(iVar2 + 0x240);" (assignment_expression "uVar1 = *(undefined4 *)(iVar2 + 0x240)" identifier = (pointer_expression "*(undefined4 *)(iVar2 + 0x240)" * (cast_expression "(undefined4 *)(iVar2 + 0x240)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x240)" ( (binary_expression "iVar2 + 0x240" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar5 + 0x208) = 0;" (assignment_expression "*(undefined4 *)(iVar5 + 0x208) = 0" (pointer_expression "*(undefined4 *)(iVar5 + 0x208)" * (cast_expression "(undefined4 *)(iVar5 + 0x208)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x208)" ( (binary_expression "iVar5 + 0x208" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar5 + 0x20c) = 0;" (assignment_expression "*(undefined4 *)(iVar5 + 0x20c) = 0" (pointer_expression "*(undefined4 *)(iVar5 + 0x20c)" * (cast_expression "(undefined4 *)(iVar5 + 0x20c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x20c)" ( (binary_expression "iVar5 + 0x20c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar5 + 0x240) = uVar1;" (assignment_expression "*(undefined4 *)(iVar5 + 0x240) = uVar1" (pointer_expression "*(undefined4 *)(iVar5 + 0x240)" * (cast_expression "(undefined4 *)(iVar5 + 0x240)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x240)" ( (binary_expression "iVar5 + 0x240" identifier + number_literal) )))) = identifier) ;) (expression_statement "AppendImageToList(&local_34,iVar5);" (call_expression "AppendImageToList(&local_34,iVar5)" identifier (argument_list "(&local_34,iVar5)" ( (pointer_expression "&local_34" & identifier) , identifier ))) ;) (expression_statement "local_4c = GetNextImageInList(local_4c);" (assignment_expression "local_4c = GetNextImageInList(local_4c)" identifier = (call_expression "GetNextImageInList(local_4c)" identifier (argument_list "(local_4c)" ( identifier )))) ;) }) while (parenthesized_expression "(local_4c != 0)" ( (binary_expression "local_4c != 0" identifier != number_literal) )) ;) (expression_statement "DestroyImage(iVar4);" (call_expression "DestroyImage(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (expression_statement "iVar5 = GetFirstImageInList(local_34);" (assignment_expression "iVar5 = GetFirstImageInList(local_34)" identifier = (call_expression "GetFirstImageInList(local_34)" identifier (argument_list "(local_34)" ( identifier )))) ;) }))) (labeled_statement "LAB_000ec7cb:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }" { comment (expression_statement "FUN_0029eab0();" (call_expression "FUN_0029eab0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* WARNING: Enum "DisposeType": Some values do not have unique names */\n/* WARNING: Enum "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "PixelChannel": Some values do not have unique names */\n/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n/* WARNING: Enum "LogEventType": Some values do not have unique names */\n\nImage * DisposeImages(Image *images,ExceptionInfo *exception)\n\n{\n  int iVar1;\n  DisposeType DVar2;\n  PixelTrait PVar3;\n  Image *image;\n  Image *image_00;\n  Image *image_01;\n  Image *image_02;\n  size_t sVar4;\n  int in_GS_OFFSET;\n  Image *local_4c;\n  Image *dispose_images;\n  RectangleInfo bounds;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (images == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages");\n  }\n  if (images->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages");\n  }\n  if (images->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/layer.c","DisposeImages",0x19f,"%s",images->filename);\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages");\n  }\n  if (exception->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages");\n  }\n  image = GetFirstImageInList(images);\n  image_00 = CloneImage(image,(image->page).width,(image->page).height,MagickTrue,exception);\n  if (image_00 == (Image *)0x0) {\n    image_01 = (Image *)0x0;\n  }\n  else {\n    (image_00->page).width = (image->page).width;\n    sVar4 = (image->page).height;\n    (image_00->background_color).alpha = 0.0;\n    (image_00->page).x = 0;\n    (image_00->page).y = 0;\n    (image_00->page).height = sVar4;\n    image_00->dispose = NoneDispose;\n    (image_00->background_color).alpha_trait = BlendPixelTrait;\n    SetImageBackgroundColor(image_00,exception);\n    dispose_images = NewImageList();\n    local_4c = image;\n    do {\n      image_02 = CloneImage(image_00,0,0,MagickTrue,exception);\n      image_01 = image_02;\n      if (image_02 == (Image *)0x0) {\nLAB_000ec7b0:\n        dispose_images = DestroyImageList(dispose_images);\n        DestroyImage(image_00);\n        goto LAB_000ec7cb;\n      }\n      PVar3 = image->alpha_trait;\n      (image_02->background_color).alpha_trait = BlendPixelTrait;\n      CompositeImage(image_02,image,\n                     (-(uint)(PVar3 == UndefinedPixelTrait) & 0xffffffd7) + OverCompositeOp,\n                     MagickTrue,(image->page).x,(image->page).y,exception);\n      if (image->dispose == BackgroundDispose) {\n        bounds.y = (image->page).y;\n        bounds.x = (image->page).x;\n        bounds.width = image->columns;\n        if (bounds.x < 0) {\n          bounds.width = bounds.width + bounds.x;\n          bounds.x = 0;\n        }\n        if ((int)image_02->columns < (int)(bounds.width + bounds.x)) {\n          bounds.width = image_02->columns - bounds.x;\n        }\n        sVar4 = image->rows + bounds.y;\n        bounds.height = image->rows;\n        if (bounds.y < 0) {\n          bounds.y = 0;\n          bounds.height = sVar4;\n        }\n        if ((int)image_02->rows < (int)sVar4) {\n          bounds.height = image_02->rows - bounds.y;\n        }\n        ClearBounds(image_02,&bounds,exception);\n        if (image->dispose != PreviousDispose) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(image_02);\n        image_02 = image_00;\n      }\n      else {\n        if (image->dispose == PreviousDispose) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(image_00);\n      }\n      image_01 = CloneImage(image_02,0,0,MagickTrue,exception);\n      image_00 = image_02;\n      if (image_01 == (Image *)0x0) goto LAB_000ec7b0;\n      (image_02->background_color).alpha_trait = BlendPixelTrait;\n      CloneImageProfiles(image_01,image);\n      CloneImageProperties(image_01,image);\n      CloneImageArtifacts(image_01,image);\n      DVar2 = image->dispose;\n      (image_01->page).x = 0;\n      (image_01->page).y = 0;\n      image_01->dispose = DVar2;\n      AppendImageToList(&dispose_images,image_01);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != (Image *)0x0);\n    DestroyImage(image_02);\n    image_01 = GetFirstImageInList(dispose_images);\n  }\nLAB_000ec7cb:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return image_01;\n}\n\n" comment comment comment comment comment comment comment comment (function_definition "Image * DisposeImages(Image *images,ExceptionInfo *exception)\n\n{\n  int iVar1;\n  DisposeType DVar2;\n  PixelTrait PVar3;\n  Image *image;\n  Image *image_00;\n  Image *image_01;\n  Image *image_02;\n  size_t sVar4;\n  int in_GS_OFFSET;\n  Image *local_4c;\n  Image *dispose_images;\n  RectangleInfo bounds;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (images == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages");\n  }\n  if (images->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages");\n  }\n  if (images->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/layer.c","DisposeImages",0x19f,"%s",images->filename);\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages");\n  }\n  if (exception->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages");\n  }\n  image = GetFirstImageInList(images);\n  image_00 = CloneImage(image,(image->page).width,(image->page).height,MagickTrue,exception);\n  if (image_00 == (Image *)0x0) {\n    image_01 = (Image *)0x0;\n  }\n  else {\n    (image_00->page).width = (image->page).width;\n    sVar4 = (image->page).height;\n    (image_00->background_color).alpha = 0.0;\n    (image_00->page).x = 0;\n    (image_00->page).y = 0;\n    (image_00->page).height = sVar4;\n    image_00->dispose = NoneDispose;\n    (image_00->background_color).alpha_trait = BlendPixelTrait;\n    SetImageBackgroundColor(image_00,exception);\n    dispose_images = NewImageList();\n    local_4c = image;\n    do {\n      image_02 = CloneImage(image_00,0,0,MagickTrue,exception);\n      image_01 = image_02;\n      if (image_02 == (Image *)0x0) {\nLAB_000ec7b0:\n        dispose_images = DestroyImageList(dispose_images);\n        DestroyImage(image_00);\n        goto LAB_000ec7cb;\n      }\n      PVar3 = image->alpha_trait;\n      (image_02->background_color).alpha_trait = BlendPixelTrait;\n      CompositeImage(image_02,image,\n                     (-(uint)(PVar3 == UndefinedPixelTrait) & 0xffffffd7) + OverCompositeOp,\n                     MagickTrue,(image->page).x,(image->page).y,exception);\n      if (image->dispose == BackgroundDispose) {\n        bounds.y = (image->page).y;\n        bounds.x = (image->page).x;\n        bounds.width = image->columns;\n        if (bounds.x < 0) {\n          bounds.width = bounds.width + bounds.x;\n          bounds.x = 0;\n        }\n        if ((int)image_02->columns < (int)(bounds.width + bounds.x)) {\n          bounds.width = image_02->columns - bounds.x;\n        }\n        sVar4 = image->rows + bounds.y;\n        bounds.height = image->rows;\n        if (bounds.y < 0) {\n          bounds.y = 0;\n          bounds.height = sVar4;\n        }\n        if ((int)image_02->rows < (int)sVar4) {\n          bounds.height = image_02->rows - bounds.y;\n        }\n        ClearBounds(image_02,&bounds,exception);\n        if (image->dispose != PreviousDispose) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(image_02);\n        image_02 = image_00;\n      }\n      else {\n        if (image->dispose == PreviousDispose) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(image_00);\n      }\n      image_01 = CloneImage(image_02,0,0,MagickTrue,exception);\n      image_00 = image_02;\n      if (image_01 == (Image *)0x0) goto LAB_000ec7b0;\n      (image_02->background_color).alpha_trait = BlendPixelTrait;\n      CloneImageProfiles(image_01,image);\n      CloneImageProperties(image_01,image);\n      CloneImageArtifacts(image_01,image);\n      DVar2 = image->dispose;\n      (image_01->page).x = 0;\n      (image_01->page).y = 0;\n      image_01->dispose = DVar2;\n      AppendImageToList(&dispose_images,image_01);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != (Image *)0x0);\n    DestroyImage(image_02);\n    image_01 = GetFirstImageInList(dispose_images);\n  }\nLAB_000ec7cb:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return image_01;\n}" type_identifier (pointer_declarator "* DisposeImages(Image *images,ExceptionInfo *exception)" * (function_declarator "DisposeImages(Image *images,ExceptionInfo *exception)" identifier (parameter_list "(Image *images,ExceptionInfo *exception)" ( (parameter_declaration "Image *images" type_identifier (pointer_declarator "*images" * identifier)) , (parameter_declaration "ExceptionInfo *exception" type_identifier (pointer_declarator "*exception" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  DisposeType DVar2;\n  PixelTrait PVar3;\n  Image *image;\n  Image *image_00;\n  Image *image_01;\n  Image *image_02;\n  size_t sVar4;\n  int in_GS_OFFSET;\n  Image *local_4c;\n  Image *dispose_images;\n  RectangleInfo bounds;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (images == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages");\n  }\n  if (images->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages");\n  }\n  if (images->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/layer.c","DisposeImages",0x19f,"%s",images->filename);\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages");\n  }\n  if (exception->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages");\n  }\n  image = GetFirstImageInList(images);\n  image_00 = CloneImage(image,(image->page).width,(image->page).height,MagickTrue,exception);\n  if (image_00 == (Image *)0x0) {\n    image_01 = (Image *)0x0;\n  }\n  else {\n    (image_00->page).width = (image->page).width;\n    sVar4 = (image->page).height;\n    (image_00->background_color).alpha = 0.0;\n    (image_00->page).x = 0;\n    (image_00->page).y = 0;\n    (image_00->page).height = sVar4;\n    image_00->dispose = NoneDispose;\n    (image_00->background_color).alpha_trait = BlendPixelTrait;\n    SetImageBackgroundColor(image_00,exception);\n    dispose_images = NewImageList();\n    local_4c = image;\n    do {\n      image_02 = CloneImage(image_00,0,0,MagickTrue,exception);\n      image_01 = image_02;\n      if (image_02 == (Image *)0x0) {\nLAB_000ec7b0:\n        dispose_images = DestroyImageList(dispose_images);\n        DestroyImage(image_00);\n        goto LAB_000ec7cb;\n      }\n      PVar3 = image->alpha_trait;\n      (image_02->background_color).alpha_trait = BlendPixelTrait;\n      CompositeImage(image_02,image,\n                     (-(uint)(PVar3 == UndefinedPixelTrait) & 0xffffffd7) + OverCompositeOp,\n                     MagickTrue,(image->page).x,(image->page).y,exception);\n      if (image->dispose == BackgroundDispose) {\n        bounds.y = (image->page).y;\n        bounds.x = (image->page).x;\n        bounds.width = image->columns;\n        if (bounds.x < 0) {\n          bounds.width = bounds.width + bounds.x;\n          bounds.x = 0;\n        }\n        if ((int)image_02->columns < (int)(bounds.width + bounds.x)) {\n          bounds.width = image_02->columns - bounds.x;\n        }\n        sVar4 = image->rows + bounds.y;\n        bounds.height = image->rows;\n        if (bounds.y < 0) {\n          bounds.y = 0;\n          bounds.height = sVar4;\n        }\n        if ((int)image_02->rows < (int)sVar4) {\n          bounds.height = image_02->rows - bounds.y;\n        }\n        ClearBounds(image_02,&bounds,exception);\n        if (image->dispose != PreviousDispose) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(image_02);\n        image_02 = image_00;\n      }\n      else {\n        if (image->dispose == PreviousDispose) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(image_00);\n      }\n      image_01 = CloneImage(image_02,0,0,MagickTrue,exception);\n      image_00 = image_02;\n      if (image_01 == (Image *)0x0) goto LAB_000ec7b0;\n      (image_02->background_color).alpha_trait = BlendPixelTrait;\n      CloneImageProfiles(image_01,image);\n      CloneImageProperties(image_01,image);\n      CloneImageArtifacts(image_01,image);\n      DVar2 = image->dispose;\n      (image_01->page).x = 0;\n      (image_01->page).y = 0;\n      image_01->dispose = DVar2;\n      AppendImageToList(&dispose_images,image_01);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != (Image *)0x0);\n    DestroyImage(image_02);\n    image_01 = GetFirstImageInList(dispose_images);\n  }\nLAB_000ec7cb:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return image_01;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "DisposeType DVar2;" type_identifier identifier ;) (declaration "PixelTrait PVar3;" type_identifier identifier ;) (declaration "Image *image;" type_identifier (pointer_declarator "*image" * identifier) ;) (declaration "Image *image_00;" type_identifier (pointer_declarator "*image_00" * identifier) ;) (declaration "Image *image_01;" type_identifier (pointer_declarator "*image_01" * identifier) ;) (declaration "Image *image_02;" type_identifier (pointer_declarator "*image_02" * identifier) ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "Image *local_4c;" type_identifier (pointer_declarator "*local_4c" * identifier) ;) (declaration "Image *dispose_images;" type_identifier (pointer_declarator "*dispose_images" * identifier) ;) (declaration "RectangleInfo bounds;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(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 (images == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages");\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/layer.c",0x19c,"DisposeImages");\n  }" { comment (expression_statement "__assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages");" (call_expression "__assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages")" identifier (argument_list "("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages")" ( (string_literal ""images != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/layer.c"" " string_content ") , number_literal , (string_literal ""DisposeImages"" " string_content ") ))) ;) })) (if_statement "if (images->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages");\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/layer.c",0x19d,\n                  "DisposeImages");\n  }" { comment (expression_statement "__assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages");" (call_expression "__assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages")" identifier (argument_list "("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages")" ( (string_literal ""images->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/layer.c"" " string_content ") , number_literal , (string_literal ""DisposeImages"" " string_content ") ))) ;) })) (if_statement "if (images->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/layer.c","DisposeImages",0x19f,"%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/layer.c","DisposeImages",0x19f,"%s",images->filename);\n  }" { (expression_statement "LogMagickEvent(TraceEvent,"MagickCore/layer.c","DisposeImages",0x19f,"%s",images->filename);" (call_expression "LogMagickEvent(TraceEvent,"MagickCore/layer.c","DisposeImages",0x19f,"%s",images->filename)" identifier (argument_list "(TraceEvent,"MagickCore/layer.c","DisposeImages",0x19f,"%s",images->filename)" ( identifier , (string_literal ""MagickCore/layer.c"" " string_content ") , (string_literal ""DisposeImages"" " 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/layer.c",0x1a0,"DisposeImages");\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/layer.c",0x1a0,"DisposeImages");\n  }" { comment (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/layer.c"" " string_content ") , number_literal , (string_literal ""DisposeImages"" " string_content ") ))) ;) })) (if_statement "if (exception->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages");\n  }" if (parenthesized_expression "(exception->signature != 0xabacadab)" ( (binary_expression "exception->signature != 0xabacadab" (field_expression "exception->signature" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages");\n  }" { comment (expression_statement "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages");" (call_expression "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages")" identifier (argument_list "("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages")" ( (string_literal ""exception->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/layer.c"" " string_content ") , number_literal , (string_literal ""DisposeImages"" " string_content ") ))) ;) })) (expression_statement "image = GetFirstImageInList(images);" (assignment_expression "image = GetFirstImageInList(images)" identifier = (call_expression "GetFirstImageInList(images)" identifier (argument_list "(images)" ( identifier )))) ;) (expression_statement "image_00 = CloneImage(image,(image->page).width,(image->page).height,MagickTrue,exception);" (assignment_expression "image_00 = CloneImage(image,(image->page).width,(image->page).height,MagickTrue,exception)" identifier = (call_expression "CloneImage(image,(image->page).width,(image->page).height,MagickTrue,exception)" identifier (argument_list "(image,(image->page).width,(image->page).height,MagickTrue,exception)" ( identifier , (field_expression "(image->page).width" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier) , (field_expression "(image->page).height" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier) , identifier , identifier )))) ;) (if_statement "if (image_00 == (Image *)0x0) {\n    image_01 = (Image *)0x0;\n  }\n  else {\n    (image_00->page).width = (image->page).width;\n    sVar4 = (image->page).height;\n    (image_00->background_color).alpha = 0.0;\n    (image_00->page).x = 0;\n    (image_00->page).y = 0;\n    (image_00->page).height = sVar4;\n    image_00->dispose = NoneDispose;\n    (image_00->background_color).alpha_trait = BlendPixelTrait;\n    SetImageBackgroundColor(image_00,exception);\n    dispose_images = NewImageList();\n    local_4c = image;\n    do {\n      image_02 = CloneImage(image_00,0,0,MagickTrue,exception);\n      image_01 = image_02;\n      if (image_02 == (Image *)0x0) {\nLAB_000ec7b0:\n        dispose_images = DestroyImageList(dispose_images);\n        DestroyImage(image_00);\n        goto LAB_000ec7cb;\n      }\n      PVar3 = image->alpha_trait;\n      (image_02->background_color).alpha_trait = BlendPixelTrait;\n      CompositeImage(image_02,image,\n                     (-(uint)(PVar3 == UndefinedPixelTrait) & 0xffffffd7) + OverCompositeOp,\n                     MagickTrue,(image->page).x,(image->page).y,exception);\n      if (image->dispose == BackgroundDispose) {\n        bounds.y = (image->page).y;\n        bounds.x = (image->page).x;\n        bounds.width = image->columns;\n        if (bounds.x < 0) {\n          bounds.width = bounds.width + bounds.x;\n          bounds.x = 0;\n        }\n        if ((int)image_02->columns < (int)(bounds.width + bounds.x)) {\n          bounds.width = image_02->columns - bounds.x;\n        }\n        sVar4 = image->rows + bounds.y;\n        bounds.height = image->rows;\n        if (bounds.y < 0) {\n          bounds.y = 0;\n          bounds.height = sVar4;\n        }\n        if ((int)image_02->rows < (int)sVar4) {\n          bounds.height = image_02->rows - bounds.y;\n        }\n        ClearBounds(image_02,&bounds,exception);\n        if (image->dispose != PreviousDispose) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(image_02);\n        image_02 = image_00;\n      }\n      else {\n        if (image->dispose == PreviousDispose) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(image_00);\n      }\n      image_01 = CloneImage(image_02,0,0,MagickTrue,exception);\n      image_00 = image_02;\n      if (image_01 == (Image *)0x0) goto LAB_000ec7b0;\n      (image_02->background_color).alpha_trait = BlendPixelTrait;\n      CloneImageProfiles(image_01,image);\n      CloneImageProperties(image_01,image);\n      CloneImageArtifacts(image_01,image);\n      DVar2 = image->dispose;\n      (image_01->page).x = 0;\n      (image_01->page).y = 0;\n      image_01->dispose = DVar2;\n      AppendImageToList(&dispose_images,image_01);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != (Image *)0x0);\n    DestroyImage(image_02);\n    image_01 = GetFirstImageInList(dispose_images);\n  }" if (parenthesized_expression "(image_00 == (Image *)0x0)" ( (binary_expression "image_00 == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    image_01 = (Image *)0x0;\n  }" { (expression_statement "image_01 = (Image *)0x0;" (assignment_expression "image_01 = (Image *)0x0" identifier = (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    (image_00->page).width = (image->page).width;\n    sVar4 = (image->page).height;\n    (image_00->background_color).alpha = 0.0;\n    (image_00->page).x = 0;\n    (image_00->page).y = 0;\n    (image_00->page).height = sVar4;\n    image_00->dispose = NoneDispose;\n    (image_00->background_color).alpha_trait = BlendPixelTrait;\n    SetImageBackgroundColor(image_00,exception);\n    dispose_images = NewImageList();\n    local_4c = image;\n    do {\n      image_02 = CloneImage(image_00,0,0,MagickTrue,exception);\n      image_01 = image_02;\n      if (image_02 == (Image *)0x0) {\nLAB_000ec7b0:\n        dispose_images = DestroyImageList(dispose_images);\n        DestroyImage(image_00);\n        goto LAB_000ec7cb;\n      }\n      PVar3 = image->alpha_trait;\n      (image_02->background_color).alpha_trait = BlendPixelTrait;\n      CompositeImage(image_02,image,\n                     (-(uint)(PVar3 == UndefinedPixelTrait) & 0xffffffd7) + OverCompositeOp,\n                     MagickTrue,(image->page).x,(image->page).y,exception);\n      if (image->dispose == BackgroundDispose) {\n        bounds.y = (image->page).y;\n        bounds.x = (image->page).x;\n        bounds.width = image->columns;\n        if (bounds.x < 0) {\n          bounds.width = bounds.width + bounds.x;\n          bounds.x = 0;\n        }\n        if ((int)image_02->columns < (int)(bounds.width + bounds.x)) {\n          bounds.width = image_02->columns - bounds.x;\n        }\n        sVar4 = image->rows + bounds.y;\n        bounds.height = image->rows;\n        if (bounds.y < 0) {\n          bounds.y = 0;\n          bounds.height = sVar4;\n        }\n        if ((int)image_02->rows < (int)sVar4) {\n          bounds.height = image_02->rows - bounds.y;\n        }\n        ClearBounds(image_02,&bounds,exception);\n        if (image->dispose != PreviousDispose) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(image_02);\n        image_02 = image_00;\n      }\n      else {\n        if (image->dispose == PreviousDispose) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(image_00);\n      }\n      image_01 = CloneImage(image_02,0,0,MagickTrue,exception);\n      image_00 = image_02;\n      if (image_01 == (Image *)0x0) goto LAB_000ec7b0;\n      (image_02->background_color).alpha_trait = BlendPixelTrait;\n      CloneImageProfiles(image_01,image);\n      CloneImageProperties(image_01,image);\n      CloneImageArtifacts(image_01,image);\n      DVar2 = image->dispose;\n      (image_01->page).x = 0;\n      (image_01->page).y = 0;\n      image_01->dispose = DVar2;\n      AppendImageToList(&dispose_images,image_01);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != (Image *)0x0);\n    DestroyImage(image_02);\n    image_01 = GetFirstImageInList(dispose_images);\n  }" else (compound_statement "{\n    (image_00->page).width = (image->page).width;\n    sVar4 = (image->page).height;\n    (image_00->background_color).alpha = 0.0;\n    (image_00->page).x = 0;\n    (image_00->page).y = 0;\n    (image_00->page).height = sVar4;\n    image_00->dispose = NoneDispose;\n    (image_00->background_color).alpha_trait = BlendPixelTrait;\n    SetImageBackgroundColor(image_00,exception);\n    dispose_images = NewImageList();\n    local_4c = image;\n    do {\n      image_02 = CloneImage(image_00,0,0,MagickTrue,exception);\n      image_01 = image_02;\n      if (image_02 == (Image *)0x0) {\nLAB_000ec7b0:\n        dispose_images = DestroyImageList(dispose_images);\n        DestroyImage(image_00);\n        goto LAB_000ec7cb;\n      }\n      PVar3 = image->alpha_trait;\n      (image_02->background_color).alpha_trait = BlendPixelTrait;\n      CompositeImage(image_02,image,\n                     (-(uint)(PVar3 == UndefinedPixelTrait) & 0xffffffd7) + OverCompositeOp,\n                     MagickTrue,(image->page).x,(image->page).y,exception);\n      if (image->dispose == BackgroundDispose) {\n        bounds.y = (image->page).y;\n        bounds.x = (image->page).x;\n        bounds.width = image->columns;\n        if (bounds.x < 0) {\n          bounds.width = bounds.width + bounds.x;\n          bounds.x = 0;\n        }\n        if ((int)image_02->columns < (int)(bounds.width + bounds.x)) {\n          bounds.width = image_02->columns - bounds.x;\n        }\n        sVar4 = image->rows + bounds.y;\n        bounds.height = image->rows;\n        if (bounds.y < 0) {\n          bounds.y = 0;\n          bounds.height = sVar4;\n        }\n        if ((int)image_02->rows < (int)sVar4) {\n          bounds.height = image_02->rows - bounds.y;\n        }\n        ClearBounds(image_02,&bounds,exception);\n        if (image->dispose != PreviousDispose) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(image_02);\n        image_02 = image_00;\n      }\n      else {\n        if (image->dispose == PreviousDispose) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(image_00);\n      }\n      image_01 = CloneImage(image_02,0,0,MagickTrue,exception);\n      image_00 = image_02;\n      if (image_01 == (Image *)0x0) goto LAB_000ec7b0;\n      (image_02->background_color).alpha_trait = BlendPixelTrait;\n      CloneImageProfiles(image_01,image);\n      CloneImageProperties(image_01,image);\n      CloneImageArtifacts(image_01,image);\n      DVar2 = image->dispose;\n      (image_01->page).x = 0;\n      (image_01->page).y = 0;\n      image_01->dispose = DVar2;\n      AppendImageToList(&dispose_images,image_01);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != (Image *)0x0);\n    DestroyImage(image_02);\n    image_01 = GetFirstImageInList(dispose_images);\n  }" { (expression_statement "(image_00->page).width = (image->page).width;" (assignment_expression "(image_00->page).width = (image->page).width" (field_expression "(image_00->page).width" (parenthesized_expression "(image_00->page)" ( (field_expression "image_00->page" identifier -> field_identifier) )) . field_identifier) = (field_expression "(image->page).width" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "sVar4 = (image->page).height;" (assignment_expression "sVar4 = (image->page).height" identifier = (field_expression "(image->page).height" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "(image_00->background_color).alpha = 0.0;" (assignment_expression "(image_00->background_color).alpha = 0.0" (field_expression "(image_00->background_color).alpha" (parenthesized_expression "(image_00->background_color)" ( (field_expression "image_00->background_color" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "(image_00->page).x = 0;" (assignment_expression "(image_00->page).x = 0" (field_expression "(image_00->page).x" (parenthesized_expression "(image_00->page)" ( (field_expression "image_00->page" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "(image_00->page).y = 0;" (assignment_expression "(image_00->page).y = 0" (field_expression "(image_00->page).y" (parenthesized_expression "(image_00->page)" ( (field_expression "image_00->page" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "(image_00->page).height = sVar4;" (assignment_expression "(image_00->page).height = sVar4" (field_expression "(image_00->page).height" (parenthesized_expression "(image_00->page)" ( (field_expression "image_00->page" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "image_00->dispose = NoneDispose;" (assignment_expression "image_00->dispose = NoneDispose" (field_expression "image_00->dispose" identifier -> field_identifier) = identifier) ;) (expression_statement "(image_00->background_color).alpha_trait = BlendPixelTrait;" (assignment_expression "(image_00->background_color).alpha_trait = BlendPixelTrait" (field_expression "(image_00->background_color).alpha_trait" (parenthesized_expression "(image_00->background_color)" ( (field_expression "image_00->background_color" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "SetImageBackgroundColor(image_00,exception);" (call_expression "SetImageBackgroundColor(image_00,exception)" identifier (argument_list "(image_00,exception)" ( identifier , identifier ))) ;) (expression_statement "dispose_images = NewImageList();" (assignment_expression "dispose_images = NewImageList()" identifier = (call_expression "NewImageList()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_4c = image;" (assignment_expression "local_4c = image" identifier = identifier) ;) (do_statement "do {\n      image_02 = CloneImage(image_00,0,0,MagickTrue,exception);\n      image_01 = image_02;\n      if (image_02 == (Image *)0x0) {\nLAB_000ec7b0:\n        dispose_images = DestroyImageList(dispose_images);\n        DestroyImage(image_00);\n        goto LAB_000ec7cb;\n      }\n      PVar3 = image->alpha_trait;\n      (image_02->background_color).alpha_trait = BlendPixelTrait;\n      CompositeImage(image_02,image,\n                     (-(uint)(PVar3 == UndefinedPixelTrait) & 0xffffffd7) + OverCompositeOp,\n                     MagickTrue,(image->page).x,(image->page).y,exception);\n      if (image->dispose == BackgroundDispose) {\n        bounds.y = (image->page).y;\n        bounds.x = (image->page).x;\n        bounds.width = image->columns;\n        if (bounds.x < 0) {\n          bounds.width = bounds.width + bounds.x;\n          bounds.x = 0;\n        }\n        if ((int)image_02->columns < (int)(bounds.width + bounds.x)) {\n          bounds.width = image_02->columns - bounds.x;\n        }\n        sVar4 = image->rows + bounds.y;\n        bounds.height = image->rows;\n        if (bounds.y < 0) {\n          bounds.y = 0;\n          bounds.height = sVar4;\n        }\n        if ((int)image_02->rows < (int)sVar4) {\n          bounds.height = image_02->rows - bounds.y;\n        }\n        ClearBounds(image_02,&bounds,exception);\n        if (image->dispose != PreviousDispose) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(image_02);\n        image_02 = image_00;\n      }\n      else {\n        if (image->dispose == PreviousDispose) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(image_00);\n      }\n      image_01 = CloneImage(image_02,0,0,MagickTrue,exception);\n      image_00 = image_02;\n      if (image_01 == (Image *)0x0) goto LAB_000ec7b0;\n      (image_02->background_color).alpha_trait = BlendPixelTrait;\n      CloneImageProfiles(image_01,image);\n      CloneImageProperties(image_01,image);\n      CloneImageArtifacts(image_01,image);\n      DVar2 = image->dispose;\n      (image_01->page).x = 0;\n      (image_01->page).y = 0;\n      image_01->dispose = DVar2;\n      AppendImageToList(&dispose_images,image_01);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != (Image *)0x0);" do (compound_statement "{\n      image_02 = CloneImage(image_00,0,0,MagickTrue,exception);\n      image_01 = image_02;\n      if (image_02 == (Image *)0x0) {\nLAB_000ec7b0:\n        dispose_images = DestroyImageList(dispose_images);\n        DestroyImage(image_00);\n        goto LAB_000ec7cb;\n      }\n      PVar3 = image->alpha_trait;\n      (image_02->background_color).alpha_trait = BlendPixelTrait;\n      CompositeImage(image_02,image,\n                     (-(uint)(PVar3 == UndefinedPixelTrait) & 0xffffffd7) + OverCompositeOp,\n                     MagickTrue,(image->page).x,(image->page).y,exception);\n      if (image->dispose == BackgroundDispose) {\n        bounds.y = (image->page).y;\n        bounds.x = (image->page).x;\n        bounds.width = image->columns;\n        if (bounds.x < 0) {\n          bounds.width = bounds.width + bounds.x;\n          bounds.x = 0;\n        }\n        if ((int)image_02->columns < (int)(bounds.width + bounds.x)) {\n          bounds.width = image_02->columns - bounds.x;\n        }\n        sVar4 = image->rows + bounds.y;\n        bounds.height = image->rows;\n        if (bounds.y < 0) {\n          bounds.y = 0;\n          bounds.height = sVar4;\n        }\n        if ((int)image_02->rows < (int)sVar4) {\n          bounds.height = image_02->rows - bounds.y;\n        }\n        ClearBounds(image_02,&bounds,exception);\n        if (image->dispose != PreviousDispose) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(image_02);\n        image_02 = image_00;\n      }\n      else {\n        if (image->dispose == PreviousDispose) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(image_00);\n      }\n      image_01 = CloneImage(image_02,0,0,MagickTrue,exception);\n      image_00 = image_02;\n      if (image_01 == (Image *)0x0) goto LAB_000ec7b0;\n      (image_02->background_color).alpha_trait = BlendPixelTrait;\n      CloneImageProfiles(image_01,image);\n      CloneImageProperties(image_01,image);\n      CloneImageArtifacts(image_01,image);\n      DVar2 = image->dispose;\n      (image_01->page).x = 0;\n      (image_01->page).y = 0;\n      image_01->dispose = DVar2;\n      AppendImageToList(&dispose_images,image_01);\n      local_4c = GetNextImageInList(local_4c);\n    }" { (expression_statement "image_02 = CloneImage(image_00,0,0,MagickTrue,exception);" (assignment_expression "image_02 = CloneImage(image_00,0,0,MagickTrue,exception)" identifier = (call_expression "CloneImage(image_00,0,0,MagickTrue,exception)" identifier (argument_list "(image_00,0,0,MagickTrue,exception)" ( identifier , number_literal , number_literal , identifier , identifier )))) ;) (expression_statement "image_01 = image_02;" (assignment_expression "image_01 = image_02" identifier = identifier) ;) (if_statement "if (image_02 == (Image *)0x0) {\nLAB_000ec7b0:\n        dispose_images = DestroyImageList(dispose_images);\n        DestroyImage(image_00);\n        goto LAB_000ec7cb;\n      }" if (parenthesized_expression "(image_02 == (Image *)0x0)" ( (binary_expression "image_02 == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_000ec7b0:\n        dispose_images = DestroyImageList(dispose_images);\n        DestroyImage(image_00);\n        goto LAB_000ec7cb;\n      }" { (labeled_statement "LAB_000ec7b0:\n        dispose_images = DestroyImageList(dispose_images);" statement_identifier : (expression_statement "dispose_images = DestroyImageList(dispose_images);" (assignment_expression "dispose_images = DestroyImageList(dispose_images)" identifier = (call_expression "DestroyImageList(dispose_images)" identifier (argument_list "(dispose_images)" ( identifier )))) ;)) (expression_statement "DestroyImage(image_00);" (call_expression "DestroyImage(image_00)" identifier (argument_list "(image_00)" ( identifier ))) ;) (goto_statement "goto LAB_000ec7cb;" goto statement_identifier ;) })) (expression_statement "PVar3 = image->alpha_trait;" (assignment_expression "PVar3 = image->alpha_trait" identifier = (field_expression "image->alpha_trait" identifier -> field_identifier)) ;) (expression_statement "(image_02->background_color).alpha_trait = BlendPixelTrait;" (assignment_expression "(image_02->background_color).alpha_trait = BlendPixelTrait" (field_expression "(image_02->background_color).alpha_trait" (parenthesized_expression "(image_02->background_color)" ( (field_expression "image_02->background_color" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "CompositeImage(image_02,image,\n                     (-(uint)(PVar3 == UndefinedPixelTrait) & 0xffffffd7) + OverCompositeOp,\n                     MagickTrue,(image->page).x,(image->page).y,exception);" (call_expression "CompositeImage(image_02,image,\n                     (-(uint)(PVar3 == UndefinedPixelTrait) & 0xffffffd7) + OverCompositeOp,\n                     MagickTrue,(image->page).x,(image->page).y,exception)" identifier (argument_list "(image_02,image,\n                     (-(uint)(PVar3 == UndefinedPixelTrait) & 0xffffffd7) + OverCompositeOp,\n                     MagickTrue,(image->page).x,(image->page).y,exception)" ( identifier , identifier , (binary_expression "(-(uint)(PVar3 == UndefinedPixelTrait) & 0xffffffd7) + OverCompositeOp" (parenthesized_expression "(-(uint)(PVar3 == UndefinedPixelTrait) & 0xffffffd7)" ( (binary_expression "-(uint)(PVar3 == UndefinedPixelTrait) & 0xffffffd7" (unary_expression "-(uint)(PVar3 == UndefinedPixelTrait)" - (call_expression "(uint)(PVar3 == UndefinedPixelTrait)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(PVar3 == UndefinedPixelTrait)" ( (binary_expression "PVar3 == UndefinedPixelTrait" identifier == identifier) )))) & number_literal) )) + identifier) , identifier , (field_expression "(image->page).x" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier) , (field_expression "(image->page).y" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier) , identifier ))) ;) (if_statement "if (image->dispose == BackgroundDispose) {\n        bounds.y = (image->page).y;\n        bounds.x = (image->page).x;\n        bounds.width = image->columns;\n        if (bounds.x < 0) {\n          bounds.width = bounds.width + bounds.x;\n          bounds.x = 0;\n        }\n        if ((int)image_02->columns < (int)(bounds.width + bounds.x)) {\n          bounds.width = image_02->columns - bounds.x;\n        }\n        sVar4 = image->rows + bounds.y;\n        bounds.height = image->rows;\n        if (bounds.y < 0) {\n          bounds.y = 0;\n          bounds.height = sVar4;\n        }\n        if ((int)image_02->rows < (int)sVar4) {\n          bounds.height = image_02->rows - bounds.y;\n        }\n        ClearBounds(image_02,&bounds,exception);\n        if (image->dispose != PreviousDispose) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(image_02);\n        image_02 = image_00;\n      }\n      else {\n        if (image->dispose == PreviousDispose) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(image_00);\n      }" if (parenthesized_expression "(image->dispose == BackgroundDispose)" ( (binary_expression "image->dispose == BackgroundDispose" (field_expression "image->dispose" identifier -> field_identifier) == identifier) )) (compound_statement "{\n        bounds.y = (image->page).y;\n        bounds.x = (image->page).x;\n        bounds.width = image->columns;\n        if (bounds.x < 0) {\n          bounds.width = bounds.width + bounds.x;\n          bounds.x = 0;\n        }\n        if ((int)image_02->columns < (int)(bounds.width + bounds.x)) {\n          bounds.width = image_02->columns - bounds.x;\n        }\n        sVar4 = image->rows + bounds.y;\n        bounds.height = image->rows;\n        if (bounds.y < 0) {\n          bounds.y = 0;\n          bounds.height = sVar4;\n        }\n        if ((int)image_02->rows < (int)sVar4) {\n          bounds.height = image_02->rows - bounds.y;\n        }\n        ClearBounds(image_02,&bounds,exception);\n        if (image->dispose != PreviousDispose) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(image_02);\n        image_02 = image_00;\n      }" { (expression_statement "bounds.y = (image->page).y;" (assignment_expression "bounds.y = (image->page).y" (field_expression "bounds.y" identifier . field_identifier) = (field_expression "(image->page).y" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "bounds.x = (image->page).x;" (assignment_expression "bounds.x = (image->page).x" (field_expression "bounds.x" identifier . field_identifier) = (field_expression "(image->page).x" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "bounds.width = image->columns;" (assignment_expression "bounds.width = image->columns" (field_expression "bounds.width" identifier . field_identifier) = (field_expression "image->columns" identifier -> field_identifier)) ;) (if_statement "if (bounds.x < 0) {\n          bounds.width = bounds.width + bounds.x;\n          bounds.x = 0;\n        }" if (parenthesized_expression "(bounds.x < 0)" ( (binary_expression "bounds.x < 0" (field_expression "bounds.x" identifier . field_identifier) < number_literal) )) (compound_statement "{\n          bounds.width = bounds.width + bounds.x;\n          bounds.x = 0;\n        }" { (expression_statement "bounds.width = bounds.width + bounds.x;" (assignment_expression "bounds.width = bounds.width + bounds.x" (field_expression "bounds.width" identifier . field_identifier) = (binary_expression "bounds.width + bounds.x" (field_expression "bounds.width" identifier . field_identifier) + (field_expression "bounds.x" identifier . field_identifier))) ;) (expression_statement "bounds.x = 0;" (assignment_expression "bounds.x = 0" (field_expression "bounds.x" identifier . field_identifier) = number_literal) ;) })) (if_statement "if ((int)image_02->columns < (int)(bounds.width + bounds.x)) {\n          bounds.width = image_02->columns - bounds.x;\n        }" if (parenthesized_expression "((int)image_02->columns < (int)(bounds.width + bounds.x))" ( (binary_expression "(int)image_02->columns < (int)(bounds.width + bounds.x)" (cast_expression "(int)image_02->columns" ( (type_descriptor "int" primitive_type) ) (field_expression "image_02->columns" identifier -> field_identifier)) < (cast_expression "(int)(bounds.width + bounds.x)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(bounds.width + bounds.x)" ( (binary_expression "bounds.width + bounds.x" (field_expression "bounds.width" identifier . field_identifier) + (field_expression "bounds.x" identifier . field_identifier)) )))) )) (compound_statement "{\n          bounds.width = image_02->columns - bounds.x;\n        }" { (expression_statement "bounds.width = image_02->columns - bounds.x;" (assignment_expression "bounds.width = image_02->columns - bounds.x" (field_expression "bounds.width" identifier . field_identifier) = (binary_expression "image_02->columns - bounds.x" (field_expression "image_02->columns" identifier -> field_identifier) - (field_expression "bounds.x" identifier . field_identifier))) ;) })) (expression_statement "sVar4 = image->rows + bounds.y;" (assignment_expression "sVar4 = image->rows + bounds.y" identifier = (binary_expression "image->rows + bounds.y" (field_expression "image->rows" identifier -> field_identifier) + (field_expression "bounds.y" identifier . field_identifier))) ;) (expression_statement "bounds.height = image->rows;" (assignment_expression "bounds.height = image->rows" (field_expression "bounds.height" identifier . field_identifier) = (field_expression "image->rows" identifier -> field_identifier)) ;) (if_statement "if (bounds.y < 0) {\n          bounds.y = 0;\n          bounds.height = sVar4;\n        }" if (parenthesized_expression "(bounds.y < 0)" ( (binary_expression "bounds.y < 0" (field_expression "bounds.y" identifier . field_identifier) < number_literal) )) (compound_statement "{\n          bounds.y = 0;\n          bounds.height = sVar4;\n        }" { (expression_statement "bounds.y = 0;" (assignment_expression "bounds.y = 0" (field_expression "bounds.y" identifier . field_identifier) = number_literal) ;) (expression_statement "bounds.height = sVar4;" (assignment_expression "bounds.height = sVar4" (field_expression "bounds.height" identifier . field_identifier) = identifier) ;) })) (if_statement "if ((int)image_02->rows < (int)sVar4) {\n          bounds.height = image_02->rows - bounds.y;\n        }" if (parenthesized_expression "((int)image_02->rows < (int)sVar4)" ( (binary_expression "(int)image_02->rows < (int)sVar4" (cast_expression "(int)image_02->rows" ( (type_descriptor "int" primitive_type) ) (field_expression "image_02->rows" identifier -> field_identifier)) < (cast_expression "(int)sVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n          bounds.height = image_02->rows - bounds.y;\n        }" { (expression_statement "bounds.height = image_02->rows - bounds.y;" (assignment_expression "bounds.height = image_02->rows - bounds.y" (field_expression "bounds.height" identifier . field_identifier) = (binary_expression "image_02->rows - bounds.y" (field_expression "image_02->rows" identifier -> field_identifier) - (field_expression "bounds.y" identifier . field_identifier))) ;) })) (expression_statement "ClearBounds(image_02,&bounds,exception);" (call_expression "ClearBounds(image_02,&bounds,exception)" identifier (argument_list "(image_02,&bounds,exception)" ( identifier , (pointer_expression "&bounds" & identifier) , identifier ))) ;) (if_statement "if (image->dispose != PreviousDispose) goto LAB_000ec5f9;" if (parenthesized_expression "(image->dispose != PreviousDispose)" ( (binary_expression "image->dispose != PreviousDispose" (field_expression "image->dispose" identifier -> field_identifier) != identifier) )) (goto_statement "goto LAB_000ec5f9;" goto statement_identifier ;)) (labeled_statement "LAB_000ec77a:\n        DestroyImage(image_02);" statement_identifier : (expression_statement "DestroyImage(image_02);" (call_expression "DestroyImage(image_02)" identifier (argument_list "(image_02)" ( identifier ))) ;)) (expression_statement "image_02 = image_00;" (assignment_expression "image_02 = image_00" identifier = identifier) ;) }) (else_clause "else {\n        if (image->dispose == PreviousDispose) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(image_00);\n      }" else (compound_statement "{\n        if (image->dispose == PreviousDispose) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(image_00);\n      }" { (if_statement "if (image->dispose == PreviousDispose) goto LAB_000ec77a;" if (parenthesized_expression "(image->dispose == PreviousDispose)" ( (binary_expression "image->dispose == PreviousDispose" (field_expression "image->dispose" identifier -> field_identifier) == identifier) )) (goto_statement "goto LAB_000ec77a;" goto statement_identifier ;)) (labeled_statement "LAB_000ec5f9:\n        DestroyImage(image_00);" statement_identifier : (expression_statement "DestroyImage(image_00);" (call_expression "DestroyImage(image_00)" identifier (argument_list "(image_00)" ( identifier ))) ;)) }))) (expression_statement "image_01 = CloneImage(image_02,0,0,MagickTrue,exception);" (assignment_expression "image_01 = CloneImage(image_02,0,0,MagickTrue,exception)" identifier = (call_expression "CloneImage(image_02,0,0,MagickTrue,exception)" identifier (argument_list "(image_02,0,0,MagickTrue,exception)" ( identifier , number_literal , number_literal , identifier , identifier )))) ;) (expression_statement "image_00 = image_02;" (assignment_expression "image_00 = image_02" identifier = identifier) ;) (if_statement "if (image_01 == (Image *)0x0) goto LAB_000ec7b0;" if (parenthesized_expression "(image_01 == (Image *)0x0)" ( (binary_expression "image_01 == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000ec7b0;" goto statement_identifier ;)) (expression_statement "(image_02->background_color).alpha_trait = BlendPixelTrait;" (assignment_expression "(image_02->background_color).alpha_trait = BlendPixelTrait" (field_expression "(image_02->background_color).alpha_trait" (parenthesized_expression "(image_02->background_color)" ( (field_expression "image_02->background_color" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "CloneImageProfiles(image_01,image);" (call_expression "CloneImageProfiles(image_01,image)" identifier (argument_list "(image_01,image)" ( identifier , identifier ))) ;) (expression_statement "CloneImageProperties(image_01,image);" (call_expression "CloneImageProperties(image_01,image)" identifier (argument_list "(image_01,image)" ( identifier , identifier ))) ;) (expression_statement "CloneImageArtifacts(image_01,image);" (call_expression "CloneImageArtifacts(image_01,image)" identifier (argument_list "(image_01,image)" ( identifier , identifier ))) ;) (expression_statement "DVar2 = image->dispose;" (assignment_expression "DVar2 = image->dispose" identifier = (field_expression "image->dispose" identifier -> field_identifier)) ;) (expression_statement "(image_01->page).x = 0;" (assignment_expression "(image_01->page).x = 0" (field_expression "(image_01->page).x" (parenthesized_expression "(image_01->page)" ( (field_expression "image_01->page" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "(image_01->page).y = 0;" (assignment_expression "(image_01->page).y = 0" (field_expression "(image_01->page).y" (parenthesized_expression "(image_01->page)" ( (field_expression "image_01->page" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "image_01->dispose = DVar2;" (assignment_expression "image_01->dispose = DVar2" (field_expression "image_01->dispose" identifier -> field_identifier) = identifier) ;) (expression_statement "AppendImageToList(&dispose_images,image_01);" (call_expression "AppendImageToList(&dispose_images,image_01)" identifier (argument_list "(&dispose_images,image_01)" ( (pointer_expression "&dispose_images" & identifier) , identifier ))) ;) (expression_statement "local_4c = GetNextImageInList(local_4c);" (assignment_expression "local_4c = GetNextImageInList(local_4c)" identifier = (call_expression "GetNextImageInList(local_4c)" identifier (argument_list "(local_4c)" ( identifier )))) ;) }) while (parenthesized_expression "(local_4c != (Image *)0x0)" ( (binary_expression "local_4c != (Image *)0x0" identifier != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "DestroyImage(image_02);" (call_expression "DestroyImage(image_02)" identifier (argument_list "(image_02)" ( identifier ))) ;) (expression_statement "image_01 = GetFirstImageInList(dispose_images);" (assignment_expression "image_01 = GetFirstImageInList(dispose_images)" identifier = (call_expression "GetFirstImageInList(dispose_images)" identifier (argument_list "(dispose_images)" ( identifier )))) ;) }))) (labeled_statement "LAB_000ec7cb:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(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 image_01;" return identifier ;) })))
(translation_unit "int DisposeImages(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int local_4c;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xec4d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/layer.c","DisposeImages",0x19f,&DAT_002b6e4e,param_1 + 0x318);\n  }\n  if (param_2 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages");\n  }\n  if (*(int *)(param_2 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages");\n  }\n  iVar2 = GetFirstImageInList(param_1);\n  iVar3 = CloneImage(iVar2,*(undefined4 *)(iVar2 + 0x200),*(undefined4 *)(iVar2 + 0x204),1,param_2);\n  if (iVar3 == 0) {\n    iVar5 = 0;\n  }\n  else {\n    *(undefined4 *)(iVar3 + 0x200) = *(undefined4 *)(iVar2 + 0x200);\n    uVar1 = *(undefined4 *)(iVar2 + 0x204);\n    *(undefined8 *)(iVar3 + 0xbc) = 0;\n    *(undefined4 *)(iVar3 + 0x208) = 0;\n    *(undefined4 *)(iVar3 + 0x20c) = 0;\n    *(undefined4 *)(iVar3 + 0x204) = uVar1;\n    *(undefined4 *)(iVar3 + 0x240) = 1;\n    *(undefined4 *)(iVar3 + 0x84) = 4;\n    SetImageBackgroundColor(iVar3,param_2);\n    local_34 = NewImageList();\n    local_4c = iVar2;\n    do {\n      iVar4 = CloneImage(iVar3,0,0,1,param_2);\n      iVar5 = iVar4;\n      if (iVar4 == 0) {\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }\n      iVar5 = *(int *)(iVar2 + 0x294);\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);\n      if (*(int *)(iVar2 + 0x240) == 2) {\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }\n      else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }\n      iVar5 = CloneImage(iVar4,0,0,1,param_2);\n      iVar3 = iVar4;\n      if (iVar5 == 0) goto LAB_000ec7b0;\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CloneImageProfiles(iVar5,iVar2);\n      CloneImageProperties(iVar5,iVar2);\n      CloneImageArtifacts(iVar5,iVar2);\n      uVar1 = *(undefined4 *)(iVar2 + 0x240);\n      *(undefined4 *)(iVar5 + 0x208) = 0;\n      *(undefined4 *)(iVar5 + 0x20c) = 0;\n      *(undefined4 *)(iVar5 + 0x240) = uVar1;\n      AppendImageToList(&local_34,iVar5);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != 0);\n    DestroyImage(iVar4);\n    iVar5 = GetFirstImageInList(local_34);\n  }\nLAB_000ec7cb:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return iVar5;\n}\n\n" (function_definition "int DisposeImages(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int local_4c;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xec4d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/layer.c","DisposeImages",0x19f,&DAT_002b6e4e,param_1 + 0x318);\n  }\n  if (param_2 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages");\n  }\n  if (*(int *)(param_2 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages");\n  }\n  iVar2 = GetFirstImageInList(param_1);\n  iVar3 = CloneImage(iVar2,*(undefined4 *)(iVar2 + 0x200),*(undefined4 *)(iVar2 + 0x204),1,param_2);\n  if (iVar3 == 0) {\n    iVar5 = 0;\n  }\n  else {\n    *(undefined4 *)(iVar3 + 0x200) = *(undefined4 *)(iVar2 + 0x200);\n    uVar1 = *(undefined4 *)(iVar2 + 0x204);\n    *(undefined8 *)(iVar3 + 0xbc) = 0;\n    *(undefined4 *)(iVar3 + 0x208) = 0;\n    *(undefined4 *)(iVar3 + 0x20c) = 0;\n    *(undefined4 *)(iVar3 + 0x204) = uVar1;\n    *(undefined4 *)(iVar3 + 0x240) = 1;\n    *(undefined4 *)(iVar3 + 0x84) = 4;\n    SetImageBackgroundColor(iVar3,param_2);\n    local_34 = NewImageList();\n    local_4c = iVar2;\n    do {\n      iVar4 = CloneImage(iVar3,0,0,1,param_2);\n      iVar5 = iVar4;\n      if (iVar4 == 0) {\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }\n      iVar5 = *(int *)(iVar2 + 0x294);\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);\n      if (*(int *)(iVar2 + 0x240) == 2) {\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }\n      else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }\n      iVar5 = CloneImage(iVar4,0,0,1,param_2);\n      iVar3 = iVar4;\n      if (iVar5 == 0) goto LAB_000ec7b0;\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CloneImageProfiles(iVar5,iVar2);\n      CloneImageProperties(iVar5,iVar2);\n      CloneImageArtifacts(iVar5,iVar2);\n      uVar1 = *(undefined4 *)(iVar2 + 0x240);\n      *(undefined4 *)(iVar5 + 0x208) = 0;\n      *(undefined4 *)(iVar5 + 0x20c) = 0;\n      *(undefined4 *)(iVar5 + 0x240) = uVar1;\n      AppendImageToList(&local_34,iVar5);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != 0);\n    DestroyImage(iVar4);\n    iVar5 = GetFirstImageInList(local_34);\n  }\nLAB_000ec7cb:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return iVar5;\n}" primitive_type (function_declarator "DisposeImages(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int local_4c;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xec4d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/layer.c","DisposeImages",0x19f,&DAT_002b6e4e,param_1 + 0x318);\n  }\n  if (param_2 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages");\n  }\n  if (*(int *)(param_2 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages");\n  }\n  iVar2 = GetFirstImageInList(param_1);\n  iVar3 = CloneImage(iVar2,*(undefined4 *)(iVar2 + 0x200),*(undefined4 *)(iVar2 + 0x204),1,param_2);\n  if (iVar3 == 0) {\n    iVar5 = 0;\n  }\n  else {\n    *(undefined4 *)(iVar3 + 0x200) = *(undefined4 *)(iVar2 + 0x200);\n    uVar1 = *(undefined4 *)(iVar2 + 0x204);\n    *(undefined8 *)(iVar3 + 0xbc) = 0;\n    *(undefined4 *)(iVar3 + 0x208) = 0;\n    *(undefined4 *)(iVar3 + 0x20c) = 0;\n    *(undefined4 *)(iVar3 + 0x204) = uVar1;\n    *(undefined4 *)(iVar3 + 0x240) = 1;\n    *(undefined4 *)(iVar3 + 0x84) = 4;\n    SetImageBackgroundColor(iVar3,param_2);\n    local_34 = NewImageList();\n    local_4c = iVar2;\n    do {\n      iVar4 = CloneImage(iVar3,0,0,1,param_2);\n      iVar5 = iVar4;\n      if (iVar4 == 0) {\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }\n      iVar5 = *(int *)(iVar2 + 0x294);\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);\n      if (*(int *)(iVar2 + 0x240) == 2) {\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }\n      else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }\n      iVar5 = CloneImage(iVar4,0,0,1,param_2);\n      iVar3 = iVar4;\n      if (iVar5 == 0) goto LAB_000ec7b0;\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CloneImageProfiles(iVar5,iVar2);\n      CloneImageProperties(iVar5,iVar2);\n      CloneImageArtifacts(iVar5,iVar2);\n      uVar1 = *(undefined4 *)(iVar2 + 0x240);\n      *(undefined4 *)(iVar5 + 0x208) = 0;\n      *(undefined4 *)(iVar5 + 0x20c) = 0;\n      *(undefined4 *)(iVar5 + 0x240) = uVar1;\n      AppendImageToList(&local_34,iVar5);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != 0);\n    DestroyImage(iVar4);\n    iVar5 = GetFirstImageInList(local_34);\n  }\nLAB_000ec7cb:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return iVar5;\n}" { (declaration "undefined4 uVar1;" type_identifier 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 "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_4c;" primitive_type identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xec4d9;" (assignment_expression "uStack_14 = 0xec4d9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages");\n  }" { (expression_statement "__assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages");" (call_expression "__assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages")" identifier (argument_list "("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages")" ( (string_literal ""images != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/layer.c"" " string_content ") , number_literal , (string_literal ""DisposeImages"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages");\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x3344) != -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x3344) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x3344)" * (cast_expression "(int *)(param_1 + 0x3344)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3344)" ( (binary_expression "param_1 + 0x3344" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages");\n  }" { (expression_statement "__assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages");" (call_expression "__assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages")" identifier (argument_list "("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages")" ( (string_literal ""images->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/layer.c"" " string_content ") , number_literal , (string_literal ""DisposeImages"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/layer.c","DisposeImages",0x19f,&DAT_002b6e4e,param_1 + 0x318);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x3328) != 0)" ( (binary_expression "*(int *)(param_1 + 0x3328) != 0" (pointer_expression "*(int *)(param_1 + 0x3328)" * (cast_expression "(int *)(param_1 + 0x3328)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3328)" ( (binary_expression "param_1 + 0x3328" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    LogMagickEvent(0x8000,"MagickCore/layer.c","DisposeImages",0x19f,&DAT_002b6e4e,param_1 + 0x318);\n  }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/layer.c","DisposeImages",0x19f,&DAT_002b6e4e,param_1 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/layer.c","DisposeImages",0x19f,&DAT_002b6e4e,param_1 + 0x318)" identifier (argument_list "(0x8000,"MagickCore/layer.c","DisposeImages",0x19f,&DAT_002b6e4e,param_1 + 0x318)" ( number_literal , (string_literal ""MagickCore/layer.c"" " string_content ") , (string_literal ""DisposeImages"" " string_content ") , number_literal , (pointer_expression "&DAT_002b6e4e" & identifier) , (binary_expression "param_1 + 0x318" identifier + number_literal) ))) ;) })) (if_statement "if (param_2 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages");\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages");\n  }" { (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/layer.c"" " string_content ") , number_literal , (string_literal ""DisposeImages"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_2 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages");\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x1c) != -0x54535255)" ( (binary_expression "*(int *)(param_2 + 0x1c) != -0x54535255" (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages");\n  }" { (expression_statement "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages");" (call_expression "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages")" identifier (argument_list "("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages")" ( (string_literal ""exception->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/layer.c"" " string_content ") , number_literal , (string_literal ""DisposeImages"" " string_content ") ))) ;) })) (expression_statement "iVar2 = GetFirstImageInList(param_1);" (assignment_expression "iVar2 = GetFirstImageInList(param_1)" identifier = (call_expression "GetFirstImageInList(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar3 = CloneImage(iVar2,*(undefined4 *)(iVar2 + 0x200),*(undefined4 *)(iVar2 + 0x204),1,param_2);" (assignment_expression "iVar3 = CloneImage(iVar2,*(undefined4 *)(iVar2 + 0x200),*(undefined4 *)(iVar2 + 0x204),1,param_2)" identifier = (call_expression "CloneImage(iVar2,*(undefined4 *)(iVar2 + 0x200),*(undefined4 *)(iVar2 + 0x204),1,param_2)" identifier (argument_list "(iVar2,*(undefined4 *)(iVar2 + 0x200),*(undefined4 *)(iVar2 + 0x204),1,param_2)" ( identifier , (pointer_expression "*(undefined4 *)(iVar2 + 0x200)" * (cast_expression "(undefined4 *)(iVar2 + 0x200)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x200)" ( (binary_expression "iVar2 + 0x200" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar2 + 0x204)" * (cast_expression "(undefined4 *)(iVar2 + 0x204)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x204)" ( (binary_expression "iVar2 + 0x204" identifier + number_literal) )))) , number_literal , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n    iVar5 = 0;\n  }\n  else {\n    *(undefined4 *)(iVar3 + 0x200) = *(undefined4 *)(iVar2 + 0x200);\n    uVar1 = *(undefined4 *)(iVar2 + 0x204);\n    *(undefined8 *)(iVar3 + 0xbc) = 0;\n    *(undefined4 *)(iVar3 + 0x208) = 0;\n    *(undefined4 *)(iVar3 + 0x20c) = 0;\n    *(undefined4 *)(iVar3 + 0x204) = uVar1;\n    *(undefined4 *)(iVar3 + 0x240) = 1;\n    *(undefined4 *)(iVar3 + 0x84) = 4;\n    SetImageBackgroundColor(iVar3,param_2);\n    local_34 = NewImageList();\n    local_4c = iVar2;\n    do {\n      iVar4 = CloneImage(iVar3,0,0,1,param_2);\n      iVar5 = iVar4;\n      if (iVar4 == 0) {\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }\n      iVar5 = *(int *)(iVar2 + 0x294);\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);\n      if (*(int *)(iVar2 + 0x240) == 2) {\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }\n      else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }\n      iVar5 = CloneImage(iVar4,0,0,1,param_2);\n      iVar3 = iVar4;\n      if (iVar5 == 0) goto LAB_000ec7b0;\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CloneImageProfiles(iVar5,iVar2);\n      CloneImageProperties(iVar5,iVar2);\n      CloneImageArtifacts(iVar5,iVar2);\n      uVar1 = *(undefined4 *)(iVar2 + 0x240);\n      *(undefined4 *)(iVar5 + 0x208) = 0;\n      *(undefined4 *)(iVar5 + 0x20c) = 0;\n      *(undefined4 *)(iVar5 + 0x240) = uVar1;\n      AppendImageToList(&local_34,iVar5);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != 0);\n    DestroyImage(iVar4);\n    iVar5 = GetFirstImageInList(local_34);\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar5 = 0;\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    *(undefined4 *)(iVar3 + 0x200) = *(undefined4 *)(iVar2 + 0x200);\n    uVar1 = *(undefined4 *)(iVar2 + 0x204);\n    *(undefined8 *)(iVar3 + 0xbc) = 0;\n    *(undefined4 *)(iVar3 + 0x208) = 0;\n    *(undefined4 *)(iVar3 + 0x20c) = 0;\n    *(undefined4 *)(iVar3 + 0x204) = uVar1;\n    *(undefined4 *)(iVar3 + 0x240) = 1;\n    *(undefined4 *)(iVar3 + 0x84) = 4;\n    SetImageBackgroundColor(iVar3,param_2);\n    local_34 = NewImageList();\n    local_4c = iVar2;\n    do {\n      iVar4 = CloneImage(iVar3,0,0,1,param_2);\n      iVar5 = iVar4;\n      if (iVar4 == 0) {\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }\n      iVar5 = *(int *)(iVar2 + 0x294);\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);\n      if (*(int *)(iVar2 + 0x240) == 2) {\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }\n      else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }\n      iVar5 = CloneImage(iVar4,0,0,1,param_2);\n      iVar3 = iVar4;\n      if (iVar5 == 0) goto LAB_000ec7b0;\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CloneImageProfiles(iVar5,iVar2);\n      CloneImageProperties(iVar5,iVar2);\n      CloneImageArtifacts(iVar5,iVar2);\n      uVar1 = *(undefined4 *)(iVar2 + 0x240);\n      *(undefined4 *)(iVar5 + 0x208) = 0;\n      *(undefined4 *)(iVar5 + 0x20c) = 0;\n      *(undefined4 *)(iVar5 + 0x240) = uVar1;\n      AppendImageToList(&local_34,iVar5);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != 0);\n    DestroyImage(iVar4);\n    iVar5 = GetFirstImageInList(local_34);\n  }" else (compound_statement "{\n    *(undefined4 *)(iVar3 + 0x200) = *(undefined4 *)(iVar2 + 0x200);\n    uVar1 = *(undefined4 *)(iVar2 + 0x204);\n    *(undefined8 *)(iVar3 + 0xbc) = 0;\n    *(undefined4 *)(iVar3 + 0x208) = 0;\n    *(undefined4 *)(iVar3 + 0x20c) = 0;\n    *(undefined4 *)(iVar3 + 0x204) = uVar1;\n    *(undefined4 *)(iVar3 + 0x240) = 1;\n    *(undefined4 *)(iVar3 + 0x84) = 4;\n    SetImageBackgroundColor(iVar3,param_2);\n    local_34 = NewImageList();\n    local_4c = iVar2;\n    do {\n      iVar4 = CloneImage(iVar3,0,0,1,param_2);\n      iVar5 = iVar4;\n      if (iVar4 == 0) {\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }\n      iVar5 = *(int *)(iVar2 + 0x294);\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);\n      if (*(int *)(iVar2 + 0x240) == 2) {\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }\n      else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }\n      iVar5 = CloneImage(iVar4,0,0,1,param_2);\n      iVar3 = iVar4;\n      if (iVar5 == 0) goto LAB_000ec7b0;\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CloneImageProfiles(iVar5,iVar2);\n      CloneImageProperties(iVar5,iVar2);\n      CloneImageArtifacts(iVar5,iVar2);\n      uVar1 = *(undefined4 *)(iVar2 + 0x240);\n      *(undefined4 *)(iVar5 + 0x208) = 0;\n      *(undefined4 *)(iVar5 + 0x20c) = 0;\n      *(undefined4 *)(iVar5 + 0x240) = uVar1;\n      AppendImageToList(&local_34,iVar5);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != 0);\n    DestroyImage(iVar4);\n    iVar5 = GetFirstImageInList(local_34);\n  }" { (expression_statement "*(undefined4 *)(iVar3 + 0x200) = *(undefined4 *)(iVar2 + 0x200);" (assignment_expression "*(undefined4 *)(iVar3 + 0x200) = *(undefined4 *)(iVar2 + 0x200)" (pointer_expression "*(undefined4 *)(iVar3 + 0x200)" * (cast_expression "(undefined4 *)(iVar3 + 0x200)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x200)" ( (binary_expression "iVar3 + 0x200" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar2 + 0x200)" * (cast_expression "(undefined4 *)(iVar2 + 0x200)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x200)" ( (binary_expression "iVar2 + 0x200" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(undefined4 *)(iVar2 + 0x204);" (assignment_expression "uVar1 = *(undefined4 *)(iVar2 + 0x204)" identifier = (pointer_expression "*(undefined4 *)(iVar2 + 0x204)" * (cast_expression "(undefined4 *)(iVar2 + 0x204)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x204)" ( (binary_expression "iVar2 + 0x204" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(iVar3 + 0xbc) = 0;" (assignment_expression "*(undefined8 *)(iVar3 + 0xbc) = 0" (pointer_expression "*(undefined8 *)(iVar3 + 0xbc)" * (cast_expression "(undefined8 *)(iVar3 + 0xbc)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xbc)" ( (binary_expression "iVar3 + 0xbc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x208) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x208) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x208)" * (cast_expression "(undefined4 *)(iVar3 + 0x208)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x208)" ( (binary_expression "iVar3 + 0x208" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x20c) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x20c) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x20c)" * (cast_expression "(undefined4 *)(iVar3 + 0x20c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x20c)" ( (binary_expression "iVar3 + 0x20c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x204) = uVar1;" (assignment_expression "*(undefined4 *)(iVar3 + 0x204) = uVar1" (pointer_expression "*(undefined4 *)(iVar3 + 0x204)" * (cast_expression "(undefined4 *)(iVar3 + 0x204)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x204)" ( (binary_expression "iVar3 + 0x204" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x240) = 1;" (assignment_expression "*(undefined4 *)(iVar3 + 0x240) = 1" (pointer_expression "*(undefined4 *)(iVar3 + 0x240)" * (cast_expression "(undefined4 *)(iVar3 + 0x240)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x240)" ( (binary_expression "iVar3 + 0x240" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x84) = 4;" (assignment_expression "*(undefined4 *)(iVar3 + 0x84) = 4" (pointer_expression "*(undefined4 *)(iVar3 + 0x84)" * (cast_expression "(undefined4 *)(iVar3 + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x84)" ( (binary_expression "iVar3 + 0x84" identifier + number_literal) )))) = number_literal) ;) (expression_statement "SetImageBackgroundColor(iVar3,param_2);" (call_expression "SetImageBackgroundColor(iVar3,param_2)" identifier (argument_list "(iVar3,param_2)" ( identifier , identifier ))) ;) (expression_statement "local_34 = NewImageList();" (assignment_expression "local_34 = NewImageList()" identifier = (call_expression "NewImageList()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_4c = iVar2;" (assignment_expression "local_4c = iVar2" identifier = identifier) ;) (do_statement "do {\n      iVar4 = CloneImage(iVar3,0,0,1,param_2);\n      iVar5 = iVar4;\n      if (iVar4 == 0) {\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }\n      iVar5 = *(int *)(iVar2 + 0x294);\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);\n      if (*(int *)(iVar2 + 0x240) == 2) {\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }\n      else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }\n      iVar5 = CloneImage(iVar4,0,0,1,param_2);\n      iVar3 = iVar4;\n      if (iVar5 == 0) goto LAB_000ec7b0;\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CloneImageProfiles(iVar5,iVar2);\n      CloneImageProperties(iVar5,iVar2);\n      CloneImageArtifacts(iVar5,iVar2);\n      uVar1 = *(undefined4 *)(iVar2 + 0x240);\n      *(undefined4 *)(iVar5 + 0x208) = 0;\n      *(undefined4 *)(iVar5 + 0x20c) = 0;\n      *(undefined4 *)(iVar5 + 0x240) = uVar1;\n      AppendImageToList(&local_34,iVar5);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != 0);" do (compound_statement "{\n      iVar4 = CloneImage(iVar3,0,0,1,param_2);\n      iVar5 = iVar4;\n      if (iVar4 == 0) {\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }\n      iVar5 = *(int *)(iVar2 + 0x294);\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);\n      if (*(int *)(iVar2 + 0x240) == 2) {\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }\n      else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }\n      iVar5 = CloneImage(iVar4,0,0,1,param_2);\n      iVar3 = iVar4;\n      if (iVar5 == 0) goto LAB_000ec7b0;\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CloneImageProfiles(iVar5,iVar2);\n      CloneImageProperties(iVar5,iVar2);\n      CloneImageArtifacts(iVar5,iVar2);\n      uVar1 = *(undefined4 *)(iVar2 + 0x240);\n      *(undefined4 *)(iVar5 + 0x208) = 0;\n      *(undefined4 *)(iVar5 + 0x20c) = 0;\n      *(undefined4 *)(iVar5 + 0x240) = uVar1;\n      AppendImageToList(&local_34,iVar5);\n      local_4c = GetNextImageInList(local_4c);\n    }" { (expression_statement "iVar4 = CloneImage(iVar3,0,0,1,param_2);" (assignment_expression "iVar4 = CloneImage(iVar3,0,0,1,param_2)" identifier = (call_expression "CloneImage(iVar3,0,0,1,param_2)" identifier (argument_list "(iVar3,0,0,1,param_2)" ( identifier , number_literal , number_literal , number_literal , identifier )))) ;) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) (if_statement "if (iVar4 == 0) {\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }" { (labeled_statement "LAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);" statement_identifier : (expression_statement "local_34 = DestroyImageList(local_34);" (assignment_expression "local_34 = DestroyImageList(local_34)" identifier = (call_expression "DestroyImageList(local_34)" identifier (argument_list "(local_34)" ( identifier )))) ;)) (expression_statement "DestroyImage(iVar3);" (call_expression "DestroyImage(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (goto_statement "goto LAB_000ec7cb;" goto statement_identifier ;) })) (expression_statement "iVar5 = *(int *)(iVar2 + 0x294);" (assignment_expression "iVar5 = *(int *)(iVar2 + 0x294)" identifier = (pointer_expression "*(int *)(iVar2 + 0x294)" * (cast_expression "(int *)(iVar2 + 0x294)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x294)" ( (binary_expression "iVar2 + 0x294" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar4 + 0x84) = 4;" (assignment_expression "*(undefined4 *)(iVar4 + 0x84) = 4" (pointer_expression "*(undefined4 *)(iVar4 + 0x84)" * (cast_expression "(undefined4 *)(iVar4 + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x84)" ( (binary_expression "iVar4 + 0x84" identifier + number_literal) )))) = number_literal) ;) (expression_statement "CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);" (call_expression "CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2)" identifier (argument_list "(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2)" ( identifier , identifier , (binary_expression "(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36" (parenthesized_expression "(-(uint)(iVar5 == 0) & 0xffffffd7)" ( (binary_expression "-(uint)(iVar5 == 0) & 0xffffffd7" (unary_expression "-(uint)(iVar5 == 0)" - (call_expression "(uint)(iVar5 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )))) & number_literal) )) + number_literal) , number_literal , (pointer_expression "*(undefined4 *)(iVar2 + 0x208)" * (cast_expression "(undefined4 *)(iVar2 + 0x208)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x208)" ( (binary_expression "iVar2 + 0x208" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar2 + 0x20c)" * (cast_expression "(undefined4 *)(iVar2 + 0x20c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x20c)" ( (binary_expression "iVar2 + 0x20c" identifier + number_literal) )))) , identifier ))) ;) (if_statement "if (*(int *)(iVar2 + 0x240) == 2) {\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }\n      else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }" if (parenthesized_expression "(*(int *)(iVar2 + 0x240) == 2)" ( (binary_expression "*(int *)(iVar2 + 0x240) == 2" (pointer_expression "*(int *)(iVar2 + 0x240)" * (cast_expression "(int *)(iVar2 + 0x240)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x240)" ( (binary_expression "iVar2 + 0x240" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }" { (expression_statement "local_24 = *(int *)(iVar2 + 0x20c);" (assignment_expression "local_24 = *(int *)(iVar2 + 0x20c)" identifier = (pointer_expression "*(int *)(iVar2 + 0x20c)" * (cast_expression "(int *)(iVar2 + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x20c)" ( (binary_expression "iVar2 + 0x20c" identifier + number_literal) ))))) ;) (expression_statement "local_28 = *(int *)(iVar2 + 0x208);" (assignment_expression "local_28 = *(int *)(iVar2 + 0x208)" identifier = (pointer_expression "*(int *)(iVar2 + 0x208)" * (cast_expression "(int *)(iVar2 + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x208)" ( (binary_expression "iVar2 + 0x208" identifier + number_literal) ))))) ;) (expression_statement "local_30 = *(int *)(iVar2 + 0x18);" (assignment_expression "local_30 = *(int *)(iVar2 + 0x18)" identifier = (pointer_expression "*(int *)(iVar2 + 0x18)" * (cast_expression "(int *)(iVar2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }" if (parenthesized_expression "(local_28 < 0)" ( (binary_expression "local_28 < 0" identifier < number_literal) )) (compound_statement "{\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }" { (expression_statement "local_30 = local_30 + local_28;" (assignment_expression "local_30 = local_30 + local_28" identifier = (binary_expression "local_30 + local_28" identifier + identifier)) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) })) (if_statement "if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }" if (parenthesized_expression "(*(int *)(iVar4 + 0x18) < local_30 + local_28)" ( (binary_expression "*(int *)(iVar4 + 0x18) < local_30 + local_28" (pointer_expression "*(int *)(iVar4 + 0x18)" * (cast_expression "(int *)(iVar4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x18)" ( (binary_expression "iVar4 + 0x18" identifier + number_literal) )))) < (binary_expression "local_30 + local_28" identifier + identifier)) )) (compound_statement "{\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }" { (expression_statement "local_30 = *(int *)(iVar4 + 0x18) - local_28;" (assignment_expression "local_30 = *(int *)(iVar4 + 0x18) - local_28" identifier = (binary_expression "*(int *)(iVar4 + 0x18) - local_28" (pointer_expression "*(int *)(iVar4 + 0x18)" * (cast_expression "(int *)(iVar4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x18)" ( (binary_expression "iVar4 + 0x18" identifier + number_literal) )))) - identifier)) ;) })) (expression_statement "iVar5 = *(int *)(iVar2 + 0x1c) + local_24;" (assignment_expression "iVar5 = *(int *)(iVar2 + 0x1c) + local_24" identifier = (binary_expression "*(int *)(iVar2 + 0x1c) + local_24" (pointer_expression "*(int *)(iVar2 + 0x1c)" * (cast_expression "(int *)(iVar2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) )))) + identifier)) ;) (expression_statement "local_2c = *(int *)(iVar2 + 0x1c);" (assignment_expression "local_2c = *(int *)(iVar2 + 0x1c)" identifier = (pointer_expression "*(int *)(iVar2 + 0x1c)" * (cast_expression "(int *)(iVar2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) ))))) ;) (if_statement "if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }" if (parenthesized_expression "(local_24 < 0)" ( (binary_expression "local_24 < 0" identifier < number_literal) )) (compound_statement "{\n          local_24 = 0;\n          local_2c = iVar5;\n        }" { (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_2c = iVar5;" (assignment_expression "local_2c = iVar5" identifier = identifier) ;) })) (if_statement "if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }" if (parenthesized_expression "(*(int *)(iVar4 + 0x1c) < iVar5)" ( (binary_expression "*(int *)(iVar4 + 0x1c) < iVar5" (pointer_expression "*(int *)(iVar4 + 0x1c)" * (cast_expression "(int *)(iVar4 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x1c)" ( (binary_expression "iVar4 + 0x1c" identifier + number_literal) )))) < identifier) )) (compound_statement "{\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }" { (expression_statement "local_2c = *(int *)(iVar4 + 0x1c) - local_24;" (assignment_expression "local_2c = *(int *)(iVar4 + 0x1c) - local_24" identifier = (binary_expression "*(int *)(iVar4 + 0x1c) - local_24" (pointer_expression "*(int *)(iVar4 + 0x1c)" * (cast_expression "(int *)(iVar4 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x1c)" ( (binary_expression "iVar4 + 0x1c" identifier + number_literal) )))) - identifier)) ;) })) (expression_statement "FUN_000e9f60();" (call_expression "FUN_000e9f60()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;" if (parenthesized_expression "(*(int *)(iVar2 + 0x240) != 3)" ( (binary_expression "*(int *)(iVar2 + 0x240) != 3" (pointer_expression "*(int *)(iVar2 + 0x240)" * (cast_expression "(int *)(iVar2 + 0x240)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x240)" ( (binary_expression "iVar2 + 0x240" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_000ec5f9;" goto statement_identifier ;)) (labeled_statement "LAB_000ec77a:\n        DestroyImage(iVar4);" statement_identifier : (expression_statement "DestroyImage(iVar4);" (call_expression "DestroyImage(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;)) (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;) }) (else_clause "else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }" else (compound_statement "{\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }" { (if_statement "if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;" if (parenthesized_expression "(*(int *)(iVar2 + 0x240) == 3)" ( (binary_expression "*(int *)(iVar2 + 0x240) == 3" (pointer_expression "*(int *)(iVar2 + 0x240)" * (cast_expression "(int *)(iVar2 + 0x240)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x240)" ( (binary_expression "iVar2 + 0x240" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_000ec77a;" goto statement_identifier ;)) (labeled_statement "LAB_000ec5f9:\n        DestroyImage(iVar3);" statement_identifier : (expression_statement "DestroyImage(iVar3);" (call_expression "DestroyImage(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;)) }))) (expression_statement "iVar5 = CloneImage(iVar4,0,0,1,param_2);" (assignment_expression "iVar5 = CloneImage(iVar4,0,0,1,param_2)" identifier = (call_expression "CloneImage(iVar4,0,0,1,param_2)" identifier (argument_list "(iVar4,0,0,1,param_2)" ( identifier , number_literal , number_literal , number_literal , identifier )))) ;) (expression_statement "iVar3 = iVar4;" (assignment_expression "iVar3 = iVar4" identifier = identifier) ;) (if_statement "if (iVar5 == 0) goto LAB_000ec7b0;" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000ec7b0;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)(iVar4 + 0x84) = 4;" (assignment_expression "*(undefined4 *)(iVar4 + 0x84) = 4" (pointer_expression "*(undefined4 *)(iVar4 + 0x84)" * (cast_expression "(undefined4 *)(iVar4 + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x84)" ( (binary_expression "iVar4 + 0x84" identifier + number_literal) )))) = number_literal) ;) (expression_statement "CloneImageProfiles(iVar5,iVar2);" (call_expression "CloneImageProfiles(iVar5,iVar2)" identifier (argument_list "(iVar5,iVar2)" ( identifier , identifier ))) ;) (expression_statement "CloneImageProperties(iVar5,iVar2);" (call_expression "CloneImageProperties(iVar5,iVar2)" identifier (argument_list "(iVar5,iVar2)" ( identifier , identifier ))) ;) (expression_statement "CloneImageArtifacts(iVar5,iVar2);" (call_expression "CloneImageArtifacts(iVar5,iVar2)" identifier (argument_list "(iVar5,iVar2)" ( identifier , identifier ))) ;) (expression_statement "uVar1 = *(undefined4 *)(iVar2 + 0x240);" (assignment_expression "uVar1 = *(undefined4 *)(iVar2 + 0x240)" identifier = (pointer_expression "*(undefined4 *)(iVar2 + 0x240)" * (cast_expression "(undefined4 *)(iVar2 + 0x240)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x240)" ( (binary_expression "iVar2 + 0x240" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar5 + 0x208) = 0;" (assignment_expression "*(undefined4 *)(iVar5 + 0x208) = 0" (pointer_expression "*(undefined4 *)(iVar5 + 0x208)" * (cast_expression "(undefined4 *)(iVar5 + 0x208)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x208)" ( (binary_expression "iVar5 + 0x208" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar5 + 0x20c) = 0;" (assignment_expression "*(undefined4 *)(iVar5 + 0x20c) = 0" (pointer_expression "*(undefined4 *)(iVar5 + 0x20c)" * (cast_expression "(undefined4 *)(iVar5 + 0x20c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x20c)" ( (binary_expression "iVar5 + 0x20c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar5 + 0x240) = uVar1;" (assignment_expression "*(undefined4 *)(iVar5 + 0x240) = uVar1" (pointer_expression "*(undefined4 *)(iVar5 + 0x240)" * (cast_expression "(undefined4 *)(iVar5 + 0x240)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x240)" ( (binary_expression "iVar5 + 0x240" identifier + number_literal) )))) = identifier) ;) (expression_statement "AppendImageToList(&local_34,iVar5);" (call_expression "AppendImageToList(&local_34,iVar5)" identifier (argument_list "(&local_34,iVar5)" ( (pointer_expression "&local_34" & identifier) , identifier ))) ;) (expression_statement "local_4c = GetNextImageInList(local_4c);" (assignment_expression "local_4c = GetNextImageInList(local_4c)" identifier = (call_expression "GetNextImageInList(local_4c)" identifier (argument_list "(local_4c)" ( identifier )))) ;) }) while (parenthesized_expression "(local_4c != 0)" ( (binary_expression "local_4c != 0" identifier != number_literal) )) ;) (expression_statement "DestroyImage(iVar4);" (call_expression "DestroyImage(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (expression_statement "iVar5 = GetFirstImageInList(local_34);" (assignment_expression "iVar5 = GetFirstImageInList(local_34)" identifier = (call_expression "GetFirstImageInList(local_34)" identifier (argument_list "(local_34)" ( identifier )))) ;) }))) (labeled_statement "LAB_000ec7cb:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_0029eab0();\n  }" { (expression_statement "FUN_0029eab0();" (call_expression "FUN_0029eab0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 ") ))) ;) })) (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 ") ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT , LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression (parenthesized_expression ( (binary_expression (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) )))) & LIT) )) + LIT) , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (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) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_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) )))) < (binary_expression IDENT + IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT)) ;) (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 (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT , LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }))) (labeled_statement statement_identifier : (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 "int DisposeImages(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int local_4c;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xec4d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/layer.c","DisposeImages",0x19f,&DAT_002b6e4e,param_1 + 0x318);\n  }\n  if (param_2 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages");\n  }\n  if (*(int *)(param_2 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages");\n  }\n  iVar2 = GetFirstImageInList(param_1);\n  iVar3 = CloneImage(iVar2,*(undefined4 *)(iVar2 + 0x200),*(undefined4 *)(iVar2 + 0x204),1,param_2);\n  if (iVar3 == 0) {\n    iVar5 = 0;\n  }\n  else {\n    *(undefined4 *)(iVar3 + 0x200) = *(undefined4 *)(iVar2 + 0x200);\n    uVar1 = *(undefined4 *)(iVar2 + 0x204);\n    *(undefined8 *)(iVar3 + 0xbc) = 0;\n    *(undefined4 *)(iVar3 + 0x208) = 0;\n    *(undefined4 *)(iVar3 + 0x20c) = 0;\n    *(undefined4 *)(iVar3 + 0x204) = uVar1;\n    *(undefined4 *)(iVar3 + 0x240) = 1;\n    *(undefined4 *)(iVar3 + 0x84) = 4;\n    SetImageBackgroundColor(iVar3,param_2);\n    local_34 = NewImageList();\n    local_4c = iVar2;\n    do {\n      iVar4 = CloneImage(iVar3,0,0,1,param_2);\n      iVar5 = iVar4;\n      if (iVar4 == 0) {\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }\n      iVar5 = *(int *)(iVar2 + 0x294);\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);\n      if (*(int *)(iVar2 + 0x240) == 2) {\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }\n      else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }\n      iVar5 = CloneImage(iVar4,0,0,1,param_2);\n      iVar3 = iVar4;\n      if (iVar5 == 0) goto LAB_000ec7b0;\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CloneImageProfiles(iVar5,iVar2);\n      CloneImageProperties(iVar5,iVar2);\n      CloneImageArtifacts(iVar5,iVar2);\n      uVar1 = *(undefined4 *)(iVar2 + 0x240);\n      *(undefined4 *)(iVar5 + 0x208) = 0;\n      *(undefined4 *)(iVar5 + 0x20c) = 0;\n      *(undefined4 *)(iVar5 + 0x240) = uVar1;\n      AppendImageToList(&local_34,iVar5);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != 0);\n    DestroyImage(iVar4);\n    iVar5 = GetFirstImageInList(local_34);\n  }\nLAB_000ec7cb:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return iVar5;\n}" (primitive_type "int") (function_declarator "DisposeImages(int param_1,int param_2)" (identifier "DisposeImages") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int local_4c;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xec4d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/layer.c","DisposeImages",0x19f,&DAT_002b6e4e,param_1 + 0x318);\n  }\n  if (param_2 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages");\n  }\n  if (*(int *)(param_2 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages");\n  }\n  iVar2 = GetFirstImageInList(param_1);\n  iVar3 = CloneImage(iVar2,*(undefined4 *)(iVar2 + 0x200),*(undefined4 *)(iVar2 + 0x204),1,param_2);\n  if (iVar3 == 0) {\n    iVar5 = 0;\n  }\n  else {\n    *(undefined4 *)(iVar3 + 0x200) = *(undefined4 *)(iVar2 + 0x200);\n    uVar1 = *(undefined4 *)(iVar2 + 0x204);\n    *(undefined8 *)(iVar3 + 0xbc) = 0;\n    *(undefined4 *)(iVar3 + 0x208) = 0;\n    *(undefined4 *)(iVar3 + 0x20c) = 0;\n    *(undefined4 *)(iVar3 + 0x204) = uVar1;\n    *(undefined4 *)(iVar3 + 0x240) = 1;\n    *(undefined4 *)(iVar3 + 0x84) = 4;\n    SetImageBackgroundColor(iVar3,param_2);\n    local_34 = NewImageList();\n    local_4c = iVar2;\n    do {\n      iVar4 = CloneImage(iVar3,0,0,1,param_2);\n      iVar5 = iVar4;\n      if (iVar4 == 0) {\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }\n      iVar5 = *(int *)(iVar2 + 0x294);\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);\n      if (*(int *)(iVar2 + 0x240) == 2) {\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }\n      else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }\n      iVar5 = CloneImage(iVar4,0,0,1,param_2);\n      iVar3 = iVar4;\n      if (iVar5 == 0) goto LAB_000ec7b0;\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CloneImageProfiles(iVar5,iVar2);\n      CloneImageProperties(iVar5,iVar2);\n      CloneImageArtifacts(iVar5,iVar2);\n      uVar1 = *(undefined4 *)(iVar2 + 0x240);\n      *(undefined4 *)(iVar5 + 0x208) = 0;\n      *(undefined4 *)(iVar5 + 0x20c) = 0;\n      *(undefined4 *)(iVar5 + 0x240) = uVar1;\n      AppendImageToList(&local_34,iVar5);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != 0);\n    DestroyImage(iVar4);\n    iVar5 = GetFirstImageInList(local_34);\n  }\nLAB_000ec7cb:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return iVar5;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (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 "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_4c;" (primitive_type "int") (identifier "local_4c") (; ";")) (declaration "undefined4 local_34;" (type_identifier "undefined4") (identifier "local_34") (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0xec4d9;" (assignment_expression "uStack_14 = 0xec4d9" (identifier "uStack_14") (= "=") (number_literal "0xec4d9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages");\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("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages");\n  }" ({ "{") (expression_statement "__assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages");" (call_expression "__assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages")" (identifier "__assert_fail") (argument_list "("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages")" (( "(") (string_literal ""images != (Image *) NULL"" (" """) (string_content "images != (Image *) NULL") (" """)) (, ",") (string_literal ""MagickCore/layer.c"" (" """) (string_content "MagickCore/layer.c") (" """)) (, ",") (number_literal "0x19c") (, ",") (string_literal ""DisposeImages"" (" """) (string_content "DisposeImages") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages");\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x3344) != -0x54535255)" (( "(") (binary_expression "*(int *)(param_1 + 0x3344) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x3344)" (* "*") (cast_expression "(int *)(param_1 + 0x3344)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3344)" (( "(") (binary_expression "param_1 + 0x3344" (identifier "param_1") (+ "+") (number_literal "0x3344")) () ")")))) (!= "!=") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages");\n  }" ({ "{") (expression_statement "__assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages");" (call_expression "__assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages")" (identifier "__assert_fail") (argument_list "("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,\n                  "DisposeImages")" (( "(") (string_literal ""images->signature == MagickCoreSignature"" (" """) (string_content "images->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/layer.c"" (" """) (string_content "MagickCore/layer.c") (" """)) (, ",") (number_literal "0x19d") (, ",") (string_literal ""DisposeImages"" (" """) (string_content "DisposeImages") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/layer.c","DisposeImages",0x19f,&DAT_002b6e4e,param_1 + 0x318);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x3328) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x3328) != 0" (pointer_expression "*(int *)(param_1 + 0x3328)" (* "*") (cast_expression "(int *)(param_1 + 0x3328)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3328)" (( "(") (binary_expression "param_1 + 0x3328" (identifier "param_1") (+ "+") (number_literal "0x3328")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    LogMagickEvent(0x8000,"MagickCore/layer.c","DisposeImages",0x19f,&DAT_002b6e4e,param_1 + 0x318);\n  }" ({ "{") (expression_statement "LogMagickEvent(0x8000,"MagickCore/layer.c","DisposeImages",0x19f,&DAT_002b6e4e,param_1 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/layer.c","DisposeImages",0x19f,&DAT_002b6e4e,param_1 + 0x318)" (identifier "LogMagickEvent") (argument_list "(0x8000,"MagickCore/layer.c","DisposeImages",0x19f,&DAT_002b6e4e,param_1 + 0x318)" (( "(") (number_literal "0x8000") (, ",") (string_literal ""MagickCore/layer.c"" (" """) (string_content "MagickCore/layer.c") (" """)) (, ",") (string_literal ""DisposeImages"" (" """) (string_content "DisposeImages") (" """)) (, ",") (number_literal "0x19f") (, ",") (pointer_expression "&DAT_002b6e4e" (& "&") (identifier "DAT_002b6e4e")) (, ",") (binary_expression "param_1 + 0x318" (identifier "param_1") (+ "+") (number_literal "0x318")) () ")"))) (; ";")) (} "}"))) (if_statement "if (param_2 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages");\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("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages");\n  }" ({ "{") (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages")" (identifier "__assert_fail") (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages")" (( "(") (string_literal ""exception != (ExceptionInfo *) NULL"" (" """) (string_content "exception != (ExceptionInfo *) NULL") (" """)) (, ",") (string_literal ""MagickCore/layer.c"" (" """) (string_content "MagickCore/layer.c") (" """)) (, ",") (number_literal "0x1a0") (, ",") (string_literal ""DisposeImages"" (" """) (string_content "DisposeImages") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_2 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages");\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x1c) != -0x54535255)" (( "(") (binary_expression "*(int *)(param_2 + 0x1c) != -0x54535255" (pointer_expression "*(int *)(param_2 + 0x1c)" (* "*") (cast_expression "(int *)(param_2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")")))) (!= "!=") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages");\n  }" ({ "{") (expression_statement "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages");" (call_expression "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages")" (identifier "__assert_fail") (argument_list "("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,\n                  "DisposeImages")" (( "(") (string_literal ""exception->signature == MagickCoreSignature"" (" """) (string_content "exception->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/layer.c"" (" """) (string_content "MagickCore/layer.c") (" """)) (, ",") (number_literal "0x1a1") (, ",") (string_literal ""DisposeImages"" (" """) (string_content "DisposeImages") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar2 = GetFirstImageInList(param_1);" (assignment_expression "iVar2 = GetFirstImageInList(param_1)" (identifier "iVar2") (= "=") (call_expression "GetFirstImageInList(param_1)" (identifier "GetFirstImageInList") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar3 = CloneImage(iVar2,*(undefined4 *)(iVar2 + 0x200),*(undefined4 *)(iVar2 + 0x204),1,param_2);" (assignment_expression "iVar3 = CloneImage(iVar2,*(undefined4 *)(iVar2 + 0x200),*(undefined4 *)(iVar2 + 0x204),1,param_2)" (identifier "iVar3") (= "=") (call_expression "CloneImage(iVar2,*(undefined4 *)(iVar2 + 0x200),*(undefined4 *)(iVar2 + 0x204),1,param_2)" (identifier "CloneImage") (argument_list "(iVar2,*(undefined4 *)(iVar2 + 0x200),*(undefined4 *)(iVar2 + 0x204),1,param_2)" (( "(") (identifier "iVar2") (, ",") (pointer_expression "*(undefined4 *)(iVar2 + 0x200)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x200)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x200)" (( "(") (binary_expression "iVar2 + 0x200" (identifier "iVar2") (+ "+") (number_literal "0x200")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(iVar2 + 0x204)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x204)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x204)" (( "(") (binary_expression "iVar2 + 0x204" (identifier "iVar2") (+ "+") (number_literal "0x204")) () ")")))) (, ",") (number_literal "1") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n    iVar5 = 0;\n  }\n  else {\n    *(undefined4 *)(iVar3 + 0x200) = *(undefined4 *)(iVar2 + 0x200);\n    uVar1 = *(undefined4 *)(iVar2 + 0x204);\n    *(undefined8 *)(iVar3 + 0xbc) = 0;\n    *(undefined4 *)(iVar3 + 0x208) = 0;\n    *(undefined4 *)(iVar3 + 0x20c) = 0;\n    *(undefined4 *)(iVar3 + 0x204) = uVar1;\n    *(undefined4 *)(iVar3 + 0x240) = 1;\n    *(undefined4 *)(iVar3 + 0x84) = 4;\n    SetImageBackgroundColor(iVar3,param_2);\n    local_34 = NewImageList();\n    local_4c = iVar2;\n    do {\n      iVar4 = CloneImage(iVar3,0,0,1,param_2);\n      iVar5 = iVar4;\n      if (iVar4 == 0) {\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }\n      iVar5 = *(int *)(iVar2 + 0x294);\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);\n      if (*(int *)(iVar2 + 0x240) == 2) {\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }\n      else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }\n      iVar5 = CloneImage(iVar4,0,0,1,param_2);\n      iVar3 = iVar4;\n      if (iVar5 == 0) goto LAB_000ec7b0;\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CloneImageProfiles(iVar5,iVar2);\n      CloneImageProperties(iVar5,iVar2);\n      CloneImageArtifacts(iVar5,iVar2);\n      uVar1 = *(undefined4 *)(iVar2 + 0x240);\n      *(undefined4 *)(iVar5 + 0x208) = 0;\n      *(undefined4 *)(iVar5 + 0x20c) = 0;\n      *(undefined4 *)(iVar5 + 0x240) = uVar1;\n      AppendImageToList(&local_34,iVar5);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != 0);\n    DestroyImage(iVar4);\n    iVar5 = GetFirstImageInList(local_34);\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar5 = 0;\n  }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    *(undefined4 *)(iVar3 + 0x200) = *(undefined4 *)(iVar2 + 0x200);\n    uVar1 = *(undefined4 *)(iVar2 + 0x204);\n    *(undefined8 *)(iVar3 + 0xbc) = 0;\n    *(undefined4 *)(iVar3 + 0x208) = 0;\n    *(undefined4 *)(iVar3 + 0x20c) = 0;\n    *(undefined4 *)(iVar3 + 0x204) = uVar1;\n    *(undefined4 *)(iVar3 + 0x240) = 1;\n    *(undefined4 *)(iVar3 + 0x84) = 4;\n    SetImageBackgroundColor(iVar3,param_2);\n    local_34 = NewImageList();\n    local_4c = iVar2;\n    do {\n      iVar4 = CloneImage(iVar3,0,0,1,param_2);\n      iVar5 = iVar4;\n      if (iVar4 == 0) {\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }\n      iVar5 = *(int *)(iVar2 + 0x294);\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);\n      if (*(int *)(iVar2 + 0x240) == 2) {\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }\n      else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }\n      iVar5 = CloneImage(iVar4,0,0,1,param_2);\n      iVar3 = iVar4;\n      if (iVar5 == 0) goto LAB_000ec7b0;\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CloneImageProfiles(iVar5,iVar2);\n      CloneImageProperties(iVar5,iVar2);\n      CloneImageArtifacts(iVar5,iVar2);\n      uVar1 = *(undefined4 *)(iVar2 + 0x240);\n      *(undefined4 *)(iVar5 + 0x208) = 0;\n      *(undefined4 *)(iVar5 + 0x20c) = 0;\n      *(undefined4 *)(iVar5 + 0x240) = uVar1;\n      AppendImageToList(&local_34,iVar5);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != 0);\n    DestroyImage(iVar4);\n    iVar5 = GetFirstImageInList(local_34);\n  }" (else "else") (compound_statement "{\n    *(undefined4 *)(iVar3 + 0x200) = *(undefined4 *)(iVar2 + 0x200);\n    uVar1 = *(undefined4 *)(iVar2 + 0x204);\n    *(undefined8 *)(iVar3 + 0xbc) = 0;\n    *(undefined4 *)(iVar3 + 0x208) = 0;\n    *(undefined4 *)(iVar3 + 0x20c) = 0;\n    *(undefined4 *)(iVar3 + 0x204) = uVar1;\n    *(undefined4 *)(iVar3 + 0x240) = 1;\n    *(undefined4 *)(iVar3 + 0x84) = 4;\n    SetImageBackgroundColor(iVar3,param_2);\n    local_34 = NewImageList();\n    local_4c = iVar2;\n    do {\n      iVar4 = CloneImage(iVar3,0,0,1,param_2);\n      iVar5 = iVar4;\n      if (iVar4 == 0) {\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }\n      iVar5 = *(int *)(iVar2 + 0x294);\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);\n      if (*(int *)(iVar2 + 0x240) == 2) {\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }\n      else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }\n      iVar5 = CloneImage(iVar4,0,0,1,param_2);\n      iVar3 = iVar4;\n      if (iVar5 == 0) goto LAB_000ec7b0;\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CloneImageProfiles(iVar5,iVar2);\n      CloneImageProperties(iVar5,iVar2);\n      CloneImageArtifacts(iVar5,iVar2);\n      uVar1 = *(undefined4 *)(iVar2 + 0x240);\n      *(undefined4 *)(iVar5 + 0x208) = 0;\n      *(undefined4 *)(iVar5 + 0x20c) = 0;\n      *(undefined4 *)(iVar5 + 0x240) = uVar1;\n      AppendImageToList(&local_34,iVar5);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != 0);\n    DestroyImage(iVar4);\n    iVar5 = GetFirstImageInList(local_34);\n  }" ({ "{") (expression_statement "*(undefined4 *)(iVar3 + 0x200) = *(undefined4 *)(iVar2 + 0x200);" (assignment_expression "*(undefined4 *)(iVar3 + 0x200) = *(undefined4 *)(iVar2 + 0x200)" (pointer_expression "*(undefined4 *)(iVar3 + 0x200)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x200)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x200)" (( "(") (binary_expression "iVar3 + 0x200" (identifier "iVar3") (+ "+") (number_literal "0x200")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(iVar2 + 0x200)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x200)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x200)" (( "(") (binary_expression "iVar2 + 0x200" (identifier "iVar2") (+ "+") (number_literal "0x200")) () ")"))))) (; ";")) (expression_statement "uVar1 = *(undefined4 *)(iVar2 + 0x204);" (assignment_expression "uVar1 = *(undefined4 *)(iVar2 + 0x204)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(iVar2 + 0x204)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x204)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x204)" (( "(") (binary_expression "iVar2 + 0x204" (identifier "iVar2") (+ "+") (number_literal "0x204")) () ")"))))) (; ";")) (expression_statement "*(undefined8 *)(iVar3 + 0xbc) = 0;" (assignment_expression "*(undefined8 *)(iVar3 + 0xbc) = 0" (pointer_expression "*(undefined8 *)(iVar3 + 0xbc)" (* "*") (cast_expression "(undefined8 *)(iVar3 + 0xbc)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xbc)" (( "(") (binary_expression "iVar3 + 0xbc" (identifier "iVar3") (+ "+") (number_literal "0xbc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 0x208) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x208) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x208)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x208)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x208)" (( "(") (binary_expression "iVar3 + 0x208" (identifier "iVar3") (+ "+") (number_literal "0x208")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 0x20c) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x20c) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x20c)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x20c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x20c)" (( "(") (binary_expression "iVar3 + 0x20c" (identifier "iVar3") (+ "+") (number_literal "0x20c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 0x204) = uVar1;" (assignment_expression "*(undefined4 *)(iVar3 + 0x204) = uVar1" (pointer_expression "*(undefined4 *)(iVar3 + 0x204)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x204)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x204)" (( "(") (binary_expression "iVar3 + 0x204" (identifier "iVar3") (+ "+") (number_literal "0x204")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 0x240) = 1;" (assignment_expression "*(undefined4 *)(iVar3 + 0x240) = 1" (pointer_expression "*(undefined4 *)(iVar3 + 0x240)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x240)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x240)" (( "(") (binary_expression "iVar3 + 0x240" (identifier "iVar3") (+ "+") (number_literal "0x240")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 0x84) = 4;" (assignment_expression "*(undefined4 *)(iVar3 + 0x84) = 4" (pointer_expression "*(undefined4 *)(iVar3 + 0x84)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x84)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x84)" (( "(") (binary_expression "iVar3 + 0x84" (identifier "iVar3") (+ "+") (number_literal "0x84")) () ")")))) (= "=") (number_literal "4")) (; ";")) (expression_statement "SetImageBackgroundColor(iVar3,param_2);" (call_expression "SetImageBackgroundColor(iVar3,param_2)" (identifier "SetImageBackgroundColor") (argument_list "(iVar3,param_2)" (( "(") (identifier "iVar3") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "local_34 = NewImageList();" (assignment_expression "local_34 = NewImageList()" (identifier "local_34") (= "=") (call_expression "NewImageList()" (identifier "NewImageList") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "local_4c = iVar2;" (assignment_expression "local_4c = iVar2" (identifier "local_4c") (= "=") (identifier "iVar2")) (; ";")) (do_statement "do {\n      iVar4 = CloneImage(iVar3,0,0,1,param_2);\n      iVar5 = iVar4;\n      if (iVar4 == 0) {\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }\n      iVar5 = *(int *)(iVar2 + 0x294);\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);\n      if (*(int *)(iVar2 + 0x240) == 2) {\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }\n      else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }\n      iVar5 = CloneImage(iVar4,0,0,1,param_2);\n      iVar3 = iVar4;\n      if (iVar5 == 0) goto LAB_000ec7b0;\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CloneImageProfiles(iVar5,iVar2);\n      CloneImageProperties(iVar5,iVar2);\n      CloneImageArtifacts(iVar5,iVar2);\n      uVar1 = *(undefined4 *)(iVar2 + 0x240);\n      *(undefined4 *)(iVar5 + 0x208) = 0;\n      *(undefined4 *)(iVar5 + 0x20c) = 0;\n      *(undefined4 *)(iVar5 + 0x240) = uVar1;\n      AppendImageToList(&local_34,iVar5);\n      local_4c = GetNextImageInList(local_4c);\n    } while (local_4c != 0);" (do "do") (compound_statement "{\n      iVar4 = CloneImage(iVar3,0,0,1,param_2);\n      iVar5 = iVar4;\n      if (iVar4 == 0) {\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }\n      iVar5 = *(int *)(iVar2 + 0x294);\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);\n      if (*(int *)(iVar2 + 0x240) == 2) {\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }\n      else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }\n      iVar5 = CloneImage(iVar4,0,0,1,param_2);\n      iVar3 = iVar4;\n      if (iVar5 == 0) goto LAB_000ec7b0;\n      *(undefined4 *)(iVar4 + 0x84) = 4;\n      CloneImageProfiles(iVar5,iVar2);\n      CloneImageProperties(iVar5,iVar2);\n      CloneImageArtifacts(iVar5,iVar2);\n      uVar1 = *(undefined4 *)(iVar2 + 0x240);\n      *(undefined4 *)(iVar5 + 0x208) = 0;\n      *(undefined4 *)(iVar5 + 0x20c) = 0;\n      *(undefined4 *)(iVar5 + 0x240) = uVar1;\n      AppendImageToList(&local_34,iVar5);\n      local_4c = GetNextImageInList(local_4c);\n    }" ({ "{") (expression_statement "iVar4 = CloneImage(iVar3,0,0,1,param_2);" (assignment_expression "iVar4 = CloneImage(iVar3,0,0,1,param_2)" (identifier "iVar4") (= "=") (call_expression "CloneImage(iVar3,0,0,1,param_2)" (identifier "CloneImage") (argument_list "(iVar3,0,0,1,param_2)" (( "(") (identifier "iVar3") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "1") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" (identifier "iVar5") (= "=") (identifier "iVar4")) (; ";")) (if_statement "if (iVar4 == 0) {\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);\n        DestroyImage(iVar3);\n        goto LAB_000ec7cb;\n      }" ({ "{") (labeled_statement "LAB_000ec7b0:\n        local_34 = DestroyImageList(local_34);" (statement_identifier "LAB_000ec7b0") (: ":") (expression_statement "local_34 = DestroyImageList(local_34);" (assignment_expression "local_34 = DestroyImageList(local_34)" (identifier "local_34") (= "=") (call_expression "DestroyImageList(local_34)" (identifier "DestroyImageList") (argument_list "(local_34)" (( "(") (identifier "local_34") () ")")))) (; ";"))) (expression_statement "DestroyImage(iVar3);" (call_expression "DestroyImage(iVar3)" (identifier "DestroyImage") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (goto_statement "goto LAB_000ec7cb;" (goto "goto") (statement_identifier "LAB_000ec7cb") (; ";")) (} "}"))) (expression_statement "iVar5 = *(int *)(iVar2 + 0x294);" (assignment_expression "iVar5 = *(int *)(iVar2 + 0x294)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(iVar2 + 0x294)" (* "*") (cast_expression "(int *)(iVar2 + 0x294)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x294)" (( "(") (binary_expression "iVar2 + 0x294" (identifier "iVar2") (+ "+") (number_literal "0x294")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar4 + 0x84) = 4;" (assignment_expression "*(undefined4 *)(iVar4 + 0x84) = 4" (pointer_expression "*(undefined4 *)(iVar4 + 0x84)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x84)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x84)" (( "(") (binary_expression "iVar4 + 0x84" (identifier "iVar4") (+ "+") (number_literal "0x84")) () ")")))) (= "=") (number_literal "4")) (; ";")) (expression_statement "CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);" (call_expression "CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2)" (identifier "CompositeImage") (argument_list "(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,\n                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2)" (( "(") (identifier "iVar4") (, ",") (identifier "iVar2") (, ",") (binary_expression "(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36" (parenthesized_expression "(-(uint)(iVar5 == 0) & 0xffffffd7)" (( "(") (binary_expression "-(uint)(iVar5 == 0) & 0xffffffd7" (unary_expression "-(uint)(iVar5 == 0)" (- "-") (call_expression "(uint)(iVar5 == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")))) (& "&") (number_literal "0xffffffd7")) () ")")) (+ "+") (number_literal "0x36")) (, ",") (number_literal "1") (, ",") (pointer_expression "*(undefined4 *)(iVar2 + 0x208)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x208)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x208)" (( "(") (binary_expression "iVar2 + 0x208" (identifier "iVar2") (+ "+") (number_literal "0x208")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(iVar2 + 0x20c)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x20c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x20c)" (( "(") (binary_expression "iVar2 + 0x20c" (identifier "iVar2") (+ "+") (number_literal "0x20c")) () ")")))) (, ",") (identifier "param_2") () ")"))) (; ";")) (if_statement "if (*(int *)(iVar2 + 0x240) == 2) {\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }\n      else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }" (if "if") (parenthesized_expression "(*(int *)(iVar2 + 0x240) == 2)" (( "(") (binary_expression "*(int *)(iVar2 + 0x240) == 2" (pointer_expression "*(int *)(iVar2 + 0x240)" (* "*") (cast_expression "(int *)(iVar2 + 0x240)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x240)" (( "(") (binary_expression "iVar2 + 0x240" (identifier "iVar2") (+ "+") (number_literal "0x240")) () ")")))) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n        local_24 = *(int *)(iVar2 + 0x20c);\n        local_28 = *(int *)(iVar2 + 0x208);\n        local_30 = *(int *)(iVar2 + 0x18);\n        if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }\n        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }\n        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;\n        local_2c = *(int *)(iVar2 + 0x1c);\n        if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }\n        if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }\n        FUN_000e9f60();\n        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;\nLAB_000ec77a:\n        DestroyImage(iVar4);\n        iVar4 = iVar3;\n      }" ({ "{") (expression_statement "local_24 = *(int *)(iVar2 + 0x20c);" (assignment_expression "local_24 = *(int *)(iVar2 + 0x20c)" (identifier "local_24") (= "=") (pointer_expression "*(int *)(iVar2 + 0x20c)" (* "*") (cast_expression "(int *)(iVar2 + 0x20c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x20c)" (( "(") (binary_expression "iVar2 + 0x20c" (identifier "iVar2") (+ "+") (number_literal "0x20c")) () ")"))))) (; ";")) (expression_statement "local_28 = *(int *)(iVar2 + 0x208);" (assignment_expression "local_28 = *(int *)(iVar2 + 0x208)" (identifier "local_28") (= "=") (pointer_expression "*(int *)(iVar2 + 0x208)" (* "*") (cast_expression "(int *)(iVar2 + 0x208)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x208)" (( "(") (binary_expression "iVar2 + 0x208" (identifier "iVar2") (+ "+") (number_literal "0x208")) () ")"))))) (; ";")) (expression_statement "local_30 = *(int *)(iVar2 + 0x18);" (assignment_expression "local_30 = *(int *)(iVar2 + 0x18)" (identifier "local_30") (= "=") (pointer_expression "*(int *)(iVar2 + 0x18)" (* "*") (cast_expression "(int *)(iVar2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x18)" (( "(") (binary_expression "iVar2 + 0x18" (identifier "iVar2") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (if_statement "if (local_28 < 0) {\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }" (if "if") (parenthesized_expression "(local_28 < 0)" (( "(") (binary_expression "local_28 < 0" (identifier "local_28") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n          local_30 = local_30 + local_28;\n          local_28 = 0;\n        }" ({ "{") (expression_statement "local_30 = local_30 + local_28;" (assignment_expression "local_30 = local_30 + local_28" (identifier "local_30") (= "=") (binary_expression "local_30 + local_28" (identifier "local_30") (+ "+") (identifier "local_28"))) (; ";")) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }" (if "if") (parenthesized_expression "(*(int *)(iVar4 + 0x18) < local_30 + local_28)" (( "(") (binary_expression "*(int *)(iVar4 + 0x18) < local_30 + local_28" (pointer_expression "*(int *)(iVar4 + 0x18)" (* "*") (cast_expression "(int *)(iVar4 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x18)" (( "(") (binary_expression "iVar4 + 0x18" (identifier "iVar4") (+ "+") (number_literal "0x18")) () ")")))) (< "<") (binary_expression "local_30 + local_28" (identifier "local_30") (+ "+") (identifier "local_28"))) () ")")) (compound_statement "{\n          local_30 = *(int *)(iVar4 + 0x18) - local_28;\n        }" ({ "{") (expression_statement "local_30 = *(int *)(iVar4 + 0x18) - local_28;" (assignment_expression "local_30 = *(int *)(iVar4 + 0x18) - local_28" (identifier "local_30") (= "=") (binary_expression "*(int *)(iVar4 + 0x18) - local_28" (pointer_expression "*(int *)(iVar4 + 0x18)" (* "*") (cast_expression "(int *)(iVar4 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x18)" (( "(") (binary_expression "iVar4 + 0x18" (identifier "iVar4") (+ "+") (number_literal "0x18")) () ")")))) (- "-") (identifier "local_28"))) (; ";")) (} "}"))) (expression_statement "iVar5 = *(int *)(iVar2 + 0x1c) + local_24;" (assignment_expression "iVar5 = *(int *)(iVar2 + 0x1c) + local_24" (identifier "iVar5") (= "=") (binary_expression "*(int *)(iVar2 + 0x1c) + local_24" (pointer_expression "*(int *)(iVar2 + 0x1c)" (* "*") (cast_expression "(int *)(iVar2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x1c)" (( "(") (binary_expression "iVar2 + 0x1c" (identifier "iVar2") (+ "+") (number_literal "0x1c")) () ")")))) (+ "+") (identifier "local_24"))) (; ";")) (expression_statement "local_2c = *(int *)(iVar2 + 0x1c);" (assignment_expression "local_2c = *(int *)(iVar2 + 0x1c)" (identifier "local_2c") (= "=") (pointer_expression "*(int *)(iVar2 + 0x1c)" (* "*") (cast_expression "(int *)(iVar2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x1c)" (( "(") (binary_expression "iVar2 + 0x1c" (identifier "iVar2") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (if_statement "if (local_24 < 0) {\n          local_24 = 0;\n          local_2c = iVar5;\n        }" (if "if") (parenthesized_expression "(local_24 < 0)" (( "(") (binary_expression "local_24 < 0" (identifier "local_24") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n          local_24 = 0;\n          local_2c = iVar5;\n        }" ({ "{") (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2c = iVar5;" (assignment_expression "local_2c = iVar5" (identifier "local_2c") (= "=") (identifier "iVar5")) (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar4 + 0x1c) < iVar5) {\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }" (if "if") (parenthesized_expression "(*(int *)(iVar4 + 0x1c) < iVar5)" (( "(") (binary_expression "*(int *)(iVar4 + 0x1c) < iVar5" (pointer_expression "*(int *)(iVar4 + 0x1c)" (* "*") (cast_expression "(int *)(iVar4 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x1c)" (( "(") (binary_expression "iVar4 + 0x1c" (identifier "iVar4") (+ "+") (number_literal "0x1c")) () ")")))) (< "<") (identifier "iVar5")) () ")")) (compound_statement "{\n          local_2c = *(int *)(iVar4 + 0x1c) - local_24;\n        }" ({ "{") (expression_statement "local_2c = *(int *)(iVar4 + 0x1c) - local_24;" (assignment_expression "local_2c = *(int *)(iVar4 + 0x1c) - local_24" (identifier "local_2c") (= "=") (binary_expression "*(int *)(iVar4 + 0x1c) - local_24" (pointer_expression "*(int *)(iVar4 + 0x1c)" (* "*") (cast_expression "(int *)(iVar4 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x1c)" (( "(") (binary_expression "iVar4 + 0x1c" (identifier "iVar4") (+ "+") (number_literal "0x1c")) () ")")))) (- "-") (identifier "local_24"))) (; ";")) (} "}"))) (expression_statement "FUN_000e9f60();" (call_expression "FUN_000e9f60()" (identifier "FUN_000e9f60") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;" (if "if") (parenthesized_expression "(*(int *)(iVar2 + 0x240) != 3)" (( "(") (binary_expression "*(int *)(iVar2 + 0x240) != 3" (pointer_expression "*(int *)(iVar2 + 0x240)" (* "*") (cast_expression "(int *)(iVar2 + 0x240)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x240)" (( "(") (binary_expression "iVar2 + 0x240" (identifier "iVar2") (+ "+") (number_literal "0x240")) () ")")))) (!= "!=") (number_literal "3")) () ")")) (goto_statement "goto LAB_000ec5f9;" (goto "goto") (statement_identifier "LAB_000ec5f9") (; ";"))) (labeled_statement "LAB_000ec77a:\n        DestroyImage(iVar4);" (statement_identifier "LAB_000ec77a") (: ":") (expression_statement "DestroyImage(iVar4);" (call_expression "DestroyImage(iVar4)" (identifier "DestroyImage") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";"))) (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" (identifier "iVar4") (= "=") (identifier "iVar3")) (; ";")) (} "}")) (else_clause "else {\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }" (else "else") (compound_statement "{\n        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;\nLAB_000ec5f9:\n        DestroyImage(iVar3);\n      }" ({ "{") (if_statement "if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;" (if "if") (parenthesized_expression "(*(int *)(iVar2 + 0x240) == 3)" (( "(") (binary_expression "*(int *)(iVar2 + 0x240) == 3" (pointer_expression "*(int *)(iVar2 + 0x240)" (* "*") (cast_expression "(int *)(iVar2 + 0x240)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x240)" (( "(") (binary_expression "iVar2 + 0x240" (identifier "iVar2") (+ "+") (number_literal "0x240")) () ")")))) (== "==") (number_literal "3")) () ")")) (goto_statement "goto LAB_000ec77a;" (goto "goto") (statement_identifier "LAB_000ec77a") (; ";"))) (labeled_statement "LAB_000ec5f9:\n        DestroyImage(iVar3);" (statement_identifier "LAB_000ec5f9") (: ":") (expression_statement "DestroyImage(iVar3);" (call_expression "DestroyImage(iVar3)" (identifier "DestroyImage") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";"))) (} "}")))) (expression_statement "iVar5 = CloneImage(iVar4,0,0,1,param_2);" (assignment_expression "iVar5 = CloneImage(iVar4,0,0,1,param_2)" (identifier "iVar5") (= "=") (call_expression "CloneImage(iVar4,0,0,1,param_2)" (identifier "CloneImage") (argument_list "(iVar4,0,0,1,param_2)" (( "(") (identifier "iVar4") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "1") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar3 = iVar4;" (assignment_expression "iVar3 = iVar4" (identifier "iVar3") (= "=") (identifier "iVar4")) (; ";")) (if_statement "if (iVar5 == 0) goto LAB_000ec7b0;" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000ec7b0;" (goto "goto") (statement_identifier "LAB_000ec7b0") (; ";"))) (expression_statement "*(undefined4 *)(iVar4 + 0x84) = 4;" (assignment_expression "*(undefined4 *)(iVar4 + 0x84) = 4" (pointer_expression "*(undefined4 *)(iVar4 + 0x84)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x84)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x84)" (( "(") (binary_expression "iVar4 + 0x84" (identifier "iVar4") (+ "+") (number_literal "0x84")) () ")")))) (= "=") (number_literal "4")) (; ";")) (expression_statement "CloneImageProfiles(iVar5,iVar2);" (call_expression "CloneImageProfiles(iVar5,iVar2)" (identifier "CloneImageProfiles") (argument_list "(iVar5,iVar2)" (( "(") (identifier "iVar5") (, ",") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "CloneImageProperties(iVar5,iVar2);" (call_expression "CloneImageProperties(iVar5,iVar2)" (identifier "CloneImageProperties") (argument_list "(iVar5,iVar2)" (( "(") (identifier "iVar5") (, ",") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "CloneImageArtifacts(iVar5,iVar2);" (call_expression "CloneImageArtifacts(iVar5,iVar2)" (identifier "CloneImageArtifacts") (argument_list "(iVar5,iVar2)" (( "(") (identifier "iVar5") (, ",") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "uVar1 = *(undefined4 *)(iVar2 + 0x240);" (assignment_expression "uVar1 = *(undefined4 *)(iVar2 + 0x240)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(iVar2 + 0x240)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x240)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x240)" (( "(") (binary_expression "iVar2 + 0x240" (identifier "iVar2") (+ "+") (number_literal "0x240")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar5 + 0x208) = 0;" (assignment_expression "*(undefined4 *)(iVar5 + 0x208) = 0" (pointer_expression "*(undefined4 *)(iVar5 + 0x208)" (* "*") (cast_expression "(undefined4 *)(iVar5 + 0x208)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x208)" (( "(") (binary_expression "iVar5 + 0x208" (identifier "iVar5") (+ "+") (number_literal "0x208")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar5 + 0x20c) = 0;" (assignment_expression "*(undefined4 *)(iVar5 + 0x20c) = 0" (pointer_expression "*(undefined4 *)(iVar5 + 0x20c)" (* "*") (cast_expression "(undefined4 *)(iVar5 + 0x20c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x20c)" (( "(") (binary_expression "iVar5 + 0x20c" (identifier "iVar5") (+ "+") (number_literal "0x20c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar5 + 0x240) = uVar1;" (assignment_expression "*(undefined4 *)(iVar5 + 0x240) = uVar1" (pointer_expression "*(undefined4 *)(iVar5 + 0x240)" (* "*") (cast_expression "(undefined4 *)(iVar5 + 0x240)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x240)" (( "(") (binary_expression "iVar5 + 0x240" (identifier "iVar5") (+ "+") (number_literal "0x240")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "AppendImageToList(&local_34,iVar5);" (call_expression "AppendImageToList(&local_34,iVar5)" (identifier "AppendImageToList") (argument_list "(&local_34,iVar5)" (( "(") (pointer_expression "&local_34" (& "&") (identifier "local_34")) (, ",") (identifier "iVar5") () ")"))) (; ";")) (expression_statement "local_4c = GetNextImageInList(local_4c);" (assignment_expression "local_4c = GetNextImageInList(local_4c)" (identifier "local_4c") (= "=") (call_expression "GetNextImageInList(local_4c)" (identifier "GetNextImageInList") (argument_list "(local_4c)" (( "(") (identifier "local_4c") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(local_4c != 0)" (( "(") (binary_expression "local_4c != 0" (identifier "local_4c") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "DestroyImage(iVar4);" (call_expression "DestroyImage(iVar4)" (identifier "DestroyImage") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (expression_statement "iVar5 = GetFirstImageInList(local_34);" (assignment_expression "iVar5 = GetFirstImageInList(local_34)" (identifier "iVar5") (= "=") (call_expression "GetFirstImageInList(local_34)" (identifier "GetFirstImageInList") (argument_list "(local_34)" (( "(") (identifier "local_34") () ")")))) (; ";")) (} "}")))) (labeled_statement "LAB_000ec7cb:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }" (statement_identifier "LAB_000ec7cb") (: ":") (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_0029eab0();\n  }" ({ "{") (expression_statement "FUN_0029eab0();" (call_expression "FUN_0029eab0()" (identifier "FUN_0029eab0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "GravityType": Some values do not have unique names */
/* WARNING: Enum "DisposeType": Some values do not have unique names */
/* WARNING: Enum "ChannelType": Some values do not have unique names */
/* WARNING: Enum "PixelChannel": Some values do not have unique names */
/* WARNING: Enum "ExceptionType": Some values do not have unique names */
/* WARNING: Enum "LogEventType": Some values do not have unique names */

type_1 * function_1(type_1 *var_2,type_2 *var_6)

{
  int var_29;
  type_3 DVar2;
  type_4 var_16;
  type_1 *image;
  type_1 *var_9;
  type_1 *var_22;
  type_1 *var_12;
  size_t sVar4;
  int var_1;
  type_1 *var_28;
  type_1 *dispose_images;
  type_5 bounds;
  
  var_29 = *(int *)(var_1 + 0x14);
  if (var_2 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("images != (Image *) NULL","MagickCore/layer.c",0x19c,"DisposeImages");
  }
  if (var_2->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    var_3("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,
                  "DisposeImages");
  }
  if (var_2->debug != var_4) {
    var_5(TraceEvent,"MagickCore/layer.c","DisposeImages",0x19f,"%s",var_2->filename);
  }
  if (var_6 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"DisposeImages");
  }
  if (var_6->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    var_3("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,
                  "DisposeImages");
  }
  image = var_7(var_2);
  var_9 = var_8(image,(image->page).width,(image->page).height,MagickTrue,var_6);
  if (var_9 == (type_1 *)0x0) {
    var_22 = (type_1 *)0x0;
  }
  else {
    (var_9->page).width = (image->page).width;
    sVar4 = (image->page).height;
    (var_9->background_color).alpha = 0.0;
    (var_9->page).x = 0;
    (var_9->page).y = 0;
    (var_9->page).height = sVar4;
    var_9->dispose = NoneDispose;
    (var_9->background_color).alpha_trait = BlendPixelTrait;
    var_10(var_9,var_6);
    dispose_images = var_11();
    var_28 = image;
    do {
      var_12 = var_8(var_9,0,0,MagickTrue,var_6);
      var_22 = var_12;
      if (var_12 == (type_1 *)0x0) {
LAB_000ec7b0:
        dispose_images = var_13(dispose_images);
        var_14(var_9);
        goto LAB_000ec7cb;
      }
      var_16 = image->alpha_trait;
      (var_12->background_color).alpha_trait = BlendPixelTrait;
      var_15(var_12,image,
                     (-(uint)(var_16 == var_17) & 0xffffffd7) + var_18,
                     MagickTrue,(image->page).x,(image->page).y,var_6);
      if (image->dispose == var_19) {
        bounds.y = (image->page).y;
        bounds.x = (image->page).x;
        bounds.width = image->columns;
        if (bounds.x < 0) {
          bounds.width = bounds.width + bounds.x;
          bounds.x = 0;
        }
        if ((int)var_12->columns < (int)(bounds.width + bounds.x)) {
          bounds.width = var_12->columns - bounds.x;
        }
        sVar4 = image->rows + bounds.y;
        bounds.height = image->rows;
        if (bounds.y < 0) {
          bounds.y = 0;
          bounds.height = sVar4;
        }
        if ((int)var_12->rows < (int)sVar4) {
          bounds.height = var_12->rows - bounds.y;
        }
        var_20(var_12,&bounds,var_6);
        if (image->dispose != var_21) goto LAB_000ec5f9;
LAB_000ec77a:
        var_14(var_12);
        var_12 = var_9;
      }
      else {
        if (image->dispose == var_21) goto LAB_000ec77a;
LAB_000ec5f9:
        var_14(var_9);
      }
      var_22 = var_8(var_12,0,0,MagickTrue,var_6);
      var_9 = var_12;
      if (var_22 == (type_1 *)0x0) goto LAB_000ec7b0;
      (var_12->background_color).alpha_trait = BlendPixelTrait;
      var_23(var_22,image);
      var_24(var_22,image);
      var_25(var_22,image);
      DVar2 = image->dispose;
      (var_22->page).x = 0;
      (var_22->page).y = 0;
      var_22->dispose = DVar2;
      var_26(&dispose_images,var_22);
      var_28 = var_27(var_28);
    } while (var_28 != (type_1 *)0x0);
    var_14(var_12);
    var_22 = var_7(dispose_images);
  }
LAB_000ec7cb:
  if (var_29 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_30();
  }
  return var_22;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (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))))))) (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))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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))))) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (number_literal) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal) (number_literal) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (parenthesized_expression (binary_expression left: (unary_expression argument: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal)) (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))))) (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))))) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (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 (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_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: (binary_expression left: (identifier) right: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) (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 (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (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 (call_expression function: (identifier) arguments: (argument_list))) (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: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal) (number_literal) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier)))) (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 (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))))))) (labeled_statement label: (statement_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.bx replaced with injection: get_pc_thunk_bx */

int MASKED(int param_1,int param_2)

{
  undefined4 uVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int in_GS_OFFSET;
  int local_4c;
  undefined4 local_34;
  int local_30;
  int local_2c;
  int local_28;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0xec4d9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("images != (Image *) NULL","MagickCore/layer.c",0x19c,"MASKED");
  }
  if (*(int *)(param_1 + 0x3344) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("images->signature == MagickCoreSignature","MagickCore/layer.c",0x19d,
                  "MASKED");
  }
  if (*(int *)(param_1 + 0x3328) != 0) {
    LogMagickEvent(0x8000,"MagickCore/layer.c","MASKED",0x19f,&DAT_002b6e4e,param_1 + 0x318);
  }
  if (param_2 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x1a0,"MASKED");
  }
  if (*(int *)(param_2 + 0x1c) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x1a1,
                  "MASKED");
  }
  iVar2 = GetFirstImageInList(param_1);
  iVar3 = CloneImage(iVar2,*(undefined4 *)(iVar2 + 0x200),*(undefined4 *)(iVar2 + 0x204),1,param_2);
  if (iVar3 == 0) {
    iVar5 = 0;
  }
  else {
    *(undefined4 *)(iVar3 + 0x200) = *(undefined4 *)(iVar2 + 0x200);
    uVar1 = *(undefined4 *)(iVar2 + 0x204);
    *(undefined8 *)(iVar3 + 0xbc) = 0;
    *(undefined4 *)(iVar3 + 0x208) = 0;
    *(undefined4 *)(iVar3 + 0x20c) = 0;
    *(undefined4 *)(iVar3 + 0x204) = uVar1;
    *(undefined4 *)(iVar3 + 0x240) = 1;
    *(undefined4 *)(iVar3 + 0x84) = 4;
    SetImageBackgroundColor(iVar3,param_2);
    local_34 = NewImageList();
    local_4c = iVar2;
    do {
      iVar4 = CloneImage(iVar3,0,0,1,param_2);
      iVar5 = iVar4;
      if (iVar4 == 0) {
LAB_000ec7b0:
        local_34 = DestroyImageList(local_34);
        DestroyImage(iVar3);
        goto LAB_000ec7cb;
      }
      iVar5 = *(int *)(iVar2 + 0x294);
      *(undefined4 *)(iVar4 + 0x84) = 4;
      CompositeImage(iVar4,iVar2,(-(uint)(iVar5 == 0) & 0xffffffd7) + 0x36,1,
                     *(undefined4 *)(iVar2 + 0x208),*(undefined4 *)(iVar2 + 0x20c),param_2);
      if (*(int *)(iVar2 + 0x240) == 2) {
        local_24 = *(int *)(iVar2 + 0x20c);
        local_28 = *(int *)(iVar2 + 0x208);
        local_30 = *(int *)(iVar2 + 0x18);
        if (local_28 < 0) {
          local_30 = local_30 + local_28;
          local_28 = 0;
        }
        if (*(int *)(iVar4 + 0x18) < local_30 + local_28) {
          local_30 = *(int *)(iVar4 + 0x18) - local_28;
        }
        iVar5 = *(int *)(iVar2 + 0x1c) + local_24;
        local_2c = *(int *)(iVar2 + 0x1c);
        if (local_24 < 0) {
          local_24 = 0;
          local_2c = iVar5;
        }
        if (*(int *)(iVar4 + 0x1c) < iVar5) {
          local_2c = *(int *)(iVar4 + 0x1c) - local_24;
        }
        FUN_000e9f60();
        if (*(int *)(iVar2 + 0x240) != 3) goto LAB_000ec5f9;
LAB_000ec77a:
        DestroyImage(iVar4);
        iVar4 = iVar3;
      }
      else {
        if (*(int *)(iVar2 + 0x240) == 3) goto LAB_000ec77a;
LAB_000ec5f9:
        DestroyImage(iVar3);
      }
      iVar5 = CloneImage(iVar4,0,0,1,param_2);
      iVar3 = iVar4;
      if (iVar5 == 0) goto LAB_000ec7b0;
      *(undefined4 *)(iVar4 + 0x84) = 4;
      CloneImageProfiles(iVar5,iVar2);
      CloneImageProperties(iVar5,iVar2);
      CloneImageArtifacts(iVar5,iVar2);
      uVar1 = *(undefined4 *)(iVar2 + 0x240);
      *(undefined4 *)(iVar5 + 0x208) = 0;
      *(undefined4 *)(iVar5 + 0x20c) = 0;
      *(undefined4 *)(iVar5 + 0x240) = uVar1;
      AppendImageToList(&local_34,iVar5);
      local_4c = GetNextImageInList(local_4c);
    } while (local_4c != 0);
    DestroyImage(iVar4);
    iVar5 = GetFirstImageInList(local_34);
  }
LAB_000ec7cb:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0029eab0();
  }
  return iVar5;
}

