
/* 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 */

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

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  int iVar4;
  Image *pIVar5;
  DisposeType DVar6;
  int iVar7;
  Image *image;
  size_t sVar8;
  undefined4 uVar9;
  int iVar10;
  Image *dispose_images;
  RectangleInfo bounds;
  
  puVar2 = PTR___stack_chk_guard_003a9230;
  iVar3 = *(int *)PTR___stack_chk_guard_003a9230;
  if (images == (Image *)0x0) {
    pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)
                                (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,
                                 PTR_s_t_to_left_003a88e4 + -0x4b50);
    return pIVar5;
  }
  if (images->signature != 0xabacadab) {
    pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)
                                (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,
                                 PTR_s_t_to_left_003a88e4 + -0x4b50);
    return pIVar5;
  }
  if (images->debug != MagickFalse) {
    (*(code *)PTR_LogMagickEvent_003a91e0)
              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,
               PTR_s_t_to_left_003a88e4 + -0x62ac,images->filename);
  }
  if (exception == (ExceptionInfo *)0x0) {
    pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)
                                (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,
                                 PTR_s_t_to_left_003a88e4 + -0x4b50);
    return pIVar5;
  }
  if (exception->signature == 0xabacadab) {
    iVar4 = (*(code *)PTR_GetFirstImageInList_003a944c)(images);
    pIVar5 = (Image *)(*(code *)PTR_CloneImage_003a9830)
                                (iVar4,*(undefined4 *)(iVar4 + 0x228),*(undefined4 *)(iVar4 + 0x22c)
                                 ,1,exception);
    puVar1 = PTR_SetImageBackgroundColor_003a8e90;
    if (pIVar5 == (Image *)0x0) {
      image = (Image *)0x0;
    }
    else {
      sVar8 = *(size_t *)(iVar4 + 0x228);
      (pIVar5->page).height = *(size_t *)(iVar4 + 0x22c);
      (pIVar5->page).width = sVar8;
      pIVar5->dispose = NoneDispose;
      (pIVar5->page).x = 0;
      (pIVar5->background_color).alpha_trait = BlendPixelTrait;
      (pIVar5->page).y = 0;
      *(undefined4 *)((int)&(pIVar5->background_color).alpha + 4) = 0;
      *(undefined4 *)&(pIVar5->background_color).alpha = 0;
      (*(code *)puVar1)(pIVar5,exception);
      dispose_images = (Image *)(*(code *)PTR_NewImageList_003a8e84)();
      iVar7 = iVar4;
      do {
        image = (Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception);
        if (image == (Image *)0x0) {
LAB_00102c38:
          dispose_images = (Image *)(*(code *)PTR_DestroyImageList_003a9510)(dispose_images);
          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);
          goto LAB_00102c5c;
        }
        iVar10 = *(int *)(iVar4 + 700);
        (image->background_color).alpha_trait = BlendPixelTrait;
        uVar9 = 0x36;
        if (iVar10 == 0) {
          uVar9 = 0xd;
        }
        (*(code *)PTR_CompositeImage_003a8cc4)
                  (image,iVar4,uVar9,1,*(undefined4 *)(iVar4 + 0x230),*(undefined4 *)(iVar4 + 0x234)
                   ,exception);
        if (*(int *)(iVar4 + 0x268) == 2) {
          bounds.width = *(size_t *)(iVar4 + 0x18);
          bounds.x = *(int *)(iVar4 + 0x230);
          bounds.y = *(int *)(iVar4 + 0x234);
          if (bounds.x < 0) {
            bounds.width = bounds.width + bounds.x;
            bounds.x = 0;
          }
          if ((int)image->columns < (int)(bounds.width + bounds.x)) {
            bounds.width = image->columns - bounds.x;
          }
          sVar8 = *(size_t *)(iVar4 + 0x1c) + bounds.y;
          bounds.height = *(size_t *)(iVar4 + 0x1c);
          if (bounds.y < 0) {
            bounds.y = 0;
            bounds.height = sVar8;
          }
          if ((int)image->rows < (int)sVar8) {
            bounds.height = image->rows - bounds.y;
          }
          ClearBounds(image,&bounds,exception);
          if (*(int *)(iVar4 + 0x268) == 3) goto LAB_00102c28;
LAB_00102a58:
          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);
          pIVar5 = image;
        }
        else {
          if (*(int *)(iVar4 + 0x268) != 3) goto LAB_00102a58;
LAB_00102c28:
          (*(code *)PTR_DestroyImage_003a8f4c)(image);
        }
        image = (Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception);
        puVar1 = PTR_CloneImageProfiles_003a9348;
        if (image == (Image *)0x0) goto LAB_00102c38;
        (pIVar5->background_color).alpha_trait = BlendPixelTrait;
        (*(code *)puVar1)(image,iVar4);
        (*(code *)PTR_CloneImageProperties_003a91ac)(image,iVar4);
        (*(code *)PTR_CloneImageArtifacts_003a9500)(image,iVar4);
        DVar6 = *(DisposeType *)(iVar4 + 0x268);
        (image->page).x = 0;
        (image->page).y = 0;
        puVar1 = PTR_AppendImageToList_003a9880;
        image->dispose = DVar6;
        (*(code *)puVar1)(&dispose_images,image);
        iVar7 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar7);
      } while (iVar7 != 0);
      (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);
      image = (Image *)(*(code *)PTR_GetFirstImageInList_003a944c)(dispose_images);
    }
LAB_00102c5c:
    if (iVar3 == *(int *)puVar2) {
      return image;
    }
    (*(code *)PTR___stack_chk_fail_003a9064)();
  }
  pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)
                              (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,
                               PTR_s_t_to_left_003a88e4 + -0x4b50);
  return pIVar5;
}



int DisposeImages(int param_1,int param_2)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  undefined4 uVar7;
  int iVar8;
  undefined4 local_40;
  int local_3c;
  int local_38;
  int local_34;
  int local_30;
  int local_2c;
  
  puVar2 = PTR___stack_chk_guard_003a9230;
  local_2c = *(int *)PTR___stack_chk_guard_003a9230;
  if (param_1 == 0) {
    iVar4 = (*(code *)PTR___assert_fail_003a9608)
                      (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,
                       PTR_s_t_to_left_003a88e4 + -0x4b50);
    return iVar4;
  }
  if (*(int *)(param_1 + 0x336c) != -0x54535255) {
    iVar4 = (*(code *)PTR___assert_fail_003a9608)
                      (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,
                       PTR_s_t_to_left_003a88e4 + -0x4b50);
    return iVar4;
  }
  if (*(int *)(param_1 + 0x3350) != 0) {
    (*(code *)PTR_LogMagickEvent_003a91e0)
              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,
               PTR_s_t_to_left_003a88e4 + -0x62ac,param_1 + 0x340);
  }
  if (param_2 == 0) {
    iVar4 = (*(code *)PTR___assert_fail_003a9608)
                      (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,
                       PTR_s_t_to_left_003a88e4 + -0x4b50);
    return iVar4;
  }
  if (*(int *)(param_2 + 0x1c) == -0x54535255) {
    iVar3 = (*(code *)PTR_GetFirstImageInList_003a944c)(param_1);
    iVar4 = (*(code *)PTR_CloneImage_003a9830)
                      (iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2
                      );
    puVar1 = PTR_SetImageBackgroundColor_003a8e90;
    if (iVar4 == 0) {
      iVar6 = 0;
    }
    else {
      uVar7 = *(undefined4 *)(iVar3 + 0x228);
      *(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);
      *(undefined4 *)(iVar4 + 0x228) = uVar7;
      *(undefined4 *)(iVar4 + 0x268) = 1;
      *(undefined4 *)(iVar4 + 0x230) = 0;
      *(undefined4 *)(iVar4 + 0x90) = 4;
      *(undefined4 *)(iVar4 + 0x234) = 0;
      *(undefined4 *)(iVar4 + 0xd4) = 0;
      *(undefined4 *)(iVar4 + 0xd0) = 0;
      (*(code *)puVar1)(iVar4,param_2);
      local_40 = (*(code *)PTR_NewImageList_003a8e84)();
      iVar5 = iVar3;
      do {
        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);
        if (iVar6 == 0) {
LAB_00102c38:
          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);
          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);
          goto LAB_00102c5c;
        }
        iVar8 = *(int *)(iVar3 + 700);
        *(undefined4 *)(iVar6 + 0x90) = 4;
        uVar7 = 0x36;
        if (iVar8 == 0) {
          uVar7 = 0xd;
        }
        (*(code *)PTR_CompositeImage_003a8cc4)
                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)
                   ,param_2);
        if (*(int *)(iVar3 + 0x268) == 2) {
          local_3c = *(int *)(iVar3 + 0x18);
          local_34 = *(int *)(iVar3 + 0x230);
          local_30 = *(int *)(iVar3 + 0x234);
          if (local_34 < 0) {
            local_3c = local_3c + local_34;
            local_34 = 0;
          }
          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {
            local_3c = *(int *)(iVar6 + 0x18) - local_34;
          }
          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;
          local_38 = *(int *)(iVar3 + 0x1c);
          if (local_30 < 0) {
            local_30 = 0;
            local_38 = iVar8;
          }
          if (*(int *)(iVar6 + 0x1c) < iVar8) {
            local_38 = *(int *)(iVar6 + 0x1c) - local_30;
          }
          FUN_000fff20(iVar6,&local_3c,param_2);
          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;
LAB_00102a58:
          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);
          iVar4 = iVar6;
        }
        else {
          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;
LAB_00102c28:
          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);
        }
        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);
        puVar1 = PTR_CloneImageProfiles_003a9348;
        if (iVar6 == 0) goto LAB_00102c38;
        *(undefined4 *)(iVar4 + 0x90) = 4;
        (*(code *)puVar1)(iVar6,iVar3);
        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);
        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);
        uVar7 = *(undefined4 *)(iVar3 + 0x268);
        *(undefined4 *)(iVar6 + 0x230) = 0;
        *(undefined4 *)(iVar6 + 0x234) = 0;
        puVar1 = PTR_AppendImageToList_003a9880;
        *(undefined4 *)(iVar6 + 0x268) = uVar7;
        (*(code *)puVar1)(&local_40,iVar6);
        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);
      } while (iVar5 != 0);
      (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);
      iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);
    }
LAB_00102c5c:
    if (local_2c == *(int *)puVar2) {
      return iVar6;
    }
    (*(code *)PTR___stack_chk_fail_003a9064)();
  }
  iVar4 = (*(code *)PTR___assert_fail_003a9608)
                    (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,
                     PTR_s_t_to_left_003a88e4 + -0x4b50);
  return iVar4;
}


lui gp,0x2b
addiu gp,gp,-0x2068
addu gp,gp,t9
lw v0,-0x7680(gp)
addiu sp,sp,-0x70
sw v0,0x2c(sp)
sw gp,0x20(sp)
sw ra,0x6c(sp)
sw s8,0x68(sp)
sw s7,0x64(sp)
sw s6,0x60(sp)
sw s5,0x5c(sp)
sw s4,0x58(sp)
sw s3,0x54(sp)
sw s2,0x50(sp)
sw s1,0x4c(sp)
sw s0,0x48(sp)
lw v0,0x0(v0)
sw v0,0x44(sp)
beq a0,zero,0x00102d54
_lui v0,0xabac
lw v1,0x336c(a0)
ori v0,v0,0xadab
bne v1,v0,0x00102d30
_or s0,a0,zero
lw v0,0x3350(a0)
bne v0,zero,0x00102ca0
_or s3,a1,zero
beq s3,zero,0x00102d0c
_lui v0,0xabac
lw v1,0x1c(s3)
ori v0,v0,0xadab
bne v1,v0,0x00102d84
_lw t9,-0x7464(gp)
jalr t9
_or a0,s0,zero
li a3,0x1
lw gp,0x20(sp)
or a0,v0,zero
lw a2,0x22c(v0)
or s1,v0,zero
lw a1,0x228(v0)
lw t9,-0x7080(gp)
jalr t9
_sw s3,0x10(sp)
lw gp,0x20(sp)
beq v0,zero,0x00102d04
_or s2,v0,zero
lw v0,0x22c(s1)
or a1,s3,zero
lw v1,0x228(s1)
or a0,s2,zero
lw t9,-0x7a20(gp)
addiu s7,sp,0x34
sw v0,0x22c(s2)
li v0,0x1
sw v1,0x228(s2)
addiu s8,sp,0x30
sw v0,0x268(s2)
li v0,0x4
sw zero,0x230(s2)
li s5,0x4
sw v0,0x90(s2)
or s4,s1,zero
sw zero,0x234(s2)
sw zero,0xd4(s2)
jalr t9
_sw zero,0xd0(s2)
lw gp,0x20(sp)
lw t9,-0x7a2c(gp)
jalr t9
_nop
lw gp,0x20(sp)
sw v0,0x30(sp)
lw s6,-0x7e1c(gp)
b 0x00102b0c
_addiu s6,s6,-0xe0
li v1,0x3
beq v0,v1,0x00102c28
_lw t9,-0x7964(gp)
jalr t9
_or a0,s2,zero
or s2,s0,zero
lw gp,0x20(sp)
lw t9,-0x7080(gp)
li a3,0x1
or a2,zero,zero
sw s3,0x10(sp)
or a1,zero,zero
jalr t9
_or a0,s2,zero
lw gp,0x20(sp)
beq v0,zero,0x00102c38
_or s0,v0,zero
lw t9,-0x7568(gp)
or a1,s1,zero
or a0,v0,zero
jalr t9
_sw s5,0x90(s2)
or a1,s1,zero
lw gp,0x20(sp)
lw t9,-0x7704(gp)
jalr t9
_or a0,s0,zero
or a1,s1,zero
lw gp,0x20(sp)
lw t9,-0x73b0(gp)
jalr t9
_or a0,s0,zero
or a0,s8,zero
lw gp,0x20(sp)
or a1,s0,zero
lw v0,0x268(s1)
sw zero,0x230(s0)
sw zero,0x234(s0)
lw t9,-0x7030(gp)
jalr t9
_sw v0,0x268(s0)
lw gp,0x20(sp)
lw t9,-0x7440(gp)
jalr t9
_or a0,s4,zero
lw gp,0x20(sp)
beq v0,zero,0x00102cdc
_or s4,v0,zero
lw t9,-0x7080(gp)
li a3,0x1
or a2,zero,zero
sw s3,0x10(sp)
or a1,zero,zero
jalr t9
_or a0,s2,zero
lw gp,0x20(sp)
beq v0,zero,0x00102c38
_or s0,v0,zero
lw a2,0x2bc(s1)
li a0,0xd
sw s5,0x90(v0)
li v1,0x36
sw s3,0x18(sp)
li a3,0x1
lw v0,0x234(s1)
or a1,s1,zero
movz v1,a0,a2
or a0,s0,zero
lw t9,-0x7bec(gp)
sw v0,0x14(sp)
lw v0,0x230(s1)
or a2,v1,zero
jalr t9
_sw v0,0x10(sp)
li v1,0x2
lw v0,0x268(s1)
bne v0,v1,0x00102a4c
_lw gp,0x20(sp)
lw v0,0x18(s1)
lw a0,0x230(s1)
lw a1,0x234(s1)
lw v1,0x1c(s1)
sw a0,0x3c(sp)
sw a1,0x40(sp)
sw v0,0x34(sp)
bgez a0,0x00102bb8
_sw v1,0x38(sp)
addu v0,v0,a0
sw zero,0x3c(sp)
or a0,zero,zero
sw v0,0x34(sp)
lw a1,0x18(s0)
addu v0,v0,a0
slt v0,a1,v0
beq v0,zero,0x00102bd8
_lw v0,0x40(sp)
subu a0,a1,a0
sw a0,0x34(sp)
lw v0,0x40(sp)
bgez v0,0x00102bec
_addu v1,v1,v0
or v0,zero,zero
sw v1,0x38(sp)
sw zero,0x40(sp)
lw a0,0x1c(s0)
slt v1,a0,v1
beq v1,zero,0x00102c00
_subu v0,a0,v0
sw v0,0x38(sp)
or t9,s6,zero
or a2,s3,zero
or a1,s7,zero
bal 0x000fff20
_or a0,s0,zero
li v1,0x3
lw gp,0x20(sp)
lw v0,0x268(s1)
bne v0,v1,0x00102a58
_lw t9,-0x7964(gp)
jalr t9
_or a0,s0,zero
b 0x00102a68
_lw gp,0x20(sp)
lw t9,-0x73a0(gp)
jalr t9
_lw a0,0x30(sp)
or a0,s2,zero
lw gp,0x20(sp)
lw t9,-0x7964(gp)
jalr t9
_sw v0,0x30(sp)
lw gp,0x20(sp)
lw v1,0x2c(sp)
or v0,s0,zero
lw a0,0x44(sp)
lw v1,0x0(v1)
bne a0,v1,0x00102d78
_lw ra,0x6c(sp)
lw s8,0x68(sp)
lw s7,0x64(sp)
lw s6,0x60(sp)
lw s5,0x5c(sp)
lw s4,0x58(sp)
lw s3,0x54(sp)
lw s2,0x50(sp)
lw s1,0x4c(sp)
lw s0,0x48(sp)
jr ra
_addiu sp,sp,0x70
addiu v0,a0,0x340
lw a2,-0x7fcc(gp)
lw a1,-0x7fcc(gp)
li a3,0x19f
lw t9,-0x76d0(gp)
ori a0,zero,0x8000
sw v0,0x14(sp)
addiu a2,a2,-0x4b60
lw v0,-0x7fcc(gp)
addiu a1,a1,-0x4e60
addiu v0,v0,-0x62ac
jalr t9
_sw v0,0x10(sp)
b 0x00102988
_lw gp,0x20(sp)
lw t9,-0x7964(gp)
jalr t9
_or a0,s2,zero
lw gp,0x20(sp)
lw t9,-0x7464(gp)
jalr t9
_lw a0,0x30(sp)
lw gp,0x20(sp)
b 0x00102c5c
_or s0,v0,zero
b 0x00102c5c
_or s0,zero,zero
lw a3,-0x7fcc(gp)
li a2,0x1a0
lw a1,-0x7fcc(gp)
lw a0,-0x7fd0(gp)
lw t9,-0x72a8(gp)
addiu a3,a3,-0x4b50
addiu a1,a1,-0x4e60
jalr t9
_addiu a0,a0,0x1cac
lw a3,-0x7fcc(gp)
li a2,0x19d
lw a1,-0x7fcc(gp)
lw a0,-0x7fd0(gp)
lw t9,-0x72a8(gp)
addiu a3,a3,-0x4b50
addiu a1,a1,-0x4e60
jalr t9
_addiu a0,a0,0x1e64
lw a3,-0x7fcc(gp)
li a2,0x19c
lw a1,-0x7fcc(gp)
lw a0,-0x7fd0(gp)
lw t9,-0x72a8(gp)
addiu a3,a3,-0x4b50
addiu a1,a1,-0x4e60
jalr t9
_addiu a0,a0,0x1e48
lw t9,-0x784c(gp)
jalr t9
_nop
lw a3,-0x7fcc(gp)
li a2,0x1a1
lw a1,-0x7fcc(gp)
lw a0,-0x7fd0(gp)
lw t9,-0x72a8(gp)
addiu a3,a3,-0x4b50
addiu a1,a1,-0x4e60
jalr t9
_addiu a0,a0,0x294c
(translation_unit "int DisposeImages(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined4 local_40;\n  int local_3c;\n  int local_38;\n  int local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_003a9230;\n  local_2c = *(int *)PTR___stack_chk_guard_003a9230;\n  if (param_1 == 0) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }\n  if (*(int *)(param_1 + 0x336c) != -0x54535255) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }\n  if (*(int *)(param_1 + 0x3350) != 0) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,param_1 + 0x340);\n  }\n  if (param_2 == 0) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }\n  if (*(int *)(param_2 + 0x1c) == -0x54535255) {\n    iVar3 = (*(code *)PTR_GetFirstImageInList_003a944c)(param_1);\n    iVar4 = (*(code *)PTR_CloneImage_003a9830)\n                      (iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2\n                      );\n    puVar1 = PTR_SetImageBackgroundColor_003a8e90;\n    if (iVar4 == 0) {\n      iVar6 = 0;\n    }\n    else {\n      uVar7 = *(undefined4 *)(iVar3 + 0x228);\n      *(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);\n      *(undefined4 *)(iVar4 + 0x228) = uVar7;\n      *(undefined4 *)(iVar4 + 0x268) = 1;\n      *(undefined4 *)(iVar4 + 0x230) = 0;\n      *(undefined4 *)(iVar4 + 0x90) = 4;\n      *(undefined4 *)(iVar4 + 0x234) = 0;\n      *(undefined4 *)(iVar4 + 0xd4) = 0;\n      *(undefined4 *)(iVar4 + 0xd0) = 0;\n      (*(code *)puVar1)(iVar4,param_2);\n      local_40 = (*(code *)PTR_NewImageList_003a8e84)();\n      iVar5 = iVar3;\n      do {\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      } while (iVar5 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n      iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);\n    }\nLAB_00102c5c:\n    if (local_2c == *(int *)puVar2) {\n      return iVar6;\n    }\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n  }\n  iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                    (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                     PTR_s_t_to_left_003a88e4 + -0x4b50);\n  return iVar4;\n}\n\n" (function_definition "int DisposeImages(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined4 local_40;\n  int local_3c;\n  int local_38;\n  int local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_003a9230;\n  local_2c = *(int *)PTR___stack_chk_guard_003a9230;\n  if (param_1 == 0) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }\n  if (*(int *)(param_1 + 0x336c) != -0x54535255) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }\n  if (*(int *)(param_1 + 0x3350) != 0) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,param_1 + 0x340);\n  }\n  if (param_2 == 0) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }\n  if (*(int *)(param_2 + 0x1c) == -0x54535255) {\n    iVar3 = (*(code *)PTR_GetFirstImageInList_003a944c)(param_1);\n    iVar4 = (*(code *)PTR_CloneImage_003a9830)\n                      (iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2\n                      );\n    puVar1 = PTR_SetImageBackgroundColor_003a8e90;\n    if (iVar4 == 0) {\n      iVar6 = 0;\n    }\n    else {\n      uVar7 = *(undefined4 *)(iVar3 + 0x228);\n      *(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);\n      *(undefined4 *)(iVar4 + 0x228) = uVar7;\n      *(undefined4 *)(iVar4 + 0x268) = 1;\n      *(undefined4 *)(iVar4 + 0x230) = 0;\n      *(undefined4 *)(iVar4 + 0x90) = 4;\n      *(undefined4 *)(iVar4 + 0x234) = 0;\n      *(undefined4 *)(iVar4 + 0xd4) = 0;\n      *(undefined4 *)(iVar4 + 0xd0) = 0;\n      (*(code *)puVar1)(iVar4,param_2);\n      local_40 = (*(code *)PTR_NewImageList_003a8e84)();\n      iVar5 = iVar3;\n      do {\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      } while (iVar5 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n      iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);\n    }\nLAB_00102c5c:\n    if (local_2c == *(int *)puVar2) {\n      return iVar6;\n    }\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n  }\n  iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                    (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                     PTR_s_t_to_left_003a88e4 + -0x4b50);\n  return iVar4;\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  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined4 local_40;\n  int local_3c;\n  int local_38;\n  int local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_003a9230;\n  local_2c = *(int *)PTR___stack_chk_guard_003a9230;\n  if (param_1 == 0) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }\n  if (*(int *)(param_1 + 0x336c) != -0x54535255) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }\n  if (*(int *)(param_1 + 0x3350) != 0) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,param_1 + 0x340);\n  }\n  if (param_2 == 0) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }\n  if (*(int *)(param_2 + 0x1c) == -0x54535255) {\n    iVar3 = (*(code *)PTR_GetFirstImageInList_003a944c)(param_1);\n    iVar4 = (*(code *)PTR_CloneImage_003a9830)\n                      (iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2\n                      );\n    puVar1 = PTR_SetImageBackgroundColor_003a8e90;\n    if (iVar4 == 0) {\n      iVar6 = 0;\n    }\n    else {\n      uVar7 = *(undefined4 *)(iVar3 + 0x228);\n      *(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);\n      *(undefined4 *)(iVar4 + 0x228) = uVar7;\n      *(undefined4 *)(iVar4 + 0x268) = 1;\n      *(undefined4 *)(iVar4 + 0x230) = 0;\n      *(undefined4 *)(iVar4 + 0x90) = 4;\n      *(undefined4 *)(iVar4 + 0x234) = 0;\n      *(undefined4 *)(iVar4 + 0xd4) = 0;\n      *(undefined4 *)(iVar4 + 0xd0) = 0;\n      (*(code *)puVar1)(iVar4,param_2);\n      local_40 = (*(code *)PTR_NewImageList_003a8e84)();\n      iVar5 = iVar3;\n      do {\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      } while (iVar5 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n      iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);\n    }\nLAB_00102c5c:\n    if (local_2c == *(int *)puVar2) {\n      return iVar6;\n    }\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n  }\n  iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                    (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                     PTR_s_t_to_left_003a88e4 + -0x4b50);\n  return iVar4;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined4 local_40;" type_identifier identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar2 = PTR___stack_chk_guard_003a9230;" (assignment_expression "puVar2 = PTR___stack_chk_guard_003a9230" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_003a9230;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_003a9230" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_003a9230" * (cast_expression "(int *)PTR___stack_chk_guard_003a9230" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (param_1 == 0) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }" { (expression_statement "iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" identifier = (call_expression "(*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" (parenthesized_expression "(*(code *)PTR___assert_fail_003a9608)" ( (pointer_expression "*(code *)PTR___assert_fail_003a9608" * (cast_expression "(code *)PTR___assert_fail_003a9608" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" ( (binary_expression "PTR_LAB_003a88e0 + 0x1e48" identifier + number_literal) , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4e60" identifier + number_literal) , number_literal , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4b50" identifier + number_literal) )))) ;) (return_statement "return iVar4;" return identifier ;) })) (if_statement "if (*(int *)(param_1 + 0x336c) != -0x54535255) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x336c) != -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x336c) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x336c)" * (cast_expression "(int *)(param_1 + 0x336c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x336c)" ( (binary_expression "param_1 + 0x336c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }" { (expression_statement "iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" identifier = (call_expression "(*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" (parenthesized_expression "(*(code *)PTR___assert_fail_003a9608)" ( (pointer_expression "*(code *)PTR___assert_fail_003a9608" * (cast_expression "(code *)PTR___assert_fail_003a9608" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" ( (binary_expression "PTR_LAB_003a88e0 + 0x1e64" identifier + number_literal) , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4e60" identifier + number_literal) , number_literal , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4b50" identifier + number_literal) )))) ;) (return_statement "return iVar4;" return identifier ;) })) (if_statement "if (*(int *)(param_1 + 0x3350) != 0) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,param_1 + 0x340);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x3350) != 0)" ( (binary_expression "*(int *)(param_1 + 0x3350) != 0" (pointer_expression "*(int *)(param_1 + 0x3350)" * (cast_expression "(int *)(param_1 + 0x3350)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3350)" ( (binary_expression "param_1 + 0x3350" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,param_1 + 0x340);\n  }" { (expression_statement "(*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,param_1 + 0x340);" (call_expression "(*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,param_1 + 0x340)" (parenthesized_expression "(*(code *)PTR_LogMagickEvent_003a91e0)" ( (pointer_expression "*(code *)PTR_LogMagickEvent_003a91e0" * (cast_expression "(code *)PTR_LogMagickEvent_003a91e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,param_1 + 0x340)" ( number_literal , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4e60" identifier + number_literal) , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4b60" identifier + number_literal) , number_literal , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x62ac" identifier + number_literal) , (binary_expression "param_1 + 0x340" identifier + number_literal) ))) ;) })) (if_statement "if (param_2 == 0) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }" { (expression_statement "iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" identifier = (call_expression "(*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" (parenthesized_expression "(*(code *)PTR___assert_fail_003a9608)" ( (pointer_expression "*(code *)PTR___assert_fail_003a9608" * (cast_expression "(code *)PTR___assert_fail_003a9608" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" ( (binary_expression "PTR_LAB_003a88e0 + 0x1cac" identifier + number_literal) , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4e60" identifier + number_literal) , number_literal , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4b50" identifier + number_literal) )))) ;) (return_statement "return iVar4;" return identifier ;) })) (if_statement "if (*(int *)(param_2 + 0x1c) == -0x54535255) {\n    iVar3 = (*(code *)PTR_GetFirstImageInList_003a944c)(param_1);\n    iVar4 = (*(code *)PTR_CloneImage_003a9830)\n                      (iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2\n                      );\n    puVar1 = PTR_SetImageBackgroundColor_003a8e90;\n    if (iVar4 == 0) {\n      iVar6 = 0;\n    }\n    else {\n      uVar7 = *(undefined4 *)(iVar3 + 0x228);\n      *(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);\n      *(undefined4 *)(iVar4 + 0x228) = uVar7;\n      *(undefined4 *)(iVar4 + 0x268) = 1;\n      *(undefined4 *)(iVar4 + 0x230) = 0;\n      *(undefined4 *)(iVar4 + 0x90) = 4;\n      *(undefined4 *)(iVar4 + 0x234) = 0;\n      *(undefined4 *)(iVar4 + 0xd4) = 0;\n      *(undefined4 *)(iVar4 + 0xd0) = 0;\n      (*(code *)puVar1)(iVar4,param_2);\n      local_40 = (*(code *)PTR_NewImageList_003a8e84)();\n      iVar5 = iVar3;\n      do {\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      } while (iVar5 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n      iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);\n    }\nLAB_00102c5c:\n    if (local_2c == *(int *)puVar2) {\n      return iVar6;\n    }\n    (*(code *)PTR___stack_chk_fail_003a9064)();\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    iVar3 = (*(code *)PTR_GetFirstImageInList_003a944c)(param_1);\n    iVar4 = (*(code *)PTR_CloneImage_003a9830)\n                      (iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2\n                      );\n    puVar1 = PTR_SetImageBackgroundColor_003a8e90;\n    if (iVar4 == 0) {\n      iVar6 = 0;\n    }\n    else {\n      uVar7 = *(undefined4 *)(iVar3 + 0x228);\n      *(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);\n      *(undefined4 *)(iVar4 + 0x228) = uVar7;\n      *(undefined4 *)(iVar4 + 0x268) = 1;\n      *(undefined4 *)(iVar4 + 0x230) = 0;\n      *(undefined4 *)(iVar4 + 0x90) = 4;\n      *(undefined4 *)(iVar4 + 0x234) = 0;\n      *(undefined4 *)(iVar4 + 0xd4) = 0;\n      *(undefined4 *)(iVar4 + 0xd0) = 0;\n      (*(code *)puVar1)(iVar4,param_2);\n      local_40 = (*(code *)PTR_NewImageList_003a8e84)();\n      iVar5 = iVar3;\n      do {\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      } while (iVar5 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n      iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);\n    }\nLAB_00102c5c:\n    if (local_2c == *(int *)puVar2) {\n      return iVar6;\n    }\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n  }" { (expression_statement "iVar3 = (*(code *)PTR_GetFirstImageInList_003a944c)(param_1);" (assignment_expression "iVar3 = (*(code *)PTR_GetFirstImageInList_003a944c)(param_1)" identifier = (call_expression "(*(code *)PTR_GetFirstImageInList_003a944c)(param_1)" (parenthesized_expression "(*(code *)PTR_GetFirstImageInList_003a944c)" ( (pointer_expression "*(code *)PTR_GetFirstImageInList_003a944c" * (cast_expression "(code *)PTR_GetFirstImageInList_003a944c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar4 = (*(code *)PTR_CloneImage_003a9830)\n                      (iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2\n                      );" (assignment_expression "iVar4 = (*(code *)PTR_CloneImage_003a9830)\n                      (iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2\n                      )" identifier = (call_expression "(*(code *)PTR_CloneImage_003a9830)\n                      (iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2\n                      )" (parenthesized_expression "(*(code *)PTR_CloneImage_003a9830)" ( (pointer_expression "*(code *)PTR_CloneImage_003a9830" * (cast_expression "(code *)PTR_CloneImage_003a9830" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2\n                      )" ( identifier , (pointer_expression "*(undefined4 *)(iVar3 + 0x228)" * (cast_expression "(undefined4 *)(iVar3 + 0x228)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x228)" ( (binary_expression "iVar3 + 0x228" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar3 + 0x22c)" * (cast_expression "(undefined4 *)(iVar3 + 0x22c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x22c)" ( (binary_expression "iVar3 + 0x22c" identifier + number_literal) )))) , number_literal , identifier )))) ;) (expression_statement "puVar1 = PTR_SetImageBackgroundColor_003a8e90;" (assignment_expression "puVar1 = PTR_SetImageBackgroundColor_003a8e90" identifier = identifier) ;) (if_statement "if (iVar4 == 0) {\n      iVar6 = 0;\n    }\n    else {\n      uVar7 = *(undefined4 *)(iVar3 + 0x228);\n      *(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);\n      *(undefined4 *)(iVar4 + 0x228) = uVar7;\n      *(undefined4 *)(iVar4 + 0x268) = 1;\n      *(undefined4 *)(iVar4 + 0x230) = 0;\n      *(undefined4 *)(iVar4 + 0x90) = 4;\n      *(undefined4 *)(iVar4 + 0x234) = 0;\n      *(undefined4 *)(iVar4 + 0xd4) = 0;\n      *(undefined4 *)(iVar4 + 0xd0) = 0;\n      (*(code *)puVar1)(iVar4,param_2);\n      local_40 = (*(code *)PTR_NewImageList_003a8e84)();\n      iVar5 = iVar3;\n      do {\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      } while (iVar5 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n      iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar6 = 0;\n    }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      uVar7 = *(undefined4 *)(iVar3 + 0x228);\n      *(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);\n      *(undefined4 *)(iVar4 + 0x228) = uVar7;\n      *(undefined4 *)(iVar4 + 0x268) = 1;\n      *(undefined4 *)(iVar4 + 0x230) = 0;\n      *(undefined4 *)(iVar4 + 0x90) = 4;\n      *(undefined4 *)(iVar4 + 0x234) = 0;\n      *(undefined4 *)(iVar4 + 0xd4) = 0;\n      *(undefined4 *)(iVar4 + 0xd0) = 0;\n      (*(code *)puVar1)(iVar4,param_2);\n      local_40 = (*(code *)PTR_NewImageList_003a8e84)();\n      iVar5 = iVar3;\n      do {\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      } while (iVar5 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n      iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);\n    }" else (compound_statement "{\n      uVar7 = *(undefined4 *)(iVar3 + 0x228);\n      *(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);\n      *(undefined4 *)(iVar4 + 0x228) = uVar7;\n      *(undefined4 *)(iVar4 + 0x268) = 1;\n      *(undefined4 *)(iVar4 + 0x230) = 0;\n      *(undefined4 *)(iVar4 + 0x90) = 4;\n      *(undefined4 *)(iVar4 + 0x234) = 0;\n      *(undefined4 *)(iVar4 + 0xd4) = 0;\n      *(undefined4 *)(iVar4 + 0xd0) = 0;\n      (*(code *)puVar1)(iVar4,param_2);\n      local_40 = (*(code *)PTR_NewImageList_003a8e84)();\n      iVar5 = iVar3;\n      do {\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      } while (iVar5 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n      iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);\n    }" { (expression_statement "uVar7 = *(undefined4 *)(iVar3 + 0x228);" (assignment_expression "uVar7 = *(undefined4 *)(iVar3 + 0x228)" identifier = (pointer_expression "*(undefined4 *)(iVar3 + 0x228)" * (cast_expression "(undefined4 *)(iVar3 + 0x228)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x228)" ( (binary_expression "iVar3 + 0x228" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);" (assignment_expression "*(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c)" (pointer_expression "*(undefined4 *)(iVar4 + 0x22c)" * (cast_expression "(undefined4 *)(iVar4 + 0x22c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x22c)" ( (binary_expression "iVar4 + 0x22c" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar3 + 0x22c)" * (cast_expression "(undefined4 *)(iVar3 + 0x22c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x22c)" ( (binary_expression "iVar3 + 0x22c" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar4 + 0x228) = uVar7;" (assignment_expression "*(undefined4 *)(iVar4 + 0x228) = uVar7" (pointer_expression "*(undefined4 *)(iVar4 + 0x228)" * (cast_expression "(undefined4 *)(iVar4 + 0x228)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x228)" ( (binary_expression "iVar4 + 0x228" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar4 + 0x268) = 1;" (assignment_expression "*(undefined4 *)(iVar4 + 0x268) = 1" (pointer_expression "*(undefined4 *)(iVar4 + 0x268)" * (cast_expression "(undefined4 *)(iVar4 + 0x268)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x268)" ( (binary_expression "iVar4 + 0x268" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar4 + 0x230) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 0x230) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 0x230)" * (cast_expression "(undefined4 *)(iVar4 + 0x230)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x230)" ( (binary_expression "iVar4 + 0x230" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar4 + 0x90) = 4;" (assignment_expression "*(undefined4 *)(iVar4 + 0x90) = 4" (pointer_expression "*(undefined4 *)(iVar4 + 0x90)" * (cast_expression "(undefined4 *)(iVar4 + 0x90)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x90)" ( (binary_expression "iVar4 + 0x90" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar4 + 0x234) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 0x234) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 0x234)" * (cast_expression "(undefined4 *)(iVar4 + 0x234)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x234)" ( (binary_expression "iVar4 + 0x234" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar4 + 0xd4) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 0xd4) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 0xd4)" * (cast_expression "(undefined4 *)(iVar4 + 0xd4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xd4)" ( (binary_expression "iVar4 + 0xd4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar4 + 0xd0) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 0xd0) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 0xd0)" * (cast_expression "(undefined4 *)(iVar4 + 0xd0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xd0)" ( (binary_expression "iVar4 + 0xd0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(*(code *)puVar1)(iVar4,param_2);" (call_expression "(*(code *)puVar1)(iVar4,param_2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,param_2)" ( identifier , identifier ))) ;) (expression_statement "local_40 = (*(code *)PTR_NewImageList_003a8e84)();" (assignment_expression "local_40 = (*(code *)PTR_NewImageList_003a8e84)()" identifier = (call_expression "(*(code *)PTR_NewImageList_003a8e84)()" (parenthesized_expression "(*(code *)PTR_NewImageList_003a8e84)" ( (pointer_expression "*(code *)PTR_NewImageList_003a8e84" * (cast_expression "(code *)PTR_NewImageList_003a8e84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar5 = iVar3;" (assignment_expression "iVar5 = iVar3" identifier = identifier) ;) (do_statement "do {\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      } while (iVar5 != 0);" do (compound_statement "{\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      }" { (expression_statement "iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);" (assignment_expression "iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2)" identifier = (call_expression "(*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2)" (parenthesized_expression "(*(code *)PTR_CloneImage_003a9830)" ( (pointer_expression "*(code *)PTR_CloneImage_003a9830" * (cast_expression "(code *)PTR_CloneImage_003a9830" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,0,0,1,param_2)" ( identifier , number_literal , number_literal , number_literal , identifier )))) ;) (if_statement "if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }" { (labeled_statement "LAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);" statement_identifier : (expression_statement "local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);" (assignment_expression "local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40)" identifier = (call_expression "(*(code *)PTR_DestroyImageList_003a9510)(local_40)" (parenthesized_expression "(*(code *)PTR_DestroyImageList_003a9510)" ( (pointer_expression "*(code *)PTR_DestroyImageList_003a9510" * (cast_expression "(code *)PTR_DestroyImageList_003a9510" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_40)" ( identifier )))) ;)) (expression_statement "(*(code *)PTR_DestroyImage_003a8f4c)(iVar4);" (call_expression "(*(code *)PTR_DestroyImage_003a8f4c)(iVar4)" (parenthesized_expression "(*(code *)PTR_DestroyImage_003a8f4c)" ( (pointer_expression "*(code *)PTR_DestroyImage_003a8f4c" * (cast_expression "(code *)PTR_DestroyImage_003a8f4c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))) ;) (goto_statement "goto LAB_00102c5c;" goto statement_identifier ;) })) (expression_statement "iVar8 = *(int *)(iVar3 + 700);" (assignment_expression "iVar8 = *(int *)(iVar3 + 700)" identifier = (pointer_expression "*(int *)(iVar3 + 700)" * (cast_expression "(int *)(iVar3 + 700)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 700)" ( (binary_expression "iVar3 + 700" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x90) = 4;" (assignment_expression "*(undefined4 *)(iVar6 + 0x90) = 4" (pointer_expression "*(undefined4 *)(iVar6 + 0x90)" * (cast_expression "(undefined4 *)(iVar6 + 0x90)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x90)" ( (binary_expression "iVar6 + 0x90" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar7 = 0x36;" (assignment_expression "uVar7 = 0x36" identifier = number_literal) ;) (if_statement "if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n          uVar7 = 0xd;\n        }" { (expression_statement "uVar7 = 0xd;" (assignment_expression "uVar7 = 0xd" identifier = number_literal) ;) })) (expression_statement "(*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);" (call_expression "(*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2)" (parenthesized_expression "(*(code *)PTR_CompositeImage_003a8cc4)" ( (pointer_expression "*(code *)PTR_CompositeImage_003a8cc4" * (cast_expression "(code *)PTR_CompositeImage_003a8cc4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2)" ( identifier , identifier , identifier , number_literal , (pointer_expression "*(undefined4 *)(iVar3 + 0x230)" * (cast_expression "(undefined4 *)(iVar3 + 0x230)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x230)" ( (binary_expression "iVar3 + 0x230" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar3 + 0x234)" * (cast_expression "(undefined4 *)(iVar3 + 0x234)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x234)" ( (binary_expression "iVar3 + 0x234" identifier + number_literal) )))) , identifier ))) ;) (if_statement "if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }" if (parenthesized_expression "(*(int *)(iVar3 + 0x268) == 2)" ( (binary_expression "*(int *)(iVar3 + 0x268) == 2" (pointer_expression "*(int *)(iVar3 + 0x268)" * (cast_expression "(int *)(iVar3 + 0x268)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x268)" ( (binary_expression "iVar3 + 0x268" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }" { (expression_statement "local_3c = *(int *)(iVar3 + 0x18);" (assignment_expression "local_3c = *(int *)(iVar3 + 0x18)" identifier = (pointer_expression "*(int *)(iVar3 + 0x18)" * (cast_expression "(int *)(iVar3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "local_34 = *(int *)(iVar3 + 0x230);" (assignment_expression "local_34 = *(int *)(iVar3 + 0x230)" identifier = (pointer_expression "*(int *)(iVar3 + 0x230)" * (cast_expression "(int *)(iVar3 + 0x230)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x230)" ( (binary_expression "iVar3 + 0x230" identifier + number_literal) ))))) ;) (expression_statement "local_30 = *(int *)(iVar3 + 0x234);" (assignment_expression "local_30 = *(int *)(iVar3 + 0x234)" identifier = (pointer_expression "*(int *)(iVar3 + 0x234)" * (cast_expression "(int *)(iVar3 + 0x234)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x234)" ( (binary_expression "iVar3 + 0x234" identifier + number_literal) ))))) ;) (if_statement "if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }" if (parenthesized_expression "(local_34 < 0)" ( (binary_expression "local_34 < 0" identifier < number_literal) )) (compound_statement "{\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }" { (expression_statement "local_3c = local_3c + local_34;" (assignment_expression "local_3c = local_3c + local_34" identifier = (binary_expression "local_3c + local_34" identifier + identifier)) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) })) (if_statement "if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }" if (parenthesized_expression "(*(int *)(iVar6 + 0x18) < local_3c + local_34)" ( (binary_expression "*(int *)(iVar6 + 0x18) < local_3c + local_34" (pointer_expression "*(int *)(iVar6 + 0x18)" * (cast_expression "(int *)(iVar6 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x18)" ( (binary_expression "iVar6 + 0x18" identifier + number_literal) )))) < (binary_expression "local_3c + local_34" identifier + identifier)) )) (compound_statement "{\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }" { (expression_statement "local_3c = *(int *)(iVar6 + 0x18) - local_34;" (assignment_expression "local_3c = *(int *)(iVar6 + 0x18) - local_34" identifier = (binary_expression "*(int *)(iVar6 + 0x18) - local_34" (pointer_expression "*(int *)(iVar6 + 0x18)" * (cast_expression "(int *)(iVar6 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x18)" ( (binary_expression "iVar6 + 0x18" identifier + number_literal) )))) - identifier)) ;) })) (expression_statement "iVar8 = *(int *)(iVar3 + 0x1c) + local_30;" (assignment_expression "iVar8 = *(int *)(iVar3 + 0x1c) + local_30" identifier = (binary_expression "*(int *)(iVar3 + 0x1c) + local_30" (pointer_expression "*(int *)(iVar3 + 0x1c)" * (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) )))) + identifier)) ;) (expression_statement "local_38 = *(int *)(iVar3 + 0x1c);" (assignment_expression "local_38 = *(int *)(iVar3 + 0x1c)" identifier = (pointer_expression "*(int *)(iVar3 + 0x1c)" * (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) ))))) ;) (if_statement "if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }" if (parenthesized_expression "(local_30 < 0)" ( (binary_expression "local_30 < 0" identifier < number_literal) )) (compound_statement "{\n            local_30 = 0;\n            local_38 = iVar8;\n          }" { (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_38 = iVar8;" (assignment_expression "local_38 = iVar8" identifier = identifier) ;) })) (if_statement "if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }" if (parenthesized_expression "(*(int *)(iVar6 + 0x1c) < iVar8)" ( (binary_expression "*(int *)(iVar6 + 0x1c) < iVar8" (pointer_expression "*(int *)(iVar6 + 0x1c)" * (cast_expression "(int *)(iVar6 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1c)" ( (binary_expression "iVar6 + 0x1c" identifier + number_literal) )))) < identifier) )) (compound_statement "{\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }" { (expression_statement "local_38 = *(int *)(iVar6 + 0x1c) - local_30;" (assignment_expression "local_38 = *(int *)(iVar6 + 0x1c) - local_30" identifier = (binary_expression "*(int *)(iVar6 + 0x1c) - local_30" (pointer_expression "*(int *)(iVar6 + 0x1c)" * (cast_expression "(int *)(iVar6 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1c)" ( (binary_expression "iVar6 + 0x1c" identifier + number_literal) )))) - identifier)) ;) })) (expression_statement "FUN_000fff20(iVar6,&local_3c,param_2);" (call_expression "FUN_000fff20(iVar6,&local_3c,param_2)" identifier (argument_list "(iVar6,&local_3c,param_2)" ( identifier , (pointer_expression "&local_3c" & identifier) , identifier ))) ;) (if_statement "if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;" if (parenthesized_expression "(*(int *)(iVar3 + 0x268) == 3)" ( (binary_expression "*(int *)(iVar3 + 0x268) == 3" (pointer_expression "*(int *)(iVar3 + 0x268)" * (cast_expression "(int *)(iVar3 + 0x268)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x268)" ( (binary_expression "iVar3 + 0x268" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_00102c28;" goto statement_identifier ;)) (labeled_statement "LAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);" statement_identifier : (expression_statement "(*(code *)PTR_DestroyImage_003a8f4c)(iVar4);" (call_expression "(*(code *)PTR_DestroyImage_003a8f4c)(iVar4)" (parenthesized_expression "(*(code *)PTR_DestroyImage_003a8f4c)" ( (pointer_expression "*(code *)PTR_DestroyImage_003a8f4c" * (cast_expression "(code *)PTR_DestroyImage_003a8f4c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))) ;)) (expression_statement "iVar4 = iVar6;" (assignment_expression "iVar4 = iVar6" identifier = identifier) ;) }) (else_clause "else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }" else (compound_statement "{\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }" { (if_statement "if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;" if (parenthesized_expression "(*(int *)(iVar3 + 0x268) != 3)" ( (binary_expression "*(int *)(iVar3 + 0x268) != 3" (pointer_expression "*(int *)(iVar3 + 0x268)" * (cast_expression "(int *)(iVar3 + 0x268)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x268)" ( (binary_expression "iVar3 + 0x268" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_00102a58;" goto statement_identifier ;)) (labeled_statement "LAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);" statement_identifier : (expression_statement "(*(code *)PTR_DestroyImage_003a8f4c)(iVar6);" (call_expression "(*(code *)PTR_DestroyImage_003a8f4c)(iVar6)" (parenthesized_expression "(*(code *)PTR_DestroyImage_003a8f4c)" ( (pointer_expression "*(code *)PTR_DestroyImage_003a8f4c" * (cast_expression "(code *)PTR_DestroyImage_003a8f4c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6)" ( identifier ))) ;)) }))) (expression_statement "iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);" (assignment_expression "iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2)" identifier = (call_expression "(*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2)" (parenthesized_expression "(*(code *)PTR_CloneImage_003a9830)" ( (pointer_expression "*(code *)PTR_CloneImage_003a9830" * (cast_expression "(code *)PTR_CloneImage_003a9830" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,0,0,1,param_2)" ( identifier , number_literal , number_literal , number_literal , identifier )))) ;) (expression_statement "puVar1 = PTR_CloneImageProfiles_003a9348;" (assignment_expression "puVar1 = PTR_CloneImageProfiles_003a9348" identifier = identifier) ;) (if_statement "if (iVar6 == 0) goto LAB_00102c38;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00102c38;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)(iVar4 + 0x90) = 4;" (assignment_expression "*(undefined4 *)(iVar4 + 0x90) = 4" (pointer_expression "*(undefined4 *)(iVar4 + 0x90)" * (cast_expression "(undefined4 *)(iVar4 + 0x90)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x90)" ( (binary_expression "iVar4 + 0x90" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(*(code *)puVar1)(iVar6,iVar3);" (call_expression "(*(code *)puVar1)(iVar6,iVar3)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6,iVar3)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);" (call_expression "(*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3)" (parenthesized_expression "(*(code *)PTR_CloneImageProperties_003a91ac)" ( (pointer_expression "*(code *)PTR_CloneImageProperties_003a91ac" * (cast_expression "(code *)PTR_CloneImageProperties_003a91ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6,iVar3)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);" (call_expression "(*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3)" (parenthesized_expression "(*(code *)PTR_CloneImageArtifacts_003a9500)" ( (pointer_expression "*(code *)PTR_CloneImageArtifacts_003a9500" * (cast_expression "(code *)PTR_CloneImageArtifacts_003a9500" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6,iVar3)" ( identifier , identifier ))) ;) (expression_statement "uVar7 = *(undefined4 *)(iVar3 + 0x268);" (assignment_expression "uVar7 = *(undefined4 *)(iVar3 + 0x268)" identifier = (pointer_expression "*(undefined4 *)(iVar3 + 0x268)" * (cast_expression "(undefined4 *)(iVar3 + 0x268)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x268)" ( (binary_expression "iVar3 + 0x268" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x230) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x230) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x230)" * (cast_expression "(undefined4 *)(iVar6 + 0x230)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x230)" ( (binary_expression "iVar6 + 0x230" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x234) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x234) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x234)" * (cast_expression "(undefined4 *)(iVar6 + 0x234)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x234)" ( (binary_expression "iVar6 + 0x234" identifier + number_literal) )))) = number_literal) ;) (expression_statement "puVar1 = PTR_AppendImageToList_003a9880;" (assignment_expression "puVar1 = PTR_AppendImageToList_003a9880" identifier = identifier) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x268) = uVar7;" (assignment_expression "*(undefined4 *)(iVar6 + 0x268) = uVar7" (pointer_expression "*(undefined4 *)(iVar6 + 0x268)" * (cast_expression "(undefined4 *)(iVar6 + 0x268)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x268)" ( (binary_expression "iVar6 + 0x268" identifier + number_literal) )))) = identifier) ;) (expression_statement "(*(code *)puVar1)(&local_40,iVar6);" (call_expression "(*(code *)puVar1)(&local_40,iVar6)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_40,iVar6)" ( (pointer_expression "&local_40" & identifier) , identifier ))) ;) (expression_statement "iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);" (assignment_expression "iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5)" identifier = (call_expression "(*(code *)PTR_GetNextImageInList_003a9470)(iVar5)" (parenthesized_expression "(*(code *)PTR_GetNextImageInList_003a9470)" ( (pointer_expression "*(code *)PTR_GetNextImageInList_003a9470" * (cast_expression "(code *)PTR_GetNextImageInList_003a9470" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5)" ( identifier )))) ;) }) while (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) ;) (expression_statement "(*(code *)PTR_DestroyImage_003a8f4c)(iVar4);" (call_expression "(*(code *)PTR_DestroyImage_003a8f4c)(iVar4)" (parenthesized_expression "(*(code *)PTR_DestroyImage_003a8f4c)" ( (pointer_expression "*(code *)PTR_DestroyImage_003a8f4c" * (cast_expression "(code *)PTR_DestroyImage_003a8f4c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))) ;) (expression_statement "iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);" (assignment_expression "iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40)" identifier = (call_expression "(*(code *)PTR_GetFirstImageInList_003a944c)(local_40)" (parenthesized_expression "(*(code *)PTR_GetFirstImageInList_003a944c)" ( (pointer_expression "*(code *)PTR_GetFirstImageInList_003a944c" * (cast_expression "(code *)PTR_GetFirstImageInList_003a944c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_40)" ( identifier )))) ;) }))) (labeled_statement "LAB_00102c5c:\n    if (local_2c == *(int *)puVar2) {\n      return iVar6;\n    }" statement_identifier : (if_statement "if (local_2c == *(int *)puVar2) {\n      return iVar6;\n    }" if (parenthesized_expression "(local_2c == *(int *)puVar2)" ( (binary_expression "local_2c == *(int *)puVar2" identifier == (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n      return iVar6;\n    }" { (return_statement "return iVar6;" return identifier ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_003a9064)();" (call_expression "(*(code *)PTR___stack_chk_fail_003a9064)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_003a9064)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_003a9064" * (cast_expression "(code *)PTR___stack_chk_fail_003a9064" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                    (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                     PTR_s_t_to_left_003a88e4 + -0x4b50);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                    (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                     PTR_s_t_to_left_003a88e4 + -0x4b50)" identifier = (call_expression "(*(code *)PTR___assert_fail_003a9608)\n                    (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                     PTR_s_t_to_left_003a88e4 + -0x4b50)" (parenthesized_expression "(*(code *)PTR___assert_fail_003a9608)" ( (pointer_expression "*(code *)PTR___assert_fail_003a9608" * (cast_expression "(code *)PTR___assert_fail_003a9608" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                     PTR_s_t_to_left_003a88e4 + -0x4b50)" ( (binary_expression "PTR_LAB_003a88e0 + 0x294c" identifier + number_literal) , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4e60" identifier + number_literal) , number_literal , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4b50" identifier + number_literal) )))) ;) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* WARNING: Enum "DisposeType": Some values do not have unique names */\n/* WARNING: Enum "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "PixelChannel": Some values do not have unique names */\n/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n\nImage * DisposeImages(Image *images,ExceptionInfo *exception)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  Image *pIVar5;\n  DisposeType DVar6;\n  int iVar7;\n  Image *image;\n  size_t sVar8;\n  undefined4 uVar9;\n  int iVar10;\n  Image *dispose_images;\n  RectangleInfo bounds;\n  \n  puVar2 = PTR___stack_chk_guard_003a9230;\n  iVar3 = *(int *)PTR___stack_chk_guard_003a9230;\n  if (images == (Image *)0x0) {\n    pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return pIVar5;\n  }\n  if (images->signature != 0xabacadab) {\n    pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return pIVar5;\n  }\n  if (images->debug != MagickFalse) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,images->filename);\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n    pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return pIVar5;\n  }\n  if (exception->signature == 0xabacadab) {\n    iVar4 = (*(code *)PTR_GetFirstImageInList_003a944c)(images);\n    pIVar5 = (Image *)(*(code *)PTR_CloneImage_003a9830)\n                                (iVar4,*(undefined4 *)(iVar4 + 0x228),*(undefined4 *)(iVar4 + 0x22c)\n                                 ,1,exception);\n    puVar1 = PTR_SetImageBackgroundColor_003a8e90;\n    if (pIVar5 == (Image *)0x0) {\n      image = (Image *)0x0;\n    }\n    else {\n      sVar8 = *(size_t *)(iVar4 + 0x228);\n      (pIVar5->page).height = *(size_t *)(iVar4 + 0x22c);\n      (pIVar5->page).width = sVar8;\n      pIVar5->dispose = NoneDispose;\n      (pIVar5->page).x = 0;\n      (pIVar5->background_color).alpha_trait = BlendPixelTrait;\n      (pIVar5->page).y = 0;\n      *(undefined4 *)((int)&(pIVar5->background_color).alpha + 4) = 0;\n      *(undefined4 *)&(pIVar5->background_color).alpha = 0;\n      (*(code *)puVar1)(pIVar5,exception);\n      dispose_images = (Image *)(*(code *)PTR_NewImageList_003a8e84)();\n      iVar7 = iVar4;\n      do {\n        image = (Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception);\n        if (image == (Image *)0x0) {\nLAB_00102c38:\n          dispose_images = (Image *)(*(code *)PTR_DestroyImageList_003a9510)(dispose_images);\n          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n          goto LAB_00102c5c;\n        }\n        iVar10 = *(int *)(iVar4 + 700);\n        (image->background_color).alpha_trait = BlendPixelTrait;\n        uVar9 = 0x36;\n        if (iVar10 == 0) {\n          uVar9 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (image,iVar4,uVar9,1,*(undefined4 *)(iVar4 + 0x230),*(undefined4 *)(iVar4 + 0x234)\n                   ,exception);\n        if (*(int *)(iVar4 + 0x268) == 2) {\n          bounds.width = *(size_t *)(iVar4 + 0x18);\n          bounds.x = *(int *)(iVar4 + 0x230);\n          bounds.y = *(int *)(iVar4 + 0x234);\n          if (bounds.x < 0) {\n            bounds.width = bounds.width + bounds.x;\n            bounds.x = 0;\n          }\n          if ((int)image->columns < (int)(bounds.width + bounds.x)) {\n            bounds.width = image->columns - bounds.x;\n          }\n          sVar8 = *(size_t *)(iVar4 + 0x1c) + bounds.y;\n          bounds.height = *(size_t *)(iVar4 + 0x1c);\n          if (bounds.y < 0) {\n            bounds.y = 0;\n            bounds.height = sVar8;\n          }\n          if ((int)image->rows < (int)sVar8) {\n            bounds.height = image->rows - bounds.y;\n          }\n          ClearBounds(image,&bounds,exception);\n          if (*(int *)(iVar4 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n          pIVar5 = image;\n        }\n        else {\n          if (*(int *)(iVar4 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(image);\n        }\n        image = (Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (image == (Image *)0x0) goto LAB_00102c38;\n        (pIVar5->background_color).alpha_trait = BlendPixelTrait;\n        (*(code *)puVar1)(image,iVar4);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(image,iVar4);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(image,iVar4);\n        DVar6 = *(DisposeType *)(iVar4 + 0x268);\n        (image->page).x = 0;\n        (image->page).y = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        image->dispose = DVar6;\n        (*(code *)puVar1)(&dispose_images,image);\n        iVar7 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar7);\n      } while (iVar7 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n      image = (Image *)(*(code *)PTR_GetFirstImageInList_003a944c)(dispose_images);\n    }\nLAB_00102c5c:\n    if (iVar3 == *(int *)puVar2) {\n      return image;\n    }\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n  }\n  pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)\n                              (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                               PTR_s_t_to_left_003a88e4 + -0x4b50);\n  return pIVar5;\n}\n\n" comment comment comment comment comment (function_definition "Image * DisposeImages(Image *images,ExceptionInfo *exception)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  Image *pIVar5;\n  DisposeType DVar6;\n  int iVar7;\n  Image *image;\n  size_t sVar8;\n  undefined4 uVar9;\n  int iVar10;\n  Image *dispose_images;\n  RectangleInfo bounds;\n  \n  puVar2 = PTR___stack_chk_guard_003a9230;\n  iVar3 = *(int *)PTR___stack_chk_guard_003a9230;\n  if (images == (Image *)0x0) {\n    pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return pIVar5;\n  }\n  if (images->signature != 0xabacadab) {\n    pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return pIVar5;\n  }\n  if (images->debug != MagickFalse) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,images->filename);\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n    pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return pIVar5;\n  }\n  if (exception->signature == 0xabacadab) {\n    iVar4 = (*(code *)PTR_GetFirstImageInList_003a944c)(images);\n    pIVar5 = (Image *)(*(code *)PTR_CloneImage_003a9830)\n                                (iVar4,*(undefined4 *)(iVar4 + 0x228),*(undefined4 *)(iVar4 + 0x22c)\n                                 ,1,exception);\n    puVar1 = PTR_SetImageBackgroundColor_003a8e90;\n    if (pIVar5 == (Image *)0x0) {\n      image = (Image *)0x0;\n    }\n    else {\n      sVar8 = *(size_t *)(iVar4 + 0x228);\n      (pIVar5->page).height = *(size_t *)(iVar4 + 0x22c);\n      (pIVar5->page).width = sVar8;\n      pIVar5->dispose = NoneDispose;\n      (pIVar5->page).x = 0;\n      (pIVar5->background_color).alpha_trait = BlendPixelTrait;\n      (pIVar5->page).y = 0;\n      *(undefined4 *)((int)&(pIVar5->background_color).alpha + 4) = 0;\n      *(undefined4 *)&(pIVar5->background_color).alpha = 0;\n      (*(code *)puVar1)(pIVar5,exception);\n      dispose_images = (Image *)(*(code *)PTR_NewImageList_003a8e84)();\n      iVar7 = iVar4;\n      do {\n        image = (Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception);\n        if (image == (Image *)0x0) {\nLAB_00102c38:\n          dispose_images = (Image *)(*(code *)PTR_DestroyImageList_003a9510)(dispose_images);\n          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n          goto LAB_00102c5c;\n        }\n        iVar10 = *(int *)(iVar4 + 700);\n        (image->background_color).alpha_trait = BlendPixelTrait;\n        uVar9 = 0x36;\n        if (iVar10 == 0) {\n          uVar9 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (image,iVar4,uVar9,1,*(undefined4 *)(iVar4 + 0x230),*(undefined4 *)(iVar4 + 0x234)\n                   ,exception);\n        if (*(int *)(iVar4 + 0x268) == 2) {\n          bounds.width = *(size_t *)(iVar4 + 0x18);\n          bounds.x = *(int *)(iVar4 + 0x230);\n          bounds.y = *(int *)(iVar4 + 0x234);\n          if (bounds.x < 0) {\n            bounds.width = bounds.width + bounds.x;\n            bounds.x = 0;\n          }\n          if ((int)image->columns < (int)(bounds.width + bounds.x)) {\n            bounds.width = image->columns - bounds.x;\n          }\n          sVar8 = *(size_t *)(iVar4 + 0x1c) + bounds.y;\n          bounds.height = *(size_t *)(iVar4 + 0x1c);\n          if (bounds.y < 0) {\n            bounds.y = 0;\n            bounds.height = sVar8;\n          }\n          if ((int)image->rows < (int)sVar8) {\n            bounds.height = image->rows - bounds.y;\n          }\n          ClearBounds(image,&bounds,exception);\n          if (*(int *)(iVar4 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n          pIVar5 = image;\n        }\n        else {\n          if (*(int *)(iVar4 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(image);\n        }\n        image = (Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (image == (Image *)0x0) goto LAB_00102c38;\n        (pIVar5->background_color).alpha_trait = BlendPixelTrait;\n        (*(code *)puVar1)(image,iVar4);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(image,iVar4);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(image,iVar4);\n        DVar6 = *(DisposeType *)(iVar4 + 0x268);\n        (image->page).x = 0;\n        (image->page).y = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        image->dispose = DVar6;\n        (*(code *)puVar1)(&dispose_images,image);\n        iVar7 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar7);\n      } while (iVar7 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n      image = (Image *)(*(code *)PTR_GetFirstImageInList_003a944c)(dispose_images);\n    }\nLAB_00102c5c:\n    if (iVar3 == *(int *)puVar2) {\n      return image;\n    }\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n  }\n  pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)\n                              (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                               PTR_s_t_to_left_003a88e4 + -0x4b50);\n  return pIVar5;\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  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  Image *pIVar5;\n  DisposeType DVar6;\n  int iVar7;\n  Image *image;\n  size_t sVar8;\n  undefined4 uVar9;\n  int iVar10;\n  Image *dispose_images;\n  RectangleInfo bounds;\n  \n  puVar2 = PTR___stack_chk_guard_003a9230;\n  iVar3 = *(int *)PTR___stack_chk_guard_003a9230;\n  if (images == (Image *)0x0) {\n    pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return pIVar5;\n  }\n  if (images->signature != 0xabacadab) {\n    pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return pIVar5;\n  }\n  if (images->debug != MagickFalse) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,images->filename);\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n    pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return pIVar5;\n  }\n  if (exception->signature == 0xabacadab) {\n    iVar4 = (*(code *)PTR_GetFirstImageInList_003a944c)(images);\n    pIVar5 = (Image *)(*(code *)PTR_CloneImage_003a9830)\n                                (iVar4,*(undefined4 *)(iVar4 + 0x228),*(undefined4 *)(iVar4 + 0x22c)\n                                 ,1,exception);\n    puVar1 = PTR_SetImageBackgroundColor_003a8e90;\n    if (pIVar5 == (Image *)0x0) {\n      image = (Image *)0x0;\n    }\n    else {\n      sVar8 = *(size_t *)(iVar4 + 0x228);\n      (pIVar5->page).height = *(size_t *)(iVar4 + 0x22c);\n      (pIVar5->page).width = sVar8;\n      pIVar5->dispose = NoneDispose;\n      (pIVar5->page).x = 0;\n      (pIVar5->background_color).alpha_trait = BlendPixelTrait;\n      (pIVar5->page).y = 0;\n      *(undefined4 *)((int)&(pIVar5->background_color).alpha + 4) = 0;\n      *(undefined4 *)&(pIVar5->background_color).alpha = 0;\n      (*(code *)puVar1)(pIVar5,exception);\n      dispose_images = (Image *)(*(code *)PTR_NewImageList_003a8e84)();\n      iVar7 = iVar4;\n      do {\n        image = (Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception);\n        if (image == (Image *)0x0) {\nLAB_00102c38:\n          dispose_images = (Image *)(*(code *)PTR_DestroyImageList_003a9510)(dispose_images);\n          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n          goto LAB_00102c5c;\n        }\n        iVar10 = *(int *)(iVar4 + 700);\n        (image->background_color).alpha_trait = BlendPixelTrait;\n        uVar9 = 0x36;\n        if (iVar10 == 0) {\n          uVar9 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (image,iVar4,uVar9,1,*(undefined4 *)(iVar4 + 0x230),*(undefined4 *)(iVar4 + 0x234)\n                   ,exception);\n        if (*(int *)(iVar4 + 0x268) == 2) {\n          bounds.width = *(size_t *)(iVar4 + 0x18);\n          bounds.x = *(int *)(iVar4 + 0x230);\n          bounds.y = *(int *)(iVar4 + 0x234);\n          if (bounds.x < 0) {\n            bounds.width = bounds.width + bounds.x;\n            bounds.x = 0;\n          }\n          if ((int)image->columns < (int)(bounds.width + bounds.x)) {\n            bounds.width = image->columns - bounds.x;\n          }\n          sVar8 = *(size_t *)(iVar4 + 0x1c) + bounds.y;\n          bounds.height = *(size_t *)(iVar4 + 0x1c);\n          if (bounds.y < 0) {\n            bounds.y = 0;\n            bounds.height = sVar8;\n          }\n          if ((int)image->rows < (int)sVar8) {\n            bounds.height = image->rows - bounds.y;\n          }\n          ClearBounds(image,&bounds,exception);\n          if (*(int *)(iVar4 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n          pIVar5 = image;\n        }\n        else {\n          if (*(int *)(iVar4 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(image);\n        }\n        image = (Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (image == (Image *)0x0) goto LAB_00102c38;\n        (pIVar5->background_color).alpha_trait = BlendPixelTrait;\n        (*(code *)puVar1)(image,iVar4);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(image,iVar4);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(image,iVar4);\n        DVar6 = *(DisposeType *)(iVar4 + 0x268);\n        (image->page).x = 0;\n        (image->page).y = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        image->dispose = DVar6;\n        (*(code *)puVar1)(&dispose_images,image);\n        iVar7 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar7);\n      } while (iVar7 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n      image = (Image *)(*(code *)PTR_GetFirstImageInList_003a944c)(dispose_images);\n    }\nLAB_00102c5c:\n    if (iVar3 == *(int *)puVar2) {\n      return image;\n    }\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n  }\n  pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)\n                              (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                               PTR_s_t_to_left_003a88e4 + -0x4b50);\n  return pIVar5;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "Image *pIVar5;" type_identifier (pointer_declarator "*pIVar5" * identifier) ;) (declaration "DisposeType DVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "Image *image;" type_identifier (pointer_declarator "*image" * identifier) ;) (declaration "size_t sVar8;" primitive_type identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "Image *dispose_images;" type_identifier (pointer_declarator "*dispose_images" * identifier) ;) (declaration "RectangleInfo bounds;" type_identifier identifier ;) (expression_statement "puVar2 = PTR___stack_chk_guard_003a9230;" (assignment_expression "puVar2 = PTR___stack_chk_guard_003a9230" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)PTR___stack_chk_guard_003a9230;" (assignment_expression "iVar3 = *(int *)PTR___stack_chk_guard_003a9230" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_003a9230" * (cast_expression "(int *)PTR___stack_chk_guard_003a9230" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (images == (Image *)0x0) {\n    pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return pIVar5;\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    pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return pIVar5;\n  }" { (expression_statement "pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50);" (assignment_expression "pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50)" identifier = (cast_expression "(Image *)(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50)" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50)" (parenthesized_expression "(*(code *)PTR___assert_fail_003a9608)" ( (pointer_expression "*(code *)PTR___assert_fail_003a9608" * (cast_expression "(code *)PTR___assert_fail_003a9608" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50)" ( (binary_expression "PTR_LAB_003a88e0 + 0x1e48" identifier + number_literal) , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4e60" identifier + number_literal) , number_literal , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4b50" identifier + number_literal) ))))) ;) (return_statement "return pIVar5;" return identifier ;) })) (if_statement "if (images->signature != 0xabacadab) {\n    pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return pIVar5;\n  }" if (parenthesized_expression "(images->signature != 0xabacadab)" ( (binary_expression "images->signature != 0xabacadab" (field_expression "images->signature" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n    pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return pIVar5;\n  }" { (expression_statement "pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50);" (assignment_expression "pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50)" identifier = (cast_expression "(Image *)(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50)" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50)" (parenthesized_expression "(*(code *)PTR___assert_fail_003a9608)" ( (pointer_expression "*(code *)PTR___assert_fail_003a9608" * (cast_expression "(code *)PTR___assert_fail_003a9608" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50)" ( (binary_expression "PTR_LAB_003a88e0 + 0x1e64" identifier + number_literal) , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4e60" identifier + number_literal) , number_literal , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4b50" identifier + number_literal) ))))) ;) (return_statement "return pIVar5;" return identifier ;) })) (if_statement "if (images->debug != MagickFalse) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,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    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,images->filename);\n  }" { (expression_statement "(*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,images->filename);" (call_expression "(*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,images->filename)" (parenthesized_expression "(*(code *)PTR_LogMagickEvent_003a91e0)" ( (pointer_expression "*(code *)PTR_LogMagickEvent_003a91e0" * (cast_expression "(code *)PTR_LogMagickEvent_003a91e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,images->filename)" ( number_literal , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4e60" identifier + number_literal) , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4b60" identifier + number_literal) , number_literal , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x62ac" identifier + number_literal) , (field_expression "images->filename" identifier -> field_identifier) ))) ;) })) (if_statement "if (exception == (ExceptionInfo *)0x0) {\n    pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return pIVar5;\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    pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return pIVar5;\n  }" { (expression_statement "pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50);" (assignment_expression "pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50)" identifier = (cast_expression "(Image *)(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50)" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___assert_fail_003a9608)\n                                (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50)" (parenthesized_expression "(*(code *)PTR___assert_fail_003a9608)" ( (pointer_expression "*(code *)PTR___assert_fail_003a9608" * (cast_expression "(code *)PTR___assert_fail_003a9608" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                                 PTR_s_t_to_left_003a88e4 + -0x4b50)" ( (binary_expression "PTR_LAB_003a88e0 + 0x1cac" identifier + number_literal) , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4e60" identifier + number_literal) , number_literal , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4b50" identifier + number_literal) ))))) ;) (return_statement "return pIVar5;" return identifier ;) })) (if_statement "if (exception->signature == 0xabacadab) {\n    iVar4 = (*(code *)PTR_GetFirstImageInList_003a944c)(images);\n    pIVar5 = (Image *)(*(code *)PTR_CloneImage_003a9830)\n                                (iVar4,*(undefined4 *)(iVar4 + 0x228),*(undefined4 *)(iVar4 + 0x22c)\n                                 ,1,exception);\n    puVar1 = PTR_SetImageBackgroundColor_003a8e90;\n    if (pIVar5 == (Image *)0x0) {\n      image = (Image *)0x0;\n    }\n    else {\n      sVar8 = *(size_t *)(iVar4 + 0x228);\n      (pIVar5->page).height = *(size_t *)(iVar4 + 0x22c);\n      (pIVar5->page).width = sVar8;\n      pIVar5->dispose = NoneDispose;\n      (pIVar5->page).x = 0;\n      (pIVar5->background_color).alpha_trait = BlendPixelTrait;\n      (pIVar5->page).y = 0;\n      *(undefined4 *)((int)&(pIVar5->background_color).alpha + 4) = 0;\n      *(undefined4 *)&(pIVar5->background_color).alpha = 0;\n      (*(code *)puVar1)(pIVar5,exception);\n      dispose_images = (Image *)(*(code *)PTR_NewImageList_003a8e84)();\n      iVar7 = iVar4;\n      do {\n        image = (Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception);\n        if (image == (Image *)0x0) {\nLAB_00102c38:\n          dispose_images = (Image *)(*(code *)PTR_DestroyImageList_003a9510)(dispose_images);\n          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n          goto LAB_00102c5c;\n        }\n        iVar10 = *(int *)(iVar4 + 700);\n        (image->background_color).alpha_trait = BlendPixelTrait;\n        uVar9 = 0x36;\n        if (iVar10 == 0) {\n          uVar9 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (image,iVar4,uVar9,1,*(undefined4 *)(iVar4 + 0x230),*(undefined4 *)(iVar4 + 0x234)\n                   ,exception);\n        if (*(int *)(iVar4 + 0x268) == 2) {\n          bounds.width = *(size_t *)(iVar4 + 0x18);\n          bounds.x = *(int *)(iVar4 + 0x230);\n          bounds.y = *(int *)(iVar4 + 0x234);\n          if (bounds.x < 0) {\n            bounds.width = bounds.width + bounds.x;\n            bounds.x = 0;\n          }\n          if ((int)image->columns < (int)(bounds.width + bounds.x)) {\n            bounds.width = image->columns - bounds.x;\n          }\n          sVar8 = *(size_t *)(iVar4 + 0x1c) + bounds.y;\n          bounds.height = *(size_t *)(iVar4 + 0x1c);\n          if (bounds.y < 0) {\n            bounds.y = 0;\n            bounds.height = sVar8;\n          }\n          if ((int)image->rows < (int)sVar8) {\n            bounds.height = image->rows - bounds.y;\n          }\n          ClearBounds(image,&bounds,exception);\n          if (*(int *)(iVar4 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n          pIVar5 = image;\n        }\n        else {\n          if (*(int *)(iVar4 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(image);\n        }\n        image = (Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (image == (Image *)0x0) goto LAB_00102c38;\n        (pIVar5->background_color).alpha_trait = BlendPixelTrait;\n        (*(code *)puVar1)(image,iVar4);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(image,iVar4);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(image,iVar4);\n        DVar6 = *(DisposeType *)(iVar4 + 0x268);\n        (image->page).x = 0;\n        (image->page).y = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        image->dispose = DVar6;\n        (*(code *)puVar1)(&dispose_images,image);\n        iVar7 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar7);\n      } while (iVar7 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n      image = (Image *)(*(code *)PTR_GetFirstImageInList_003a944c)(dispose_images);\n    }\nLAB_00102c5c:\n    if (iVar3 == *(int *)puVar2) {\n      return image;\n    }\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n  }" if (parenthesized_expression "(exception->signature == 0xabacadab)" ( (binary_expression "exception->signature == 0xabacadab" (field_expression "exception->signature" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    iVar4 = (*(code *)PTR_GetFirstImageInList_003a944c)(images);\n    pIVar5 = (Image *)(*(code *)PTR_CloneImage_003a9830)\n                                (iVar4,*(undefined4 *)(iVar4 + 0x228),*(undefined4 *)(iVar4 + 0x22c)\n                                 ,1,exception);\n    puVar1 = PTR_SetImageBackgroundColor_003a8e90;\n    if (pIVar5 == (Image *)0x0) {\n      image = (Image *)0x0;\n    }\n    else {\n      sVar8 = *(size_t *)(iVar4 + 0x228);\n      (pIVar5->page).height = *(size_t *)(iVar4 + 0x22c);\n      (pIVar5->page).width = sVar8;\n      pIVar5->dispose = NoneDispose;\n      (pIVar5->page).x = 0;\n      (pIVar5->background_color).alpha_trait = BlendPixelTrait;\n      (pIVar5->page).y = 0;\n      *(undefined4 *)((int)&(pIVar5->background_color).alpha + 4) = 0;\n      *(undefined4 *)&(pIVar5->background_color).alpha = 0;\n      (*(code *)puVar1)(pIVar5,exception);\n      dispose_images = (Image *)(*(code *)PTR_NewImageList_003a8e84)();\n      iVar7 = iVar4;\n      do {\n        image = (Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception);\n        if (image == (Image *)0x0) {\nLAB_00102c38:\n          dispose_images = (Image *)(*(code *)PTR_DestroyImageList_003a9510)(dispose_images);\n          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n          goto LAB_00102c5c;\n        }\n        iVar10 = *(int *)(iVar4 + 700);\n        (image->background_color).alpha_trait = BlendPixelTrait;\n        uVar9 = 0x36;\n        if (iVar10 == 0) {\n          uVar9 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (image,iVar4,uVar9,1,*(undefined4 *)(iVar4 + 0x230),*(undefined4 *)(iVar4 + 0x234)\n                   ,exception);\n        if (*(int *)(iVar4 + 0x268) == 2) {\n          bounds.width = *(size_t *)(iVar4 + 0x18);\n          bounds.x = *(int *)(iVar4 + 0x230);\n          bounds.y = *(int *)(iVar4 + 0x234);\n          if (bounds.x < 0) {\n            bounds.width = bounds.width + bounds.x;\n            bounds.x = 0;\n          }\n          if ((int)image->columns < (int)(bounds.width + bounds.x)) {\n            bounds.width = image->columns - bounds.x;\n          }\n          sVar8 = *(size_t *)(iVar4 + 0x1c) + bounds.y;\n          bounds.height = *(size_t *)(iVar4 + 0x1c);\n          if (bounds.y < 0) {\n            bounds.y = 0;\n            bounds.height = sVar8;\n          }\n          if ((int)image->rows < (int)sVar8) {\n            bounds.height = image->rows - bounds.y;\n          }\n          ClearBounds(image,&bounds,exception);\n          if (*(int *)(iVar4 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n          pIVar5 = image;\n        }\n        else {\n          if (*(int *)(iVar4 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(image);\n        }\n        image = (Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (image == (Image *)0x0) goto LAB_00102c38;\n        (pIVar5->background_color).alpha_trait = BlendPixelTrait;\n        (*(code *)puVar1)(image,iVar4);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(image,iVar4);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(image,iVar4);\n        DVar6 = *(DisposeType *)(iVar4 + 0x268);\n        (image->page).x = 0;\n        (image->page).y = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        image->dispose = DVar6;\n        (*(code *)puVar1)(&dispose_images,image);\n        iVar7 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar7);\n      } while (iVar7 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n      image = (Image *)(*(code *)PTR_GetFirstImageInList_003a944c)(dispose_images);\n    }\nLAB_00102c5c:\n    if (iVar3 == *(int *)puVar2) {\n      return image;\n    }\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n  }" { (expression_statement "iVar4 = (*(code *)PTR_GetFirstImageInList_003a944c)(images);" (assignment_expression "iVar4 = (*(code *)PTR_GetFirstImageInList_003a944c)(images)" identifier = (call_expression "(*(code *)PTR_GetFirstImageInList_003a944c)(images)" (parenthesized_expression "(*(code *)PTR_GetFirstImageInList_003a944c)" ( (pointer_expression "*(code *)PTR_GetFirstImageInList_003a944c" * (cast_expression "(code *)PTR_GetFirstImageInList_003a944c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(images)" ( identifier )))) ;) (expression_statement "pIVar5 = (Image *)(*(code *)PTR_CloneImage_003a9830)\n                                (iVar4,*(undefined4 *)(iVar4 + 0x228),*(undefined4 *)(iVar4 + 0x22c)\n                                 ,1,exception);" (assignment_expression "pIVar5 = (Image *)(*(code *)PTR_CloneImage_003a9830)\n                                (iVar4,*(undefined4 *)(iVar4 + 0x228),*(undefined4 *)(iVar4 + 0x22c)\n                                 ,1,exception)" identifier = (cast_expression "(Image *)(*(code *)PTR_CloneImage_003a9830)\n                                (iVar4,*(undefined4 *)(iVar4 + 0x228),*(undefined4 *)(iVar4 + 0x22c)\n                                 ,1,exception)" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_CloneImage_003a9830)\n                                (iVar4,*(undefined4 *)(iVar4 + 0x228),*(undefined4 *)(iVar4 + 0x22c)\n                                 ,1,exception)" (parenthesized_expression "(*(code *)PTR_CloneImage_003a9830)" ( (pointer_expression "*(code *)PTR_CloneImage_003a9830" * (cast_expression "(code *)PTR_CloneImage_003a9830" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,*(undefined4 *)(iVar4 + 0x228),*(undefined4 *)(iVar4 + 0x22c)\n                                 ,1,exception)" ( identifier , (pointer_expression "*(undefined4 *)(iVar4 + 0x228)" * (cast_expression "(undefined4 *)(iVar4 + 0x228)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x228)" ( (binary_expression "iVar4 + 0x228" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar4 + 0x22c)" * (cast_expression "(undefined4 *)(iVar4 + 0x22c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x22c)" ( (binary_expression "iVar4 + 0x22c" identifier + number_literal) )))) , number_literal , identifier ))))) ;) (expression_statement "puVar1 = PTR_SetImageBackgroundColor_003a8e90;" (assignment_expression "puVar1 = PTR_SetImageBackgroundColor_003a8e90" identifier = identifier) ;) (if_statement "if (pIVar5 == (Image *)0x0) {\n      image = (Image *)0x0;\n    }\n    else {\n      sVar8 = *(size_t *)(iVar4 + 0x228);\n      (pIVar5->page).height = *(size_t *)(iVar4 + 0x22c);\n      (pIVar5->page).width = sVar8;\n      pIVar5->dispose = NoneDispose;\n      (pIVar5->page).x = 0;\n      (pIVar5->background_color).alpha_trait = BlendPixelTrait;\n      (pIVar5->page).y = 0;\n      *(undefined4 *)((int)&(pIVar5->background_color).alpha + 4) = 0;\n      *(undefined4 *)&(pIVar5->background_color).alpha = 0;\n      (*(code *)puVar1)(pIVar5,exception);\n      dispose_images = (Image *)(*(code *)PTR_NewImageList_003a8e84)();\n      iVar7 = iVar4;\n      do {\n        image = (Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception);\n        if (image == (Image *)0x0) {\nLAB_00102c38:\n          dispose_images = (Image *)(*(code *)PTR_DestroyImageList_003a9510)(dispose_images);\n          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n          goto LAB_00102c5c;\n        }\n        iVar10 = *(int *)(iVar4 + 700);\n        (image->background_color).alpha_trait = BlendPixelTrait;\n        uVar9 = 0x36;\n        if (iVar10 == 0) {\n          uVar9 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (image,iVar4,uVar9,1,*(undefined4 *)(iVar4 + 0x230),*(undefined4 *)(iVar4 + 0x234)\n                   ,exception);\n        if (*(int *)(iVar4 + 0x268) == 2) {\n          bounds.width = *(size_t *)(iVar4 + 0x18);\n          bounds.x = *(int *)(iVar4 + 0x230);\n          bounds.y = *(int *)(iVar4 + 0x234);\n          if (bounds.x < 0) {\n            bounds.width = bounds.width + bounds.x;\n            bounds.x = 0;\n          }\n          if ((int)image->columns < (int)(bounds.width + bounds.x)) {\n            bounds.width = image->columns - bounds.x;\n          }\n          sVar8 = *(size_t *)(iVar4 + 0x1c) + bounds.y;\n          bounds.height = *(size_t *)(iVar4 + 0x1c);\n          if (bounds.y < 0) {\n            bounds.y = 0;\n            bounds.height = sVar8;\n          }\n          if ((int)image->rows < (int)sVar8) {\n            bounds.height = image->rows - bounds.y;\n          }\n          ClearBounds(image,&bounds,exception);\n          if (*(int *)(iVar4 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n          pIVar5 = image;\n        }\n        else {\n          if (*(int *)(iVar4 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(image);\n        }\n        image = (Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (image == (Image *)0x0) goto LAB_00102c38;\n        (pIVar5->background_color).alpha_trait = BlendPixelTrait;\n        (*(code *)puVar1)(image,iVar4);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(image,iVar4);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(image,iVar4);\n        DVar6 = *(DisposeType *)(iVar4 + 0x268);\n        (image->page).x = 0;\n        (image->page).y = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        image->dispose = DVar6;\n        (*(code *)puVar1)(&dispose_images,image);\n        iVar7 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar7);\n      } while (iVar7 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n      image = (Image *)(*(code *)PTR_GetFirstImageInList_003a944c)(dispose_images);\n    }" if (parenthesized_expression "(pIVar5 == (Image *)0x0)" ( (binary_expression "pIVar5 == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      image = (Image *)0x0;\n    }" { (expression_statement "image = (Image *)0x0;" (assignment_expression "image = (Image *)0x0" identifier = (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      sVar8 = *(size_t *)(iVar4 + 0x228);\n      (pIVar5->page).height = *(size_t *)(iVar4 + 0x22c);\n      (pIVar5->page).width = sVar8;\n      pIVar5->dispose = NoneDispose;\n      (pIVar5->page).x = 0;\n      (pIVar5->background_color).alpha_trait = BlendPixelTrait;\n      (pIVar5->page).y = 0;\n      *(undefined4 *)((int)&(pIVar5->background_color).alpha + 4) = 0;\n      *(undefined4 *)&(pIVar5->background_color).alpha = 0;\n      (*(code *)puVar1)(pIVar5,exception);\n      dispose_images = (Image *)(*(code *)PTR_NewImageList_003a8e84)();\n      iVar7 = iVar4;\n      do {\n        image = (Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception);\n        if (image == (Image *)0x0) {\nLAB_00102c38:\n          dispose_images = (Image *)(*(code *)PTR_DestroyImageList_003a9510)(dispose_images);\n          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n          goto LAB_00102c5c;\n        }\n        iVar10 = *(int *)(iVar4 + 700);\n        (image->background_color).alpha_trait = BlendPixelTrait;\n        uVar9 = 0x36;\n        if (iVar10 == 0) {\n          uVar9 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (image,iVar4,uVar9,1,*(undefined4 *)(iVar4 + 0x230),*(undefined4 *)(iVar4 + 0x234)\n                   ,exception);\n        if (*(int *)(iVar4 + 0x268) == 2) {\n          bounds.width = *(size_t *)(iVar4 + 0x18);\n          bounds.x = *(int *)(iVar4 + 0x230);\n          bounds.y = *(int *)(iVar4 + 0x234);\n          if (bounds.x < 0) {\n            bounds.width = bounds.width + bounds.x;\n            bounds.x = 0;\n          }\n          if ((int)image->columns < (int)(bounds.width + bounds.x)) {\n            bounds.width = image->columns - bounds.x;\n          }\n          sVar8 = *(size_t *)(iVar4 + 0x1c) + bounds.y;\n          bounds.height = *(size_t *)(iVar4 + 0x1c);\n          if (bounds.y < 0) {\n            bounds.y = 0;\n            bounds.height = sVar8;\n          }\n          if ((int)image->rows < (int)sVar8) {\n            bounds.height = image->rows - bounds.y;\n          }\n          ClearBounds(image,&bounds,exception);\n          if (*(int *)(iVar4 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n          pIVar5 = image;\n        }\n        else {\n          if (*(int *)(iVar4 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(image);\n        }\n        image = (Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (image == (Image *)0x0) goto LAB_00102c38;\n        (pIVar5->background_color).alpha_trait = BlendPixelTrait;\n        (*(code *)puVar1)(image,iVar4);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(image,iVar4);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(image,iVar4);\n        DVar6 = *(DisposeType *)(iVar4 + 0x268);\n        (image->page).x = 0;\n        (image->page).y = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        image->dispose = DVar6;\n        (*(code *)puVar1)(&dispose_images,image);\n        iVar7 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar7);\n      } while (iVar7 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n      image = (Image *)(*(code *)PTR_GetFirstImageInList_003a944c)(dispose_images);\n    }" else (compound_statement "{\n      sVar8 = *(size_t *)(iVar4 + 0x228);\n      (pIVar5->page).height = *(size_t *)(iVar4 + 0x22c);\n      (pIVar5->page).width = sVar8;\n      pIVar5->dispose = NoneDispose;\n      (pIVar5->page).x = 0;\n      (pIVar5->background_color).alpha_trait = BlendPixelTrait;\n      (pIVar5->page).y = 0;\n      *(undefined4 *)((int)&(pIVar5->background_color).alpha + 4) = 0;\n      *(undefined4 *)&(pIVar5->background_color).alpha = 0;\n      (*(code *)puVar1)(pIVar5,exception);\n      dispose_images = (Image *)(*(code *)PTR_NewImageList_003a8e84)();\n      iVar7 = iVar4;\n      do {\n        image = (Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception);\n        if (image == (Image *)0x0) {\nLAB_00102c38:\n          dispose_images = (Image *)(*(code *)PTR_DestroyImageList_003a9510)(dispose_images);\n          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n          goto LAB_00102c5c;\n        }\n        iVar10 = *(int *)(iVar4 + 700);\n        (image->background_color).alpha_trait = BlendPixelTrait;\n        uVar9 = 0x36;\n        if (iVar10 == 0) {\n          uVar9 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (image,iVar4,uVar9,1,*(undefined4 *)(iVar4 + 0x230),*(undefined4 *)(iVar4 + 0x234)\n                   ,exception);\n        if (*(int *)(iVar4 + 0x268) == 2) {\n          bounds.width = *(size_t *)(iVar4 + 0x18);\n          bounds.x = *(int *)(iVar4 + 0x230);\n          bounds.y = *(int *)(iVar4 + 0x234);\n          if (bounds.x < 0) {\n            bounds.width = bounds.width + bounds.x;\n            bounds.x = 0;\n          }\n          if ((int)image->columns < (int)(bounds.width + bounds.x)) {\n            bounds.width = image->columns - bounds.x;\n          }\n          sVar8 = *(size_t *)(iVar4 + 0x1c) + bounds.y;\n          bounds.height = *(size_t *)(iVar4 + 0x1c);\n          if (bounds.y < 0) {\n            bounds.y = 0;\n            bounds.height = sVar8;\n          }\n          if ((int)image->rows < (int)sVar8) {\n            bounds.height = image->rows - bounds.y;\n          }\n          ClearBounds(image,&bounds,exception);\n          if (*(int *)(iVar4 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n          pIVar5 = image;\n        }\n        else {\n          if (*(int *)(iVar4 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(image);\n        }\n        image = (Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (image == (Image *)0x0) goto LAB_00102c38;\n        (pIVar5->background_color).alpha_trait = BlendPixelTrait;\n        (*(code *)puVar1)(image,iVar4);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(image,iVar4);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(image,iVar4);\n        DVar6 = *(DisposeType *)(iVar4 + 0x268);\n        (image->page).x = 0;\n        (image->page).y = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        image->dispose = DVar6;\n        (*(code *)puVar1)(&dispose_images,image);\n        iVar7 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar7);\n      } while (iVar7 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n      image = (Image *)(*(code *)PTR_GetFirstImageInList_003a944c)(dispose_images);\n    }" { (expression_statement "sVar8 = *(size_t *)(iVar4 + 0x228);" (assignment_expression "sVar8 = *(size_t *)(iVar4 + 0x228)" identifier = (pointer_expression "*(size_t *)(iVar4 + 0x228)" * (cast_expression "(size_t *)(iVar4 + 0x228)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x228)" ( (binary_expression "iVar4 + 0x228" identifier + number_literal) ))))) ;) (expression_statement "(pIVar5->page).height = *(size_t *)(iVar4 + 0x22c);" (assignment_expression "(pIVar5->page).height = *(size_t *)(iVar4 + 0x22c)" (field_expression "(pIVar5->page).height" (parenthesized_expression "(pIVar5->page)" ( (field_expression "pIVar5->page" identifier -> field_identifier) )) . field_identifier) = (pointer_expression "*(size_t *)(iVar4 + 0x22c)" * (cast_expression "(size_t *)(iVar4 + 0x22c)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x22c)" ( (binary_expression "iVar4 + 0x22c" identifier + number_literal) ))))) ;) (expression_statement "(pIVar5->page).width = sVar8;" (assignment_expression "(pIVar5->page).width = sVar8" (field_expression "(pIVar5->page).width" (parenthesized_expression "(pIVar5->page)" ( (field_expression "pIVar5->page" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "pIVar5->dispose = NoneDispose;" (assignment_expression "pIVar5->dispose = NoneDispose" (field_expression "pIVar5->dispose" identifier -> field_identifier) = identifier) ;) (expression_statement "(pIVar5->page).x = 0;" (assignment_expression "(pIVar5->page).x = 0" (field_expression "(pIVar5->page).x" (parenthesized_expression "(pIVar5->page)" ( (field_expression "pIVar5->page" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "(pIVar5->background_color).alpha_trait = BlendPixelTrait;" (assignment_expression "(pIVar5->background_color).alpha_trait = BlendPixelTrait" (field_expression "(pIVar5->background_color).alpha_trait" (parenthesized_expression "(pIVar5->background_color)" ( (field_expression "pIVar5->background_color" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(pIVar5->page).y = 0;" (assignment_expression "(pIVar5->page).y = 0" (field_expression "(pIVar5->page).y" (parenthesized_expression "(pIVar5->page)" ( (field_expression "pIVar5->page" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&(pIVar5->background_color).alpha + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&(pIVar5->background_color).alpha + 4) = 0" (pointer_expression "*(undefined4 *)((int)&(pIVar5->background_color).alpha + 4)" * (cast_expression "(undefined4 *)((int)&(pIVar5->background_color).alpha + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(pIVar5->background_color).alpha + 4)" ( (binary_expression "(int)&(pIVar5->background_color).alpha + 4" (cast_expression "(int)&(pIVar5->background_color).alpha" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(pIVar5->background_color).alpha" & (field_expression "(pIVar5->background_color).alpha" (parenthesized_expression "(pIVar5->background_color)" ( (field_expression "pIVar5->background_color" identifier -> field_identifier) )) . field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)&(pIVar5->background_color).alpha = 0;" (assignment_expression "*(undefined4 *)&(pIVar5->background_color).alpha = 0" (pointer_expression "*(undefined4 *)&(pIVar5->background_color).alpha" * (cast_expression "(undefined4 *)&(pIVar5->background_color).alpha" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&(pIVar5->background_color).alpha" & (field_expression "(pIVar5->background_color).alpha" (parenthesized_expression "(pIVar5->background_color)" ( (field_expression "pIVar5->background_color" identifier -> field_identifier) )) . field_identifier)))) = number_literal) ;) (expression_statement "(*(code *)puVar1)(pIVar5,exception);" (call_expression "(*(code *)puVar1)(pIVar5,exception)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pIVar5,exception)" ( identifier , identifier ))) ;) (expression_statement "dispose_images = (Image *)(*(code *)PTR_NewImageList_003a8e84)();" (assignment_expression "dispose_images = (Image *)(*(code *)PTR_NewImageList_003a8e84)()" identifier = (cast_expression "(Image *)(*(code *)PTR_NewImageList_003a8e84)()" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_NewImageList_003a8e84)()" (parenthesized_expression "(*(code *)PTR_NewImageList_003a8e84)" ( (pointer_expression "*(code *)PTR_NewImageList_003a8e84" * (cast_expression "(code *)PTR_NewImageList_003a8e84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar7 = iVar4;" (assignment_expression "iVar7 = iVar4" identifier = identifier) ;) (do_statement "do {\n        image = (Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception);\n        if (image == (Image *)0x0) {\nLAB_00102c38:\n          dispose_images = (Image *)(*(code *)PTR_DestroyImageList_003a9510)(dispose_images);\n          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n          goto LAB_00102c5c;\n        }\n        iVar10 = *(int *)(iVar4 + 700);\n        (image->background_color).alpha_trait = BlendPixelTrait;\n        uVar9 = 0x36;\n        if (iVar10 == 0) {\n          uVar9 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (image,iVar4,uVar9,1,*(undefined4 *)(iVar4 + 0x230),*(undefined4 *)(iVar4 + 0x234)\n                   ,exception);\n        if (*(int *)(iVar4 + 0x268) == 2) {\n          bounds.width = *(size_t *)(iVar4 + 0x18);\n          bounds.x = *(int *)(iVar4 + 0x230);\n          bounds.y = *(int *)(iVar4 + 0x234);\n          if (bounds.x < 0) {\n            bounds.width = bounds.width + bounds.x;\n            bounds.x = 0;\n          }\n          if ((int)image->columns < (int)(bounds.width + bounds.x)) {\n            bounds.width = image->columns - bounds.x;\n          }\n          sVar8 = *(size_t *)(iVar4 + 0x1c) + bounds.y;\n          bounds.height = *(size_t *)(iVar4 + 0x1c);\n          if (bounds.y < 0) {\n            bounds.y = 0;\n            bounds.height = sVar8;\n          }\n          if ((int)image->rows < (int)sVar8) {\n            bounds.height = image->rows - bounds.y;\n          }\n          ClearBounds(image,&bounds,exception);\n          if (*(int *)(iVar4 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n          pIVar5 = image;\n        }\n        else {\n          if (*(int *)(iVar4 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(image);\n        }\n        image = (Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (image == (Image *)0x0) goto LAB_00102c38;\n        (pIVar5->background_color).alpha_trait = BlendPixelTrait;\n        (*(code *)puVar1)(image,iVar4);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(image,iVar4);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(image,iVar4);\n        DVar6 = *(DisposeType *)(iVar4 + 0x268);\n        (image->page).x = 0;\n        (image->page).y = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        image->dispose = DVar6;\n        (*(code *)puVar1)(&dispose_images,image);\n        iVar7 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar7);\n      } while (iVar7 != 0);" do (compound_statement "{\n        image = (Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception);\n        if (image == (Image *)0x0) {\nLAB_00102c38:\n          dispose_images = (Image *)(*(code *)PTR_DestroyImageList_003a9510)(dispose_images);\n          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n          goto LAB_00102c5c;\n        }\n        iVar10 = *(int *)(iVar4 + 700);\n        (image->background_color).alpha_trait = BlendPixelTrait;\n        uVar9 = 0x36;\n        if (iVar10 == 0) {\n          uVar9 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (image,iVar4,uVar9,1,*(undefined4 *)(iVar4 + 0x230),*(undefined4 *)(iVar4 + 0x234)\n                   ,exception);\n        if (*(int *)(iVar4 + 0x268) == 2) {\n          bounds.width = *(size_t *)(iVar4 + 0x18);\n          bounds.x = *(int *)(iVar4 + 0x230);\n          bounds.y = *(int *)(iVar4 + 0x234);\n          if (bounds.x < 0) {\n            bounds.width = bounds.width + bounds.x;\n            bounds.x = 0;\n          }\n          if ((int)image->columns < (int)(bounds.width + bounds.x)) {\n            bounds.width = image->columns - bounds.x;\n          }\n          sVar8 = *(size_t *)(iVar4 + 0x1c) + bounds.y;\n          bounds.height = *(size_t *)(iVar4 + 0x1c);\n          if (bounds.y < 0) {\n            bounds.y = 0;\n            bounds.height = sVar8;\n          }\n          if ((int)image->rows < (int)sVar8) {\n            bounds.height = image->rows - bounds.y;\n          }\n          ClearBounds(image,&bounds,exception);\n          if (*(int *)(iVar4 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n          pIVar5 = image;\n        }\n        else {\n          if (*(int *)(iVar4 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(image);\n        }\n        image = (Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (image == (Image *)0x0) goto LAB_00102c38;\n        (pIVar5->background_color).alpha_trait = BlendPixelTrait;\n        (*(code *)puVar1)(image,iVar4);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(image,iVar4);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(image,iVar4);\n        DVar6 = *(DisposeType *)(iVar4 + 0x268);\n        (image->page).x = 0;\n        (image->page).y = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        image->dispose = DVar6;\n        (*(code *)puVar1)(&dispose_images,image);\n        iVar7 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar7);\n      }" { (expression_statement "image = (Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception);" (assignment_expression "image = (Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception)" identifier = (cast_expression "(Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception)" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception)" (parenthesized_expression "(*(code *)PTR_CloneImage_003a9830)" ( (pointer_expression "*(code *)PTR_CloneImage_003a9830" * (cast_expression "(code *)PTR_CloneImage_003a9830" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pIVar5,0,0,1,exception)" ( identifier , number_literal , number_literal , number_literal , identifier ))))) ;) (if_statement "if (image == (Image *)0x0) {\nLAB_00102c38:\n          dispose_images = (Image *)(*(code *)PTR_DestroyImageList_003a9510)(dispose_images);\n          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n          goto LAB_00102c5c;\n        }" if (parenthesized_expression "(image == (Image *)0x0)" ( (binary_expression "image == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00102c38:\n          dispose_images = (Image *)(*(code *)PTR_DestroyImageList_003a9510)(dispose_images);\n          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n          goto LAB_00102c5c;\n        }" { (labeled_statement "LAB_00102c38:\n          dispose_images = (Image *)(*(code *)PTR_DestroyImageList_003a9510)(dispose_images);" statement_identifier : (expression_statement "dispose_images = (Image *)(*(code *)PTR_DestroyImageList_003a9510)(dispose_images);" (assignment_expression "dispose_images = (Image *)(*(code *)PTR_DestroyImageList_003a9510)(dispose_images)" identifier = (cast_expression "(Image *)(*(code *)PTR_DestroyImageList_003a9510)(dispose_images)" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_DestroyImageList_003a9510)(dispose_images)" (parenthesized_expression "(*(code *)PTR_DestroyImageList_003a9510)" ( (pointer_expression "*(code *)PTR_DestroyImageList_003a9510" * (cast_expression "(code *)PTR_DestroyImageList_003a9510" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(dispose_images)" ( identifier ))))) ;)) (expression_statement "(*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);" (call_expression "(*(code *)PTR_DestroyImage_003a8f4c)(pIVar5)" (parenthesized_expression "(*(code *)PTR_DestroyImage_003a8f4c)" ( (pointer_expression "*(code *)PTR_DestroyImage_003a8f4c" * (cast_expression "(code *)PTR_DestroyImage_003a8f4c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pIVar5)" ( identifier ))) ;) (goto_statement "goto LAB_00102c5c;" goto statement_identifier ;) })) (expression_statement "iVar10 = *(int *)(iVar4 + 700);" (assignment_expression "iVar10 = *(int *)(iVar4 + 700)" identifier = (pointer_expression "*(int *)(iVar4 + 700)" * (cast_expression "(int *)(iVar4 + 700)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 700)" ( (binary_expression "iVar4 + 700" identifier + number_literal) ))))) ;) (expression_statement "(image->background_color).alpha_trait = BlendPixelTrait;" (assignment_expression "(image->background_color).alpha_trait = BlendPixelTrait" (field_expression "(image->background_color).alpha_trait" (parenthesized_expression "(image->background_color)" ( (field_expression "image->background_color" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "uVar9 = 0x36;" (assignment_expression "uVar9 = 0x36" identifier = number_literal) ;) (if_statement "if (iVar10 == 0) {\n          uVar9 = 0xd;\n        }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\n          uVar9 = 0xd;\n        }" { (expression_statement "uVar9 = 0xd;" (assignment_expression "uVar9 = 0xd" identifier = number_literal) ;) })) (expression_statement "(*(code *)PTR_CompositeImage_003a8cc4)\n                  (image,iVar4,uVar9,1,*(undefined4 *)(iVar4 + 0x230),*(undefined4 *)(iVar4 + 0x234)\n                   ,exception);" (call_expression "(*(code *)PTR_CompositeImage_003a8cc4)\n                  (image,iVar4,uVar9,1,*(undefined4 *)(iVar4 + 0x230),*(undefined4 *)(iVar4 + 0x234)\n                   ,exception)" (parenthesized_expression "(*(code *)PTR_CompositeImage_003a8cc4)" ( (pointer_expression "*(code *)PTR_CompositeImage_003a8cc4" * (cast_expression "(code *)PTR_CompositeImage_003a8cc4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(image,iVar4,uVar9,1,*(undefined4 *)(iVar4 + 0x230),*(undefined4 *)(iVar4 + 0x234)\n                   ,exception)" ( identifier , identifier , identifier , number_literal , (pointer_expression "*(undefined4 *)(iVar4 + 0x230)" * (cast_expression "(undefined4 *)(iVar4 + 0x230)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x230)" ( (binary_expression "iVar4 + 0x230" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar4 + 0x234)" * (cast_expression "(undefined4 *)(iVar4 + 0x234)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x234)" ( (binary_expression "iVar4 + 0x234" identifier + number_literal) )))) , identifier ))) ;) (if_statement "if (*(int *)(iVar4 + 0x268) == 2) {\n          bounds.width = *(size_t *)(iVar4 + 0x18);\n          bounds.x = *(int *)(iVar4 + 0x230);\n          bounds.y = *(int *)(iVar4 + 0x234);\n          if (bounds.x < 0) {\n            bounds.width = bounds.width + bounds.x;\n            bounds.x = 0;\n          }\n          if ((int)image->columns < (int)(bounds.width + bounds.x)) {\n            bounds.width = image->columns - bounds.x;\n          }\n          sVar8 = *(size_t *)(iVar4 + 0x1c) + bounds.y;\n          bounds.height = *(size_t *)(iVar4 + 0x1c);\n          if (bounds.y < 0) {\n            bounds.y = 0;\n            bounds.height = sVar8;\n          }\n          if ((int)image->rows < (int)sVar8) {\n            bounds.height = image->rows - bounds.y;\n          }\n          ClearBounds(image,&bounds,exception);\n          if (*(int *)(iVar4 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n          pIVar5 = image;\n        }\n        else {\n          if (*(int *)(iVar4 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(image);\n        }" if (parenthesized_expression "(*(int *)(iVar4 + 0x268) == 2)" ( (binary_expression "*(int *)(iVar4 + 0x268) == 2" (pointer_expression "*(int *)(iVar4 + 0x268)" * (cast_expression "(int *)(iVar4 + 0x268)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x268)" ( (binary_expression "iVar4 + 0x268" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          bounds.width = *(size_t *)(iVar4 + 0x18);\n          bounds.x = *(int *)(iVar4 + 0x230);\n          bounds.y = *(int *)(iVar4 + 0x234);\n          if (bounds.x < 0) {\n            bounds.width = bounds.width + bounds.x;\n            bounds.x = 0;\n          }\n          if ((int)image->columns < (int)(bounds.width + bounds.x)) {\n            bounds.width = image->columns - bounds.x;\n          }\n          sVar8 = *(size_t *)(iVar4 + 0x1c) + bounds.y;\n          bounds.height = *(size_t *)(iVar4 + 0x1c);\n          if (bounds.y < 0) {\n            bounds.y = 0;\n            bounds.height = sVar8;\n          }\n          if ((int)image->rows < (int)sVar8) {\n            bounds.height = image->rows - bounds.y;\n          }\n          ClearBounds(image,&bounds,exception);\n          if (*(int *)(iVar4 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);\n          pIVar5 = image;\n        }" { (expression_statement "bounds.width = *(size_t *)(iVar4 + 0x18);" (assignment_expression "bounds.width = *(size_t *)(iVar4 + 0x18)" (field_expression "bounds.width" identifier . field_identifier) = (pointer_expression "*(size_t *)(iVar4 + 0x18)" * (cast_expression "(size_t *)(iVar4 + 0x18)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x18)" ( (binary_expression "iVar4 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "bounds.x = *(int *)(iVar4 + 0x230);" (assignment_expression "bounds.x = *(int *)(iVar4 + 0x230)" (field_expression "bounds.x" identifier . field_identifier) = (pointer_expression "*(int *)(iVar4 + 0x230)" * (cast_expression "(int *)(iVar4 + 0x230)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x230)" ( (binary_expression "iVar4 + 0x230" identifier + number_literal) ))))) ;) (expression_statement "bounds.y = *(int *)(iVar4 + 0x234);" (assignment_expression "bounds.y = *(int *)(iVar4 + 0x234)" (field_expression "bounds.y" identifier . field_identifier) = (pointer_expression "*(int *)(iVar4 + 0x234)" * (cast_expression "(int *)(iVar4 + 0x234)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x234)" ( (binary_expression "iVar4 + 0x234" identifier + number_literal) ))))) ;) (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->columns < (int)(bounds.width + bounds.x)) {\n            bounds.width = image->columns - bounds.x;\n          }" if (parenthesized_expression "((int)image->columns < (int)(bounds.width + bounds.x))" ( (binary_expression "(int)image->columns < (int)(bounds.width + bounds.x)" (cast_expression "(int)image->columns" ( (type_descriptor "int" primitive_type) ) (field_expression "image->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->columns - bounds.x;\n          }" { (expression_statement "bounds.width = image->columns - bounds.x;" (assignment_expression "bounds.width = image->columns - bounds.x" (field_expression "bounds.width" identifier . field_identifier) = (binary_expression "image->columns - bounds.x" (field_expression "image->columns" identifier -> field_identifier) - (field_expression "bounds.x" identifier . field_identifier))) ;) })) (expression_statement "sVar8 = *(size_t *)(iVar4 + 0x1c) + bounds.y;" (assignment_expression "sVar8 = *(size_t *)(iVar4 + 0x1c) + bounds.y" identifier = (binary_expression "*(size_t *)(iVar4 + 0x1c) + bounds.y" (pointer_expression "*(size_t *)(iVar4 + 0x1c)" * (cast_expression "(size_t *)(iVar4 + 0x1c)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x1c)" ( (binary_expression "iVar4 + 0x1c" identifier + number_literal) )))) + (field_expression "bounds.y" identifier . field_identifier))) ;) (expression_statement "bounds.height = *(size_t *)(iVar4 + 0x1c);" (assignment_expression "bounds.height = *(size_t *)(iVar4 + 0x1c)" (field_expression "bounds.height" identifier . field_identifier) = (pointer_expression "*(size_t *)(iVar4 + 0x1c)" * (cast_expression "(size_t *)(iVar4 + 0x1c)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x1c)" ( (binary_expression "iVar4 + 0x1c" identifier + number_literal) ))))) ;) (if_statement "if (bounds.y < 0) {\n            bounds.y = 0;\n            bounds.height = sVar8;\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 = sVar8;\n          }" { (expression_statement "bounds.y = 0;" (assignment_expression "bounds.y = 0" (field_expression "bounds.y" identifier . field_identifier) = number_literal) ;) (expression_statement "bounds.height = sVar8;" (assignment_expression "bounds.height = sVar8" (field_expression "bounds.height" identifier . field_identifier) = identifier) ;) })) (if_statement "if ((int)image->rows < (int)sVar8) {\n            bounds.height = image->rows - bounds.y;\n          }" if (parenthesized_expression "((int)image->rows < (int)sVar8)" ( (binary_expression "(int)image->rows < (int)sVar8" (cast_expression "(int)image->rows" ( (type_descriptor "int" primitive_type) ) (field_expression "image->rows" identifier -> field_identifier)) < (cast_expression "(int)sVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n            bounds.height = image->rows - bounds.y;\n          }" { (expression_statement "bounds.height = image->rows - bounds.y;" (assignment_expression "bounds.height = image->rows - bounds.y" (field_expression "bounds.height" identifier . field_identifier) = (binary_expression "image->rows - bounds.y" (field_expression "image->rows" identifier -> field_identifier) - (field_expression "bounds.y" identifier . field_identifier))) ;) })) (expression_statement "ClearBounds(image,&bounds,exception);" (call_expression "ClearBounds(image,&bounds,exception)" identifier (argument_list "(image,&bounds,exception)" ( identifier , (pointer_expression "&bounds" & identifier) , identifier ))) ;) (if_statement "if (*(int *)(iVar4 + 0x268) == 3) goto LAB_00102c28;" if (parenthesized_expression "(*(int *)(iVar4 + 0x268) == 3)" ( (binary_expression "*(int *)(iVar4 + 0x268) == 3" (pointer_expression "*(int *)(iVar4 + 0x268)" * (cast_expression "(int *)(iVar4 + 0x268)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x268)" ( (binary_expression "iVar4 + 0x268" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_00102c28;" goto statement_identifier ;)) (labeled_statement "LAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);" statement_identifier : (expression_statement "(*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);" (call_expression "(*(code *)PTR_DestroyImage_003a8f4c)(pIVar5)" (parenthesized_expression "(*(code *)PTR_DestroyImage_003a8f4c)" ( (pointer_expression "*(code *)PTR_DestroyImage_003a8f4c" * (cast_expression "(code *)PTR_DestroyImage_003a8f4c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pIVar5)" ( identifier ))) ;)) (expression_statement "pIVar5 = image;" (assignment_expression "pIVar5 = image" identifier = identifier) ;) }) (else_clause "else {\n          if (*(int *)(iVar4 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(image);\n        }" else (compound_statement "{\n          if (*(int *)(iVar4 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(image);\n        }" { (if_statement "if (*(int *)(iVar4 + 0x268) != 3) goto LAB_00102a58;" if (parenthesized_expression "(*(int *)(iVar4 + 0x268) != 3)" ( (binary_expression "*(int *)(iVar4 + 0x268) != 3" (pointer_expression "*(int *)(iVar4 + 0x268)" * (cast_expression "(int *)(iVar4 + 0x268)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x268)" ( (binary_expression "iVar4 + 0x268" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_00102a58;" goto statement_identifier ;)) (labeled_statement "LAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(image);" statement_identifier : (expression_statement "(*(code *)PTR_DestroyImage_003a8f4c)(image);" (call_expression "(*(code *)PTR_DestroyImage_003a8f4c)(image)" (parenthesized_expression "(*(code *)PTR_DestroyImage_003a8f4c)" ( (pointer_expression "*(code *)PTR_DestroyImage_003a8f4c" * (cast_expression "(code *)PTR_DestroyImage_003a8f4c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(image)" ( identifier ))) ;)) }))) (expression_statement "image = (Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception);" (assignment_expression "image = (Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception)" identifier = (cast_expression "(Image *)(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception)" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_CloneImage_003a9830)(pIVar5,0,0,1,exception)" (parenthesized_expression "(*(code *)PTR_CloneImage_003a9830)" ( (pointer_expression "*(code *)PTR_CloneImage_003a9830" * (cast_expression "(code *)PTR_CloneImage_003a9830" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pIVar5,0,0,1,exception)" ( identifier , number_literal , number_literal , number_literal , identifier ))))) ;) (expression_statement "puVar1 = PTR_CloneImageProfiles_003a9348;" (assignment_expression "puVar1 = PTR_CloneImageProfiles_003a9348" identifier = identifier) ;) (if_statement "if (image == (Image *)0x0) goto LAB_00102c38;" if (parenthesized_expression "(image == (Image *)0x0)" ( (binary_expression "image == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00102c38;" goto statement_identifier ;)) (expression_statement "(pIVar5->background_color).alpha_trait = BlendPixelTrait;" (assignment_expression "(pIVar5->background_color).alpha_trait = BlendPixelTrait" (field_expression "(pIVar5->background_color).alpha_trait" (parenthesized_expression "(pIVar5->background_color)" ( (field_expression "pIVar5->background_color" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(image,iVar4);" (call_expression "(*(code *)puVar1)(image,iVar4)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(image,iVar4)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_CloneImageProperties_003a91ac)(image,iVar4);" (call_expression "(*(code *)PTR_CloneImageProperties_003a91ac)(image,iVar4)" (parenthesized_expression "(*(code *)PTR_CloneImageProperties_003a91ac)" ( (pointer_expression "*(code *)PTR_CloneImageProperties_003a91ac" * (cast_expression "(code *)PTR_CloneImageProperties_003a91ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(image,iVar4)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_CloneImageArtifacts_003a9500)(image,iVar4);" (call_expression "(*(code *)PTR_CloneImageArtifacts_003a9500)(image,iVar4)" (parenthesized_expression "(*(code *)PTR_CloneImageArtifacts_003a9500)" ( (pointer_expression "*(code *)PTR_CloneImageArtifacts_003a9500" * (cast_expression "(code *)PTR_CloneImageArtifacts_003a9500" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(image,iVar4)" ( identifier , identifier ))) ;) (expression_statement "DVar6 = *(DisposeType *)(iVar4 + 0x268);" (assignment_expression "DVar6 = *(DisposeType *)(iVar4 + 0x268)" identifier = (pointer_expression "*(DisposeType *)(iVar4 + 0x268)" * (cast_expression "(DisposeType *)(iVar4 + 0x268)" ( (type_descriptor "DisposeType *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x268)" ( (binary_expression "iVar4 + 0x268" identifier + number_literal) ))))) ;) (expression_statement "(image->page).x = 0;" (assignment_expression "(image->page).x = 0" (field_expression "(image->page).x" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "(image->page).y = 0;" (assignment_expression "(image->page).y = 0" (field_expression "(image->page).y" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "puVar1 = PTR_AppendImageToList_003a9880;" (assignment_expression "puVar1 = PTR_AppendImageToList_003a9880" identifier = identifier) ;) (expression_statement "image->dispose = DVar6;" (assignment_expression "image->dispose = DVar6" (field_expression "image->dispose" identifier -> field_identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(&dispose_images,image);" (call_expression "(*(code *)puVar1)(&dispose_images,image)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&dispose_images,image)" ( (pointer_expression "&dispose_images" & identifier) , identifier ))) ;) (expression_statement "iVar7 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar7);" (assignment_expression "iVar7 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar7)" identifier = (call_expression "(*(code *)PTR_GetNextImageInList_003a9470)(iVar7)" (parenthesized_expression "(*(code *)PTR_GetNextImageInList_003a9470)" ( (pointer_expression "*(code *)PTR_GetNextImageInList_003a9470" * (cast_expression "(code *)PTR_GetNextImageInList_003a9470" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7)" ( identifier )))) ;) }) while (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) ;) (expression_statement "(*(code *)PTR_DestroyImage_003a8f4c)(pIVar5);" (call_expression "(*(code *)PTR_DestroyImage_003a8f4c)(pIVar5)" (parenthesized_expression "(*(code *)PTR_DestroyImage_003a8f4c)" ( (pointer_expression "*(code *)PTR_DestroyImage_003a8f4c" * (cast_expression "(code *)PTR_DestroyImage_003a8f4c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pIVar5)" ( identifier ))) ;) (expression_statement "image = (Image *)(*(code *)PTR_GetFirstImageInList_003a944c)(dispose_images);" (assignment_expression "image = (Image *)(*(code *)PTR_GetFirstImageInList_003a944c)(dispose_images)" identifier = (cast_expression "(Image *)(*(code *)PTR_GetFirstImageInList_003a944c)(dispose_images)" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_GetFirstImageInList_003a944c)(dispose_images)" (parenthesized_expression "(*(code *)PTR_GetFirstImageInList_003a944c)" ( (pointer_expression "*(code *)PTR_GetFirstImageInList_003a944c" * (cast_expression "(code *)PTR_GetFirstImageInList_003a944c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(dispose_images)" ( identifier ))))) ;) }))) (labeled_statement "LAB_00102c5c:\n    if (iVar3 == *(int *)puVar2) {\n      return image;\n    }" statement_identifier : (if_statement "if (iVar3 == *(int *)puVar2) {\n      return image;\n    }" if (parenthesized_expression "(iVar3 == *(int *)puVar2)" ( (binary_expression "iVar3 == *(int *)puVar2" identifier == (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n      return image;\n    }" { (return_statement "return image;" return identifier ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_003a9064)();" (call_expression "(*(code *)PTR___stack_chk_fail_003a9064)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_003a9064)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_003a9064" * (cast_expression "(code *)PTR___stack_chk_fail_003a9064" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)\n                              (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                               PTR_s_t_to_left_003a88e4 + -0x4b50);" (assignment_expression "pIVar5 = (Image *)(*(code *)PTR___assert_fail_003a9608)\n                              (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                               PTR_s_t_to_left_003a88e4 + -0x4b50)" identifier = (cast_expression "(Image *)(*(code *)PTR___assert_fail_003a9608)\n                              (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                               PTR_s_t_to_left_003a88e4 + -0x4b50)" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___assert_fail_003a9608)\n                              (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                               PTR_s_t_to_left_003a88e4 + -0x4b50)" (parenthesized_expression "(*(code *)PTR___assert_fail_003a9608)" ( (pointer_expression "*(code *)PTR___assert_fail_003a9608" * (cast_expression "(code *)PTR___assert_fail_003a9608" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                               PTR_s_t_to_left_003a88e4 + -0x4b50)" ( (binary_expression "PTR_LAB_003a88e0 + 0x294c" identifier + number_literal) , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4e60" identifier + number_literal) , number_literal , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4b50" identifier + number_literal) ))))) ;) (return_statement "return pIVar5;" return identifier ;) })))
(translation_unit "int DisposeImages(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined4 local_40;\n  int local_3c;\n  int local_38;\n  int local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_003a9230;\n  local_2c = *(int *)PTR___stack_chk_guard_003a9230;\n  if (param_1 == 0) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }\n  if (*(int *)(param_1 + 0x336c) != -0x54535255) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }\n  if (*(int *)(param_1 + 0x3350) != 0) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,param_1 + 0x340);\n  }\n  if (param_2 == 0) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }\n  if (*(int *)(param_2 + 0x1c) == -0x54535255) {\n    iVar3 = (*(code *)PTR_GetFirstImageInList_003a944c)(param_1);\n    iVar4 = (*(code *)PTR_CloneImage_003a9830)\n                      (iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2\n                      );\n    puVar1 = PTR_SetImageBackgroundColor_003a8e90;\n    if (iVar4 == 0) {\n      iVar6 = 0;\n    }\n    else {\n      uVar7 = *(undefined4 *)(iVar3 + 0x228);\n      *(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);\n      *(undefined4 *)(iVar4 + 0x228) = uVar7;\n      *(undefined4 *)(iVar4 + 0x268) = 1;\n      *(undefined4 *)(iVar4 + 0x230) = 0;\n      *(undefined4 *)(iVar4 + 0x90) = 4;\n      *(undefined4 *)(iVar4 + 0x234) = 0;\n      *(undefined4 *)(iVar4 + 0xd4) = 0;\n      *(undefined4 *)(iVar4 + 0xd0) = 0;\n      (*(code *)puVar1)(iVar4,param_2);\n      local_40 = (*(code *)PTR_NewImageList_003a8e84)();\n      iVar5 = iVar3;\n      do {\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      } while (iVar5 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n      iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);\n    }\nLAB_00102c5c:\n    if (local_2c == *(int *)puVar2) {\n      return iVar6;\n    }\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n  }\n  iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                    (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                     PTR_s_t_to_left_003a88e4 + -0x4b50);\n  return iVar4;\n}\n\n" (function_definition "int DisposeImages(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined4 local_40;\n  int local_3c;\n  int local_38;\n  int local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_003a9230;\n  local_2c = *(int *)PTR___stack_chk_guard_003a9230;\n  if (param_1 == 0) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }\n  if (*(int *)(param_1 + 0x336c) != -0x54535255) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }\n  if (*(int *)(param_1 + 0x3350) != 0) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,param_1 + 0x340);\n  }\n  if (param_2 == 0) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }\n  if (*(int *)(param_2 + 0x1c) == -0x54535255) {\n    iVar3 = (*(code *)PTR_GetFirstImageInList_003a944c)(param_1);\n    iVar4 = (*(code *)PTR_CloneImage_003a9830)\n                      (iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2\n                      );\n    puVar1 = PTR_SetImageBackgroundColor_003a8e90;\n    if (iVar4 == 0) {\n      iVar6 = 0;\n    }\n    else {\n      uVar7 = *(undefined4 *)(iVar3 + 0x228);\n      *(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);\n      *(undefined4 *)(iVar4 + 0x228) = uVar7;\n      *(undefined4 *)(iVar4 + 0x268) = 1;\n      *(undefined4 *)(iVar4 + 0x230) = 0;\n      *(undefined4 *)(iVar4 + 0x90) = 4;\n      *(undefined4 *)(iVar4 + 0x234) = 0;\n      *(undefined4 *)(iVar4 + 0xd4) = 0;\n      *(undefined4 *)(iVar4 + 0xd0) = 0;\n      (*(code *)puVar1)(iVar4,param_2);\n      local_40 = (*(code *)PTR_NewImageList_003a8e84)();\n      iVar5 = iVar3;\n      do {\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      } while (iVar5 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n      iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);\n    }\nLAB_00102c5c:\n    if (local_2c == *(int *)puVar2) {\n      return iVar6;\n    }\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n  }\n  iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                    (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                     PTR_s_t_to_left_003a88e4 + -0x4b50);\n  return iVar4;\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  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined4 local_40;\n  int local_3c;\n  int local_38;\n  int local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_003a9230;\n  local_2c = *(int *)PTR___stack_chk_guard_003a9230;\n  if (param_1 == 0) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }\n  if (*(int *)(param_1 + 0x336c) != -0x54535255) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }\n  if (*(int *)(param_1 + 0x3350) != 0) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,param_1 + 0x340);\n  }\n  if (param_2 == 0) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }\n  if (*(int *)(param_2 + 0x1c) == -0x54535255) {\n    iVar3 = (*(code *)PTR_GetFirstImageInList_003a944c)(param_1);\n    iVar4 = (*(code *)PTR_CloneImage_003a9830)\n                      (iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2\n                      );\n    puVar1 = PTR_SetImageBackgroundColor_003a8e90;\n    if (iVar4 == 0) {\n      iVar6 = 0;\n    }\n    else {\n      uVar7 = *(undefined4 *)(iVar3 + 0x228);\n      *(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);\n      *(undefined4 *)(iVar4 + 0x228) = uVar7;\n      *(undefined4 *)(iVar4 + 0x268) = 1;\n      *(undefined4 *)(iVar4 + 0x230) = 0;\n      *(undefined4 *)(iVar4 + 0x90) = 4;\n      *(undefined4 *)(iVar4 + 0x234) = 0;\n      *(undefined4 *)(iVar4 + 0xd4) = 0;\n      *(undefined4 *)(iVar4 + 0xd0) = 0;\n      (*(code *)puVar1)(iVar4,param_2);\n      local_40 = (*(code *)PTR_NewImageList_003a8e84)();\n      iVar5 = iVar3;\n      do {\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      } while (iVar5 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n      iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);\n    }\nLAB_00102c5c:\n    if (local_2c == *(int *)puVar2) {\n      return iVar6;\n    }\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n  }\n  iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                    (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                     PTR_s_t_to_left_003a88e4 + -0x4b50);\n  return iVar4;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined4 local_40;" type_identifier identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar2 = PTR___stack_chk_guard_003a9230;" (assignment_expression "puVar2 = PTR___stack_chk_guard_003a9230" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_003a9230;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_003a9230" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_003a9230" * (cast_expression "(int *)PTR___stack_chk_guard_003a9230" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (param_1 == 0) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }" { (expression_statement "iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" identifier = (call_expression "(*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" (parenthesized_expression "(*(code *)PTR___assert_fail_003a9608)" ( (pointer_expression "*(code *)PTR___assert_fail_003a9608" * (cast_expression "(code *)PTR___assert_fail_003a9608" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" ( (binary_expression "PTR_LAB_003a88e0 + 0x1e48" identifier + number_literal) , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4e60" identifier + number_literal) , number_literal , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4b50" identifier + number_literal) )))) ;) (return_statement "return iVar4;" return identifier ;) })) (if_statement "if (*(int *)(param_1 + 0x336c) != -0x54535255) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x336c) != -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x336c) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x336c)" * (cast_expression "(int *)(param_1 + 0x336c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x336c)" ( (binary_expression "param_1 + 0x336c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }" { (expression_statement "iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" identifier = (call_expression "(*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" (parenthesized_expression "(*(code *)PTR___assert_fail_003a9608)" ( (pointer_expression "*(code *)PTR___assert_fail_003a9608" * (cast_expression "(code *)PTR___assert_fail_003a9608" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" ( (binary_expression "PTR_LAB_003a88e0 + 0x1e64" identifier + number_literal) , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4e60" identifier + number_literal) , number_literal , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4b50" identifier + number_literal) )))) ;) (return_statement "return iVar4;" return identifier ;) })) (if_statement "if (*(int *)(param_1 + 0x3350) != 0) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,param_1 + 0x340);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x3350) != 0)" ( (binary_expression "*(int *)(param_1 + 0x3350) != 0" (pointer_expression "*(int *)(param_1 + 0x3350)" * (cast_expression "(int *)(param_1 + 0x3350)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3350)" ( (binary_expression "param_1 + 0x3350" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,param_1 + 0x340);\n  }" { (expression_statement "(*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,param_1 + 0x340);" (call_expression "(*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,param_1 + 0x340)" (parenthesized_expression "(*(code *)PTR_LogMagickEvent_003a91e0)" ( (pointer_expression "*(code *)PTR_LogMagickEvent_003a91e0" * (cast_expression "(code *)PTR_LogMagickEvent_003a91e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,param_1 + 0x340)" ( number_literal , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4e60" identifier + number_literal) , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4b60" identifier + number_literal) , number_literal , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x62ac" identifier + number_literal) , (binary_expression "param_1 + 0x340" identifier + number_literal) ))) ;) })) (if_statement "if (param_2 == 0) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }" { (expression_statement "iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" identifier = (call_expression "(*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" (parenthesized_expression "(*(code *)PTR___assert_fail_003a9608)" ( (pointer_expression "*(code *)PTR___assert_fail_003a9608" * (cast_expression "(code *)PTR___assert_fail_003a9608" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" ( (binary_expression "PTR_LAB_003a88e0 + 0x1cac" identifier + number_literal) , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4e60" identifier + number_literal) , number_literal , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4b50" identifier + number_literal) )))) ;) (return_statement "return iVar4;" return identifier ;) })) (if_statement "if (*(int *)(param_2 + 0x1c) == -0x54535255) {\n    iVar3 = (*(code *)PTR_GetFirstImageInList_003a944c)(param_1);\n    iVar4 = (*(code *)PTR_CloneImage_003a9830)\n                      (iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2\n                      );\n    puVar1 = PTR_SetImageBackgroundColor_003a8e90;\n    if (iVar4 == 0) {\n      iVar6 = 0;\n    }\n    else {\n      uVar7 = *(undefined4 *)(iVar3 + 0x228);\n      *(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);\n      *(undefined4 *)(iVar4 + 0x228) = uVar7;\n      *(undefined4 *)(iVar4 + 0x268) = 1;\n      *(undefined4 *)(iVar4 + 0x230) = 0;\n      *(undefined4 *)(iVar4 + 0x90) = 4;\n      *(undefined4 *)(iVar4 + 0x234) = 0;\n      *(undefined4 *)(iVar4 + 0xd4) = 0;\n      *(undefined4 *)(iVar4 + 0xd0) = 0;\n      (*(code *)puVar1)(iVar4,param_2);\n      local_40 = (*(code *)PTR_NewImageList_003a8e84)();\n      iVar5 = iVar3;\n      do {\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      } while (iVar5 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n      iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);\n    }\nLAB_00102c5c:\n    if (local_2c == *(int *)puVar2) {\n      return iVar6;\n    }\n    (*(code *)PTR___stack_chk_fail_003a9064)();\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    iVar3 = (*(code *)PTR_GetFirstImageInList_003a944c)(param_1);\n    iVar4 = (*(code *)PTR_CloneImage_003a9830)\n                      (iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2\n                      );\n    puVar1 = PTR_SetImageBackgroundColor_003a8e90;\n    if (iVar4 == 0) {\n      iVar6 = 0;\n    }\n    else {\n      uVar7 = *(undefined4 *)(iVar3 + 0x228);\n      *(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);\n      *(undefined4 *)(iVar4 + 0x228) = uVar7;\n      *(undefined4 *)(iVar4 + 0x268) = 1;\n      *(undefined4 *)(iVar4 + 0x230) = 0;\n      *(undefined4 *)(iVar4 + 0x90) = 4;\n      *(undefined4 *)(iVar4 + 0x234) = 0;\n      *(undefined4 *)(iVar4 + 0xd4) = 0;\n      *(undefined4 *)(iVar4 + 0xd0) = 0;\n      (*(code *)puVar1)(iVar4,param_2);\n      local_40 = (*(code *)PTR_NewImageList_003a8e84)();\n      iVar5 = iVar3;\n      do {\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      } while (iVar5 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n      iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);\n    }\nLAB_00102c5c:\n    if (local_2c == *(int *)puVar2) {\n      return iVar6;\n    }\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n  }" { (expression_statement "iVar3 = (*(code *)PTR_GetFirstImageInList_003a944c)(param_1);" (assignment_expression "iVar3 = (*(code *)PTR_GetFirstImageInList_003a944c)(param_1)" identifier = (call_expression "(*(code *)PTR_GetFirstImageInList_003a944c)(param_1)" (parenthesized_expression "(*(code *)PTR_GetFirstImageInList_003a944c)" ( (pointer_expression "*(code *)PTR_GetFirstImageInList_003a944c" * (cast_expression "(code *)PTR_GetFirstImageInList_003a944c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar4 = (*(code *)PTR_CloneImage_003a9830)\n                      (iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2\n                      );" (assignment_expression "iVar4 = (*(code *)PTR_CloneImage_003a9830)\n                      (iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2\n                      )" identifier = (call_expression "(*(code *)PTR_CloneImage_003a9830)\n                      (iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2\n                      )" (parenthesized_expression "(*(code *)PTR_CloneImage_003a9830)" ( (pointer_expression "*(code *)PTR_CloneImage_003a9830" * (cast_expression "(code *)PTR_CloneImage_003a9830" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2\n                      )" ( identifier , (pointer_expression "*(undefined4 *)(iVar3 + 0x228)" * (cast_expression "(undefined4 *)(iVar3 + 0x228)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x228)" ( (binary_expression "iVar3 + 0x228" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar3 + 0x22c)" * (cast_expression "(undefined4 *)(iVar3 + 0x22c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x22c)" ( (binary_expression "iVar3 + 0x22c" identifier + number_literal) )))) , number_literal , identifier )))) ;) (expression_statement "puVar1 = PTR_SetImageBackgroundColor_003a8e90;" (assignment_expression "puVar1 = PTR_SetImageBackgroundColor_003a8e90" identifier = identifier) ;) (if_statement "if (iVar4 == 0) {\n      iVar6 = 0;\n    }\n    else {\n      uVar7 = *(undefined4 *)(iVar3 + 0x228);\n      *(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);\n      *(undefined4 *)(iVar4 + 0x228) = uVar7;\n      *(undefined4 *)(iVar4 + 0x268) = 1;\n      *(undefined4 *)(iVar4 + 0x230) = 0;\n      *(undefined4 *)(iVar4 + 0x90) = 4;\n      *(undefined4 *)(iVar4 + 0x234) = 0;\n      *(undefined4 *)(iVar4 + 0xd4) = 0;\n      *(undefined4 *)(iVar4 + 0xd0) = 0;\n      (*(code *)puVar1)(iVar4,param_2);\n      local_40 = (*(code *)PTR_NewImageList_003a8e84)();\n      iVar5 = iVar3;\n      do {\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      } while (iVar5 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n      iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar6 = 0;\n    }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      uVar7 = *(undefined4 *)(iVar3 + 0x228);\n      *(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);\n      *(undefined4 *)(iVar4 + 0x228) = uVar7;\n      *(undefined4 *)(iVar4 + 0x268) = 1;\n      *(undefined4 *)(iVar4 + 0x230) = 0;\n      *(undefined4 *)(iVar4 + 0x90) = 4;\n      *(undefined4 *)(iVar4 + 0x234) = 0;\n      *(undefined4 *)(iVar4 + 0xd4) = 0;\n      *(undefined4 *)(iVar4 + 0xd0) = 0;\n      (*(code *)puVar1)(iVar4,param_2);\n      local_40 = (*(code *)PTR_NewImageList_003a8e84)();\n      iVar5 = iVar3;\n      do {\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      } while (iVar5 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n      iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);\n    }" else (compound_statement "{\n      uVar7 = *(undefined4 *)(iVar3 + 0x228);\n      *(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);\n      *(undefined4 *)(iVar4 + 0x228) = uVar7;\n      *(undefined4 *)(iVar4 + 0x268) = 1;\n      *(undefined4 *)(iVar4 + 0x230) = 0;\n      *(undefined4 *)(iVar4 + 0x90) = 4;\n      *(undefined4 *)(iVar4 + 0x234) = 0;\n      *(undefined4 *)(iVar4 + 0xd4) = 0;\n      *(undefined4 *)(iVar4 + 0xd0) = 0;\n      (*(code *)puVar1)(iVar4,param_2);\n      local_40 = (*(code *)PTR_NewImageList_003a8e84)();\n      iVar5 = iVar3;\n      do {\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      } while (iVar5 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n      iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);\n    }" { (expression_statement "uVar7 = *(undefined4 *)(iVar3 + 0x228);" (assignment_expression "uVar7 = *(undefined4 *)(iVar3 + 0x228)" identifier = (pointer_expression "*(undefined4 *)(iVar3 + 0x228)" * (cast_expression "(undefined4 *)(iVar3 + 0x228)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x228)" ( (binary_expression "iVar3 + 0x228" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);" (assignment_expression "*(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c)" (pointer_expression "*(undefined4 *)(iVar4 + 0x22c)" * (cast_expression "(undefined4 *)(iVar4 + 0x22c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x22c)" ( (binary_expression "iVar4 + 0x22c" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar3 + 0x22c)" * (cast_expression "(undefined4 *)(iVar3 + 0x22c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x22c)" ( (binary_expression "iVar3 + 0x22c" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar4 + 0x228) = uVar7;" (assignment_expression "*(undefined4 *)(iVar4 + 0x228) = uVar7" (pointer_expression "*(undefined4 *)(iVar4 + 0x228)" * (cast_expression "(undefined4 *)(iVar4 + 0x228)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x228)" ( (binary_expression "iVar4 + 0x228" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar4 + 0x268) = 1;" (assignment_expression "*(undefined4 *)(iVar4 + 0x268) = 1" (pointer_expression "*(undefined4 *)(iVar4 + 0x268)" * (cast_expression "(undefined4 *)(iVar4 + 0x268)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x268)" ( (binary_expression "iVar4 + 0x268" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar4 + 0x230) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 0x230) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 0x230)" * (cast_expression "(undefined4 *)(iVar4 + 0x230)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x230)" ( (binary_expression "iVar4 + 0x230" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar4 + 0x90) = 4;" (assignment_expression "*(undefined4 *)(iVar4 + 0x90) = 4" (pointer_expression "*(undefined4 *)(iVar4 + 0x90)" * (cast_expression "(undefined4 *)(iVar4 + 0x90)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x90)" ( (binary_expression "iVar4 + 0x90" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar4 + 0x234) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 0x234) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 0x234)" * (cast_expression "(undefined4 *)(iVar4 + 0x234)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x234)" ( (binary_expression "iVar4 + 0x234" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar4 + 0xd4) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 0xd4) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 0xd4)" * (cast_expression "(undefined4 *)(iVar4 + 0xd4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xd4)" ( (binary_expression "iVar4 + 0xd4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar4 + 0xd0) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 0xd0) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 0xd0)" * (cast_expression "(undefined4 *)(iVar4 + 0xd0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xd0)" ( (binary_expression "iVar4 + 0xd0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(*(code *)puVar1)(iVar4,param_2);" (call_expression "(*(code *)puVar1)(iVar4,param_2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,param_2)" ( identifier , identifier ))) ;) (expression_statement "local_40 = (*(code *)PTR_NewImageList_003a8e84)();" (assignment_expression "local_40 = (*(code *)PTR_NewImageList_003a8e84)()" identifier = (call_expression "(*(code *)PTR_NewImageList_003a8e84)()" (parenthesized_expression "(*(code *)PTR_NewImageList_003a8e84)" ( (pointer_expression "*(code *)PTR_NewImageList_003a8e84" * (cast_expression "(code *)PTR_NewImageList_003a8e84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar5 = iVar3;" (assignment_expression "iVar5 = iVar3" identifier = identifier) ;) (do_statement "do {\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      } while (iVar5 != 0);" do (compound_statement "{\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      }" { (expression_statement "iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);" (assignment_expression "iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2)" identifier = (call_expression "(*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2)" (parenthesized_expression "(*(code *)PTR_CloneImage_003a9830)" ( (pointer_expression "*(code *)PTR_CloneImage_003a9830" * (cast_expression "(code *)PTR_CloneImage_003a9830" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,0,0,1,param_2)" ( identifier , number_literal , number_literal , number_literal , identifier )))) ;) (if_statement "if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }" { (labeled_statement "LAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);" statement_identifier : (expression_statement "local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);" (assignment_expression "local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40)" identifier = (call_expression "(*(code *)PTR_DestroyImageList_003a9510)(local_40)" (parenthesized_expression "(*(code *)PTR_DestroyImageList_003a9510)" ( (pointer_expression "*(code *)PTR_DestroyImageList_003a9510" * (cast_expression "(code *)PTR_DestroyImageList_003a9510" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_40)" ( identifier )))) ;)) (expression_statement "(*(code *)PTR_DestroyImage_003a8f4c)(iVar4);" (call_expression "(*(code *)PTR_DestroyImage_003a8f4c)(iVar4)" (parenthesized_expression "(*(code *)PTR_DestroyImage_003a8f4c)" ( (pointer_expression "*(code *)PTR_DestroyImage_003a8f4c" * (cast_expression "(code *)PTR_DestroyImage_003a8f4c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))) ;) (goto_statement "goto LAB_00102c5c;" goto statement_identifier ;) })) (expression_statement "iVar8 = *(int *)(iVar3 + 700);" (assignment_expression "iVar8 = *(int *)(iVar3 + 700)" identifier = (pointer_expression "*(int *)(iVar3 + 700)" * (cast_expression "(int *)(iVar3 + 700)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 700)" ( (binary_expression "iVar3 + 700" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x90) = 4;" (assignment_expression "*(undefined4 *)(iVar6 + 0x90) = 4" (pointer_expression "*(undefined4 *)(iVar6 + 0x90)" * (cast_expression "(undefined4 *)(iVar6 + 0x90)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x90)" ( (binary_expression "iVar6 + 0x90" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar7 = 0x36;" (assignment_expression "uVar7 = 0x36" identifier = number_literal) ;) (if_statement "if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n          uVar7 = 0xd;\n        }" { (expression_statement "uVar7 = 0xd;" (assignment_expression "uVar7 = 0xd" identifier = number_literal) ;) })) (expression_statement "(*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);" (call_expression "(*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2)" (parenthesized_expression "(*(code *)PTR_CompositeImage_003a8cc4)" ( (pointer_expression "*(code *)PTR_CompositeImage_003a8cc4" * (cast_expression "(code *)PTR_CompositeImage_003a8cc4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2)" ( identifier , identifier , identifier , number_literal , (pointer_expression "*(undefined4 *)(iVar3 + 0x230)" * (cast_expression "(undefined4 *)(iVar3 + 0x230)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x230)" ( (binary_expression "iVar3 + 0x230" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar3 + 0x234)" * (cast_expression "(undefined4 *)(iVar3 + 0x234)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x234)" ( (binary_expression "iVar3 + 0x234" identifier + number_literal) )))) , identifier ))) ;) (if_statement "if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }" if (parenthesized_expression "(*(int *)(iVar3 + 0x268) == 2)" ( (binary_expression "*(int *)(iVar3 + 0x268) == 2" (pointer_expression "*(int *)(iVar3 + 0x268)" * (cast_expression "(int *)(iVar3 + 0x268)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x268)" ( (binary_expression "iVar3 + 0x268" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }" { (expression_statement "local_3c = *(int *)(iVar3 + 0x18);" (assignment_expression "local_3c = *(int *)(iVar3 + 0x18)" identifier = (pointer_expression "*(int *)(iVar3 + 0x18)" * (cast_expression "(int *)(iVar3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "local_34 = *(int *)(iVar3 + 0x230);" (assignment_expression "local_34 = *(int *)(iVar3 + 0x230)" identifier = (pointer_expression "*(int *)(iVar3 + 0x230)" * (cast_expression "(int *)(iVar3 + 0x230)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x230)" ( (binary_expression "iVar3 + 0x230" identifier + number_literal) ))))) ;) (expression_statement "local_30 = *(int *)(iVar3 + 0x234);" (assignment_expression "local_30 = *(int *)(iVar3 + 0x234)" identifier = (pointer_expression "*(int *)(iVar3 + 0x234)" * (cast_expression "(int *)(iVar3 + 0x234)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x234)" ( (binary_expression "iVar3 + 0x234" identifier + number_literal) ))))) ;) (if_statement "if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }" if (parenthesized_expression "(local_34 < 0)" ( (binary_expression "local_34 < 0" identifier < number_literal) )) (compound_statement "{\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }" { (expression_statement "local_3c = local_3c + local_34;" (assignment_expression "local_3c = local_3c + local_34" identifier = (binary_expression "local_3c + local_34" identifier + identifier)) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) })) (if_statement "if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }" if (parenthesized_expression "(*(int *)(iVar6 + 0x18) < local_3c + local_34)" ( (binary_expression "*(int *)(iVar6 + 0x18) < local_3c + local_34" (pointer_expression "*(int *)(iVar6 + 0x18)" * (cast_expression "(int *)(iVar6 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x18)" ( (binary_expression "iVar6 + 0x18" identifier + number_literal) )))) < (binary_expression "local_3c + local_34" identifier + identifier)) )) (compound_statement "{\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }" { (expression_statement "local_3c = *(int *)(iVar6 + 0x18) - local_34;" (assignment_expression "local_3c = *(int *)(iVar6 + 0x18) - local_34" identifier = (binary_expression "*(int *)(iVar6 + 0x18) - local_34" (pointer_expression "*(int *)(iVar6 + 0x18)" * (cast_expression "(int *)(iVar6 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x18)" ( (binary_expression "iVar6 + 0x18" identifier + number_literal) )))) - identifier)) ;) })) (expression_statement "iVar8 = *(int *)(iVar3 + 0x1c) + local_30;" (assignment_expression "iVar8 = *(int *)(iVar3 + 0x1c) + local_30" identifier = (binary_expression "*(int *)(iVar3 + 0x1c) + local_30" (pointer_expression "*(int *)(iVar3 + 0x1c)" * (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) )))) + identifier)) ;) (expression_statement "local_38 = *(int *)(iVar3 + 0x1c);" (assignment_expression "local_38 = *(int *)(iVar3 + 0x1c)" identifier = (pointer_expression "*(int *)(iVar3 + 0x1c)" * (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) ))))) ;) (if_statement "if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }" if (parenthesized_expression "(local_30 < 0)" ( (binary_expression "local_30 < 0" identifier < number_literal) )) (compound_statement "{\n            local_30 = 0;\n            local_38 = iVar8;\n          }" { (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_38 = iVar8;" (assignment_expression "local_38 = iVar8" identifier = identifier) ;) })) (if_statement "if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }" if (parenthesized_expression "(*(int *)(iVar6 + 0x1c) < iVar8)" ( (binary_expression "*(int *)(iVar6 + 0x1c) < iVar8" (pointer_expression "*(int *)(iVar6 + 0x1c)" * (cast_expression "(int *)(iVar6 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1c)" ( (binary_expression "iVar6 + 0x1c" identifier + number_literal) )))) < identifier) )) (compound_statement "{\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }" { (expression_statement "local_38 = *(int *)(iVar6 + 0x1c) - local_30;" (assignment_expression "local_38 = *(int *)(iVar6 + 0x1c) - local_30" identifier = (binary_expression "*(int *)(iVar6 + 0x1c) - local_30" (pointer_expression "*(int *)(iVar6 + 0x1c)" * (cast_expression "(int *)(iVar6 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1c)" ( (binary_expression "iVar6 + 0x1c" identifier + number_literal) )))) - identifier)) ;) })) (expression_statement "FUN_000fff20(iVar6,&local_3c,param_2);" (call_expression "FUN_000fff20(iVar6,&local_3c,param_2)" identifier (argument_list "(iVar6,&local_3c,param_2)" ( identifier , (pointer_expression "&local_3c" & identifier) , identifier ))) ;) (if_statement "if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;" if (parenthesized_expression "(*(int *)(iVar3 + 0x268) == 3)" ( (binary_expression "*(int *)(iVar3 + 0x268) == 3" (pointer_expression "*(int *)(iVar3 + 0x268)" * (cast_expression "(int *)(iVar3 + 0x268)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x268)" ( (binary_expression "iVar3 + 0x268" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_00102c28;" goto statement_identifier ;)) (labeled_statement "LAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);" statement_identifier : (expression_statement "(*(code *)PTR_DestroyImage_003a8f4c)(iVar4);" (call_expression "(*(code *)PTR_DestroyImage_003a8f4c)(iVar4)" (parenthesized_expression "(*(code *)PTR_DestroyImage_003a8f4c)" ( (pointer_expression "*(code *)PTR_DestroyImage_003a8f4c" * (cast_expression "(code *)PTR_DestroyImage_003a8f4c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))) ;)) (expression_statement "iVar4 = iVar6;" (assignment_expression "iVar4 = iVar6" identifier = identifier) ;) }) (else_clause "else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }" else (compound_statement "{\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }" { (if_statement "if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;" if (parenthesized_expression "(*(int *)(iVar3 + 0x268) != 3)" ( (binary_expression "*(int *)(iVar3 + 0x268) != 3" (pointer_expression "*(int *)(iVar3 + 0x268)" * (cast_expression "(int *)(iVar3 + 0x268)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x268)" ( (binary_expression "iVar3 + 0x268" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_00102a58;" goto statement_identifier ;)) (labeled_statement "LAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);" statement_identifier : (expression_statement "(*(code *)PTR_DestroyImage_003a8f4c)(iVar6);" (call_expression "(*(code *)PTR_DestroyImage_003a8f4c)(iVar6)" (parenthesized_expression "(*(code *)PTR_DestroyImage_003a8f4c)" ( (pointer_expression "*(code *)PTR_DestroyImage_003a8f4c" * (cast_expression "(code *)PTR_DestroyImage_003a8f4c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6)" ( identifier ))) ;)) }))) (expression_statement "iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);" (assignment_expression "iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2)" identifier = (call_expression "(*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2)" (parenthesized_expression "(*(code *)PTR_CloneImage_003a9830)" ( (pointer_expression "*(code *)PTR_CloneImage_003a9830" * (cast_expression "(code *)PTR_CloneImage_003a9830" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,0,0,1,param_2)" ( identifier , number_literal , number_literal , number_literal , identifier )))) ;) (expression_statement "puVar1 = PTR_CloneImageProfiles_003a9348;" (assignment_expression "puVar1 = PTR_CloneImageProfiles_003a9348" identifier = identifier) ;) (if_statement "if (iVar6 == 0) goto LAB_00102c38;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00102c38;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)(iVar4 + 0x90) = 4;" (assignment_expression "*(undefined4 *)(iVar4 + 0x90) = 4" (pointer_expression "*(undefined4 *)(iVar4 + 0x90)" * (cast_expression "(undefined4 *)(iVar4 + 0x90)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x90)" ( (binary_expression "iVar4 + 0x90" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(*(code *)puVar1)(iVar6,iVar3);" (call_expression "(*(code *)puVar1)(iVar6,iVar3)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6,iVar3)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);" (call_expression "(*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3)" (parenthesized_expression "(*(code *)PTR_CloneImageProperties_003a91ac)" ( (pointer_expression "*(code *)PTR_CloneImageProperties_003a91ac" * (cast_expression "(code *)PTR_CloneImageProperties_003a91ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6,iVar3)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);" (call_expression "(*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3)" (parenthesized_expression "(*(code *)PTR_CloneImageArtifacts_003a9500)" ( (pointer_expression "*(code *)PTR_CloneImageArtifacts_003a9500" * (cast_expression "(code *)PTR_CloneImageArtifacts_003a9500" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6,iVar3)" ( identifier , identifier ))) ;) (expression_statement "uVar7 = *(undefined4 *)(iVar3 + 0x268);" (assignment_expression "uVar7 = *(undefined4 *)(iVar3 + 0x268)" identifier = (pointer_expression "*(undefined4 *)(iVar3 + 0x268)" * (cast_expression "(undefined4 *)(iVar3 + 0x268)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x268)" ( (binary_expression "iVar3 + 0x268" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x230) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x230) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x230)" * (cast_expression "(undefined4 *)(iVar6 + 0x230)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x230)" ( (binary_expression "iVar6 + 0x230" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x234) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x234) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x234)" * (cast_expression "(undefined4 *)(iVar6 + 0x234)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x234)" ( (binary_expression "iVar6 + 0x234" identifier + number_literal) )))) = number_literal) ;) (expression_statement "puVar1 = PTR_AppendImageToList_003a9880;" (assignment_expression "puVar1 = PTR_AppendImageToList_003a9880" identifier = identifier) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x268) = uVar7;" (assignment_expression "*(undefined4 *)(iVar6 + 0x268) = uVar7" (pointer_expression "*(undefined4 *)(iVar6 + 0x268)" * (cast_expression "(undefined4 *)(iVar6 + 0x268)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x268)" ( (binary_expression "iVar6 + 0x268" identifier + number_literal) )))) = identifier) ;) (expression_statement "(*(code *)puVar1)(&local_40,iVar6);" (call_expression "(*(code *)puVar1)(&local_40,iVar6)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_40,iVar6)" ( (pointer_expression "&local_40" & identifier) , identifier ))) ;) (expression_statement "iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);" (assignment_expression "iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5)" identifier = (call_expression "(*(code *)PTR_GetNextImageInList_003a9470)(iVar5)" (parenthesized_expression "(*(code *)PTR_GetNextImageInList_003a9470)" ( (pointer_expression "*(code *)PTR_GetNextImageInList_003a9470" * (cast_expression "(code *)PTR_GetNextImageInList_003a9470" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5)" ( identifier )))) ;) }) while (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) ;) (expression_statement "(*(code *)PTR_DestroyImage_003a8f4c)(iVar4);" (call_expression "(*(code *)PTR_DestroyImage_003a8f4c)(iVar4)" (parenthesized_expression "(*(code *)PTR_DestroyImage_003a8f4c)" ( (pointer_expression "*(code *)PTR_DestroyImage_003a8f4c" * (cast_expression "(code *)PTR_DestroyImage_003a8f4c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))) ;) (expression_statement "iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);" (assignment_expression "iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40)" identifier = (call_expression "(*(code *)PTR_GetFirstImageInList_003a944c)(local_40)" (parenthesized_expression "(*(code *)PTR_GetFirstImageInList_003a944c)" ( (pointer_expression "*(code *)PTR_GetFirstImageInList_003a944c" * (cast_expression "(code *)PTR_GetFirstImageInList_003a944c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_40)" ( identifier )))) ;) }))) (labeled_statement "LAB_00102c5c:\n    if (local_2c == *(int *)puVar2) {\n      return iVar6;\n    }" statement_identifier : (if_statement "if (local_2c == *(int *)puVar2) {\n      return iVar6;\n    }" if (parenthesized_expression "(local_2c == *(int *)puVar2)" ( (binary_expression "local_2c == *(int *)puVar2" identifier == (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n      return iVar6;\n    }" { (return_statement "return iVar6;" return identifier ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_003a9064)();" (call_expression "(*(code *)PTR___stack_chk_fail_003a9064)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_003a9064)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_003a9064" * (cast_expression "(code *)PTR___stack_chk_fail_003a9064" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                    (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                     PTR_s_t_to_left_003a88e4 + -0x4b50);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                    (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                     PTR_s_t_to_left_003a88e4 + -0x4b50)" identifier = (call_expression "(*(code *)PTR___assert_fail_003a9608)\n                    (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                     PTR_s_t_to_left_003a88e4 + -0x4b50)" (parenthesized_expression "(*(code *)PTR___assert_fail_003a9608)" ( (pointer_expression "*(code *)PTR___assert_fail_003a9608" * (cast_expression "(code *)PTR___assert_fail_003a9608" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                     PTR_s_t_to_left_003a88e4 + -0x4b50)" ( (binary_expression "PTR_LAB_003a88e0 + 0x294c" identifier + number_literal) , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4e60" identifier + number_literal) , number_literal , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4b50" identifier + number_literal) )))) ;) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return 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 = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return 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 (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return 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 = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 )))) ;) (expression_statement (assignment_expression IDENT = 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 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) )))) = (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) )))) = 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 (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) )))) = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;)) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT , 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 ( IDENT , (pointer_expression & IDENT) , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;)) }))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 IDENT = IDENT) ;) (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 (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression & IDENT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) })))
(function_definition "int DisposeImages(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined4 local_40;\n  int local_3c;\n  int local_38;\n  int local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_003a9230;\n  local_2c = *(int *)PTR___stack_chk_guard_003a9230;\n  if (param_1 == 0) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }\n  if (*(int *)(param_1 + 0x336c) != -0x54535255) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }\n  if (*(int *)(param_1 + 0x3350) != 0) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,param_1 + 0x340);\n  }\n  if (param_2 == 0) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }\n  if (*(int *)(param_2 + 0x1c) == -0x54535255) {\n    iVar3 = (*(code *)PTR_GetFirstImageInList_003a944c)(param_1);\n    iVar4 = (*(code *)PTR_CloneImage_003a9830)\n                      (iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2\n                      );\n    puVar1 = PTR_SetImageBackgroundColor_003a8e90;\n    if (iVar4 == 0) {\n      iVar6 = 0;\n    }\n    else {\n      uVar7 = *(undefined4 *)(iVar3 + 0x228);\n      *(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);\n      *(undefined4 *)(iVar4 + 0x228) = uVar7;\n      *(undefined4 *)(iVar4 + 0x268) = 1;\n      *(undefined4 *)(iVar4 + 0x230) = 0;\n      *(undefined4 *)(iVar4 + 0x90) = 4;\n      *(undefined4 *)(iVar4 + 0x234) = 0;\n      *(undefined4 *)(iVar4 + 0xd4) = 0;\n      *(undefined4 *)(iVar4 + 0xd0) = 0;\n      (*(code *)puVar1)(iVar4,param_2);\n      local_40 = (*(code *)PTR_NewImageList_003a8e84)();\n      iVar5 = iVar3;\n      do {\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      } while (iVar5 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n      iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);\n    }\nLAB_00102c5c:\n    if (local_2c == *(int *)puVar2) {\n      return iVar6;\n    }\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n  }\n  iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                    (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                     PTR_s_t_to_left_003a88e4 + -0x4b50);\n  return iVar4;\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  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined4 local_40;\n  int local_3c;\n  int local_38;\n  int local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_003a9230;\n  local_2c = *(int *)PTR___stack_chk_guard_003a9230;\n  if (param_1 == 0) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }\n  if (*(int *)(param_1 + 0x336c) != -0x54535255) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }\n  if (*(int *)(param_1 + 0x3350) != 0) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,param_1 + 0x340);\n  }\n  if (param_2 == 0) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }\n  if (*(int *)(param_2 + 0x1c) == -0x54535255) {\n    iVar3 = (*(code *)PTR_GetFirstImageInList_003a944c)(param_1);\n    iVar4 = (*(code *)PTR_CloneImage_003a9830)\n                      (iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2\n                      );\n    puVar1 = PTR_SetImageBackgroundColor_003a8e90;\n    if (iVar4 == 0) {\n      iVar6 = 0;\n    }\n    else {\n      uVar7 = *(undefined4 *)(iVar3 + 0x228);\n      *(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);\n      *(undefined4 *)(iVar4 + 0x228) = uVar7;\n      *(undefined4 *)(iVar4 + 0x268) = 1;\n      *(undefined4 *)(iVar4 + 0x230) = 0;\n      *(undefined4 *)(iVar4 + 0x90) = 4;\n      *(undefined4 *)(iVar4 + 0x234) = 0;\n      *(undefined4 *)(iVar4 + 0xd4) = 0;\n      *(undefined4 *)(iVar4 + 0xd0) = 0;\n      (*(code *)puVar1)(iVar4,param_2);\n      local_40 = (*(code *)PTR_NewImageList_003a8e84)();\n      iVar5 = iVar3;\n      do {\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      } while (iVar5 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n      iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);\n    }\nLAB_00102c5c:\n    if (local_2c == *(int *)puVar2) {\n      return iVar6;\n    }\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n  }\n  iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                    (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                     PTR_s_t_to_left_003a88e4 + -0x4b50);\n  return iVar4;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (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 iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "undefined4 local_40;" (type_identifier "undefined4") (identifier "local_40") (; ";")) (declaration "int local_3c;" (primitive_type "int") (identifier "local_3c") (; ";")) (declaration "int local_38;" (primitive_type "int") (identifier "local_38") (; ";")) (declaration "int local_34;" (primitive_type "int") (identifier "local_34") (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar2 = PTR___stack_chk_guard_003a9230;" (assignment_expression "puVar2 = PTR___stack_chk_guard_003a9230" (identifier "puVar2") (= "=") (identifier "PTR___stack_chk_guard_003a9230")) (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_003a9230;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_003a9230" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_003a9230" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_003a9230" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_003a9230")))) (; ";")) (if_statement "if (param_1 == 0) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }" ({ "{") (expression_statement "iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" (parenthesized_expression "(*(code *)PTR___assert_fail_003a9608)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_003a9608" (* "*") (cast_expression "(code *)PTR___assert_fail_003a9608" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_003a9608"))) () ")")) (argument_list "(PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" (( "(") (binary_expression "PTR_LAB_003a88e0 + 0x1e48" (identifier "PTR_LAB_003a88e0") (+ "+") (number_literal "0x1e48")) (, ",") (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4e60" (identifier "PTR_s_t_to_left_003a88e4") (+ "+") (number_literal "-0x4e60")) (, ",") (number_literal "0x19c") (, ",") (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4b50" (identifier "PTR_s_t_to_left_003a88e4") (+ "+") (number_literal "-0x4b50")) () ")")))) (; ";")) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x336c) != -0x54535255) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x336c) != -0x54535255)" (( "(") (binary_expression "*(int *)(param_1 + 0x336c) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x336c)" (* "*") (cast_expression "(int *)(param_1 + 0x336c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x336c)" (( "(") (binary_expression "param_1 + 0x336c" (identifier "param_1") (+ "+") (number_literal "0x336c")) () ")")))) (!= "!=") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }" ({ "{") (expression_statement "iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" (parenthesized_expression "(*(code *)PTR___assert_fail_003a9608)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_003a9608" (* "*") (cast_expression "(code *)PTR___assert_fail_003a9608" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_003a9608"))) () ")")) (argument_list "(PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" (( "(") (binary_expression "PTR_LAB_003a88e0 + 0x1e64" (identifier "PTR_LAB_003a88e0") (+ "+") (number_literal "0x1e64")) (, ",") (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4e60" (identifier "PTR_s_t_to_left_003a88e4") (+ "+") (number_literal "-0x4e60")) (, ",") (number_literal "0x19d") (, ",") (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4b50" (identifier "PTR_s_t_to_left_003a88e4") (+ "+") (number_literal "-0x4b50")) () ")")))) (; ";")) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x3350) != 0) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,param_1 + 0x340);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x3350) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x3350) != 0" (pointer_expression "*(int *)(param_1 + 0x3350)" (* "*") (cast_expression "(int *)(param_1 + 0x3350)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3350)" (( "(") (binary_expression "param_1 + 0x3350" (identifier "param_1") (+ "+") (number_literal "0x3350")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,param_1 + 0x340);\n  }" ({ "{") (expression_statement "(*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,param_1 + 0x340);" (call_expression "(*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,param_1 + 0x340)" (parenthesized_expression "(*(code *)PTR_LogMagickEvent_003a91e0)" (( "(") (pointer_expression "*(code *)PTR_LogMagickEvent_003a91e0" (* "*") (cast_expression "(code *)PTR_LogMagickEvent_003a91e0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_LogMagickEvent_003a91e0"))) () ")")) (argument_list "(0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,\n               PTR_s_t_to_left_003a88e4 + -0x62ac,param_1 + 0x340)" (( "(") (number_literal "0x8000") (, ",") (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4e60" (identifier "PTR_s_t_to_left_003a88e4") (+ "+") (number_literal "-0x4e60")) (, ",") (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4b60" (identifier "PTR_s_t_to_left_003a88e4") (+ "+") (number_literal "-0x4b60")) (, ",") (number_literal "0x19f") (, ",") (binary_expression "PTR_s_t_to_left_003a88e4 + -0x62ac" (identifier "PTR_s_t_to_left_003a88e4") (+ "+") (number_literal "-0x62ac")) (, ",") (binary_expression "param_1 + 0x340" (identifier "param_1") (+ "+") (number_literal "0x340")) () ")"))) (; ";")) (} "}"))) (if_statement "if (param_2 == 0) {\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);\n    return iVar4;\n  }" ({ "{") (expression_statement "iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR___assert_fail_003a9608)\n                      (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" (parenthesized_expression "(*(code *)PTR___assert_fail_003a9608)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_003a9608" (* "*") (cast_expression "(code *)PTR___assert_fail_003a9608" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_003a9608"))) () ")")) (argument_list "(PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,\n                       PTR_s_t_to_left_003a88e4 + -0x4b50)" (( "(") (binary_expression "PTR_LAB_003a88e0 + 0x1cac" (identifier "PTR_LAB_003a88e0") (+ "+") (number_literal "0x1cac")) (, ",") (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4e60" (identifier "PTR_s_t_to_left_003a88e4") (+ "+") (number_literal "-0x4e60")) (, ",") (number_literal "0x1a0") (, ",") (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4b50" (identifier "PTR_s_t_to_left_003a88e4") (+ "+") (number_literal "-0x4b50")) () ")")))) (; ";")) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}"))) (if_statement "if (*(int *)(param_2 + 0x1c) == -0x54535255) {\n    iVar3 = (*(code *)PTR_GetFirstImageInList_003a944c)(param_1);\n    iVar4 = (*(code *)PTR_CloneImage_003a9830)\n                      (iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2\n                      );\n    puVar1 = PTR_SetImageBackgroundColor_003a8e90;\n    if (iVar4 == 0) {\n      iVar6 = 0;\n    }\n    else {\n      uVar7 = *(undefined4 *)(iVar3 + 0x228);\n      *(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);\n      *(undefined4 *)(iVar4 + 0x228) = uVar7;\n      *(undefined4 *)(iVar4 + 0x268) = 1;\n      *(undefined4 *)(iVar4 + 0x230) = 0;\n      *(undefined4 *)(iVar4 + 0x90) = 4;\n      *(undefined4 *)(iVar4 + 0x234) = 0;\n      *(undefined4 *)(iVar4 + 0xd4) = 0;\n      *(undefined4 *)(iVar4 + 0xd0) = 0;\n      (*(code *)puVar1)(iVar4,param_2);\n      local_40 = (*(code *)PTR_NewImageList_003a8e84)();\n      iVar5 = iVar3;\n      do {\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      } while (iVar5 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n      iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);\n    }\nLAB_00102c5c:\n    if (local_2c == *(int *)puVar2) {\n      return iVar6;\n    }\n    (*(code *)PTR___stack_chk_fail_003a9064)();\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    iVar3 = (*(code *)PTR_GetFirstImageInList_003a944c)(param_1);\n    iVar4 = (*(code *)PTR_CloneImage_003a9830)\n                      (iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2\n                      );\n    puVar1 = PTR_SetImageBackgroundColor_003a8e90;\n    if (iVar4 == 0) {\n      iVar6 = 0;\n    }\n    else {\n      uVar7 = *(undefined4 *)(iVar3 + 0x228);\n      *(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);\n      *(undefined4 *)(iVar4 + 0x228) = uVar7;\n      *(undefined4 *)(iVar4 + 0x268) = 1;\n      *(undefined4 *)(iVar4 + 0x230) = 0;\n      *(undefined4 *)(iVar4 + 0x90) = 4;\n      *(undefined4 *)(iVar4 + 0x234) = 0;\n      *(undefined4 *)(iVar4 + 0xd4) = 0;\n      *(undefined4 *)(iVar4 + 0xd0) = 0;\n      (*(code *)puVar1)(iVar4,param_2);\n      local_40 = (*(code *)PTR_NewImageList_003a8e84)();\n      iVar5 = iVar3;\n      do {\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      } while (iVar5 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n      iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);\n    }\nLAB_00102c5c:\n    if (local_2c == *(int *)puVar2) {\n      return iVar6;\n    }\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n  }" ({ "{") (expression_statement "iVar3 = (*(code *)PTR_GetFirstImageInList_003a944c)(param_1);" (assignment_expression "iVar3 = (*(code *)PTR_GetFirstImageInList_003a944c)(param_1)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_GetFirstImageInList_003a944c)(param_1)" (parenthesized_expression "(*(code *)PTR_GetFirstImageInList_003a944c)" (( "(") (pointer_expression "*(code *)PTR_GetFirstImageInList_003a944c" (* "*") (cast_expression "(code *)PTR_GetFirstImageInList_003a944c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_GetFirstImageInList_003a944c"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar4 = (*(code *)PTR_CloneImage_003a9830)\n                      (iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2\n                      );" (assignment_expression "iVar4 = (*(code *)PTR_CloneImage_003a9830)\n                      (iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2\n                      )" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_CloneImage_003a9830)\n                      (iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2\n                      )" (parenthesized_expression "(*(code *)PTR_CloneImage_003a9830)" (( "(") (pointer_expression "*(code *)PTR_CloneImage_003a9830" (* "*") (cast_expression "(code *)PTR_CloneImage_003a9830" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_CloneImage_003a9830"))) () ")")) (argument_list "(iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2\n                      )" (( "(") (identifier "iVar3") (, ",") (pointer_expression "*(undefined4 *)(iVar3 + 0x228)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x228)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x228)" (( "(") (binary_expression "iVar3 + 0x228" (identifier "iVar3") (+ "+") (number_literal "0x228")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(iVar3 + 0x22c)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x22c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x22c)" (( "(") (binary_expression "iVar3 + 0x22c" (identifier "iVar3") (+ "+") (number_literal "0x22c")) () ")")))) (, ",") (number_literal "1") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "puVar1 = PTR_SetImageBackgroundColor_003a8e90;" (assignment_expression "puVar1 = PTR_SetImageBackgroundColor_003a8e90" (identifier "puVar1") (= "=") (identifier "PTR_SetImageBackgroundColor_003a8e90")) (; ";")) (if_statement "if (iVar4 == 0) {\n      iVar6 = 0;\n    }\n    else {\n      uVar7 = *(undefined4 *)(iVar3 + 0x228);\n      *(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);\n      *(undefined4 *)(iVar4 + 0x228) = uVar7;\n      *(undefined4 *)(iVar4 + 0x268) = 1;\n      *(undefined4 *)(iVar4 + 0x230) = 0;\n      *(undefined4 *)(iVar4 + 0x90) = 4;\n      *(undefined4 *)(iVar4 + 0x234) = 0;\n      *(undefined4 *)(iVar4 + 0xd4) = 0;\n      *(undefined4 *)(iVar4 + 0xd0) = 0;\n      (*(code *)puVar1)(iVar4,param_2);\n      local_40 = (*(code *)PTR_NewImageList_003a8e84)();\n      iVar5 = iVar3;\n      do {\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      } while (iVar5 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n      iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);\n    }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar6 = 0;\n    }" ({ "{") (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      uVar7 = *(undefined4 *)(iVar3 + 0x228);\n      *(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);\n      *(undefined4 *)(iVar4 + 0x228) = uVar7;\n      *(undefined4 *)(iVar4 + 0x268) = 1;\n      *(undefined4 *)(iVar4 + 0x230) = 0;\n      *(undefined4 *)(iVar4 + 0x90) = 4;\n      *(undefined4 *)(iVar4 + 0x234) = 0;\n      *(undefined4 *)(iVar4 + 0xd4) = 0;\n      *(undefined4 *)(iVar4 + 0xd0) = 0;\n      (*(code *)puVar1)(iVar4,param_2);\n      local_40 = (*(code *)PTR_NewImageList_003a8e84)();\n      iVar5 = iVar3;\n      do {\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      } while (iVar5 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n      iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);\n    }" (else "else") (compound_statement "{\n      uVar7 = *(undefined4 *)(iVar3 + 0x228);\n      *(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);\n      *(undefined4 *)(iVar4 + 0x228) = uVar7;\n      *(undefined4 *)(iVar4 + 0x268) = 1;\n      *(undefined4 *)(iVar4 + 0x230) = 0;\n      *(undefined4 *)(iVar4 + 0x90) = 4;\n      *(undefined4 *)(iVar4 + 0x234) = 0;\n      *(undefined4 *)(iVar4 + 0xd4) = 0;\n      *(undefined4 *)(iVar4 + 0xd0) = 0;\n      (*(code *)puVar1)(iVar4,param_2);\n      local_40 = (*(code *)PTR_NewImageList_003a8e84)();\n      iVar5 = iVar3;\n      do {\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      } while (iVar5 != 0);\n      (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n      iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);\n    }" ({ "{") (expression_statement "uVar7 = *(undefined4 *)(iVar3 + 0x228);" (assignment_expression "uVar7 = *(undefined4 *)(iVar3 + 0x228)" (identifier "uVar7") (= "=") (pointer_expression "*(undefined4 *)(iVar3 + 0x228)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x228)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x228)" (( "(") (binary_expression "iVar3 + 0x228" (identifier "iVar3") (+ "+") (number_literal "0x228")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);" (assignment_expression "*(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c)" (pointer_expression "*(undefined4 *)(iVar4 + 0x22c)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x22c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x22c)" (( "(") (binary_expression "iVar4 + 0x22c" (identifier "iVar4") (+ "+") (number_literal "0x22c")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(iVar3 + 0x22c)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x22c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x22c)" (( "(") (binary_expression "iVar3 + 0x22c" (identifier "iVar3") (+ "+") (number_literal "0x22c")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar4 + 0x228) = uVar7;" (assignment_expression "*(undefined4 *)(iVar4 + 0x228) = uVar7" (pointer_expression "*(undefined4 *)(iVar4 + 0x228)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x228)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x228)" (( "(") (binary_expression "iVar4 + 0x228" (identifier "iVar4") (+ "+") (number_literal "0x228")) () ")")))) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "*(undefined4 *)(iVar4 + 0x268) = 1;" (assignment_expression "*(undefined4 *)(iVar4 + 0x268) = 1" (pointer_expression "*(undefined4 *)(iVar4 + 0x268)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x268)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x268)" (( "(") (binary_expression "iVar4 + 0x268" (identifier "iVar4") (+ "+") (number_literal "0x268")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(undefined4 *)(iVar4 + 0x230) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 0x230) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 0x230)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x230)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x230)" (( "(") (binary_expression "iVar4 + 0x230" (identifier "iVar4") (+ "+") (number_literal "0x230")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar4 + 0x90) = 4;" (assignment_expression "*(undefined4 *)(iVar4 + 0x90) = 4" (pointer_expression "*(undefined4 *)(iVar4 + 0x90)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x90)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x90)" (( "(") (binary_expression "iVar4 + 0x90" (identifier "iVar4") (+ "+") (number_literal "0x90")) () ")")))) (= "=") (number_literal "4")) (; ";")) (expression_statement "*(undefined4 *)(iVar4 + 0x234) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 0x234) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 0x234)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x234)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x234)" (( "(") (binary_expression "iVar4 + 0x234" (identifier "iVar4") (+ "+") (number_literal "0x234")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar4 + 0xd4) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 0xd4) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 0xd4)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0xd4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0xd4)" (( "(") (binary_expression "iVar4 + 0xd4" (identifier "iVar4") (+ "+") (number_literal "0xd4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar4 + 0xd0) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 0xd0) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 0xd0)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0xd0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0xd0)" (( "(") (binary_expression "iVar4 + 0xd0" (identifier "iVar4") (+ "+") (number_literal "0xd0")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)puVar1)(iVar4,param_2);" (call_expression "(*(code *)puVar1)(iVar4,param_2)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(iVar4,param_2)" (( "(") (identifier "iVar4") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "local_40 = (*(code *)PTR_NewImageList_003a8e84)();" (assignment_expression "local_40 = (*(code *)PTR_NewImageList_003a8e84)()" (identifier "local_40") (= "=") (call_expression "(*(code *)PTR_NewImageList_003a8e84)()" (parenthesized_expression "(*(code *)PTR_NewImageList_003a8e84)" (( "(") (pointer_expression "*(code *)PTR_NewImageList_003a8e84" (* "*") (cast_expression "(code *)PTR_NewImageList_003a8e84" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_NewImageList_003a8e84"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar5 = iVar3;" (assignment_expression "iVar5 = iVar3" (identifier "iVar5") (= "=") (identifier "iVar3")) (; ";")) (do_statement "do {\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      } while (iVar5 != 0);" (do "do") (compound_statement "{\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }\n        iVar8 = *(int *)(iVar3 + 700);\n        *(undefined4 *)(iVar6 + 0x90) = 4;\n        uVar7 = 0x36;\n        if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }\n        (*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);\n        if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }\n        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);\n        puVar1 = PTR_CloneImageProfiles_003a9348;\n        if (iVar6 == 0) goto LAB_00102c38;\n        *(undefined4 *)(iVar4 + 0x90) = 4;\n        (*(code *)puVar1)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);\n        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);\n        uVar7 = *(undefined4 *)(iVar3 + 0x268);\n        *(undefined4 *)(iVar6 + 0x230) = 0;\n        *(undefined4 *)(iVar6 + 0x234) = 0;\n        puVar1 = PTR_AppendImageToList_003a9880;\n        *(undefined4 *)(iVar6 + 0x268) = uVar7;\n        (*(code *)puVar1)(&local_40,iVar6);\n        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);\n      }" ({ "{") (expression_statement "iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);" (assignment_expression "iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2)" (identifier "iVar6") (= "=") (call_expression "(*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2)" (parenthesized_expression "(*(code *)PTR_CloneImage_003a9830)" (( "(") (pointer_expression "*(code *)PTR_CloneImage_003a9830" (* "*") (cast_expression "(code *)PTR_CloneImage_003a9830" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_CloneImage_003a9830"))) () ")")) (argument_list "(iVar4,0,0,1,param_2)" (( "(") (identifier "iVar4") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "1") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar6 == 0) {\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          goto LAB_00102c5c;\n        }" ({ "{") (labeled_statement "LAB_00102c38:\n          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);" (statement_identifier "LAB_00102c38") (: ":") (expression_statement "local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);" (assignment_expression "local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40)" (identifier "local_40") (= "=") (call_expression "(*(code *)PTR_DestroyImageList_003a9510)(local_40)" (parenthesized_expression "(*(code *)PTR_DestroyImageList_003a9510)" (( "(") (pointer_expression "*(code *)PTR_DestroyImageList_003a9510" (* "*") (cast_expression "(code *)PTR_DestroyImageList_003a9510" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DestroyImageList_003a9510"))) () ")")) (argument_list "(local_40)" (( "(") (identifier "local_40") () ")")))) (; ";"))) (expression_statement "(*(code *)PTR_DestroyImage_003a8f4c)(iVar4);" (call_expression "(*(code *)PTR_DestroyImage_003a8f4c)(iVar4)" (parenthesized_expression "(*(code *)PTR_DestroyImage_003a8f4c)" (( "(") (pointer_expression "*(code *)PTR_DestroyImage_003a8f4c" (* "*") (cast_expression "(code *)PTR_DestroyImage_003a8f4c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DestroyImage_003a8f4c"))) () ")")) (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (goto_statement "goto LAB_00102c5c;" (goto "goto") (statement_identifier "LAB_00102c5c") (; ";")) (} "}"))) (expression_statement "iVar8 = *(int *)(iVar3 + 700);" (assignment_expression "iVar8 = *(int *)(iVar3 + 700)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(iVar3 + 700)" (* "*") (cast_expression "(int *)(iVar3 + 700)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 700)" (( "(") (binary_expression "iVar3 + 700" (identifier "iVar3") (+ "+") (number_literal "700")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar6 + 0x90) = 4;" (assignment_expression "*(undefined4 *)(iVar6 + 0x90) = 4" (pointer_expression "*(undefined4 *)(iVar6 + 0x90)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x90)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x90)" (( "(") (binary_expression "iVar6 + 0x90" (identifier "iVar6") (+ "+") (number_literal "0x90")) () ")")))) (= "=") (number_literal "4")) (; ";")) (expression_statement "uVar7 = 0x36;" (assignment_expression "uVar7 = 0x36" (identifier "uVar7") (= "=") (number_literal "0x36")) (; ";")) (if_statement "if (iVar8 == 0) {\n          uVar7 = 0xd;\n        }" (if "if") (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          uVar7 = 0xd;\n        }" ({ "{") (expression_statement "uVar7 = 0xd;" (assignment_expression "uVar7 = 0xd" (identifier "uVar7") (= "=") (number_literal "0xd")) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2);" (call_expression "(*(code *)PTR_CompositeImage_003a8cc4)\n                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2)" (parenthesized_expression "(*(code *)PTR_CompositeImage_003a8cc4)" (( "(") (pointer_expression "*(code *)PTR_CompositeImage_003a8cc4" (* "*") (cast_expression "(code *)PTR_CompositeImage_003a8cc4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_CompositeImage_003a8cc4"))) () ")")) (argument_list "(iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)\n                   ,param_2)" (( "(") (identifier "iVar6") (, ",") (identifier "iVar3") (, ",") (identifier "uVar7") (, ",") (number_literal "1") (, ",") (pointer_expression "*(undefined4 *)(iVar3 + 0x230)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x230)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x230)" (( "(") (binary_expression "iVar3 + 0x230" (identifier "iVar3") (+ "+") (number_literal "0x230")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(iVar3 + 0x234)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x234)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x234)" (( "(") (binary_expression "iVar3 + 0x234" (identifier "iVar3") (+ "+") (number_literal "0x234")) () ")")))) (, ",") (identifier "param_2") () ")"))) (; ";")) (if_statement "if (*(int *)(iVar3 + 0x268) == 2) {\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }\n        else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }" (if "if") (parenthesized_expression "(*(int *)(iVar3 + 0x268) == 2)" (( "(") (binary_expression "*(int *)(iVar3 + 0x268) == 2" (pointer_expression "*(int *)(iVar3 + 0x268)" (* "*") (cast_expression "(int *)(iVar3 + 0x268)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x268)" (( "(") (binary_expression "iVar3 + 0x268" (identifier "iVar3") (+ "+") (number_literal "0x268")) () ")")))) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n          local_3c = *(int *)(iVar3 + 0x18);\n          local_34 = *(int *)(iVar3 + 0x230);\n          local_30 = *(int *)(iVar3 + 0x234);\n          if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }\n          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }\n          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;\n          local_38 = *(int *)(iVar3 + 0x1c);\n          if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }\n          if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }\n          FUN_000fff20(iVar6,&local_3c,param_2);\n          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;\nLAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);\n          iVar4 = iVar6;\n        }" ({ "{") (expression_statement "local_3c = *(int *)(iVar3 + 0x18);" (assignment_expression "local_3c = *(int *)(iVar3 + 0x18)" (identifier "local_3c") (= "=") (pointer_expression "*(int *)(iVar3 + 0x18)" (* "*") (cast_expression "(int *)(iVar3 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x18)" (( "(") (binary_expression "iVar3 + 0x18" (identifier "iVar3") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "local_34 = *(int *)(iVar3 + 0x230);" (assignment_expression "local_34 = *(int *)(iVar3 + 0x230)" (identifier "local_34") (= "=") (pointer_expression "*(int *)(iVar3 + 0x230)" (* "*") (cast_expression "(int *)(iVar3 + 0x230)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x230)" (( "(") (binary_expression "iVar3 + 0x230" (identifier "iVar3") (+ "+") (number_literal "0x230")) () ")"))))) (; ";")) (expression_statement "local_30 = *(int *)(iVar3 + 0x234);" (assignment_expression "local_30 = *(int *)(iVar3 + 0x234)" (identifier "local_30") (= "=") (pointer_expression "*(int *)(iVar3 + 0x234)" (* "*") (cast_expression "(int *)(iVar3 + 0x234)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x234)" (( "(") (binary_expression "iVar3 + 0x234" (identifier "iVar3") (+ "+") (number_literal "0x234")) () ")"))))) (; ";")) (if_statement "if (local_34 < 0) {\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }" (if "if") (parenthesized_expression "(local_34 < 0)" (( "(") (binary_expression "local_34 < 0" (identifier "local_34") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n            local_3c = local_3c + local_34;\n            local_34 = 0;\n          }" ({ "{") (expression_statement "local_3c = local_3c + local_34;" (assignment_expression "local_3c = local_3c + local_34" (identifier "local_3c") (= "=") (binary_expression "local_3c + local_34" (identifier "local_3c") (+ "+") (identifier "local_34"))) (; ";")) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" (identifier "local_34") (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }" (if "if") (parenthesized_expression "(*(int *)(iVar6 + 0x18) < local_3c + local_34)" (( "(") (binary_expression "*(int *)(iVar6 + 0x18) < local_3c + local_34" (pointer_expression "*(int *)(iVar6 + 0x18)" (* "*") (cast_expression "(int *)(iVar6 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x18)" (( "(") (binary_expression "iVar6 + 0x18" (identifier "iVar6") (+ "+") (number_literal "0x18")) () ")")))) (< "<") (binary_expression "local_3c + local_34" (identifier "local_3c") (+ "+") (identifier "local_34"))) () ")")) (compound_statement "{\n            local_3c = *(int *)(iVar6 + 0x18) - local_34;\n          }" ({ "{") (expression_statement "local_3c = *(int *)(iVar6 + 0x18) - local_34;" (assignment_expression "local_3c = *(int *)(iVar6 + 0x18) - local_34" (identifier "local_3c") (= "=") (binary_expression "*(int *)(iVar6 + 0x18) - local_34" (pointer_expression "*(int *)(iVar6 + 0x18)" (* "*") (cast_expression "(int *)(iVar6 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x18)" (( "(") (binary_expression "iVar6 + 0x18" (identifier "iVar6") (+ "+") (number_literal "0x18")) () ")")))) (- "-") (identifier "local_34"))) (; ";")) (} "}"))) (expression_statement "iVar8 = *(int *)(iVar3 + 0x1c) + local_30;" (assignment_expression "iVar8 = *(int *)(iVar3 + 0x1c) + local_30" (identifier "iVar8") (= "=") (binary_expression "*(int *)(iVar3 + 0x1c) + local_30" (pointer_expression "*(int *)(iVar3 + 0x1c)" (* "*") (cast_expression "(int *)(iVar3 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1c)" (( "(") (binary_expression "iVar3 + 0x1c" (identifier "iVar3") (+ "+") (number_literal "0x1c")) () ")")))) (+ "+") (identifier "local_30"))) (; ";")) (expression_statement "local_38 = *(int *)(iVar3 + 0x1c);" (assignment_expression "local_38 = *(int *)(iVar3 + 0x1c)" (identifier "local_38") (= "=") (pointer_expression "*(int *)(iVar3 + 0x1c)" (* "*") (cast_expression "(int *)(iVar3 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1c)" (( "(") (binary_expression "iVar3 + 0x1c" (identifier "iVar3") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (if_statement "if (local_30 < 0) {\n            local_30 = 0;\n            local_38 = iVar8;\n          }" (if "if") (parenthesized_expression "(local_30 < 0)" (( "(") (binary_expression "local_30 < 0" (identifier "local_30") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n            local_30 = 0;\n            local_38 = iVar8;\n          }" ({ "{") (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_38 = iVar8;" (assignment_expression "local_38 = iVar8" (identifier "local_38") (= "=") (identifier "iVar8")) (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar6 + 0x1c) < iVar8) {\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }" (if "if") (parenthesized_expression "(*(int *)(iVar6 + 0x1c) < iVar8)" (( "(") (binary_expression "*(int *)(iVar6 + 0x1c) < iVar8" (pointer_expression "*(int *)(iVar6 + 0x1c)" (* "*") (cast_expression "(int *)(iVar6 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x1c)" (( "(") (binary_expression "iVar6 + 0x1c" (identifier "iVar6") (+ "+") (number_literal "0x1c")) () ")")))) (< "<") (identifier "iVar8")) () ")")) (compound_statement "{\n            local_38 = *(int *)(iVar6 + 0x1c) - local_30;\n          }" ({ "{") (expression_statement "local_38 = *(int *)(iVar6 + 0x1c) - local_30;" (assignment_expression "local_38 = *(int *)(iVar6 + 0x1c) - local_30" (identifier "local_38") (= "=") (binary_expression "*(int *)(iVar6 + 0x1c) - local_30" (pointer_expression "*(int *)(iVar6 + 0x1c)" (* "*") (cast_expression "(int *)(iVar6 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x1c)" (( "(") (binary_expression "iVar6 + 0x1c" (identifier "iVar6") (+ "+") (number_literal "0x1c")) () ")")))) (- "-") (identifier "local_30"))) (; ";")) (} "}"))) (expression_statement "FUN_000fff20(iVar6,&local_3c,param_2);" (call_expression "FUN_000fff20(iVar6,&local_3c,param_2)" (identifier "FUN_000fff20") (argument_list "(iVar6,&local_3c,param_2)" (( "(") (identifier "iVar6") (, ",") (pointer_expression "&local_3c" (& "&") (identifier "local_3c")) (, ",") (identifier "param_2") () ")"))) (; ";")) (if_statement "if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;" (if "if") (parenthesized_expression "(*(int *)(iVar3 + 0x268) == 3)" (( "(") (binary_expression "*(int *)(iVar3 + 0x268) == 3" (pointer_expression "*(int *)(iVar3 + 0x268)" (* "*") (cast_expression "(int *)(iVar3 + 0x268)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x268)" (( "(") (binary_expression "iVar3 + 0x268" (identifier "iVar3") (+ "+") (number_literal "0x268")) () ")")))) (== "==") (number_literal "3")) () ")")) (goto_statement "goto LAB_00102c28;" (goto "goto") (statement_identifier "LAB_00102c28") (; ";"))) (labeled_statement "LAB_00102a58:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);" (statement_identifier "LAB_00102a58") (: ":") (expression_statement "(*(code *)PTR_DestroyImage_003a8f4c)(iVar4);" (call_expression "(*(code *)PTR_DestroyImage_003a8f4c)(iVar4)" (parenthesized_expression "(*(code *)PTR_DestroyImage_003a8f4c)" (( "(") (pointer_expression "*(code *)PTR_DestroyImage_003a8f4c" (* "*") (cast_expression "(code *)PTR_DestroyImage_003a8f4c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DestroyImage_003a8f4c"))) () ")")) (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";"))) (expression_statement "iVar4 = iVar6;" (assignment_expression "iVar4 = iVar6" (identifier "iVar4") (= "=") (identifier "iVar6")) (; ";")) (} "}")) (else_clause "else {\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }" (else "else") (compound_statement "{\n          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;\nLAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);\n        }" ({ "{") (if_statement "if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;" (if "if") (parenthesized_expression "(*(int *)(iVar3 + 0x268) != 3)" (( "(") (binary_expression "*(int *)(iVar3 + 0x268) != 3" (pointer_expression "*(int *)(iVar3 + 0x268)" (* "*") (cast_expression "(int *)(iVar3 + 0x268)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x268)" (( "(") (binary_expression "iVar3 + 0x268" (identifier "iVar3") (+ "+") (number_literal "0x268")) () ")")))) (!= "!=") (number_literal "3")) () ")")) (goto_statement "goto LAB_00102a58;" (goto "goto") (statement_identifier "LAB_00102a58") (; ";"))) (labeled_statement "LAB_00102c28:\n          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);" (statement_identifier "LAB_00102c28") (: ":") (expression_statement "(*(code *)PTR_DestroyImage_003a8f4c)(iVar6);" (call_expression "(*(code *)PTR_DestroyImage_003a8f4c)(iVar6)" (parenthesized_expression "(*(code *)PTR_DestroyImage_003a8f4c)" (( "(") (pointer_expression "*(code *)PTR_DestroyImage_003a8f4c" (* "*") (cast_expression "(code *)PTR_DestroyImage_003a8f4c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DestroyImage_003a8f4c"))) () ")")) (argument_list "(iVar6)" (( "(") (identifier "iVar6") () ")"))) (; ";"))) (} "}")))) (expression_statement "iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);" (assignment_expression "iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2)" (identifier "iVar6") (= "=") (call_expression "(*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2)" (parenthesized_expression "(*(code *)PTR_CloneImage_003a9830)" (( "(") (pointer_expression "*(code *)PTR_CloneImage_003a9830" (* "*") (cast_expression "(code *)PTR_CloneImage_003a9830" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_CloneImage_003a9830"))) () ")")) (argument_list "(iVar4,0,0,1,param_2)" (( "(") (identifier "iVar4") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "1") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "puVar1 = PTR_CloneImageProfiles_003a9348;" (assignment_expression "puVar1 = PTR_CloneImageProfiles_003a9348" (identifier "puVar1") (= "=") (identifier "PTR_CloneImageProfiles_003a9348")) (; ";")) (if_statement "if (iVar6 == 0) goto LAB_00102c38;" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00102c38;" (goto "goto") (statement_identifier "LAB_00102c38") (; ";"))) (expression_statement "*(undefined4 *)(iVar4 + 0x90) = 4;" (assignment_expression "*(undefined4 *)(iVar4 + 0x90) = 4" (pointer_expression "*(undefined4 *)(iVar4 + 0x90)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x90)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x90)" (( "(") (binary_expression "iVar4 + 0x90" (identifier "iVar4") (+ "+") (number_literal "0x90")) () ")")))) (= "=") (number_literal "4")) (; ";")) (expression_statement "(*(code *)puVar1)(iVar6,iVar3);" (call_expression "(*(code *)puVar1)(iVar6,iVar3)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(iVar6,iVar3)" (( "(") (identifier "iVar6") (, ",") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);" (call_expression "(*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3)" (parenthesized_expression "(*(code *)PTR_CloneImageProperties_003a91ac)" (( "(") (pointer_expression "*(code *)PTR_CloneImageProperties_003a91ac" (* "*") (cast_expression "(code *)PTR_CloneImageProperties_003a91ac" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_CloneImageProperties_003a91ac"))) () ")")) (argument_list "(iVar6,iVar3)" (( "(") (identifier "iVar6") (, ",") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);" (call_expression "(*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3)" (parenthesized_expression "(*(code *)PTR_CloneImageArtifacts_003a9500)" (( "(") (pointer_expression "*(code *)PTR_CloneImageArtifacts_003a9500" (* "*") (cast_expression "(code *)PTR_CloneImageArtifacts_003a9500" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_CloneImageArtifacts_003a9500"))) () ")")) (argument_list "(iVar6,iVar3)" (( "(") (identifier "iVar6") (, ",") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "uVar7 = *(undefined4 *)(iVar3 + 0x268);" (assignment_expression "uVar7 = *(undefined4 *)(iVar3 + 0x268)" (identifier "uVar7") (= "=") (pointer_expression "*(undefined4 *)(iVar3 + 0x268)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x268)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x268)" (( "(") (binary_expression "iVar3 + 0x268" (identifier "iVar3") (+ "+") (number_literal "0x268")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar6 + 0x230) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x230) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x230)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x230)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x230)" (( "(") (binary_expression "iVar6 + 0x230" (identifier "iVar6") (+ "+") (number_literal "0x230")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar6 + 0x234) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x234) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x234)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x234)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x234)" (( "(") (binary_expression "iVar6 + 0x234" (identifier "iVar6") (+ "+") (number_literal "0x234")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1 = PTR_AppendImageToList_003a9880;" (assignment_expression "puVar1 = PTR_AppendImageToList_003a9880" (identifier "puVar1") (= "=") (identifier "PTR_AppendImageToList_003a9880")) (; ";")) (expression_statement "*(undefined4 *)(iVar6 + 0x268) = uVar7;" (assignment_expression "*(undefined4 *)(iVar6 + 0x268) = uVar7" (pointer_expression "*(undefined4 *)(iVar6 + 0x268)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x268)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x268)" (( "(") (binary_expression "iVar6 + 0x268" (identifier "iVar6") (+ "+") (number_literal "0x268")) () ")")))) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "(*(code *)puVar1)(&local_40,iVar6);" (call_expression "(*(code *)puVar1)(&local_40,iVar6)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(&local_40,iVar6)" (( "(") (pointer_expression "&local_40" (& "&") (identifier "local_40")) (, ",") (identifier "iVar6") () ")"))) (; ";")) (expression_statement "iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);" (assignment_expression "iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_GetNextImageInList_003a9470)(iVar5)" (parenthesized_expression "(*(code *)PTR_GetNextImageInList_003a9470)" (( "(") (pointer_expression "*(code *)PTR_GetNextImageInList_003a9470" (* "*") (cast_expression "(code *)PTR_GetNextImageInList_003a9470" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_GetNextImageInList_003a9470"))) () ")")) (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "(*(code *)PTR_DestroyImage_003a8f4c)(iVar4);" (call_expression "(*(code *)PTR_DestroyImage_003a8f4c)(iVar4)" (parenthesized_expression "(*(code *)PTR_DestroyImage_003a8f4c)" (( "(") (pointer_expression "*(code *)PTR_DestroyImage_003a8f4c" (* "*") (cast_expression "(code *)PTR_DestroyImage_003a8f4c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DestroyImage_003a8f4c"))) () ")")) (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (expression_statement "iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);" (assignment_expression "iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40)" (identifier "iVar6") (= "=") (call_expression "(*(code *)PTR_GetFirstImageInList_003a944c)(local_40)" (parenthesized_expression "(*(code *)PTR_GetFirstImageInList_003a944c)" (( "(") (pointer_expression "*(code *)PTR_GetFirstImageInList_003a944c" (* "*") (cast_expression "(code *)PTR_GetFirstImageInList_003a944c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_GetFirstImageInList_003a944c"))) () ")")) (argument_list "(local_40)" (( "(") (identifier "local_40") () ")")))) (; ";")) (} "}")))) (labeled_statement "LAB_00102c5c:\n    if (local_2c == *(int *)puVar2) {\n      return iVar6;\n    }" (statement_identifier "LAB_00102c5c") (: ":") (if_statement "if (local_2c == *(int *)puVar2) {\n      return iVar6;\n    }" (if "if") (parenthesized_expression "(local_2c == *(int *)puVar2)" (( "(") (binary_expression "local_2c == *(int *)puVar2" (identifier "local_2c") (== "==") (pointer_expression "*(int *)puVar2" (* "*") (cast_expression "(int *)puVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2")))) () ")")) (compound_statement "{\n      return iVar6;\n    }" ({ "{") (return_statement "return iVar6;" (return "return") (identifier "iVar6") (; ";")) (} "}")))) (expression_statement "(*(code *)PTR___stack_chk_fail_003a9064)();" (call_expression "(*(code *)PTR___stack_chk_fail_003a9064)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_003a9064)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_003a9064" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_003a9064" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_003a9064"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                    (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                     PTR_s_t_to_left_003a88e4 + -0x4b50);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_003a9608)\n                    (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                     PTR_s_t_to_left_003a88e4 + -0x4b50)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR___assert_fail_003a9608)\n                    (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                     PTR_s_t_to_left_003a88e4 + -0x4b50)" (parenthesized_expression "(*(code *)PTR___assert_fail_003a9608)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_003a9608" (* "*") (cast_expression "(code *)PTR___assert_fail_003a9608" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_003a9608"))) () ")")) (argument_list "(PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,\n                     PTR_s_t_to_left_003a88e4 + -0x4b50)" (( "(") (binary_expression "PTR_LAB_003a88e0 + 0x294c" (identifier "PTR_LAB_003a88e0") (+ "+") (number_literal "0x294c")) (, ",") (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4e60" (identifier "PTR_s_t_to_left_003a88e4") (+ "+") (number_literal "-0x4e60")) (, ",") (number_literal "0x1a1") (, ",") (binary_expression "PTR_s_t_to_left_003a88e4 + -0x4b50" (identifier "PTR_s_t_to_left_003a88e4") (+ "+") (number_literal "-0x4b50")) () ")")))) (; ";")) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))

/* 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 */

type_1 * function_1(type_1 *var_1,type_2 *var_5)

{
  type_3 *puVar1;
  type_3 *puVar2;
  int var_12;
  int var_6;
  type_1 *var_7;
  type_4 DVar6;
  int var_11;
  type_1 *var_8;
  size_t sVar8;
  type_5 uVar9;
  int var_9;
  type_1 *dispose_images;
  type_6 bounds;
  
  puVar2 = PTR___stack_chk_guard_003a9230;
  var_12 = *(int *)PTR___stack_chk_guard_003a9230;
  if (var_1 == (type_1 *)0x0) {
    var_7 = (type_1 *)(*(type_7 *)PTR___assert_fail_003a9608)
                                (var_2 + 0x1e48,var_3 + -0x4e60,0x19c,
                                 var_3 + -0x4b50);
    return var_7;
  }
  if (var_1->signature != 0xabacadab) {
    var_7 = (type_1 *)(*(type_7 *)PTR___assert_fail_003a9608)
                                (var_2 + 0x1e64,var_3 + -0x4e60,0x19d,
                                 var_3 + -0x4b50);
    return var_7;
  }
  if (var_1->debug != var_4) {
    (*(type_7 *)PTR_LogMagickEvent_003a91e0)
              (0x8000,var_3 + -0x4e60,var_3 + -0x4b60,0x19f,
               var_3 + -0x62ac,var_1->filename);
  }
  if (var_5 == (type_2 *)0x0) {
    var_7 = (type_1 *)(*(type_7 *)PTR___assert_fail_003a9608)
                                (var_2 + 0x1cac,var_3 + -0x4e60,0x1a0,
                                 var_3 + -0x4b50);
    return var_7;
  }
  if (var_5->signature == 0xabacadab) {
    var_6 = (*(type_7 *)PTR_GetFirstImageInList_003a944c)(var_1);
    var_7 = (type_1 *)(*(type_7 *)PTR_CloneImage_003a9830)
                                (var_6,*(type_5 *)(var_6 + 0x228),*(type_5 *)(var_6 + 0x22c)
                                 ,1,var_5);
    puVar1 = PTR_SetImageBackgroundColor_003a8e90;
    if (var_7 == (type_1 *)0x0) {
      var_8 = (type_1 *)0x0;
    }
    else {
      sVar8 = *(size_t *)(var_6 + 0x228);
      (var_7->page).height = *(size_t *)(var_6 + 0x22c);
      (var_7->page).width = sVar8;
      var_7->dispose = NoneDispose;
      (var_7->page).x = 0;
      (var_7->background_color).alpha_trait = BlendPixelTrait;
      (var_7->page).y = 0;
      *(type_5 *)((int)&(var_7->background_color).alpha + 4) = 0;
      *(type_5 *)&(var_7->background_color).alpha = 0;
      (*(type_7 *)puVar1)(var_7,var_5);
      dispose_images = (type_1 *)(*(type_7 *)PTR_NewImageList_003a8e84)();
      var_11 = var_6;
      do {
        var_8 = (type_1 *)(*(type_7 *)PTR_CloneImage_003a9830)(var_7,0,0,1,var_5);
        if (var_8 == (type_1 *)0x0) {
LAB_00102c38:
          dispose_images = (type_1 *)(*(type_7 *)PTR_DestroyImageList_003a9510)(dispose_images);
          (*(type_7 *)PTR_DestroyImage_003a8f4c)(var_7);
          goto LAB_00102c5c;
        }
        var_9 = *(int *)(var_6 + 700);
        (var_8->background_color).alpha_trait = BlendPixelTrait;
        uVar9 = 0x36;
        if (var_9 == 0) {
          uVar9 = 0xd;
        }
        (*(type_7 *)PTR_CompositeImage_003a8cc4)
                  (var_8,var_6,uVar9,1,*(type_5 *)(var_6 + 0x230),*(type_5 *)(var_6 + 0x234)
                   ,var_5);
        if (*(int *)(var_6 + 0x268) == 2) {
          bounds.width = *(size_t *)(var_6 + 0x18);
          bounds.x = *(int *)(var_6 + 0x230);
          bounds.y = *(int *)(var_6 + 0x234);
          if (bounds.x < 0) {
            bounds.width = bounds.width + bounds.x;
            bounds.x = 0;
          }
          if ((int)var_8->columns < (int)(bounds.width + bounds.x)) {
            bounds.width = var_8->columns - bounds.x;
          }
          sVar8 = *(size_t *)(var_6 + 0x1c) + bounds.y;
          bounds.height = *(size_t *)(var_6 + 0x1c);
          if (bounds.y < 0) {
            bounds.y = 0;
            bounds.height = sVar8;
          }
          if ((int)var_8->rows < (int)sVar8) {
            bounds.height = var_8->rows - bounds.y;
          }
          var_10(var_8,&bounds,var_5);
          if (*(int *)(var_6 + 0x268) == 3) goto LAB_00102c28;
LAB_00102a58:
          (*(type_7 *)PTR_DestroyImage_003a8f4c)(var_7);
          var_7 = var_8;
        }
        else {
          if (*(int *)(var_6 + 0x268) != 3) goto LAB_00102a58;
LAB_00102c28:
          (*(type_7 *)PTR_DestroyImage_003a8f4c)(var_8);
        }
        var_8 = (type_1 *)(*(type_7 *)PTR_CloneImage_003a9830)(var_7,0,0,1,var_5);
        puVar1 = PTR_CloneImageProfiles_003a9348;
        if (var_8 == (type_1 *)0x0) goto LAB_00102c38;
        (var_7->background_color).alpha_trait = BlendPixelTrait;
        (*(type_7 *)puVar1)(var_8,var_6);
        (*(type_7 *)PTR_CloneImageProperties_003a91ac)(var_8,var_6);
        (*(type_7 *)PTR_CloneImageArtifacts_003a9500)(var_8,var_6);
        DVar6 = *(type_4 *)(var_6 + 0x268);
        (var_8->page).x = 0;
        (var_8->page).y = 0;
        puVar1 = PTR_AppendImageToList_003a9880;
        var_8->dispose = DVar6;
        (*(type_7 *)puVar1)(&dispose_images,var_8);
        var_11 = (*(type_7 *)PTR_GetNextImageInList_003a9470)(var_11);
      } while (var_11 != 0);
      (*(type_7 *)PTR_DestroyImage_003a8f4c)(var_7);
      var_8 = (type_1 *)(*(type_7 *)PTR_GetFirstImageInList_003a944c)(dispose_images);
    }
LAB_00102c5c:
    if (var_12 == *(int *)puVar2) {
      return var_8;
    }
    (*(type_7 *)PTR___stack_chk_fail_003a9064)();
  }
  var_7 = (type_1 *)(*(type_7 *)PTR___assert_fail_003a9608)
                              (var_2 + 0x294c,var_3 + -0x4e60,0x1a1,
                               var_3 + -0x4b50);
  return var_7;
}


(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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (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: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (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 (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (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: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (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: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) 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: (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: (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 (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: (number_literal))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (number_literal) (number_literal) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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 (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (identifier) (number_literal) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (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 (identifier) (pointer_expression argument: (identifier)) (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: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (identifier) 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: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (identifier))))) consequence: (compound_statement (return_statement (identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

int MASKED(int param_1,int param_2)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  undefined4 uVar7;
  int iVar8;
  undefined4 local_40;
  int local_3c;
  int local_38;
  int local_34;
  int local_30;
  int local_2c;
  
  puVar2 = PTR___stack_chk_guard_003a9230;
  local_2c = *(int *)PTR___stack_chk_guard_003a9230;
  if (param_1 == 0) {
    iVar4 = (*(code *)PTR___assert_fail_003a9608)
                      (PTR_LAB_003a88e0 + 0x1e48,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19c,
                       PTR_s_t_to_left_003a88e4 + -0x4b50);
    return iVar4;
  }
  if (*(int *)(param_1 + 0x336c) != -0x54535255) {
    iVar4 = (*(code *)PTR___assert_fail_003a9608)
                      (PTR_LAB_003a88e0 + 0x1e64,PTR_s_t_to_left_003a88e4 + -0x4e60,0x19d,
                       PTR_s_t_to_left_003a88e4 + -0x4b50);
    return iVar4;
  }
  if (*(int *)(param_1 + 0x3350) != 0) {
    (*(code *)PTR_LogMagickEvent_003a91e0)
              (0x8000,PTR_s_t_to_left_003a88e4 + -0x4e60,PTR_s_t_to_left_003a88e4 + -0x4b60,0x19f,
               PTR_s_t_to_left_003a88e4 + -0x62ac,param_1 + 0x340);
  }
  if (param_2 == 0) {
    iVar4 = (*(code *)PTR___assert_fail_003a9608)
                      (PTR_LAB_003a88e0 + 0x1cac,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a0,
                       PTR_s_t_to_left_003a88e4 + -0x4b50);
    return iVar4;
  }
  if (*(int *)(param_2 + 0x1c) == -0x54535255) {
    iVar3 = (*(code *)PTR_GetFirstImageInList_003a944c)(param_1);
    iVar4 = (*(code *)PTR_CloneImage_003a9830)
                      (iVar3,*(undefined4 *)(iVar3 + 0x228),*(undefined4 *)(iVar3 + 0x22c),1,param_2
                      );
    puVar1 = PTR_SetImageBackgroundColor_003a8e90;
    if (iVar4 == 0) {
      iVar6 = 0;
    }
    else {
      uVar7 = *(undefined4 *)(iVar3 + 0x228);
      *(undefined4 *)(iVar4 + 0x22c) = *(undefined4 *)(iVar3 + 0x22c);
      *(undefined4 *)(iVar4 + 0x228) = uVar7;
      *(undefined4 *)(iVar4 + 0x268) = 1;
      *(undefined4 *)(iVar4 + 0x230) = 0;
      *(undefined4 *)(iVar4 + 0x90) = 4;
      *(undefined4 *)(iVar4 + 0x234) = 0;
      *(undefined4 *)(iVar4 + 0xd4) = 0;
      *(undefined4 *)(iVar4 + 0xd0) = 0;
      (*(code *)puVar1)(iVar4,param_2);
      local_40 = (*(code *)PTR_NewImageList_003a8e84)();
      iVar5 = iVar3;
      do {
        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);
        if (iVar6 == 0) {
LAB_00102c38:
          local_40 = (*(code *)PTR_DestroyImageList_003a9510)(local_40);
          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);
          goto LAB_00102c5c;
        }
        iVar8 = *(int *)(iVar3 + 700);
        *(undefined4 *)(iVar6 + 0x90) = 4;
        uVar7 = 0x36;
        if (iVar8 == 0) {
          uVar7 = 0xd;
        }
        (*(code *)PTR_CompositeImage_003a8cc4)
                  (iVar6,iVar3,uVar7,1,*(undefined4 *)(iVar3 + 0x230),*(undefined4 *)(iVar3 + 0x234)
                   ,param_2);
        if (*(int *)(iVar3 + 0x268) == 2) {
          local_3c = *(int *)(iVar3 + 0x18);
          local_34 = *(int *)(iVar3 + 0x230);
          local_30 = *(int *)(iVar3 + 0x234);
          if (local_34 < 0) {
            local_3c = local_3c + local_34;
            local_34 = 0;
          }
          if (*(int *)(iVar6 + 0x18) < local_3c + local_34) {
            local_3c = *(int *)(iVar6 + 0x18) - local_34;
          }
          iVar8 = *(int *)(iVar3 + 0x1c) + local_30;
          local_38 = *(int *)(iVar3 + 0x1c);
          if (local_30 < 0) {
            local_30 = 0;
            local_38 = iVar8;
          }
          if (*(int *)(iVar6 + 0x1c) < iVar8) {
            local_38 = *(int *)(iVar6 + 0x1c) - local_30;
          }
          FUN_000fff20(iVar6,&local_3c,param_2);
          if (*(int *)(iVar3 + 0x268) == 3) goto LAB_00102c28;
LAB_00102a58:
          (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);
          iVar4 = iVar6;
        }
        else {
          if (*(int *)(iVar3 + 0x268) != 3) goto LAB_00102a58;
LAB_00102c28:
          (*(code *)PTR_DestroyImage_003a8f4c)(iVar6);
        }
        iVar6 = (*(code *)PTR_CloneImage_003a9830)(iVar4,0,0,1,param_2);
        puVar1 = PTR_CloneImageProfiles_003a9348;
        if (iVar6 == 0) goto LAB_00102c38;
        *(undefined4 *)(iVar4 + 0x90) = 4;
        (*(code *)puVar1)(iVar6,iVar3);
        (*(code *)PTR_CloneImageProperties_003a91ac)(iVar6,iVar3);
        (*(code *)PTR_CloneImageArtifacts_003a9500)(iVar6,iVar3);
        uVar7 = *(undefined4 *)(iVar3 + 0x268);
        *(undefined4 *)(iVar6 + 0x230) = 0;
        *(undefined4 *)(iVar6 + 0x234) = 0;
        puVar1 = PTR_AppendImageToList_003a9880;
        *(undefined4 *)(iVar6 + 0x268) = uVar7;
        (*(code *)puVar1)(&local_40,iVar6);
        iVar5 = (*(code *)PTR_GetNextImageInList_003a9470)(iVar5);
      } while (iVar5 != 0);
      (*(code *)PTR_DestroyImage_003a8f4c)(iVar4);
      iVar6 = (*(code *)PTR_GetFirstImageInList_003a944c)(local_40);
    }
LAB_00102c5c:
    if (local_2c == *(int *)puVar2) {
      return iVar6;
    }
    (*(code *)PTR___stack_chk_fail_003a9064)();
  }
  iVar4 = (*(code *)PTR___assert_fail_003a9608)
                    (PTR_LAB_003a88e0 + 0x294c,PTR_s_t_to_left_003a88e4 + -0x4e60,0x1a1,
                     PTR_s_t_to_left_003a88e4 + -0x4b50);
  return iVar4;
}

